- Joined
- Aug 11, 2009
- Messages
- 612
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
-
-
