Changing ability statistics while in-game

Level 1
Joined
Mar 21, 2025
Messages
3
Hello!
I was wondering if it's possible to (permamently/until next trigger) change ability statistics while in-game. For example int bonus of item ability. I was trying to use the "ability - set ability integer level field" with "Unit - get unit ability" for the ability field, for example:
  • Ability - Set Ability: (Unit: Jaina 1667 <gen>'s Ability with Ability Code: Int bonus (VARIABLE) )'s Integer Level Field: Intelligence Bonus ('Iint') of Level: 0 to 25
I believe this should change the level 1 of the skill to int bonus of 25, but it doesn't work. Can this function be used like that and I'm simply using it wrong? Or perhaps I'd need to use "hashtable - load ability handle" for the ability field and it would be possible to alter it like that? (I do not know how to use the hashtable in this way though, if that is the case).
 
Level 21
Joined
Mar 16, 2008
Messages
955
Yes this should work. Try setting to level 1. Most of the time level 0 is just null for abilities.

If that doesn't work then you might be modifying the wrong field 'Iint'

Just guessing. LMK if that doesn't work. Or maybe someone who is more certain can correct me.
 
Last edited:
Level 1
Joined
Mar 21, 2025
Messages
3
I did additional tests with different skills/skill types and statistics (unit damage aura, hero armor aura, item agility). I did change them for levels 0-3 to be sure and it didn't work in all 3 cases. It's possible that I use wrong field in all 4 cases, but if that's the case is it possible to check ID for these fields? Example full trigger:
  • Events
    • Time - Elapsed game time is 15.00 seconds
  • Conditions
  • Actions
    • Wait 1.00 seconds
    • Ability - Set Ability: (Unit: Test1 1709 <gen>'s Ability with Ability Code: Testchange1 )'s Real Level Field: Damage Increase (%) ('Inf1') of Level: 0 to 0.50
    • Ability - Set Ability: (Unit: Test1 1709 <gen>'s Ability with Ability Code: Testchange1 )'s Real Level Field: Damage Increase (%) ('Inf1') of Level: 1 to 0.50
    • Ability - Set Ability: (Unit: Test1 1709 <gen>'s Ability with Ability Code: Testchange1 )'s Real Level Field: Damage Increase (%) ('Inf1') of Level: 2 to 0.50
    • Ability - Set Ability: (Unit: Test1 1709 <gen>'s Ability with Ability Code: Testchange1 )'s Real Level Field: Damage Increase (%) ('Inf1') of Level: 3 to 0.50
 
Level 1
Joined
Mar 21, 2025
Messages
3
Added the level up and down to these 3 triggers as suggested. Command aura worked, the new damage buff value is on. Devotion aura... somehow now doesn't work - the buff is visible but it gives 0 armor (while trigger was supposed to change it to 25). The agility item ability didn't change at all. Apart from devotion aura which is irrelevant for me at the moment, I can't say if the agility stat changed or not because I noticed different problem - "increase level of ability for unit" doesn't work for abilities made of item abilities. So the problem is that I can't refresh it by increasing and decreasing level as it doesn't work at all (I did made them into 3-level skills, it worked for command aura which was 1-level skill). Perhaps item abilities don't have working levels at all?
 
Top