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

[JASS] About Maxlife

Status
Not open for further replies.
Level 1
Joined
Nov 10, 2005
Messages
2
!!!!
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.
 
Level 2
Joined
Sep 21, 2005
Messages
27
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.
 
Level 6
Joined
May 19, 2004
Messages
267
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)
 
Status
Not open for further replies.
Top