Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
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.