• Check out the results of the Techtree Contest #19!
  • 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!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Changing max HP

Status
Not open for further replies.
Level 12
Joined
May 22, 2015
Messages
1,051
Does health always stay the same percent, as in, it will go up if you increase max HP and go down if you decrease max HP?

Is it possible for a unit to die by lowering their max HP too much? What happens if it gets reduced to 0? What happens if they have 1 life left with 100 max life, then you lower their max life to 10 (if percent health is maintained, that would put them below the health where they die)?

I'm curious because I might mess around with some abilities and stuff.
 
My best advice would be to give it a try and see what happens. Someone might know but I'm not sure. Feel free to share your findings too if you try it out
 
From my own experience the unit does die. I had a bug with an item where it didn't give the hp when picked up but removed the hp when it dropped the item, killing it immediately. Luckily the unit was a hero... so when they respawned they didn't have a hp bar (so I'm guessing their hp was 0 or the lowest value before death)
 
Thanks for the responses, everyone! I will have to consider this for some things.
 
Status
Not open for further replies.
Back
Top