the_playa6916
Member!
I'm trying to make 5 different triggers in which each one 8 players are created seperately on 8 different locations on the map. I want the map to choose one randomly, so that you never know where you will start. I started by making each variable array to a trigger, then tried to make the map randomly pick one. But for some reason, it always chooses the '3rd' trigger... Can anyone help me out? Here are my triggers:
EVENT
- Map Initialization
CONDITIONS
ACTIONS
- Set PGstartLocs[1] = StartLocs1 <gen>
- Set PGstartLocs[2] = StartLocs2 <gen>
- Set PGstartLocs[3] = StartLocs3 <gen>
- Set PGstartLocs[4] = StartLocs4 <gen>
- Set PGstartLocs[5] = StartLocs5 <gen>
- Set PGstartlocs[(random integer between 1 and 5)]=StartLocsRND
- Run Trigger StartLocsRND
Looks to me like it should randomize.. but for some reason it always picks "PGstartLocs[3]"... I doubt im that lucky that i get it over 10 times in a row... What's wrong with it?
EVENT
- Map Initialization
CONDITIONS
ACTIONS
- Set PGstartLocs[1] = StartLocs1 <gen>
- Set PGstartLocs[2] = StartLocs2 <gen>
- Set PGstartLocs[3] = StartLocs3 <gen>
- Set PGstartLocs[4] = StartLocs4 <gen>
- Set PGstartLocs[5] = StartLocs5 <gen>
- Set PGstartlocs[(random integer between 1 and 5)]=StartLocsRND
- Run Trigger StartLocsRND
Looks to me like it should randomize.. but for some reason it always picks "PGstartLocs[3]"... I doubt im that lucky that i get it over 10 times in a row... What's wrong with it?