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? )
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.
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...
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?
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...
For some reason, this trigger only causes everyone to permanently get half speed, and only me (casting unit) gets the frost nova special effect. Also there is no weather effect.
"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.
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...