Let's say I have a unit that has a health regen value of 2, and he also has a stat that increases his health regen by 1 every time he gains a point in it. I know how to display the initial value and the value that is gained, but I don't know how to update that value in a tooltip as the character is leveling. I'd like to be able to hover over a tooltip and it read "health regen is 4" if he has 2 points in the health regen stat, for example.
Thanks for the pictures and the time spent trying to answer, but I believe I didn't explain my question. I'm not talking about simply listing a stat. I'm talking about updating that stat as the game goes on. I imagine it requires some formula (like base regen + regen bonus*number of stats). I don't know where to find value of the stat on the character. Let's say the stat Endurance increases health regeneration by 1 for every point of it, and the hero has a base regen of 2.
Hero lvl 1
Health Regen 2
Endurance 0
Hero lvl 2
Health Regen 3
Endurance 1
I'd like to list the actual value as it dynamically changes in game.
Yeah i think that you can modify your tooltip with the action catalog value set.
For the dynamic stats increase you could set some behaviors and effects that will be linked together. For example you could periodically add a stackable buff named "health" and with your trigger you could return in the tooltip the value each time the buff is modified.
There is also a way to list the current value of a parameter from the units data type. Under the tutorials forum is a thread on how to do it. All I can remember is it requires the raw data string for the field and some other text.
Let's say I have a unit that has a health regen value of 2, and he also has a stat that increases his health regen by 1 every time he gains a point in it. I know how to display the initial value and the value that is gained, but I don't know how to update that value in a tooltip as the character is leveling. I'd like to be able to hover over a tooltip and it read "health regen is 4" if he has 2 points in the health regen stat, for example.
@HakanSC: Go
Go to button tooltip, click Choose field as shown in pic:
Make field value look like this (obviously use your unit, not the zergling):
Click insert in tooltip to put it wherever you want, done.
Thanks for the pictures and the time spent trying to answer, but I believe I didn't explain my question. I'm not talking about simply listing a stat. I'm talking about updating that stat as the game goes on. I imagine it requires some formula (like base regen + regen bonus*number of stats). I don't know where to find value of the stat on the character. Let's say the stat Endurance increases health regeneration by 1 for every point of it, and the hero has a base regen of 2.
Hero lvl 1 Health Regen 2 Endurance 0
Hero lvl 2 Health Regen 3 Endurance 1
I'd like to list the actual value as it dynamically changes in game.
@HakanSC: Go
I can give a trigger solution, but I'm really interested to see if there's any possible data solution, though I doubt it.
Yeah i think that you can modify your tooltip with the action catalog value set.
For the dynamic stats increase you could set some behaviors and effects that will be linked together. For example you could periodically add a stackable buff named "health" and with your trigger you could return in the tooltip the value each time the buff is modified.
There is also a way to list the current value of a parameter from the units data type. Under the tutorials forum is a thread on how to do it. All I can remember is it requires the raw data string for the field and some other text.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg