예제 #1
0
def town1():
    pentmas.slow_txt(
        """You arrive at a small town. It is very beautiful and rustic, with mediterranean-style buildings littering
    the entirety of the area. You see several people about the town, going about what you assume are their daily tasks.
    """)
    pentmas.slow_txt(
        """Regardless, it seems that in the east there is a tavern, while in the west there is an interesting house. To the south is a stone road leading in an
    unknown direction, while to the north is the meadow you came from. What will you do?
    """)

    while True:
        choice3 = input(">>>")

        if choice3 == "go north":
            outside1()
        elif choice3 == "go east":
            tavern1()
        elif choice3 == "go west":
            inthouse()
        elif choice3 == "go south":
            castle()
        elif choice3 == "inventory":
            print(modules.items)
        elif choice3 == "quit":
            pentmas.kill()
        else:
            print("I don't understand what that means.")
예제 #2
0
def mountain():
    pentmas.slow_txt(
        "You follow the alternative trail and after many long hours you arrive at a mountain."
    )
    pentmas.slow_txt(
        "The mountain looms above your head, it is dark and reachs towards the heavens above."
    )
    pentmas.slow_txt(
        "To the north there appears to be some sort of stairway leading up the mountain, while to the west is the meadow you came from"
    )
    pentmas.slow_txt("Please choose an action...")

    while True:
        choice1 = input(">>>")

        if choice1 == "go north":
            mountain2()
        elif choice1 == "go west":
            ac2.outside1()
        elif choice1 == "inventory":
            print(modules.items)
        elif choice1 == "quit":
            pentmas.kill()
        else:
            pentmas.unknown()
예제 #3
0
def castle2():
    pentmas.slow_txt(
        "You speak to the guard and after some time he begrudgingly. allows you entry"
    )
    pentmas.slow_txt(
        "You enter the castle and arrive at a throne room. Seated at a chair at the end is the duke of the realm."
    )
    pentmas.slow_txt(
        "Obvious exits are back toward the entrance. What will you do?")

    while True:

        choice8 = input(">>>")

        if choice8 == "talk to the noble":
            if 'sword' not in modules.items:
                noble1()
            else:
                noble2()

        elif choice8 == "go back":
            castle()
        elif choice8 == "inventory":
            print(modules.items)
        elif choice8 == "quit":
            pentmas.kill()
        else:
            print("I don't understand what that means.")
예제 #4
0
def cave1():
    pentmas.slow_txt(
        "You enter the cave. It is dark and you are likely to be eaten by a grue."
    )
    pentmas.slow_txt(
        "There are two paths in the cave, one leading to the left and another to the right. To the south of you is an exit."
    )
    pentmas.slow_txt("What will you do?")

    while True:
        choice3 = input(">>>")

        if choice3 == "go left":
            pentmas.dead("You go left and encounter a GRUE! You are dead.")
        elif choice3 == "go right":
            if 'ring' not in modules.items:
                cave2()
            else:
                'You already went that way and took the ring you fool! There\'s nothing left for you there.'
        elif choice3 == "go south":
            mountain2()
        elif choice3 == "inventory":
            print(modules.items)
        elif choice3 == "quit":
            pentmas.kill()
        else:
            pentmas.unknown()
예제 #5
0
def tavern1():
    pentmas.slow_txt(
        "You go east and enter the tavern. There are several people within it, enjoying fine liquors and eating decent food."
    )
    pentmas.slow_txt(
        "From the corner of your eye you see a rather attractive barmaid. She has a medium bust and a shapely posterior."
    )
    pentmas.slow_txt("Obvious exits are west. What will you do?")

    while True:
        choice5 = input(">>>")

        if choice5 == "speak to barmaid":
            if 'ring' not in modules.items and 'quest2' not in modules.quest:
                tavern2()
            else:
                tavern3()
        elif choice5 == "go west":
            town1()
        elif choice5 == "inventory":
            print(modules.items)
        elif choice5 == "quit":
            pentmas.kill()
        else:
            print("I don't understand what that means.")
예제 #6
0
def castle():
    pentmas.slow_txt("You follow the stone road leading to the south.")
    pentmas.slow_txt(
        "After some time you arrive in front of a large stone castle. There is a guard at the front entrance."
    )
    pentmas.slow_txt(
        "Obvious exits are back north towards the town. What will you do?")

    while True:

        choice7 = input(">>>")

        if choice7 == "talk to the guard":
            castle2()
        elif choice7 == "go north":
            town1()
        elif choice7 == "go inside the castle":
            if 'sword' not in modules.items:
                print("You have to talk to the guard first.")
            else:
                castle2()

        elif choice7 == "inventory":
            print(modules.items)
        elif choice7 == "quit":
            pentmas.kill()
        else:
            print("I don't understand what that means.")
예제 #7
0
def room5():
    pentmas.slow_txt("You open the closet. It is dark, should you inspect further?")
    while True:
        choice4 = input(">>>")

        if choice4 == "inspect further":
            pentmas.dead("There was a GRUE inside. You are now dead.")
        elif choice4 == "return":
            room2()
        elif choice4 == "inventory":
                print (modules.items)
        elif choice4 == "quit":
                pentmas.kill()
        else:
            pentmas.unknown()
