So I'm trying to put a global page script into my game that makes it so that when a character's hunger gets to a certain point, text will display on the page to indicate how hungry the character is. This is the gist of what I'm trying to make work:
IF %HUNGER <= 75 AND %HUNGER >= 51 THEN
$PAGETEXT := $PAGETEXT + "Alice is feeling a little peckish."
ELSE IF %HUNGER <= 50 AND %HUNGER >= 26 THEN
$PAGETEXT := $PAGETEXT + "Alice is hungry."
ELSE IF %HUNGER <= 25 THEN
$PAGETEXT := $PAGETEXT + "Alice is starving."
But when I go in to check if it's working, the text doesn't show up at all for some reason, even though clicking 'validate' isn't pulling up any outright errors.
I tried doing it this way too:
IF %HUNGER <= 75 THEN
$PAGETEXT := $PAGETEXT + "Alice is feeling a little peckish."
ELSE IF %HUNGER <= 50 THEN
$PAGETEXT := $PAGETEXT + "Alice is hungry."
ELSE IF %HUNGER <= 25 THEN
$PAGETEXT := $PAGETEXT + "Alice is starving."
... But the only thing that ever popped up was "Alice is feeling a little peckish", no matter what I had the Hunger variable set to. I'm probably just being an idiot here/overlooking some obvious solution, but I can't for the life of me figure this out. Is what I'm trying to do even possible?
EDIT: Nevermind, figured it out on my own, had it ordered wrong. It needed to be like this:
IF %HUNGER <= 25 THEN
$PAGETEXT := $PAGETEXT + "Alice is starving."
ELSE IF %HUNGER <= 50 THEN
$PAGETEXT := $PAGETEXT + "Alice is hungry."
ELSE IF %HUNGER <=75 THEN
$PAGETEXT := $PAGETEXT + "Alice is feeling a little peckish."
Whoops :P