• 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.

MAX HP % problem

Status
Not open for further replies.
Level 2
Joined
Jan 2, 2014
Messages
7
Hello, I've made an ability that increases each unit on the battlefield +10 MAX HP when certain unit enters the battlefield... it's like a special ability of this unit,but here is problem...

when a unit that is already on the battlefield has 10/20 HP

and then the special unit comes in and it has like 13/30 HP (3 hp is % of the current HP) instead of 20/30 HP

I have to increase current HP of the unit by +10 but I also have to remove the added amount of HP by this % it already increased... Could u please help me? Am I right? Is it even possible to remove the added % of HP when the unit appears?

It takes % of the current HP and then changes it... I want to stay it the same
 
Status
Not open for further replies.
Top