I implemented a custom armor system with damage reduction in % instead of absolute values. Now I want to have the specific % reduction for each unit displayed in the armor tooltip. How can I achieve this? The armor tooltips usually are static and because of them being bound by text keys they can only be set for each unit type, but not for each unit individually. And since all units have different armor values - depending on the player - I need them to have different armor tooltips.
Some time ago I heard about items being able to add info to a armor or weapon tooltip. Might this work? Or is there a better solution?
There's a place where you can write your own text in a tooltip under UI: Tooltip for weapons. You could just manually type in the % damage reduction to each armor type. If you really NEED it to be dynamic the only thing I can think of is using triggers to change the catalog field value of the UI:Tooltip of the weapons you need to change. Of course, this would modify it for all weapons of this type, not just for a particular unit.
I implemented a custom armor system with damage reduction in % instead of absolute values. Now I want to have the specific % reduction for each unit displayed in the armor tooltip. How can I achieve this? The armor tooltips usually are static and because of them being bound by text keys they can only be set for each unit type, but not for each unit individually. And since all units have different armor values - depending on the player - I need them to have different armor tooltips.
Some time ago I heard about items being able to add info to a armor or weapon tooltip. Might this work? Or is there a better solution?
bump
Behaviors can affect armor on a per-unit basis, and it's shown in the tooltip, can you use that?
@StragusMapster: Go
How would I add for example "Damage Reduction: X %" to the tooltip when X depends on the armor value? I can't see how it can be done with behaviors.
@Ranuglin: Go
There's a place where you can write your own text in a tooltip under UI: Tooltip for weapons. You could just manually type in the % damage reduction to each armor type. If you really NEED it to be dynamic the only thing I can think of is using triggers to change the catalog field value of the UI:Tooltip of the weapons you need to change. Of course, this would modify it for all weapons of this type, not just for a particular unit.
@peranzormal: Go
there are inherent problem when fighting the current armor system regardless of what you do.
Sounds like your armor reduction system is heavily trigger based, this means that your tool tips will not be correct.