Warcraft III resources & community, 2003–2006 · archived

About Maxlife

6 posts
#1

About Maxlife

!!!!
Hi everybody.
I meet a question , how can I change the "Last Created Unit"'s MaxLife used by Jass. or How can I change the Unit's MaxLife used by Trigger.
#2
There is no true way to do this. Sure there are tricks but I'm not sure on any good way.
#3
Come on~~:(
#4
If it is a hero you can give it an item that permanently increases its' life when aquired. It's the only way I can figure out now.
#5
Might be possible to use upgrades(orc strength, knight/gryphon hp?) to increase HP. I don't know if you can have multiple of the same upgrades per unit, but if you can then you can have one give +1hp, another +20hp, or some give +1%,2%,3%,4% HP.

That's about all I can come up with.
#6
Lets say you want the unit to get 200 more life.
Just make an ability based of the Item-Ability that those +hp items have, change the hp gained to 200.
Then add the ability to the unit and remove it when you want.
(These wont stack so If you want the unit to have 400 you will either have to use 2 abilities 200 each, or change the first one to 400)