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

Change ability tooltip for specific player

Level 11
Joined
Aug 11, 2009
Messages
605
I am trying to change the tooltip of an ability but only for one player, but the problem is i try to make the text as a variable first and then try to use the variable but it doesnt work. This is just a test trigger to see if it works. The idea is that you need to collect 30 Soul Shards for a specific Hero to unlock it, and I want to show the progress on the ability that summons the Hero.

  • Tooltip Test
    • Events
      • Player - Player 1 (Red) types a chat message containing -roze as An exact match
    • Conditions
    • Actions
      • Set VariableSet Hero_ProgRoze[1] = (Hero_ProgRoze[1] + 1)
      • Set VariableSet Hero_TooltipPlayer = (Triggering player)
      • Set VariableSet Hero_TooltipPlayerNumber = (Player number of Hero_TooltipPlayer)
      • Set VariableSet Hero_Tooltip01[28] = (|cff8080ffSource:|r Mythic Summoning.|n|cff8080ffSoul Shards Collected:|r + ((String(Hero_ProgRoze[Hero_TooltipPlayerNumber])) + /30|n|n|cff8080ffRole:|r Damage Dealer))
      • Custom script: if GetLocalPlayer() == udg_Hero_TooltipPlayer then
      • Custom script: call BlzSetAbilityExtendedTooltip('A017', "udg_Hero_Tooltip01[28]", 0)
      • Custom script: endif
The ability shows the text "udg_Hero_Tooltip01[28]" instead of what is actually in the variable.
 
Top