[Solved] Defend Ability with trigger, problem!

Status
Not open for further replies.
Level 2
Joined
Apr 17, 2012
Messages
14
Hi there!
Here's my problem. I give the Defend ability to one of my hero. I also made a trigger. The trigger is supposed to, when the ability is cast, substract by 30 a variable and to turn off another trigger. The problem here is that the trigger just dont work at all. Seems like my event or my condition is wrong. Exemple:

Events
Units - A unit Begins casting an ability

Conditions
(Ability being cast) Equal to Defend

Actions
Set Variable = (Energie - 30)
Trigger - Turn off Mytrigger <gen>

I heard something about putting a "wait" in the actions in case of a "begin cast" event. I tried, and it did'nt work. Please help :vw_wtf:
 
It didn't work either :/

Ok I changed the ability by a warstomp and it worked. So its apperently, the problem is the ability.. Is it because it is a "turn off" ability?
 
Last edited:
Status
Not open for further replies.
Back
Top