Okay, I think I understand...so like this right?
Simba Code:
Function WalkTo(Which: String): Boolean;
Var
PathVars: array of TIntegerArray;
PathColor: TIntegerArray;
hPathColor, i: Integer;
Begin
Result := False;
Case Lowercase(Which) Of
'patch1':
Begin
SetLength(PathVars, 2);
PathColor := [1660230,1396030];
PathVars[0] := [290,300,70,2,2,10];
PathVars[1] := [307,325,35,2,2,10];
End;
'patch2':
Begin
SetLength(PathVars, 3);
PathColor := [2907482,2909285,2188651];
PathVars[0] := [266,251,72,2,2,10];
PathVars[1] := [275,265,73,2,2,10];
PathVars[2] := [307,300,74,2,2,10];
End;
End;
hPathColor := High(PathColor);
for i := 0 to hPathColor do
Begin
if RadialWalkTolerance(PathColor[i],PathVars[i][0],PathVars[i][1],PathVars[i][2],PathVars[i][3],PathVars[i][4],PathVars[i][5]) then
Begin
Writeln('Walking to '+Which+': '+IntToStr(i+1)+' of '+IntToStr(hPathColor+1));
FFlag(0);
if (i = hPathColor) then
Result := True;
// ...
End;
// ...
End;
End;