- Joined
- Jul 26, 2008
- Messages
- 22
Hello I've not been on Warcraft 3 for quite a few months due to college however now that I've finished my course I've gone back to playing Dota and mapmaking, I'm having a bit of trouble mimicking the Dota tree respawn system (If unit is near, tree waits to respawn (This prevents units getting stuck etc)). This is what I have so far, its not working, I was wondering if anybody can do better via triggers or Jass.
-
TreeRessStart
-

Events
-


Destructible - A destructible within (Entire map) dies
-
-

Conditions
-

Actions
-


Wait 10.00 seconds
-


Unit Group - Pick every unit in (Units within 500.00 of (Position of (Dying destructible))) and do (Actions)
-



Loop - Actions
-




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





If - Conditions
-






(Picked unit) Equal to No unit
-
-





Then - Actions
-






Destructible - Resurrect (Dying destructible) with (Max life of Ashenvale Tree Wall 2090 <gen>) life and Hide birth animation
-
-





Else - Actions
-






Trigger - Run TreeRessCont <gen> (ignoring conditions)
-
-
-
-
-
-
-
TreeRessCont
-

Events
-

Conditions
-

Actions
-


Wait 10.00 seconds
-


Unit Group - Pick every unit in (Units within 500.00 of (Position of (Dying destructible))) and do (Actions)
-



Loop - Actions
-




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





If - Conditions
-






(Picked unit) Equal to No unit
-
-





Then - Actions
-






Destructible - Resurrect (Dying destructible) with (Max life of Ashenvale Tree Wall 2090 <gen>) life and Hide birth animation
-
-





Else - Actions
-






Trigger - Run TreeRessCont <gen> (ignoring conditions)
-
-
-
-
-
-

