- Joined
- Jan 5, 2005
- Messages
- 3,515
is there a way i can shorten this trigger? with a loop command or something?
[trigger:1:6bfb7c2b02]
Attack Move1
Events
Unit - A unit enters Attack1 <gen>
Unit - A unit enters Attack2 <gen>
Unit - A unit enters Attack3 <gen>
Conditions
((Owner of (Triggering unit)) Equal to Player 11 (Dark Green)) or ((Owner of (Triggering unit)) Equal to Player 12 (Brown))
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Triggering unit)) Equal to Player 11 (Dark Green)
Then - Actions
Unit Group - Order AttackerGroups[1] to Attack-Move To (Position of HQ[1])
Unit Group - Order AttackerGroups[2] to Attack-Move To (Position of HQ[1])
Unit Group - Order AttackerGroups[3] to Attack-Move To (Position of HQ[1])
Else - Actions
Unit Group - Order AttackerGroups[4] to Attack-Move To (Position of HQ[2])
Unit Group - Order AttackerGroups[5] to Attack-Move To (Position of HQ[2])
Unit Group - Order AttackerGroups[6] to Attack-Move To (Position of HQ[2])
[/trigger:1:6bfb7c2b02]
[trigger:1:6bfb7c2b02]
Attack Move1
Events
Unit - A unit enters Attack1 <gen>
Unit - A unit enters Attack2 <gen>
Unit - A unit enters Attack3 <gen>
Conditions
((Owner of (Triggering unit)) Equal to Player 11 (Dark Green)) or ((Owner of (Triggering unit)) Equal to Player 12 (Brown))
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Triggering unit)) Equal to Player 11 (Dark Green)
Then - Actions
Unit Group - Order AttackerGroups[1] to Attack-Move To (Position of HQ[1])
Unit Group - Order AttackerGroups[2] to Attack-Move To (Position of HQ[1])
Unit Group - Order AttackerGroups[3] to Attack-Move To (Position of HQ[1])
Else - Actions
Unit Group - Order AttackerGroups[4] to Attack-Move To (Position of HQ[2])
Unit Group - Order AttackerGroups[5] to Attack-Move To (Position of HQ[2])
Unit Group - Order AttackerGroups[6] to Attack-Move To (Position of HQ[2])
[/trigger:1:6bfb7c2b02]