• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[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:
 
Level 2
Joined
Apr 17, 2012
Messages
14
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:
Level 2
Joined
Apr 17, 2012
Messages
14
Thanks a lot Maker! It worked :vw_love: And you taught me a new event in the world editor. ++rep
 
Status
Not open for further replies.
Top