- Joined
- Jul 4, 2007
- Messages
- 166
I'm working on a map that gives a unit the ability to resurrect a friendly unit owned by the player when it dies (as long as there is a corpse within range that is not the unit itself). The problem I'm running into is that there's no good method (from what I've seen) to resurrect a unit (not hero) based on triggers.
Here's what I've got so far.
Is there anything more efficient than what I suggested?
Here's what I've got so far.
-
Redemption
-
Events
-

Unit - A unit dies.
-
-
Conditions
-

Unit - type of (dying unit) equal to Dark Paladin.
-
-
Actions
-

Unit Group - Pick every unit in (units within range of 600.0) and do (actions):
-


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



If - Conditions
-




(Picked unit) is not equal to (dying unit).
-




(Owner of (picked unit)) is equal to (owner of (dying unit)).
-




((Picked Unit) is dead) equal to true.
-
-



Then - Actions
-




//Resurrect picked unit.
-




Special Effect - Attach special effect Resurrection (target) to (picked unit).
-




Skip Remaining Actions
-
-



Else - Actions
-
-
-
Is there anything more efficient than what I suggested?



