I have items which themselves have behaviors. For example, maybe a magweapon has 5 stacks of gStrength as a behavior effecting the item.
I would really like to have a tooltip for the item that reflects its stats. I would reckon there are two ways of doing this: at runtime, in a trigger, or in the data using data references.
I haven't been able to get either one to work. In the data, it does let you reference unit types, but how could i get BehaviorStackCount[this unit, gStrength] ? And in the triggers, SetUnitInfo[...] doesn't apparently change its tooltip as an item in the inventory.
I would like to do this as well, but there are no data references I know of to achieve this. Depending on your map setup, you could probably use a trigger workaround, for example displaying an unused data field and changing that field via catalog functions, whenever the stack count changes (would only work for maps where one unit type is used only once per player, for example when controlling a single hero).
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I have items which themselves have behaviors. For example, maybe a magweapon has 5 stacks of gStrength as a behavior effecting the item. I would really like to have a tooltip for the item that reflects its stats. I would reckon there are two ways of doing this: at runtime, in a trigger, or in the data using data references.
I haven't been able to get either one to work. In the data, it does let you reference unit types, but how could i get BehaviorStackCount[this unit, gStrength] ? And in the triggers, SetUnitInfo[...] doesn't apparently change its tooltip as an item in the inventory.
I would like to do this as well, but there are no data references I know of to achieve this. Depending on your map setup, you could probably use a trigger workaround, for example displaying an unused data field and changing that field via catalog functions, whenever the stack count changes (would only work for maps where one unit type is used only once per player, for example when controlling a single hero).