Idk if it me or war3 that has forgotten how to do maths :S
What I was aiming for is it to increase units agility by 20% while holy light is level 1, and 21% while it is level 2.
- Custom script:set udg_var(GetUnitAbilityLevel(udg_Unit,'AHhb')+240)/200*((GetHeroAgi(udg_Unit,true)))
- Custom script: call DisplayTextToForce( GetPlayersAll(), R2S(udg_var) )
- Custom script:set udg_var(GetUnitAbilityLevel(udg_Unit,'AHhb')+240)/200
- Custom script: call SetHeroAgi(udg_Unit,R2I(udg_var),true)
- Custom script: call DisplayTextToForce( GetPlayersAll(), R2S(udg_var) )
What I was aiming for is it to increase units agility by 20% while holy light is level 1, and 21% while it is level 2.