🏆 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!
When a unit makes a spell, how do you make him take 10% of his max hp in a trigger? Can only find "set life to 100 %" but i want to deal damage equal to 10% of his max hp.
Unit - Set life of (Triggering unit) to ((Life of (Triggering unit)) - ((Max life of (Triggering unit)) x 0.10))
thats the full function to make it take away 10% of his hp total. problem is with that he can die by casting the ability, but it is what you are asking for I believe.
Like this then? Unit - Set life of (Casting unit) to ((Life of (Casting unit)) - ((Max life of (Casting unit)) x 0.10))
-------------------
edit: yea it worked, thanks for the help +rep
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.