• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

[Solved] [Spell] GUI: how to deactivate spell when hero has less mana or 0 mana

Status
Not open for further replies.
Level 3
Joined
Sep 9, 2019
Messages
25
How can I change these or what to add to make it so it checks mana and it stops when reaching 1 or 0 mana.
  • Axe
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Infernal Axe
    • Actions
      • Unit - Add Infernal Axe(dmg) to (Triggering unit)
      • Unit - Add Infernal Axe(splash dmg) to (Triggering unit)
      • Unit - Add Infernal Axe(speed) to (Triggering unit)
      • Unit - Set level of Infernal Axe(dmg) for (Triggering unit) to (Level of Infernal Axe for (Triggering unit))
      • Unit - Set level of Infernal Axe(splash dmg) for (Triggering unit) to (Level of Infernal Axe for (Triggering unit))
      • Unit - Set level of Infernal Axe(speed) for (Triggering unit) to (Level of Infernal Axe for (Triggering unit))
  • Axe Remove
    • Events
      • Unit - A unit Is issued an order with no target
    • Conditions
      • (Issued order) Equal to (Order(unimmolation))
    • Actions
      • Unit - Remove Infernal Axe(dmg) from (Ordered unit)
      • Unit - Remove Infernal Axe(splash dmg) from (Ordered unit)
      • Unit - Remove Infernal Axe(speed) from (Ordered unit)
 
Thats similiar to this
1694304750829.png


1694304773107.png


1694304798280.png


Is a simple system
 

Attachments

Status
Not open for further replies.
Back
Top