• 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.

about abilities with turn-on and turn-off

Status
Not open for further replies.
Level 1
Joined
Jun 2, 2010
Messages
3
hello my problem is this

i have ability and if i turn it (based on immolation) on then i add passive for my unit and if i turn it off it will remove passive from unit, but i found out it wont order turning off skill if i run out of mana

so doesn anyone know how to run event when im running out of mana with that unit or check if its automaticly turned off?

i know i could do this just by checking time to time if buff excists but i would love to learn bit more about skill activations.
 
Level 12
Joined
May 20, 2009
Messages
822
Are you issueing the right order? To turn off Immolation, the order is unimmolation, in the trigger editor is should say "Night Elf Demon Hunter - Deactivate Immolation"

Anyway, a good alternative is to either do what you did, check whenever the buff is gone, or you can check how much Mana the hero has and if it's below 1, remove the buff and it will deactivate the spell. This is more useful for spells that you apply multiple effects to. Like I did with a Cloaking ability, whenever my hero ran out of mana I had to remove a speed buff and an invisibility.
 
Level 1
Joined
Jun 2, 2010
Messages
3
Are you issueing the right order? To turn off Immolation, the order is unimmolation, in the trigger editor is should say "Night Elf Demon Hunter - Deactivate Immolation"

Anyway, a good alternative is to either do what you did, check whenever the buff is gone, or you can check how much Mana the hero has and if it's below 1, remove the buff and it will deactivate the spell. This is more useful for spells that you apply multiple effects to. Like I did with a Cloaking ability, whenever my hero ran out of mana I had to remove a speed buff and an invisibility.

Yea i tried it with all different order types, it just doesnt give anykind of order when unit runs out of mana. mby there is other way but i dont mind checking every 0.5 sec is enough for my purposes. thanks
 
Level 14
Joined
Oct 18, 2013
Messages
710
Do you still need help with this? I struggle a bit with doing this a while ago on my map. I made a workaround, though it likely could be made more efficient. Tell me if you care to see.
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,259
On top of the standard turn on and off orders you could use one of 3 approaches.
1. Polling check for immolation buff. Is off when buff is gone.
2. Polling check of mana. Issue turn off before mana fully depleted so order is issued and event fires.
3. Trigger mana consumption with ability being free. Issue turn off when removing final amount of mana.

Most on/off abilities suffer from this. Such as it is impossible to tell when your mana shield fails (next to a damage detection system tracking damage taken).
 
Status
Not open for further replies.
Top