Simba Code:
function FoundCow:Boolean;
var
x, y: Integer;
begin
FindObjCustom(x, y, ['ack Co', 'ttack C'], [2896690, 6719385, 13620696, 728612], 20) then
WriteLn('Hooray, we found a cow!')
end;
You need an 'if' before your 'FindObjCustom' if you are trying to make an if .. then. If you are not trying to do that, you need to remove the 'then' at the end of it. Changing it to this:
Simba Code:
function FoundCow:Boolean;
var
x, y: Integer;
begin
FindObjCustom(x, y, ['ack Co', 'ttack C'], [2896690, 6719385, 13620696, 728612], 20);
WriteLn('Hooray, we found a cow!');
end;
Or this for an if .. then:
Simba Code:
function FoundCow:Boolean;
var
x, y: Integer;
begin
if FindObjCustom(x, y, ['ack Co', 'ttack C'], [2896690, 6719385, 13620696, 728612], 20) then
begin
WriteLn('Hooray, we found a cow!');
end;
end;