Mar-18-2022, 10:56 AM
(This post was last modified: Mar-18-2022, 01:35 PM by Yoriz.
Edit Reason: Added code tags
)
Hi. I am new to Python so I'm not that skilled. As I was coding my game, I realised something was up. When I went to play it and I inserted my name, nothing happened afterwards. Can someone please help me?
My Code:
My Code:
print("---- SPIRIT DUNGEONS COMING SOON ----") question = input("Story Mode or Dungeons?") if question == "Story Mode": question = input("What Chapter?") if question == "1": question = input("Please enter your name... ") if question == "0318": print("Wait..what just happened? Looks like you've been teleported to a mysterious locker...it smells very putrid...") question = input("Will you open it? Yes/No") if question == "Yes": print("Collected Knife 1/3!") question = input("Please enter your name...") if question == "No": question = input("Please enter your name...") print "Welcome", question + ". You find yourself stuck in a haunted mansion. There are ghosts and demons hiding in every alleyway so to escape, you musn't make a wrong turn." else: print "Welcome", question + ". You find yourself stuck in a haunted mansion. There are ghosts and demons hiding in every alleyway so to escape, you musn't make a wrong turn." question = input("Left or Right? ") if question == "Left": print("There was a ghost...You Died! Press the STOP button two times to restart!") if question == "Right": print("Good decision.") No = input question = input("You found a set of stairs. Do you go down them? Yes/No") if question == "No": print("Oh no! There is a demon! Looks like you're dead...Press the STOP button two times to restart!") if question == "Yes": print("Nice job!") Fight = input question = input("Oh no! You've encountered a ghost! Run or Fight? Run/Fight") if question == "Fight": print("You couldn't even land a single hit on it! Better luck next time! Press the STOP button two times to restart!") if question == "Run": print("You ran faster than you ever have and the ghost couldn't keep up! Nice running!") No = input question = input("You see a knife on the kitchen table. Do you pick it up? Yes/No") if question == No: print("Huh...") else: print("Collected Knife 2/3!") Yes = input question = input("Search the drawers for more? Yes/No") if question == "Yes": print("Collected Knife 3/3!...") Run = input question = input("...but a ghost came out! Run/Fight?") if question == "Run": print("Well, looks like the ghost caught up this time! Press the STOP button two times to restart!") if question == "Fight": print("Looks like that new knife came in handy! You defeated it!") print("You picked up a Ghost Soul!") print("Ghost Souls can be used to reforge your sword if it breaks.") print("It looks like the door is not far away!...but you'll need to get through a couple more rooms.") question = input("Enter Bathroom or Living Room?") if question == "Bathroom": question = input("Pick up Soap Bar? Yes/No") if question == "Yes": print("You picked up a Soap Bar!") question = input("A Wild Demon Appeared! What do you do? Fight/Block") if question == "Fight": print("You threw the Soap Bar at it! You Died! Press the STOP button two times to restart!") if question == "Block": print("Nice job! You blocked it's attack! Now hit it with your knife while it's paralysed!") question = input("Type KNIFE to defeat it!") if question == "KNIFE": print("Good Job! You killed it!...literally!") print("Just one more room to go!") question = input("Basement or Bedroom?") if question == "Basement": print("It's dark..you can't see anything...where is the light?") print("...") print("...") print("...") print("AHHH!! YOU GOT JUMPSCARED BY A GHOUL.") print("It's trying to posess you!") question = input("Think fast! Fight/Block") if question == "Fight": print("You hit it!..but it broke! It did no damage!") print("I would use that Ghost Soul right about now if I were you...!") question = input("Use Ghost Soul? Yes/No") if question == "Yes": print("Sword Repaired! It's 25x stronger than it was before! Oops, I may have forgotten to tell you, if you use your Ghost Soul it will not only reforge your sword, but it will make it 2x-50x stronger!") question = input("Quick! Fight/Block") if question == "Fight": print("...") print("It's...") print("it's..dead...") print("You did it! Now just head to the door!") question = input("Exit Haunted Mansion?") if question == "Yes": print("Developed by -") print("Thanks for Playing!") print("G A M E O V E R") print("0318?")I didn't get an error message.