- Joined
- Mar 3, 2006
- Messages
- 1,564
Is there a way to increase the maximum life of a hero or unit by triggers (GUI) or JASS ?
call SetUnitState( yourUnit, UNIT_STATE_MAX_LIFE, value )
JASS:call SetUnitState( yourUnit, UNIT_STATE_MAX_LIFE, value )
Irreversible.M8, u can easily change max life by setting an upgrade lvl to upgrade + 1. Make the upgrade from those who give +Max life and it will work perfectly. Or do something in JASS. Sry i don't know JASS, i can't show u anything
I made a system for Apocalypse a while back that created tomes of health (increase health by 1) for the amount you want increase.
I had it set up as 3 different tomes. One increased 100, another 10, and the last by 1. That seemed to lower the lag significantly. And I guess you could make a 1000s tome if you needed to.Nah, instant use tomes don't require slots. That would, however, be incredibly laggy (Hundreds of tomes, anyone?).
Yes, that works better, but ideally you would use powers of two.I had it set up as 3 different tomes. One increased 100, another 10, and the last by 1. That seemed to lower the lag significantly. And I guess you could make a 1000s tome if you needed to.