• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Spell System] Health as Mana Cost

Status
Not open for further replies.
I saw something like this ToB (Tides of Blood), where one of the hero's spells cost health to use, but if your health is below the cost you cannot cast the spell.

I know you could do that with techtree requirements, but the one in Tides of Blood (at least as far as I remember), did not use that, the maker had it so the spells had the health cost like spells have mana cost.

Any idea how to do this?
 
Level 2
Joined
Apr 4, 2008
Messages
9
Make a trigger that lowers the HP by xx (spell cost) when Triggering unit casts the specific ability.

You can also add a condition that Triggering unit needs a certain amount of health first. (To prevent it from suiciding...)
 
Status
Not open for further replies.
Top