Trigger:
- Actions
- Unit - Remove Item Life Bonus (Level 1) from (Triggering unit)
- Unit - Add Item Life Bonus (Level 2) to (Triggering unit)
Just make different versions of the ability.
You can use an upgrade with a Hit Point bonus.I hope there is some other way to do that. I have 10 levels, that means 10 different abilities ...
For this ability, you can base it on 1 life bonus ability. Usually, item abilities can be leveled if you change it to a unit ability. However, the life bonus ability is "bugged". Let's say you make it have 2 levels. Supposedly, level 1 gives you 100 health and level 2 gives 200 health. However, when your life bonus is set to level 2, you'll still only receive 100 extra health. However, when this spell is removed, 200 health is removed instead of 100. So in the end, you'll lose out 100 max health. By using this theory, you can use 1 life bonus ability for your spell. From what I understand, your skill gives an increment of 100 health per level. Base your skill on a dummy ability (Critical Strike with null values). Create a life bonus ability. Change it to a unit ability. Make it have 2 levels. Level 1 having a value of 0 and level 2 having a value of -100. Then make this trigger.
Trigger:
- Events
- A unit Learns a skill
- Conditions
- (Learned Hero Skill) Equal to <Your Base Skill>
- Actions
- For each (Integer A) from 1 to (Level of <Your Base Skill> for (Triggering unit)), do (Actions)
- Loop - Actions
- Unit - Add Life Bonus (Dummy) to (Triggering unit)
- Unit - Set level of Life Bonus (Dummy) for (Triggering unit) to 2
- Unit - Remove Life Bonus (Dummy) from (Triggering unit)
So imagine your skill is level 2. You're going to raise it to level 3. When you learn it, the trigger fires. The loop fires. Since the skill is level 3, the loop runs 3 times. You add the skill, which provides 0 health bonus. Then it is set to level 2, which is -100 health. However, your health remains at bonus 0 health due to the "bug". When the skill is removed, you gain 100 health since removing a -100 health bonus would mean adding back 100 health. Due to the "bug", you're actually gaining 100 health. Then this process is repeated 3 times. So a total of 300 health is added.
By using this method, tome of retraining might cause complications. In that case, you'll need to use the same method, however with a new life bonus with level 1 adding 0 health and level 2 adding 100 health. Then you can remove the health accordingly.