• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[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