• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

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

Level 3
Joined
Sep 9, 2019
Messages
15
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)
 
Level 2
Joined
Jan 1, 2022
Messages
5
Thats similiar to this
1694304750829.png


1694304773107.png


1694304798280.png


Is a simple system
 

Attachments

  • Mana_System.w3x
    2.3 MB · Views: 1
Top