• Log in or sign up for an account here: https://www.sythe.org/login

Selecting Random Array Element?

Bbri06

Apprentice
Joined
May 21, 2006
Sythe Gold
0
Messages
911
EDIT: Figured it out after posting this was very obvious, sorry. Please close.

Ok, so I am trying to get a script to use a random element of an array in the WalkToTileEx function, any help?

Code:
Procedure Setup;
begin
  SetArrayLength(FindCrab, 5);
  FindCrab[0] := IntToPoint(2694,3724);
  FindCrab[1] := IntToPoint(2701,3727);
  FindCrab[2] := IntToPoint(2704,3726);
  FindCrab[3] := IntToPoint(2701,3719);
  FindCrab[4] := IntToPoint(2702,3716);
end;
That is the array and I want use a random tile in there(0 - 4).
 
duelarena.gg
Back
Top