So, I made a dungeon for my game, and I want to make a script to where once the player’s health is less than 60, then it gives the choice to use tea to heal (hard to explain why i picked tea) them. Here’s the script I tried, but didn’t work;
if hero health value <= 60
(four spaces)hero gives choices for “Darn.. I’m getting low on health. Maybe the tea will regenerate my health…”
(eight spaces)in case “>Drink Tea”
(twelve spaces)invisible_floor_switch6 says “*DRINKS TEA*”
(twelve spaces)hero loses token “Tea”
(twelve spaces)hero health value becomes 110
(twelve spaces)hero says “Guess that worked…”