Go back to menu after choosing a choice? [SOLVED]
Posted: Tue Nov 04, 2014 7:45 pm
Now, I'm sure this is possible. In fact, I'm pretty sure I've seen it done somewhere in the documentation or the tutorial or something, but for the life of me I can't find it.
What I'm trying to do is give you the option to go back and choose options until you've gone through them all or gotten the right one.
Say, this is the code:
How would I go about making it so you see the menu again after clicking Choice 2?
(Preferably, I'd like to make it so Choice 2 doesn't show up again in that playthrough, but making it persistent data so it NEVER shows up again isn't what I want to do. I think I'll just add $ choice_2 = True and tell the menu to not show Choice 2 if choice_2 == True.)
What I'm trying to do is give you the option to go back and choose options until you've gone through them all or gotten the right one.
Say, this is the code:
Code: Select all
menu:
"Choice 1":
"right choice"
"Choice 2":
"wrong choice."
#lets you choose again now
(Preferably, I'd like to make it so Choice 2 doesn't show up again in that playthrough, but making it persistent data so it NEVER shows up again isn't what I want to do. I think I'll just add $ choice_2 = True and tell the menu to not show Choice 2 if choice_2 == True.)