Warcraft III resources & community, 2003–2006 · archived

Help wanted

5 posts
#1

Help wanted

Ok I've been trying making a hero spell that makes the selected friendly unit invulnerable for some seconds, (like divine shield but not on yourself)

However I can't get it to work. I had frost nova as base spell and then I triggered like this:

Events:
Unit - A unit Begins casting an ability

Conditions:
(Ability being cast) Equal to Wall
(Level of Wall for (Casting unit)) Equal to 1

Actions:
Special Effect - Create a special effect attached to the origin of (Target unit of ability being cast) using Abilities\Spells\Human\Resurrect\ResurrectTarget.mdl
Unit - Make (Target unit of ability being cast) Invulnerable
Wait 6.00 seconds
Unit - Make (Target unit of ability being cast) Vulnerable


To me, this should work, but the unit never go back to vulnerable again....

Can I do this different/easier?
#2
Your problem was mentioned many times and still it wasn't added to FAQ by The_Raven... What a shame. Anyway, the problem is that "Target Unit of Ability Being Cast" and "Target Point of Ability Being Cast" get reset after one wait so... after a wait, no matter how small it is you can no longer use the "Target Unit of Ability Being Cast". I'm afraid you will have to use a variable to stock.

~Daelin
#3
I think the trigger does not work simply because you have no condition that points to who is casting the ability.
#4

Okey

Thx for the info Daelin. I think I'll get it to work now. :)
#5
Also I suggest you always use "An Unit Starts The Effect of an ability" so it cannot be abused. Else people could stop the spell before it would have its effect for good and so, it would cost nothing and have no cooldown.

~Daelin