• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Ability based spell tooltip

Status
Not open for further replies.
Level 39
Joined
Feb 27, 2007
Messages
5,019
You can't do it automatically. You will have to periodically call
native BlzSetAbilityExtendedTooltip takes integer abilCode, string extendedTooltip, integer level returns nothing from within a GetLocalPlayer() if block to update the tooltip for the owning player as the unit gains/loses strength. Note that this will not work for multiple units owned by the same player (they will all have the same tooltip).
 
Level 8
Joined
May 21, 2019
Messages
435
I created spell that deal damage 3x strenght, so i want to put it in tooltip of ability that says how much damage is that. What code is for that?
There is a new action that allows you to edit the tooltips of spells owned by a specific unit, however, they sadly don't work yet.
Pyrogasms suggestion would work for spells that are only used by 1 hero, but if that's not your scenario, then it may be better to just leave it "as is" for now, and wait for this thing to be fixed, so you can implement it properly.
 
Status
Not open for further replies.
Top