Need Help With Triggers

the_playa6916

Member!
Joined
Jul 30, 2004
Messages
54
Reaction score
0
Location
CaNaDa
Website
Visit site
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?
 

tassadar920

Member!
Joined
May 18, 2003
Messages
2,048
Reaction score
0
Location
My house
I presume you are testing by running through the play game feature of world editor?

Why are you setting PGStartlocs[#] to StartLocsRND?... oh well

In the play game feature of world edit, it doesn't do randomization, you have to run frozen throne, and THEN run the map. Testing keeps random numbers to the same value.
 

New threads

Top