Good day folks,
As some people may have read in other topics of mine im working on a combat system for a story of mine and I almost got everything to work like I want it to work with a single exception:
There are 2 variables in my game called “HP” and “max_HP”
You can probably take a guess what these 2 are for but here comes my question:
At the end of chapters I want the player to auto heal and the HP to be equal to max_HP
However I seem to struggle to figure out how to do so since testing so far has resluted in errors each time.
Examples:
*set HP = max _HP
Error: combat line 3: Invalid expression at char 4, expected NUMBER, STRING, VAR or PARENTHETICAL, was: EQUALITY [=]
*set (HP) = (max_HP)
Error: combat line 3: Invalid expression; expected name, found OPEN_PARENTHESIS at char 1
So im wondering, how exactly would I reset the players health after resting/healing etc. ?
On the topic of healing I also want to avoid the player to heal over the max_HP
I THINK that can be worked around with a *if statement.*
*if HP > max_HP*
*set HP = max_HP
But again I would first need a working command to make sure HP is set to max for that also to work.
