def HOP(): actions=["inspect","leave"] print("you find the paintings staring at you how creepy") userInput = "" while userInput not in directions: print("Options: inspect/leave") userInput = input() if userInput == "inspect": print("you found an old paper that reads 'the place where the four elements sun earth water and wind meet lies a great fortune.'") print("you have found a clue to trasure lets get back to the starting point to explore more rooms and find unimaginable treasure") level2() elif userInput == "leave": print("what rotten luck lets head back quickly") level2() else: print("Please enter a valid option.") def TGWR(): actions=["inspect","leave"] print("Even with how old the castle is the weapons are surprizingly sharp") userInput = "" while userInput not in directions: print("Options: inspect/leave") userInput = input() if userInput == "inspect": print("you found a shining dagger. upon inspection you find strage scriptures on it. Impossible! you can read the scriptures even when you dont recognise the language") print("you have found a new clue that says 'the place where the four elements sun earth water and wind meet lies a great fortune.' lets get back to the starting point to explore more rooms and find unimaginable treasure") level2() elif userInput == "leave": print("what rotten luck lets head back quickly") level2() else: print("Please enter a valid option.") def EB(): actions=["inspect","leave"] print("Even with how old the castle is the weapons are surprizingly sharp") userInput = "" while userInput not in directions: print("Options: inspect/leave") userInput = input() if userInput == "inspect": print("you found strange writings on a curtain. Impossible! you can read the strange writings even when you dont recognise the language") print("you have found a new clue that says 'the place where the four elements sun earth water and wind meet lies a great fortune.' lets get back to the starting point to explore more rooms and find unimaginable treasure") level2() elif userInput == "leave": print("what rotten luck lets head back quickly") level2() else: print("Please enter a valid option.") def MG(): actions=["inspect","leave"] print("how beautiful how have the flowers not wilted") userInput = "" while userInput not in directions: print("Options: inspect/leave") userInput = input() if userInput == "inspect": print("you found a sign board that leads you to the green house . you arrive at the green house and see strange writings. Impossible! you can read the strange writings even when you dont recognise the language") print("you have found a new clue that says 'the place where the four elements sun earth water and wind meet lies a great fortune.'. you found unimaginable treasure filled with gold , gemstones , land deeds and so much more") print("you find a note in the treasure that reads 'the lore of the great castle is not something meant for mere mortals adventurer LEAVE NOW AND NEVER RETURN ELSE BE PREPARED TO DIE!!!!!'") print("not wanting to die you leave the castle quickly") quit() elif userInput == "leave": print("what rotten luck lets head back quickly") level2() else: print("Please enter a valid option.") def level2(): print("you can go to multiple places through the teleportation portal and discover the mysteries of the cursed castle ") directions = ["hall of paintings", "the great weapon room", "enchanted ballroom" , "mesmerising grdens"] print("You are at a crossroads, and you can enter the portal to reach any of the four mysterious places. Where would you like to go?") userInput = "" while userInput not in directions: print("Options: HOP/TGWR/EB/MG") userInput = input() if userInput == "HOP": showHallOfPaintings() elif userInput == "TGWR": showTheGreatWeaponRoom() elif userInput == "EB": showEnchantedBallroom() elif userInput == "MG": showMesmerisingGardens() else: print("Please enter a valid option.") if __name__ == "__stage-2__": while True: print("oh no looks like escaping the maze alone was not enough! , we have ended up in the cures castle after going through the exit") print("i pray you stay safe adventurer may the gods show you light!") print("find exit ways out of multiple rooms in the cursed castle ") print("all the best") print("Say the magic words to enter the teleportation portal (EtheriaNexus): ") words = input().capitalize() if words==EtheriaNexus: print("let the journey begin") level2()
Quote:if __name__ == "__stage-2__":
if __name__ == "__main__":
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)