Devrak
New Member
- Reaction score
- 17
Hi everyone, got a quick question.
So this is my trigger, and what I am trying to do is to move everyone that hasn't be ordered to hold position, but obviously it doesn't work. So, I was wondering what's wrong with my pretty trigger.
Would be grateful for your help,
Devrak
Trigger:
- Down Arrow 1
- Events
- Player - Player 1 (Red) Presses the Down Arrow key
- Conditions
- Actions
- Set P1DoubleArrow = (P1DoubleArrow + 1)
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- P1DoubleArrow Equal to 1
- Then - Actions
- Unit Group - Pick every unit in (Units in (Playable map area) matching (((Issued order) Not equal to (Order(hold position))) and ((Owner of (Picked unit)) Equal to Player 1 (Red)))) and do (Actions)
- Loop - Actions
- Unit - Order (Picked unit) to Attack-Move To (Random point in P1 Spawnpoint <gen>)
- Loop - Actions
- Unit Group - Pick every unit in (Units in (Playable map area) matching (((Issued order) Not equal to (Order(hold position))) and ((Owner of (Picked unit)) Equal to Player 1 (Red)))) and do (Actions)
- Else - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- P1DoubleArrow Equal to 2
- Then - Actions
- Unit Group - Pick every unit in (Units in (Playable map area) matching (((Issued order) Not equal to (Order(hold position))) and ((Owner of (Picked unit)) Equal to Player 1 (Red)))) and do (Actions)
- Loop - Actions
- Unit - Order (Picked unit) to Move To (Random point in P1 Spawnpoint <gen>)
- Loop - Actions
- Unit Group - Pick every unit in (Units in (Playable map area) matching (((Issued order) Not equal to (Order(hold position))) and ((Owner of (Picked unit)) Equal to Player 1 (Red)))) and do (Actions)
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- Wait 0.15 seconds
- Set P1DoubleArrow = 0
- Events
So this is my trigger, and what I am trying to do is to move everyone that hasn't be ordered to hold position, but obviously it doesn't work. So, I was wondering what's wrong with my pretty trigger.
Would be grateful for your help,
Devrak