Code:
Top side
Events
Unit - A unit owned by Player 8 (Pink) Is attacked
Unit - A unit owned by Player 12 (Brown) Is attacked
Unit - A unit owned by Player 10 (Light Blue) Is attacked
Conditions
Actions
Unit Group - Pick every unit in (Units in Snow <gen>) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Unit-type of (Picked unit)) Equal to Stalker (|cff00a800Unlimited|r) lvl 6) or ((Unit-type of (Picked unit)) Equal to Stalker lvl 6)
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) is in AntiPatrolGroup3) Equal to True
Then - Actions
Unit - Order (Picked unit) to (Name of Curse (Creeps)(Stalker)) (Attacking unit)
Set TempPoint = (Center of Top Left <gen>)
Unit - Order (Picked unit) to Move To TempPoint
Point - Remove TempPoint
Trigger - Turn off (This trigger)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) is in AntiPatrolGroup4) Equal to True
Then - Actions
Unit - Order (Picked unit) to (Name of Curse (Creeps)(Stalker)) (Attacking unit)
Set TempPoint = (Center of Top Right <gen>)
Unit - Order (Picked unit) to Move To TempPoint
Point - Remove TempPoint
Trigger - Turn off (This trigger)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(((Picked unit) is in UnitsBottomLeft) Equal to True) or (((Picked unit) is in UnitsBottomRight) Equal to True)
Then - Actions
Unit - Order (Picked unit) to (Name of Curse (Creeps)(Stalker)) (Attacking unit)
Set TempPoint = (Center of Top Center <gen>)
Unit - Order (Picked unit) to Move To TempPoint
Point - Remove TempPoint
Trigger - Turn off (This trigger)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) is in TopToBoat) Equal to True
Then - Actions
Unit - Order (Picked unit) to (Name of Curse (Creeps)(Stalker)) (Attacking unit)
Set TempPoint = (Center of Load Top <gen>)
Unit - Order (Picked unit) to Move To TempPoint
Point - Remove TempPoint
Trigger - Turn off (This trigger)
Else - Actions
Else - Actions
The trigger will be approximately 20x longer, that's just for one unit. I have about 30-40 more units to apply this to. The trigger will be turned on AGAIN by this trigger:
Code:
Creep Spells
Events
Time - Every 4.75 seconds of game time
Conditions
Actions
Trigger - Turn on Top side <gen>
I've tried using a timer instead of a periodic event.. but I couldn't get it going.
Does this leak at all? Also, will this cause any lag? THANK YOU!!