• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Ability based spell tooltip

Status
Not open for further replies.
Level 45
Joined
Feb 27, 2007
Messages
5,578
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