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

Is this a formula problem? {increasing a unit's maximum health (HP)}

Status
Not open for further replies.
Level 4
Joined
Apr 18, 2009
Messages
127
Ok, so my problem here is:

I have to make a units hp go to 150% when entering region (or getting spawned there ).

Allthough it seems my formulas won't work

  • Unit - Set life of (Picked unit) to ((Life of (Picked unit)) + ((Max life of (Picked unit)) x 0.50))
  • Unit - Set life of (Entering unit) to (100.00 + 50.00)%
I made 2 just to test.
 
Level 4
Joined
Jul 20, 2005
Messages
107
Why use (Life of picked unit) + Max life of picked unit x0.50
when you can use Max life of picked unit x 1.5

Try use variable to set the integer and set it.. I never try it.. so just give it a try
 
Level 4
Joined
Apr 18, 2009
Messages
127
I first set it to 1.5, but it did noit work so i set it to the current.

I will try it as an intrieger.
 
Level 11
Joined
Feb 14, 2009
Messages
884
You can also use a buff that grants extra hp, and remove it whenever you want to reset a unit's life.
 
Level 11
Joined
Feb 14, 2009
Messages
884
I don't think there is a buff that gives more hp according to the unit's current hp. Your only hope is a dummy buff + triggers now :)
 
Level 4
Joined
Apr 18, 2009
Messages
127
Yes, that was the reason.

And if anyone of you have a solution please post ^^
 
Level 13
Joined
Sep 14, 2008
Messages
1,408
Mom a trigger can't set the hp over the max value... (it can't be like 100/50) -.-

You have to use the item ability from the amulett of health. (you can use 1000 levels with 1-1000 hp bonus or you use 3 abilities... 1 with lvl 1 - 1000, lvl 2 - 2000... one with lvl 1 - 100, lvl 2 - 200 and one with lvl 1- 10 , lvl 2 - 20 and so on..)

Then you add it to the unit and set the level of the ability.


Correct me if I am wrong...
 
Level 18
Joined
Mar 13, 2009
Messages
1,411
Ah well I needed a trigger like this too (or I would have had to make 5 nearly the same units which would be the other option) so thanks Ghan :D
 
Status
Not open for further replies.
Top