please help a newbie to this Twine world
I want to have a correct input statement take me to a set passage.
like this
"input your code"
if code is "ABC" then go to page ABC.
if not "ABC" then "try again" loop back
... it use a <<textbox>> macro to obtain the code from the Reader, an <<if>> macro to check if the Reader entered the correct code, and a <<goto>> macro to send the Reader to the "ABC" passage.
Because you don't know if the Reader will enter uppercase or lowercase letters the above uses Javascript's toLowerCase() method to force the entered code to be a single case so it is easier to check.
Comments
Because you don't know if the Reader will enter uppercase or lowercase letters the above uses Javascript's toLowerCase() method to force the entered code to be a single case so it is easier to check.