Procedure Judge;
begin
FindJudge;
if not TalkJudge then
begin
LogOut;
TerminateScript;
end;
end;
Basically what this is saying is:
if (TalkJudge = False) then
begin
Logout;
TerminateScript;
end;
But your TalkJudge procedure cannot return true or false as only functions can return results. For example, if you wanted to turn that FindJudge into a function you could go:
Function FindJudge: Boolean; // A boolean returns true or false.
begin
SetAngle(1);
if FindObjCustom(X, Y, ['omp', 'tition', 'judge'], [judge1, judge2, judge3], 5)then
begin
MMouse(x, y, 3, 3);
if IsUpTextEx('udge')then
writeLn('Found Judge');
ClickMouse2(mouse_Left);
Result := True; // If it finds & clicks the judge, result is true.
end;
end;
EDIT: Ninjed :ninja: