Take these two tooltips for example:
Learn Sniper (button, learn-tooltip)
Sniper deals damage to weak units from a long distance.
Level 1: <d ref="Effect,SniperDamageLevel1,Amount"/> damage
Level 2: <d ref="Effect,SniperDamageLevel2,Amount"/> damage
Targets: non-hero, non-structure
Cooldown: none
Sniper (button, ability-tooltip)
Sniper deals <d ref="Ability, HeroSniper[GetCurrentLevel].Amount" /> damage.
Targets: non-hero, non-structure
Cooldown: none
Now, how would I reference the current level of the ability on the hero, to get the proper amount of damage to be displayed?
Having a strange feeling about this, since I've been playing arcade games, and most of the tooltips are on the format: Learning-Tooltip works properly, while the ability tooltip is just shortened to "Sniper deals huge damage".
I've researched and someone mentioned creating one button for each of your level, then trigger it to show which button shall be shown depending on level... Which I will not use my time on, so any other suggestions?
Edit: Hm, trying to change the tooltip on the ability itself, see if it overrides the button tooltip.
Learn Sniper (button, learn-tooltip)
Sniper deals damage to weak units from a long distance.
Level 1: <d ref="Effect,SniperDamageLevel1,Amount"/> damage
Level 2: <d ref="Effect,SniperDamageLevel2,Amount"/> damage
Targets: non-hero, non-structure
Cooldown: none
Sniper (button, ability-tooltip)
Sniper deals <d ref="Ability, HeroSniper[GetCurrentLevel].Amount" /> damage.
Targets: non-hero, non-structure
Cooldown: none
Now, how would I reference the current level of the ability on the hero, to get the proper amount of damage to be displayed?
Having a strange feeling about this, since I've been playing arcade games, and most of the tooltips are on the format: Learning-Tooltip works properly, while the ability tooltip is just shortened to "Sniper deals huge damage".
I've researched and someone mentioned creating one button for each of your level, then trigger it to show which button shall be shown depending on level... Which I will not use my time on, so any other suggestions?
Edit: Hm, trying to change the tooltip on the ability itself, see if it overrides the button tooltip.