I'm writing a game in Twine 2 using Harlowe, and getting a problem when I am trying to add a checkpoint system.
My intro contains a passage to a place where the player can enter a code, and that will take them to the respective area.
This is the error I get (podroom is the code that I am having the user enter):
"☕ podroom is not defined►
Here is my code for the "start at checkpoint" screen:
"(put: (prompt: "Enter a checkpoint code") into $checkpoint)
(if: $checkpoint is podroom)[Are you sure you want to start in the Escape pod room? Run down hallway
(set: $podroom to true)]"
Also, to clarify, $podroom is the variable that I use to check if the user has started from a checkpoint.
Also, with your code the variable $podroom will be set to true even if they don't click on yes. Is that intentional?