private constant real RegrowAfter = 23.0
private constant real RegrowAfter = 10.0
Erhmm... aren't you guys complicating things...?
When i tested this it worked perfectly.
When i tested this it worked perfectly even though multiple trees died within the 10 sec.
Tree Respawn
Events
Destructible - A destructible within (Entire map) dies
Conditions
(Destructible-type of (Dying destructible)) Equal to Summer Tree Wall
Actions
Wait 10.00 seconds
Destructible - Resurrect (Dying destructible) with (Max life of (Dying destructible)) life and Show birth animation
"a destructible within entire map dies" only refers to a few destructibles (like 64) but not all
probably blizzard thought it would be bad to create that many single events
set bj_wantDestroyGroup = true
^ destructible groups don't leak afaik so no need to useJASS:set bj_wantDestroyGroup = true
function EnumDestructablesInCircleBJ takes real radius, location loc, code actionFunc returns nothing
local rect r
if (radius >= 0) then
set bj_enumDestructableCenter = loc
set bj_enumDestructableRadius = radius
set r = GetRectFromCircleBJ(loc, radius)
call EnumDestructablesInRect(r, filterEnumDestructablesInCircleBJ, actionFunc)
call RemoveRect(r)
endif
endfunction
According to JassCraft,no.they don't even use that bj right?
According to JassCraft,no.
Well, you guys probably be better than me, since I've no knowledge about JASS, even a bit lol
So, no leaks present in that Unit Group of Destructibles ?
You're gonna need a formula for that, a cone-shaped formula for that
Say, the Breath of Fire spell, the shape itself is a cone
So, the formula should be Pi * Radius * Side (for Area Formula) (not particularly sure about this formula)
After doing this formula, pick every trees in that particular area, and kills it
And no, fail video, u know why? You are teaching people to make leaks.http://www.youtube.com/watch?v=_T2FxWgowO8
I actually made a tutorial on how to spawn trees. If you modify this a little bit, you may be able to get the result you want.
Try not to use waits... Use indexing or hashtables.
Edit:
And no, fail video, u know why? You are teaching people to make leaks.
what's the problem? please explain!
ur event is Enters a region so there is no dying unit...
No ingame spell will ever be able to fix that...In worst case senarios, this results in a WC3 fatal error.