• 🏆 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!

Spells cost life

Status
Not open for further replies.
Level 1
Joined
Feb 21, 2020
Messages
5
Hello,
is there a quick way to trigger a spell (for example Blizzard from archmage) that cost life instead of mana ?

example cost
Level 1 cost 100 life points
Level 2 cost 200 life points
Level 3 cost 300 life points
Level 4 cost 400 life points
Level 5 cost 500 life points

and it can kill the Hero
 
Level 5
Joined
Jun 12, 2018
Messages
148
This is the quickest way I could find :D

  • Life Cost spell
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Life Cost spell
    • Actions
      • Unit - Set life of (Triggering unit) to ((Life of (Triggering unit)) - (100.00 x (Real((Level of Life Cost spell for (Triggering unit))))))
 
Level 1
Joined
Feb 21, 2020
Messages
5
Ok thanks,
any idea to trigger this ?:
Hero less life points 80% givrs it + 5 ATK
Hero less life points 60% givrs it + 10 ATK
Hero less life points 40% givrs it + 15 ATK
Hero less life points 20% givrs it + 20 ATK
Hero less life points 10% givrs it + 25 ATK
Hero less life points 5% givrs it + 35 ATK
 
Level 12
Joined
Feb 5, 2018
Messages
521
Ok thanks,
any idea to trigger this ?:
Hero less life points 80% givrs it + 5 ATK
Hero less life points 60% givrs it + 10 ATK
Hero less life points 40% givrs it + 15 ATK
Hero less life points 20% givrs it + 20 ATK
Hero less life points 10% givrs it + 25 ATK
Hero less life points 5% givrs it + 35 ATK

I would recommend using a damage detection system and a unit indexer. This way you could use events when the unit takes or deals damage and fire your trigger. You could also easily make the spell MUI with the unit indexer, saving the unit's custom value.

Damage Engine 5.5.0.0

This can also be achieved with locals.

You could also make a learn trigger and a loop trigger to check the units % hp.
 
Status
Not open for further replies.
Top