Example #1
0
    def enter(self):

        print(
            "\nStanding before you is what seems to have once been a bridge, however all that remains is an impassable ravine stretching down into the abyss."
        )

        while True:

            print("\nWhat will you do?")
            print("1: Throw a rock into the ravine")
            print("2: Jump over the ravine (west)")
            print("3: Head east")

            decision = input(player.prompt)

            if decision == '1':

                print(
                    "\nYou pick up the nearest stone and drop it over the edge.  The rock is swallowed by the darkness and never makes a sound.  Strangely, the air around you feels a bit colder and you feel a slight sense of dread."
                )
                player.angered_void = True

            elif decision == '2' and player.jetpack == False:

                print(
                    "\nI said the ravine was impassable, did I not?  You fall and die.  You idiot."
                )
                return player.die()

            elif decision == '2' and player.jetpack == True:

                print(
                    "\nYou make a flying leap over the edge, and the jetpack kicks in and lifts you up."
                )

                if player.angered_void == True:

                    print(
                        "As you fly across, you feel the same sense of dread that you felt when throwing the stone down.  It feels as if... something is angry.  Suddenly, a mass of shadow rises up from the depths, and a tendril reached out and grabs you by the ankle.  It pulls you down into the abyss, but you were already dead the moment it touched you."
                    )
                    return player.die()

                print(
                    "You fly across safely, and you can't help but let out a sigh of releif as your feet alight upon the other side."
                )
                return self.move('west')

            elif decision == '3':

                return self.move('east')
Example #2
0
    def enter(self):

        print(
            "\nYou look around inside the dilapidated cell.  The bars are rusted and bent all out of shape, and the door is nonexistant.  Up above you can see the hole you fell down; it's so narrow and tall that you can't see the top.  Other than the remains of a wooden bench there isn't anything else in the cell."
        )

        while True:

            print("\nWhat will you do?")
            print("1: Leave the cell")
            print("2: Try to go back up the hole")

            decision = input(player.prompt)

            if decision == '1':

                return self.move('north')

            if decision == '2':

                if player.jetpack == True:

                    print(
                        "\nYou fly up the hole in the ceiling using the jetpack, but it's a tight fit.  Unfortunately, on the way up the jetpack's fuel supply strkes a rock and explodes."
                    )
                    return player.die()

                else:

                    print(
                        "\nYou try and jump up to the hole, however the ceiling is too high for you to reach."
                    )
Example #3
0
    def enter(self):

        print(
            "\nYou enter the east cell.  There is a mysterious package hidden underneath the wooden bench."
        )

        while True:

            print("\nWhat will you do?")
            print("1: Leave the Cell")
            print("2: Open the package")

            decision = input(player.prompt)

            if decision == '1':

                return self.move('west')

            if decision == '2':

                if player.jetpack == False:

                    print(
                        "\nYou carefully open up the package.  Inside it is a jetpack!  What luck!  It appears to be pretty old and fragile, but it could definitely help out."
                    )
                    print("\nYou obtained the jetpack!")
                    player.jetpack = True

                elif player.jetpack == True:

                    print(
                        "Unsatisfied with the jetpack, you reach back into the package for anything else, only to be greeted with an intense, sharp pain.  Inside the package is a strange looking scorpion, but before you can process it your whole body disintegrates into dust."
                    )
                    return player.die()
Example #4
0
    def enter(self):

        print(
            "The cave starts to get wider and the air a little nicer as you walk.  Up ahead, a few beams of light appear from the other end of the cavern.  But in order to get to the exit, you need to get past the dragon.  And the dragon looks hungry."
        )

        while True:

            print("\nWhat will you do?")
            print("1: Fly over the dragon with the jetpack")
            print("2: Offer yourself to the dragon")
            print("3: Flee back to the south")

            decision = input(player.prompt)

            if decision == '1':

                print(
                    "\nYou try to fly over the dragon, but the dragon merely breathes fire at you which makes the jetpack explode."
                )
                return player.die()

            elif decision == '2':

                print(
                    "\nYou realize you have no hope of defeating a dragon with no weapons, so you give up and offer yourself to the dragon, hoping that maybe it'll spare you."
                )

                if player.cursed == False:

                    print(
                        "The dragon walks up to you, sniffs you to make sure you haven't consumed any cursed water, then devours you whole"
                    )
                    return player.die()

                elif player.cursed == True:

                    print(
                        "The dragon walks up to you and sniffs you.  He detects that you have cursed water within your body and decides against eating you for now.  You use this opportunity to head north towards the mouth of the cave"
                    )
                    return 'goal'

            elif decision == '3':

                return self.move('south')
Example #5
0
    def enter(self):

        print(
            "\nYou hit a dead end in a pretty room with a waterfall pouring into a small pool of clear water.  You realize that you are quite thirsty."
        )

        drink_count = 0

        while True:

            print("\nWhat do you do?")
            print("1: Stop to take a drink")
            print("2: Head east")

            decision = input(player.prompt)

            if drink_count == 2:

                decision = '1'

            if decision == '1':

                if drink_count == 0:

                    print(
                        "\nYou decide to take a drink from the water.  It's delicious.  You feel compelled to drink it agian."
                    )
                    drink_count = 1
                    player.cursed = True

                elif drink_count == 1:

                    print(
                        "\nThe water is so good you gulp it down.  The water is cool.  The water is refreshing.  The water is all you need."
                    )
                    drink_count = 2

                elif drink_count == 2:

                    print(
                        "\nYou can't even make decisions anymore, all you can think of is drinking more water from the pool.  As you bend down to get another gulp, a beautiful water spirit materializes before your eyes and reaches her hand out to you.  Without thinking, you take it, and she abruptly pulls you under the water, which is a lot deeper than it looks from above.  You try to tell your body to wrestle free, but you've been cursed by the water and are completely helpless.  You accept your fate and drown."
                    )
                    return player.die()

            if decision == '2':

                return self.move('east')
Example #6
0
    def enter(self):

        player.prompt = "(Overgrowth) > "

        print(
            "\nYou enter a room filled with the roots from what must be a forest on the surface, so that it's hard to move around."
        )

        while True:

            print("\nWhat will you do?")
            print("1: Head north")
            print("2: Head south")
            print("3: Head east")
            print("4: Head west")

            decision = input(player.prompt)

            if decision == '1':

                print(
                    "\nYou try to head north, and see a small passageway hidden behind the roots.  You work your way over to it only to see a pair of glowing eyes looking out the darkness back at you.  Before you have time to react, whatever it was grabs you and pulls you into its den."
                )
                return player.die()

            if decision == '2':

                return self.move('south')

            if decision == '3':

                print(
                    "\nYou try to head east through the roots, only to hit a wall."
                )

                if player.jail_key == False:

                    print(
                        "However, you see a small glimmer on the ground.  You push some roots aside and grab what turns out to be a slightly rusted key.  This could come in handy."
                    )
                    print("\nYou obtained the rusty key!")
                    player.jail_key = True

            if decision == '4':

                return self.move('west')
Example #7
0
    def enter(self):

        print(
            "\nThe door to the north cell opens without a problem.  You take two steps forward and the floor starts to give.  You quickly turn around to leave, but it's too late.  The floor below you collapses and you fall towards a pit of spikes, lava, sawblades, and sharks somehow.  Must be lava sharks.  You don't die to any of that, though, you hit a rock on your way down."
        )
        return player.die()