This is what I have:
SCAR Code:
function Walk(Road: boolean; Col, SRad, ERad, Rad: integer): boolean;
begin
Result := True;
if not FindColor(x, y, Col, MMX1, MMY1, MMX2, MMY2) then
begin
Result := False;
if Road then Col := FindRoadColor;
else Col := FindFallyRoadColor;
end;
RadialRoadWalk(Col, SRad, ERad, Rad, 3, 3);
end;
procedure Walking;
var
RCol, FallyRCol: integer;
begin
FallyRCol := FindFallyRoadColor;
---some walking stuff here between---
Walk(False, FallyRCol, 200, 230, 65);
---some more to come---
end;
Now the question: Will function Walk change the variable FallyRCol in proc Walking if the color has changed or do I have to change it in proc Walking too if I want it to be updated there?