X-maul
AKA: Demtrod
- Reaction score
- 201
i got an proplem with my map, i need my tree's to respawn 1 sec after they dies.... how to do that?
Regrow trees
Events
Destructible - A destructible within (Entire map) dies
Conditions
(Destructible-type of (Dying destructible)) Equal to Dalaran Ruins Tree Wall
Actions
Wait 1.00 seconds
Destructible - Create a (Destructible-type of (Dying destructible)) at (Position of (Dying destructible)) facing (Random angle) with scale (Random real number between 0.80 and 1.20) and variation (Integer((Random real number between 0.00 and 10.00)))
tree ressurection
Events
Time - Every 15.00 seconds of game time
Conditions
Actions
Destructible - Pick every destructible in (Playable map area) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Destructible-type of (Picked destructible)) Equal to Dungeon Tree Wall
((Picked destructible) is dead) Equal to True
Then - Actions
Destructible - Resurrect (Picked destructible) with (Max life of (Picked destructible)) life and Hide birth animation
Else - Actions
Do nothing
Trees Regrow
Events
Conditions
Actions
Wait 20.00 seconds
Destructible - Resurrect (Dying destructible) with (Max life of (Dying destructible)) life and Show birth animation
Trees Start
Events
Map initialization
Conditions
Actions
Destructible - Pick every destructible in (Playable map area) and do (Actions)
Loop - Actions
Trigger - Add to Trees Regrow <gen> the event (Destructible - (Picked destructible) dies)