Warcraft III resources & community, 2003–2006 · archived

spell problem

9 posts
#1

spell problem

I have got this trigger:

Events
Conditions
Actions
Unit - Create 1 Tree Killer for (Owner of Kalaya) at (Position of Kalaya) facing (Position of (Triggering unit))
Set Tree_Target[1] = (Random destructible in (Rect centered at (Position of Kalaya) with size (1000.00, 1000.00)) matching ((((Destructible-type of (Matching destructible)) Equal to Ashenvale Tree Wall) or ((Destructible-type of (Matching destructible)) Equal to Ashenvale Canopy
Unit - Order (Last created unit) to Attack Tree_Target[1]
Set TreeKillerAttackPoint[1] = (Position of Tree_Target[1])
Advanced - Wait for event: A destructable dies in (Rect centered at (Position of Kalaya) with size (1001.00, 1001.00)). Check every 0.01 seconds.
Special Effect - Create a special effect at TreeKillerAttackPoint[1] using Objects\Spawnmodels\NightElf\EntBirthTarget\EntBirthTarget.mdl
Unit - Create 1 Treant for (Owner of Kalaya) at TreeKillerAttackPoint[1] facing (Position of Kalaya)
Unit - Order (Last created unit) to Attack-Move To (Position of Kalaya)

works perfectly, only one problem, i use it a couple times after eachother (every 2 sec) i tried the every X sec event, i also tried running a trigger every 2 sec, but the problem is, some times it Doesnt create trees, for example it doesnt create trees for 6 sec, but then the 8 sec it creates 4. some1 knows how to solve this?
#2
if the tree doesnt die in time, it isnt MUI
#3
that sucks.. is there really no way i can do it?
#4
well, you can use Destructable-Kill Destructable, and instantly create the treant
#5
thats what im doing (at least i think so) when the detructible dies, i immedeately run this trigger, then wait 2 sec and run it again
#6
but when you are using the 'Wait for Event', if it does not happen it 2 seconds, the two calls of it will interfere.
#7
so if i let it create a treant in 1.99 sec, it will work perfectly?
#8
unless of course it is ( by accident ) run twice in that time, or one or more of those variables are used somewhere else.
#9
no that wont happen, its a single player campaign. so thanks alot :)