Separate names with a comma.
Discussion in 'World Editor Help' started by italocolt, Jan 26, 2010.
How can I make a trigger that every 24h of the game time, revive all dead trees
24 hours ?!
You mean like every in-game day ?
If so, then something like this should work
Game - The in-game time of day becomes Equal to 6.00
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
((Picked destructible) is dead) Equal to True
Then - Actions
Destructible - Resurrect (Picked destructible) with (Max life of (Picked destructible)) life and Show birth animation
Else - Actions
If not, then just change the event to whatever you want
Thanks mann ;D is that than I want!!!!
I'm not entirely sure, but aren't there other destructibles that aren't trees that this would resurrect? My (somewhat weak, but should work) solution is that there's an item ability that I think is sold from the ladder Night Elf shop, some item that regrows trees in a certain radius around the caster. Just change the AoE to global (i.e. 99,999) and create a dummy unit that casts it every 24 hours.
Hopefully that helps!
Or, you could just simply check whether the picked destructible is the tree type you use in you map