Files

63 lines
2.1 KiB
Python

print("ATTENTION! This script is still being developed and will most likely have errors")
def dark_room():
print("You find yourself in an empty room")
def choice1():
choice = input("What will you do?\nLook around\nDo nothing\n> ")
if choice == ("Look around"):
print("You try to look around but you can't see a thing")
print("You find a light switch and turn it on")
light_room()
elif choice == ("Do nothing"):
print("You do nothing at all. It's very boring")
elif choice == ("idk"):
print("You could not make a choice as there was too many and thus you died")
else:
print("What was that? Try again")
choice1()
choice1()
def light_room():
print("You see that the room looks like a prison cell")
def bed_item():
bed_choice = input("You see a bed, what will you do?\nSleep\nLook under it\n> ")
if bed_choice == ("Sleep"):
print("You fall asleep and sleep until the next day")
bed_item()
elif bed_choice == ("Look under it"):
print("You find a key! You unlock the door")
hallway()
else:
print("Pardon?")
bed_item()
bed_item()
def hallway():
print("The hallway is very long. Where will you go?")
direction = input("Left\nRight\n> ")
if direction == ("Left"):
hallway_L()
elif direction == ("Right"):
hallway_R()
else:
print("You couldn't decide in time and a guard caught you and sent you back to your cell")
def hallway_L():
print("You go left and a prison guard catches you and sends you back to your cell")
def hallway_R():
print("You go to the right and find an exit door. Sadly, it's locked")
def key1():
key = input("What will you do?\nUse the key you had before\nLook around for another key\n> ")
if key == ("Use the key you had before"):
print("It doesn't work")
key1()
elif key == ("Look around for another key"):
print("You find ANOTHER key and unlock the door, you're free!")
print("(This prison has awful security)")
exit()
else:
print("I didn't quite hear you, try again")
key1()
key1()
key1()
dark_room()