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

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