- Joined
- May 25, 2009
- Messages
- 1
I have a trigger that picks a random number associated with an array, uses that specific variable for something, removes it, and takes the top of the in-use array and replaces the one just removed with it. It does everything but replacing the old one, as far as I can tell. Can someone give me a hand with this?
No conditions, event is every 2 seconds, and the other trigger just picks a random number from 0 to "FloorRedCount".
No conditions, event is every 2 seconds, and the other trigger just picks a random number from 0 to "FloorRedCount".
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
FloorRedCount Greater than 0
-
-
Then - Actions
-
For each (Integer A) from 0 to (ImpRedCount - 1), do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
ImpRedActive[(Integer A)] Equal to False
-
-
Then - Actions
-
Trigger - Run Floor picker <gen> (ignoring conditions)
-
Region - Center ImpRedRegion[(Integer A)] on (Position of FloorRed[FloorRedPicked])
-
Set FloorRed[FloorRedPicked] = No unit
-
Set FloorRed[(FloorRedCount - 1)] = FloorRed[FloorRedPicked]
-
Set FloorRed[(FloorRedCount - 1)] = No unit
-
Set FloorRedCount = (FloorRedCount - 1)
-
Unit - Order ImpRed[(Integer A)] to Move To (Center of ImpRedRegion[(Integer A)])
-
Set ImpRedActive[(Integer A)] = True
-
Game - Display to (All players) the text: Imp ordered to floo...
-
-
Else - Actions
-
-
-
-
-
Else - Actions
-
-