SRL Archive - Help

changing constants


doxin

2012-12-27 00:01:24

At the top of my script it have this
Const
InvIsFull = false;

how can I make InvIsFull = true;? I tried to do this

EDIT:Nevermind! i got it, all i had to do was decalare the variable InvIsFull:Boolean; at the top of my script and i was able to do InvIsFull := False;

begin
AL_AccurateMMouse(point(649, 183), 2, 2);
AL_FastClick(mouse_left);
if FindColor(x, y, 5855583, 700, 432, 724, 456) then
begin
InvIsFull := True; //how do i make this line change InvIsFull to true?
WriteLn('Inventory is full');
end;
end;

DannyRS

2012-12-27 00:02:53

Make it Var not Const


Var
InvIsFull: Boolean;

Constants are, well, Constantly the same