- Joined
- Feb 6, 2008
- Messages
- 166
I'm trying to get a -repick command that removes all of a player's units except his or her Circle of Power. PlayerIndex[(Integer A)] is a player array for, well, Player A. CircleOfPower[(Integer A)] is a unit array used to reference the Circle of Power for Player A. Can someone explain to me why the following doesn't work?
-
Actions
-

For each (Integer A) from 1 to 12, do (Actions)
-


Loop - Actions
-



If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-




If - Conditions
-





(Triggering player) Equal to PlayerIndex[(Integer A)]
-





ableRepick[(Integer A)] Equal to True
-
-




Then - Actions
-





Unit Group - Pick every unit in (Units owned by PlayerIndex[(Integer A)] matching ((Picked unit) Not equal to CircleOfPower[(Integer A)])) and do (Unit - Remove (Matching unit) from the game)
-
-




Else - Actions
-
-
-
-











