Hello
How do i reference to a player-stat in a script?
In the widget editor, i can set the text of a label or the value of a progress bar to something like ${player.stat["max_hp"]} to display a stat-value there.
But when i try to use this in a script instead of a number, it gives a syntax error, no matter, if i use the "${}" around it or not...
I need this for a full heal potion (to set max-hp as heal-amount) and some magic energy refill potions(i find no build in magic refill functions).