I've seen some references in button tooltips, but only concerning abilities or effects.
Is it possibleto add a behavior reference? And how can I get the right reference name?
I need to show a CBehaviorBuff_Duration in my button tooltip... so far I've tried a lot of references like Behavior,MyBehavior,etc... but I didn't find it.
Yep, it is possible.
So, first of all: Find a button that uses some reference to any ability or effect. (since I don't know the exact way of doing it by hearth) :P
Second: Enable the field, which ask you to show more details of the tooltip (something like <d ref="Abil,MyAbility,... "/> will appear around the references.
Third:
Edit the "Abil" to "Behavior" if you want to reference a behavior.
Edit: "MyAbility" to the id of your behavior (select "view raw data" when having your behavior selected to see it)
Edit: what follows after the "MyAbility," to whatever field you need to reference.
You can even do basic arithmetics in the tooltip references. For example when you need to show a percentage and the field value is only ranged from 0 to 1, you can use <d ref="Eff,MyEff,Chance *100"/>
If something is unclear or you can't figure sth out, I will have a look at the editor in some hours ;)
I've seen some references in button tooltips, but only concerning abilities or effects. Is it possibleto add a behavior reference? And how can I get the right reference name?
I need to show a CBehaviorBuff_Duration in my button tooltip... so far I've tried a lot of references like Behavior,MyBehavior,etc... but I didn't find it.
Yep, it is possible. So, first of all: Find a button that uses some reference to any ability or effect. (since I don't know the exact way of doing it by hearth) :P Second: Enable the field, which ask you to show more details of the tooltip (something like <d ref="Abil,MyAbility,... "/> will appear around the references. Third: Edit the "Abil" to "Behavior" if you want to reference a behavior. Edit: "MyAbility" to the id of your behavior (select "view raw data" when having your behavior selected to see it) Edit: what follows after the "MyAbility," to whatever field you need to reference.
To find the name of the field, you should enable the table view in the data editor and enable "view raw data". For simple fields like Duration, you usually only need to type "Duration". For others, read this thread on how the names are built up: http://www.sc2mapster.com/forums/resources/tutorials/1250-triggers-catalog-field-value-get-set/
You can even do basic arithmetics in the tooltip references. For example when you need to show a percentage and the field value is only ranged from 0 to 1, you can use <d ref="Eff,MyEff,Chance *100"/>
If something is unclear or you can't figure sth out, I will have a look at the editor in some hours ;)
Solved! Thank you very much! ;)