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

Is it possible to make unit extended tooltip unique to every player?

Status
Not open for further replies.
Level 11
Joined
Aug 11, 2009
Messages
605
I am trying to change the extended tooltip on a unit in a building to show how much progress you have made to unlock it.

From what I could find you can only change the extended tooltip of items and abilities though, or did i miss the one for units? I found the "call BlzSetAbilityTooltip" custom script and tried to change it to "call BlzSetUnitExtendedTooltip" but that didnt work xD

I guess I could use the custom script: "if GetLocalPlayer() == udg_PlayerVariable then" to make it only affect one player. But is there any way through triggers to change unit extended tooltip?

EDIT: Perhaps it would work smoother to just use abilities instead of dummy units in a building? Since you can add requirements to abilities aswell to lock them from being used. It is only supposed to summon a Hero on use which could be done either way :)
 
Level 20
Joined
Jan 3, 2022
Messages
364
Doc - BlzSetUnitStringField there's this but it only works on individual unit instances. I don't know what hireable units in buildings are made of. Scripting abilities is certainly a good way to go.

Modifying texts async should be alright, just make sure not to acquire new handles within the LocalPlayer block, like you would do when getting an ability instance as an object: Doc - BlzGetUnitAbilityByIndex
 
Status
Not open for further replies.
Top