I have stamina in my game, set to 50. The problem I’m running into is that when it comes to the player increasing their stats for the first time the stamina can dip into the negatives. I need the game to; move on after they don’t have enough stamina for another option, and leave them with left with whatever stamina they didn’t use.
My code looks like this:
*label train You have the rest of the day to do whatever you want. *choice #You could really use the practice. Train with the dummy. (Strength training) *set Strength +2 *set Stamina -20 *if Stamina >= 50 You feel yourself getting tired. (Strength +2) (Stamina -20) *goto train *else *if Stamina <= 0 *goto endday1 #I need to get faster. Run figure-eights between the dummy and the firepit. (Agility training) *set Agility +2 *set Stamina -20 *if Stamina >= 50 Don't over due it. (Agility +2) (Stamina -20) *goto train *else *if Stamina <= 0 *goto enday1 *label endday1