I'm having trouble with a passive ability that grants a % of life as a bonus. I am currently using an ability that is linked to behaviours that increase the vital maximum fraction per level of the ability. The ability works perfectly, increasing the right amount per level of the ability. However, I have just introduced a modification into my veterancy behaviour that increases life per level. The passive ability is only giving me the life gain using the hero's lvl 1 HP.
Example:
The hero's life at lvl 1 = 100. Hero's life at lvl 2 = 200. The buff grants 10% bonus life (vital max fraction 0.1).
If the ability is learnt at lvl 1 the hero's life becomes 110 (correct). When he lvls to lvl 2 it becomes 210 (should be 220).
Moreover, if the ability is used at lvl 2 his life becomes 210 (should be 220).
So it seems that the passive is only using the units base health at lvl 1
Is there a way to a) make the ability relative to the unit's current base HP. and b) make the ability scale when the unit gains life max due to veterancy lvling?
Best bet would be to have a staking buff that grants a bonus and use triggers to adjust it according to a base + buff x multiplier (based on buff given by ability).
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
Ok, i'll think I'll change it to a fixed health increase for now and address it later when I have some experience with triggers. Thanks for your input ^^
I'm having trouble with a passive ability that grants a % of life as a bonus. I am currently using an ability that is linked to behaviours that increase the vital maximum fraction per level of the ability. The ability works perfectly, increasing the right amount per level of the ability. However, I have just introduced a modification into my veterancy behaviour that increases life per level. The passive ability is only giving me the life gain using the hero's lvl 1 HP.
Example:
The hero's life at lvl 1 = 100. Hero's life at lvl 2 = 200. The buff grants 10% bonus life (vital max fraction 0.1).
If the ability is learnt at lvl 1 the hero's life becomes 110 (correct). When he lvls to lvl 2 it becomes 210 (should be 220).
Moreover, if the ability is used at lvl 2 his life becomes 210 (should be 220).
So it seems that the passive is only using the units base health at lvl 1
Is there a way to a) make the ability relative to the unit's current base HP. and b) make the ability scale when the unit gains life max due to veterancy lvling?
Not without complex workarounds.
Best bet would be to have a staking buff that grants a bonus and use triggers to adjust it according to a base + buff x multiplier (based on buff given by ability).
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
@DrSuperEvil: Go
Ok, i'll think I'll change it to a fixed health increase for now and address it later when I have some experience with triggers. Thanks for your input ^^
As stated possible with data but less efficient in this case.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg