• 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!

Ability Codes

Status
Not open for further replies.
Level 2
Joined
Apr 1, 2019
Messages
156
Is there a way to show the duration, damage, ect of a spells next level in the Tooltip Learn - Extended

In Tooltip learn %d appears to be the code to show the number for the next level

So using <AEer,DataA1> for duration, in theory I should be able to use <AEer,DataA%d> but it doesn't work.

In fact I can't get %d to show anywhere except the Tooltip Learn
 
I don't think there is a way to do this in the object editor.

I would suggest looking into the
Code:
native BlzSetAbilityResearchExtendedTooltip        takes integer abilCode, string researchExtendedTooltip, integer level returns nothing
JASS method to set the tooltips for an ability per level.
 
Do something like this:

Set AbilityVariable = Some Ability
Custom script: call BlzSetAbilityResearchExtendedTooltip(udg_AbilityVariable, “thestringyouwantbetweenthesequotes”, thelevelyouwant)

You can also use a StringVariable and substitute udg_ for the “...” part (remove the quotes too) if you would rather write the string in GUI.
 
Thanks for the help, but sorry it keeps giving me Syntax Error, unexpected "damage" Symbol not declared (deals)

It differs on what I type in “thestringyouwantbetweenthesequotes”

What I did,
  • Hero Spell
    • Events
      • Time - Elapsed game time is 0.00 seconds
    • Conditions
    • Actions
      • Set AbilityTest = Entangling Roots (hero)
      • Custom script: call BlzSetAbilityResearchExtendedTooltip(udg_AbilityTest, Deals damage and stuff, 1)
 
Sorry about that, I'm a scrub.

Alright I used the quotes and got no error message, however in game no Extended Tooltip (learn) is displayed.

Seeing Cyclotrutan's post I used the GUI Action for it and no text appears still.
I tried the other actions:
-Game - set Tooltip (Learn)
-Game - set Tooltip
-Game - set Extended Tooltip

Those ones all worked fine, but not the one I need.

I tried using The events (Map Initialization) and (Game time 1.00 seconds)

You can sort of get it to work by typing all the info in Tooltip (Learn) but it cuts off after a few lines.

Gave some rep for helpin
 
Status
Not open for further replies.
Back
Top