I can't seem to get a trigger to work, the idea is that it generates 'start' locations, just an interger reference, for 10 players that all have to be unique, however I can't seem to work out how the loop would go to make sure each variable is unique and regenerate it if it wasn't.
The best way to describe it is as a grid where each player must start on a random square, but no 2 players can start on the same square.
Normally I would do this via a For loop and labels:
#label 1
curr_start = random(1, 100)
For Each i = 1 to 10
if curr_start[1] == existing_start
goto label 1
end if
next i
However, I have no idea how to put that into either JASS or GUI or even if its possible. I would have thought it could be put into GUI any help would be appreciated.
MadCD
The best way to describe it is as a grid where each player must start on a random square, but no 2 players can start on the same square.
Normally I would do this via a For loop and labels:
#label 1
curr_start = random(1, 100)
For Each i = 1 to 10
if curr_start[1] == existing_start
goto label 1
end if
next i
However, I have no idea how to put that into either JASS or GUI or even if its possible. I would have thought it could be put into GUI any help would be appreciated.
MadCD