Are you sure the behavior is on the unit and not expiring instantly? I don't see any other reason why it wouldn't be working for you. Max bonus is a static number (+25 hp). The fraction should be what you are looking for.
Duration is 0 I wanted it infinite, I based it off a behavior someone made for me that boosted attack/movement speed, so it should work as far as I know.
Yea Fraction is what I want, I was just testing both hoping to get it working.
EDIT: I've added so many debug messages now, the Unit definitely acquires the buff. I added other stats in thetr as well to make sure it's not just health that isn't working. No bonuses or anything.
UPDATE
EDIT: Trying to simply add a behavior onto a unit to increase maximum health by +25%.
Can't get this working on the behavior, this happens...>
When I add +Vital Max Bonus or +Vital Maximum Fraction, the unit instead gains bonus health regeneration.
So for example +25 health regeneration instead of +25 maximum health.
Is this some form of bug, or am I just using the wrong field? It's weird as underneath there is a specific +Vital Regeneration Bonus (I left at 0).
Please help!
What kind of behavior did you base it off of?
CBehaviorBuff?
Are you sure the behavior is on the unit and not expiring instantly? I don't see any other reason why it wouldn't be working for you. Max bonus is a static number (+25 hp). The fraction should be what you are looking for.
Behavior Type: Buff
Based On: Default Behavior (CBehaviorBuff)
Duration is 0 I wanted it infinite, I based it off a behavior someone made for me that boosted attack/movement speed, so it should work as far as I know.
Yea Fraction is what I want, I was just testing both hoping to get it working.
To set it infinite it needs to be -1, 0 will just deplete instantly
If the behavior isn't hidden, it should appear on the unit stat sheet when on. If it doesnt appear, and is not hidden, then its not there.
@38dedo: Go
Just did that no change :/
EDIT: I've added so many debug messages now, the Unit definitely acquires the buff. I added other stats in thetr as well to make sure it's not just health that isn't working. No bonuses or anything.
Update ok this is very very weird. I got the behavior working but.....
When I add +Vital Max Bonus or +Vital Maximum Fraction, the unit instead gains bonus health regeneration.
So for example +25 health regeneration instead of +25 maximum health.
Is this some form of bug, or am I just using the wrong field? It's weird as underneath there is a specific +Vital Regeneration Bonus (I left at 0).