If I want each player to mine a different ore (or ore color), if I had an option to choose the color(s) in the DeclarePlayers, would it work?
Example
Say I have
SCAR Code:Players[0].Name := '';
Players[0].Pass := '';
Players[0].Nick := '';
Players[0].Active := True;
RockColor = 1111111111
Players[1].Name := '';
Players[1].Pass := '';
Players[1].Nick := '';
Players[1].Active := True;
RockColor = 9999999999
And then later I have something like
SCAR Code:procedure Mining
begin
if (FindObjCustom(x, y, ['Mine','ine O','ne Or','e Ore','Ore'], [RockColor], 1)) then
Mouse(x, y, 0, 0, True)
end;
Would the RockColor be changed for player [1] or would it give me some sort of error that I'm declaring RockColor as two different things?
It seems that it doesn't look right like that in the declare players, do I have to put something like? If so, would stating it as RockColor when I want it to look for the the color be fine?SCAR Code:Players[1].RockColor=99999999







Reply With Quote


