• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Change Ability tool tip in game for each hero

Status
Not open for further replies.
I don't see any other way than to create separate abilites, unfortunately.
To many abilities with lots of levels to do that lol

You can try wrapping BlzSetAbilityTooltip in a GetLocalPlayer block if you want it per player.

If you want it to work per unit, you can try ABILITY_SLF_TOOLTIP_NORMAL with BlzSetAbilityStringLevelField.

i am fine with for player or specific unit both work. I don't really know about jass but Pyrogasm helped me with something similar recently.

  • Custom script: if GetLocalPlayer() == udg_PlayerVariable then
    • Set StringVariable = SomeString
    • Custom script: endif
Will this work?
 
Yes but I don't think it's necessary to set the string locally, you can just call the native. I'm not totally sure on this though. The problem with setting the string locally is that you will need to make sure you don't overwrite the tooltip string for other players beside the local one too.

  • Custom script: if GetLocalPlayer() == udg_PlayerVariable then
  • Custom script: call BlzSetAbilityTooltip('Ahea', "Your string", 0)
  • Custom script: endif
 
Unfortunately, these don't work yet. But eventually you should be able to do something like this:

  • Ability - Set Ability: (Unit: (Triggering unit)'s Ability with Ability Code: Animate Dead)'s String Level Field: Tooltip - Normal ('atp1') of Level: 0 to Blah blah blah
  • Ability - Set Ability: (Unit: (Triggering unit)'s Ability with Ability Code: Animate Dead)'s String Level Field: Tooltip - Normal - Extended ('aub1') of Level: 0 to Blah blah blah
 
Status
Not open for further replies.
Back
Top