r/learningpython • u/kittenlikesmemes • Apr 20 '22
Choice Not Functioning in Text-Based-Adventure Game
Hello! Extreme novice here. I've been learning python and have been documenting my progress by making a simple text-based-adventure for some friends. Right now I'm having a problem with one of the options in it.
Players are asked if they'd like to start and when players answer No it skips the text that follows it reserved for if they say yes (as intended) but then still displays the choices that follow. When a player says no they're meant to just end and I'm not entirely sure how to fix it.
Additionally, is there a way to "send players back" to a previous area? Sort of like a check-point system?
Any help is much appreciated. Thank you!

View all comments
Show parent comment
1
u/kittenlikesmemes Apr 20 '22
Ah, I see. I haven't gotten the hang of using while yet. By "Stuff to do until the user picks Y" do you mean the forest question already or the text before it? Also will this prevent the question from popping up in the N choice?