So I've basically set up a Hunger variable, the idea being 100 means you're full and 0 means you're starving. Food will increase it and actions or time depletes it. Thing is though could anyone please explain to me how to prevent the variable from rising above 100 or going below 0?
Also, if that's possible, how would I apply the variable number to a damage formula please?
I'm wanting it so the more hungry you are the less energy you have thus the damage being dished out will reduce cos you wont have as much power to swing the sword lol.
Also, if that's possible, how would I apply the variable number to a damage formula please?
I'm wanting it so the more hungry you are the less energy you have thus the damage being dished out will reduce cos you wont have as much power to swing the sword lol.