SRL Archive - SRL Archives

function IsBuild : Boolean;


Bego

2006-06-26 01:52:14

{*******************************************************************************
function IsBuild : Boolean;
By: Bego
Description: Returns true if building mode is on
*******************************************************************************}
function IsBuild : Boolean;
begin
OpenHouseOptions;
if (GetColor(618, 290) = 1711221) then
begin
result := true;
end else
begin
result := false;
end;
end;

Renax

2006-06-26 09:32:11

you don't have to use begin's when there is only one statement being called, this way you can shorten your code.

XxKanexX

2006-06-27 02:35:59

Unless someone makes a building House script i think this wouldn't be very useful ;) :p

Bego

2006-06-30 02:25:13

Well, I have made a couple house scripts, but I scrapped them because the Mouse procedure seems to hardly work.