Grey Fox
Jun 13, 2007, 05:25 PM
I know you can change the max hit points with this GlobalDefine:
<Define>
<DefineName>MAX_HIT_POINTS</DefineName>
<iDefineIntVal>100</iDefineIntVal>
</Define>
But would it be possible to make the MaxHP individual to the unit? So one unit can have MaxHP 250 while another has MaxHP 4678? And also so that Promotions could increase this amount?
I'm thinking that an easy way would be to just create an attribute for the unit, call it MaxHP, and then force the game to never Regen over that amount, and make the unit start at that amount. The thing however would be that the Combat Power would calculate the Global Max HP (10000 for example) as 100% HP, so it would cut down on the units combat power - maybe this can be worked around though by making the current power calculation be based on your units individual MaxHP value.
The HealRate calculations would have to take the current units MaxHP value into consideration as well instead of the Global Max HP.
Anyone think it's possible, or has it been done/tried before? Is there even a point to do this?
Any help, or opinions is appreciated. I'm pretty sure I could implement this, but maybe its just not possible.
<Define>
<DefineName>MAX_HIT_POINTS</DefineName>
<iDefineIntVal>100</iDefineIntVal>
</Define>
But would it be possible to make the MaxHP individual to the unit? So one unit can have MaxHP 250 while another has MaxHP 4678? And also so that Promotions could increase this amount?
I'm thinking that an easy way would be to just create an attribute for the unit, call it MaxHP, and then force the game to never Regen over that amount, and make the unit start at that amount. The thing however would be that the Combat Power would calculate the Global Max HP (10000 for example) as 100% HP, so it would cut down on the units combat power - maybe this can be worked around though by making the current power calculation be based on your units individual MaxHP value.
The HealRate calculations would have to take the current units MaxHP value into consideration as well instead of the Global Max HP.
Anyone think it's possible, or has it been done/tried before? Is there even a point to do this?
Any help, or opinions is appreciated. I'm pretty sure I could implement this, but maybe its just not possible.