maybe you can use a list? I'll write some code, wait a bit.
EDIT:
here's what I think you wanted to do:
Code: Select all
label start:
#left is 1, right is 2, correct_path defines the right path, if the player chooses a different one he has to start over
#the correct path in this one is left, left, right, left, left, left, right
$ correct_path=[1,1,2,1,1,1,2]
$ numberofsteps=0
jump maze
label maze:
if numberofsteps==len(correct_path):
jump mazeend
menu:
"Left":
"I go to the left"
if correct_path[numberofsteps]==1:
$ numberofsteps+=1
jump maze
else:
jump mazefail
"Right":
"I go to the right"
if correct_path[numberofsteps]==2:
$ numberofsteps+=1
jump maze
else:
jump mazefail
label mazefail:
"fail"
"start over"
$ numberofsteps=0
jump maze
label mazeend:
"YOU WIN!!"
EDIT 2:
Oops, I didn't read it completely, if you want to make different choices available or not depending on the previous choose, you may make them depend on the number of steps. For example, if you want to make it possible for the steps number 4 and 6, you make an if statement that looks like:
My avatar art is a freebie by SilverHyena. Thanks a lot!