예제 #8
0
def room6():
    pentmas.slow_txt("There is a chest here. It is made of wood and appears to be weathered down. Do you open it?")
    while True:
        choice5 = input(">>>")

        if choice5 == "open chest":
            if 'sword' not in modules.items:
                chest()
            else:
                print ("There's nothing in the chest.")
        elif choice5 == "return":
            room2()
        elif choice5 == "inventory":
            print (modules.items)
        elif choice5 == "quit":
            pentmas.kill()
        else:
            pentmas.unknown()
예제 #9
0
def chest():
    pentmas.slow_txt("You open the chest and find a small elvish sword. It appears to be made of fine steel and decorated with silver and gold.")
    pentmas.slow_txt("Do you take it?")

    while True:
        choice6 = input(">>>")

        if choice6 == "take sword":
            modules.items.append("sword")
            room2()
        elif choice6 == "return":
            room2()
        elif choice6 == "inventory":
            print (modules.items)
        elif choice6 == "quit":
            pentmas.kill()
        else:
            pentmas.unknown()
예제 #10
0
def room3():
    pentmas.slow_txt("You go south through the window. You are now outside of the house.")
    pentmas.slow_txt("In front of you is a meadow in the SOUTH. To the EAST is a forest. And behind you in the NORTH is the window.")
    pentmas.slow_txt("Please choose an action....")

    while True:
        choice3 = input(">>>")

        if choice3 == "go south":
            ac2.outside1()
        elif choice3 == "go  east":
            outside2()
        elif choice3 == "go north":
            room1()
        elif choice3 == "inventory":
            print (modules.items)
        elif choice3 == "quit":
            pentmas.kill()
        else:
            pentmas.unknown()
예제 #11
0
def room1():
    pentmas.slow_txt("You find yourself in a small room. It is made of mostly wood.")
    pentmas.slow_txt("There is a small wooden door in the NORTH, a window in the SOUTH, and a basement enterance in the EAST.")
    pentmas.slow_txt("What will you do?")

    while True:
        choice1 = input(">>>")

        if choice1 == "go north":
            room2()
        elif choice1 == "go south":
            room3()
        elif choice1 == "go east":
            room4()
        elif choice1 == "inventory":
            print (modules.items)
        elif choice1 == "quit":
            pentmas.kill()
        else:
            pentmas.unknown()
예제 #12
0
def cave2():
    pentmas.slow_txt(
        "You go down the left path and reach a dead end. On the way however, you step on what feels like a small ring."
    )
    pentmas.slow_txt("Obvious exit is to the north. What will you do?")

    while True:
        choice4 = input(">>>")

        if choice4 == "take ring":
            modules.items.append("ring")
            cave1()
        elif choice4 == "go north":
            cave1()
        elif choice4 == "inventory":
            print(modules.items)
        elif choice4 == "quit":
            pentmas.kill()
        else:
            pentmas.unknown()
예제 #13
0
def room2():

    pentmas.slow_txt("You go NORTH and open the small wooden door. You enter another room similar to the last.")
    pentmas.slow_txt("There is closet in the WEST, a chest in the EAST, and the door to the previous room is in the SOUTH.")
    pentmas.slow_txt("Please choose an action...")

    while True:

        choice2 = input(">>>")

        if choice2 == "go west":
            room5()
        elif choice2 == "go east":
            room6()
        elif choice2 == "go south":
            room1()
        elif choice2 == "inventory":
            print (modules.items)
        elif choice2 == "quit":
            pentmas.kill()
        else:
            pentmas.unknown()
예제 #14
0
def mountain2():
    pentmas.slow_txt(
        "You climb the stairway which takes you far up into the mountain. At the end of the trail there is a cave to the north."
    )
    pentmas.slow_txt(
        "Behind you to the south is the area you came from. What will you do?")

    while True:
        choice2 = input(">>>")

        if choice2 == "go north":
            cave1()
        elif choice2 == "enter cave":
            cave1()
        elif choice2 == "go south":
            mountain()
        elif choice2 == "inventory":
            print(modules.items)
        elif choice2 == "quit":
            pentmas.kill()
        else:
            pentmas.unknown()
예제 #15
0
def outside1():
    pentmas.slow_txt(
        "You enter the meadow. There are many flowers and other small plants that litter said meadow. The day is beautiful"
    )
    pentmas.slow_txt(
        "In the distance is a trail leading further south. In the east there seems to be a trail leading in the direction of a mountain."
    )
    pentmas.slow_txt("What will you do?")
    while True:
        choice2 = input(">>>")

        if choice2 == "go south":
            town1()
        elif choice2 == "go east":
            ac3.mountain()
        elif choice2 == "go north":
            ac1.room3()
        elif choice2 == "inventory":
            print(modules.items)
        elif choice2 == "quit":
            pentmas.kill()
        else:
            print("I don't understand what that means.")
예제 #16
0
def inthouse():
    pentmas.slow_txt(
        "You approach the interesting house. It is decorated in a very strange fashion, as it is painted in a variety of different colors."
    )
    pentmas.slow_txt(
        "Obvious directions are back east to the center of the town. What will you do?"
    )

    while True:
        choice4 = input(">>>")

        if choice4 == "knock on door":
            pentmas.slow_txt(
                "You knock on the front door. A voice yells out \'Go away you fool! The day has come!\'. You are left confused."
            )
        elif choice4 == "go east":
            town1()
        elif choice4 == "inventory":
            print(modules.items)
        elif choice4 == "quit":
            pentmas.kill()
        else:
            print("I don't understand what that means.")
예제 #17
0
def end():
    ("You win! Congratuations!")
    #pentmas.slow_txt("Your score: %d" % modules.score)
    pentmas.kill()