• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece!🔗 Click here to enter!

[General] (Extended) Ability Tooltip change via gui function

Status
Not open for further replies.
Level 8
Joined
Mar 10, 2009
Messages
213
Does it even work (I mean the blizzard's gui line)? I've tried various approaches, and the ability's tooltip never changes.
The same feature works for my item tooltip updates just fime.

call BlzSetAbilityExtendedTooltip( udg_NAME[1], LoadStringBJ(1, 1, udg_HashtableNAME), 1 )

Anticipating the question, I load a string.
 
Level 8
Joined
Mar 10, 2009
Messages
213
The Indexes start at 0. So ability level 1 = 0, level 2 = 1, level 3 = 2, etc...
A lot of the new functions don't work yet but I'm pretty sure this one works.
Thank you.
I've tried with 0 as well even before posting. (In fact, assigning several lvls, trying loading strings from hashtables, or typing them directly in the string field.). At first, I thought the reason was the ability being listed in a spellbook. But it didn't matter.

Then I tried this:
Code:
call BlzSetAbilityExtendedTooltip( udg_SpeechDialogOption[1], ( SubStringBJ(BlzGetAbilityExtendedTooltip(udg_SpeechDialogOption[1], 0), 0, 0) + "NEW  EXT TOOLTIP" ), 0 )
,

and it worked. So, setting an ability tooltip to concatenated strings works, as long as they include reference to the initial tooltip, even if it's an empty substring (0,0).

Update 2: I re-tried setting it to a simple string... and it worked. WTF I could swear to God, I used level 0 as well earlier today and it didn't work before. Strange...
So, SOLVED.
 
Last edited:
Status
Not open for further replies.
Top