- Joined
- Jan 5, 2005
- Messages
- 3,515
im not sure why but this trigger doesn work
[trigger:1:e756908aa5]
Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
Loop - Actions
For each (Integer A) from 1 to 3, do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Picked unit)) Equal to Player 11 (Dark Green)
((Picked unit) is in AttackerGroups[(Integer A)]) Equal to False
(((Picked unit) is in AttackerGroups[7]) Equal to False) and (((Picked unit) is in AttackerGroups[8]) Equal to False)
(Current order of (Picked unit)) Equal to (Order(stop))
Then - Actions
Unit - Order (Picked unit) to Attack-Move To (Position of HQ[2])
Else - Actions
Do nothing
For each (Integer B) from 4 to 6, do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Picked unit)) Equal to Player 12 (Brown)
((Picked unit) is in AttackerGroups[(Integer B)]) Equal to False
(((Picked unit) is in AttackerGroups[7]) Equal to False) and (((Picked unit) is in AttackerGroups[8]) Equal to False)
(Current order of (Picked unit)) Equal to (Order(stop))
Then - Actions
Unit - Order (Picked unit) to Attack-Move To (Position of HQ[1])
Else - Actions
Do nothing
[/trigger:1:e756908aa5]
im fairly sure its having the game pic every unit on the map when doing if then elses around those units. its probably gunna cause lag and i dont plan to use it, but i just want to know why it doesnt. for some reason it causes all my units to do really random stuff. eigther too early or too late or not at all. its very odd.
[trigger:1:e756908aa5]
Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
Loop - Actions
For each (Integer A) from 1 to 3, do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Picked unit)) Equal to Player 11 (Dark Green)
((Picked unit) is in AttackerGroups[(Integer A)]) Equal to False
(((Picked unit) is in AttackerGroups[7]) Equal to False) and (((Picked unit) is in AttackerGroups[8]) Equal to False)
(Current order of (Picked unit)) Equal to (Order(stop))
Then - Actions
Unit - Order (Picked unit) to Attack-Move To (Position of HQ[2])
Else - Actions
Do nothing
For each (Integer B) from 4 to 6, do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Picked unit)) Equal to Player 12 (Brown)
((Picked unit) is in AttackerGroups[(Integer B)]) Equal to False
(((Picked unit) is in AttackerGroups[7]) Equal to False) and (((Picked unit) is in AttackerGroups[8]) Equal to False)
(Current order of (Picked unit)) Equal to (Order(stop))
Then - Actions
Unit - Order (Picked unit) to Attack-Move To (Position of HQ[1])
Else - Actions
Do nothing
[/trigger:1:e756908aa5]
im fairly sure its having the game pic every unit on the map when doing if then elses around those units. its probably gunna cause lag and i dont plan to use it, but i just want to know why it doesnt. for some reason it causes all my units to do really random stuff. eigther too early or too late or not at all. its very odd.