Warcraft III resources & community, 2003–2006 · archived

heelp, spell triggers don't work

21 posts
#1

heelp, spell triggers don't work

Ok, here's a spell, Rotting Touch.
It's supposed to cause blight in the area and shortly after that destroy all trees there.

First of all, the dummy spell is based on Flame Strike. It has no damage, no casting time, no duration, no buffs/effects and no targets allowed. It's range is 600.00, area of effect is 200.00. (is this important? :P)

here's the trigger

----------------------------------
Events:
A unit Finishes casting an ability

Conditions:
(Spell being cast) Equal to Rotting Touch

Actions:
-Environment - Create Blight for Neutral Passive from (Target point of ability being cast) to a radius of 200.00
-Wait 1.00 seconds
-Destructible - Pick every destructible within 200.00 of (Target point of ability being cast) and do (Actions)
Loop - Actions:
Destructible - Kill (Picked destructible)
---------------------------------

Now the problem is, when I cast the spell, nothing happens. My mana decreases, spell is put on cooldown yes. But nothing happens! Trees still standing there. No blight.

The trigger just doesn't trigger.


In an older version , I had targets allowed: Tree. And what happened! Trees in the area would instantly die (even though dummy spell has 0 damage) but no blight or 1 second delay before killing trees would appear.



What the hell is wrong?
#2
hm... you could try following:

make your spell in object editor that it will destroy destructibles/doodads too allowed targets...) - or just doodads, click on all you want to damage. so you have to add damage, range and all that again.
then set the casting time of your spell to what u want - lets say 2 sec.

now the spell should destroy doodads after 2 seconds - so far so good.

now the trigger for the blight:

Events: 
A unit starts casting an ability 

Conditions: 
(Spell being cast) Equal to Rotting Touch 

Actions: 
-Environment - Create Blight for Neutral Passive from (Target point of ability being cast) to a radius of 200.00



Now it should work correct. anyway this trigger reduces memory leak (causes lagg after a while)too because u didnt use function pick every doodad... :wink:
#3
thanks, I'll try that tomorrow.
#4
actually you could just use the blight creation ability from Sacrificial Skull to create blight.
#5
hmm, thanks again.

Here's another ^^

K i want to make my immolation (with 25 dmg per sec to all other targets) instantly destroy trees that the unit comes close to.

But I'm worried about lag issues...
Currently it's like this:

Every 1.00 seconds

Pick every destructible within 156 of Unit and do...
Create special effect on picked destructible using Fire
Kill picked destructible
Wait 0.90 seconds
Remove last created special effect



Is there a way to do this without causing this kind of lag?
#6
Points are removed after a while I think. Maybe when Wait function finishes, the point has vanished already. Use a variable for that.

-Rui
#7
maybe you make another dummy-spell which only 'attacks' destructibles only - with high damage and your range. that way you will reduce laggs highly. hm... :?
#9
"for some reason the trigger causes everyone got only half speed:"

erm... ye thats was a pick every unit in whole map does or not?

for the special effect i dont know exactly why it only appears on yourself and not on others...

btw dont forget to destroy your special effect again ->otherway you will cause leaks..

and im not sure, but it could be that weather effects only work on map init - over the next days i will be able to watch exactly if i will get WEU again. :wink:
#10
look its supposed to reset movement speed after 20 sec, but they get half speed permanently!!

so, destroying the special effect works on everything picked? not just one unit?
Wish there was Special Effect Group :p
#11
Also there is no weather effect.


For a weather effect to work, you need to first create the weather effect, then you need to enable or disable it.

Environment - Create at (Playable map area) the weather effect Ashenvale Rain (Heavy)
Environment - Turn (Last created weather effect) On

When you wanna remove the weather effect you'll have to disable it. So... you'll need a variable for the weather if i'm not mistaken. Hope this helps
#12
Thanks man :)
#13
does it work now? cz could also be that the wait 20 sec within the pick-function causes mistakes. maybe make the first pick-fctn then wait 20 sec then another pick-fctn...
#14
Ah man, that makes sense... Perfect sense, specially since pick unit is originally supposed to do only one action.

Hm, Wait functions are deadly :lol:

im at school right now but ill try in two hours
#15
it works now! thanks, Sunny