EdgeOfChaos
E
EdgeOfChaos
This is the trigger I'm using:
(Note: RevivePoint is a global variable that is set once)
-
Return Neutral
-

Events
-


Time - Every 2.00 seconds of game time
-
-

Conditions
-

Actions
-


Set TempGroup2 = (Units in (Playable map area) matching ((Owner of (Matching unit)) Equal to Player 12 (Brown)))
-


Unit Group - Pick every unit in TempGroup2 and do (Actions)
-



Loop - Actions
-




Set ReturnPoint = (Position of (Picked unit))
-




Set TempGroup = (Units within 1000.00 of ReturnPoint matching (((Owner of (Matching unit)) Not equal to Player 12 (Brown)) and ((Owner of (Matching unit)) Not equal to Player 11 (Dark Green))))
-




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





If - Conditions
-






(Number of units in TempGroup) Equal to 0
-
-





Then - Actions
-






Unit - Move (Picked unit) instantly to RevivePoint[(Custom value of (Picked unit))]
-






Unit - Change ownership of (Picked unit) to Player 11 (Dark Green) and Change color
-






Unit - Set life of (Picked unit) to 100.00%
-
-





Else - Actions
-
-




Custom script: call DestroyGroup(udg_TempGroup)
-




Custom script: call RemoveLocation(udg_ReturnPoint)
-
-
-


Custom script: call DestroyGroup(udg_TempGroup2)
-
-
(Note: RevivePoint is a global variable that is set once)

