I'm trying to make a game where you have a set amount of health and you have to train stats by using objects such as weights.
Each time you train your health goes down by a set amount and if you don't have health it won't let you train.
The way I've done this is to set a variable to = Characters health.
And then when you use the training object it checks if that variable is greater then the health needed.
I thought this would work as the variable should be constant to player health but for some reason it doesn't work.
Does anyone know the solution? Thank you.