Beispiel #1
0
def lookAround():
    print("you glance around frantically, your heart pounding")
    sleep(1)
    print("you survived the tumbling rocks, but the way back is blocked")
    sleep(1)
    print("you'll need to find a way back")
    sleep(1)

    while True:
        print("\nlook around or hide")
        option = input("> ")

        if option == "look around" or option == "look":
            print("you come to your senses and analyze your surroundings")
            sleep(1)
            print("\nthe tunnel is dusty, making it hard to breath")
            sleep(1)
            print(
                "there is a massive thiccet in front of you, there are dead rats embedded within"
            )
            sleep(1)

            while True:
                print("\ninspect thicket or keep looking")
                option2 = input("> ")

                if option2 == "inspect thicket" or option2 == "thicket" or option2 == "inspect":
                    inspectThicket()
                    break
                elif option2 == "keep looking":
                    print(
                        "this time you notice a faint light coming through the brush "
                    )
                    sleep(1)
                    print(
                        "the way back isn't an impossible route, but you'll definitely need something to move the rockfall\n"
                    )
                    sleep(3)
                    print("you move on to the thicket...")
                    inspectThicket()
                    break
                inputError(option2)
            break

        elif option == "hide":
            sleep(3)
            print("you ball up against the wall of the cave")
            sleep(1)
            print("gripping your legs tight to your body")
            sleep(3)
            clearScreen()
            printVerySlow("you're pathetic\n")
            sleep(6)
            printSlow("\nnow get moving")
            sleep(2)
            clearScreen()
            sleep(2)
            lookAround()
            break
        inputError(option)
Beispiel #2
0
def roomsOrPaths():
    global startRoom
    print("describe paths or room?\n")

    while True:
        print("paths or room")
        option = input("> ")

        if option == "room" and startRoom == 0:
            print("the room is barren")
            print("the ceiling depicts some artistic endeavor\n")
            sleep(3)
            print("you can barely make out the hieroglyphics\n")
            sleep(2)
            print("are those... teeth?\n")
            startRoom = 1
            roomsOrPaths()
            break
        elif option == "room" and startRoom == 1:
            sleep(1)
            print("you take another glance at the painting")
            sleep(2)
            print("you see a man bleeding\n")
            roomsOrPaths()
            break
        elif option == "paths":
            paths()
            break
        inputError(option)
Beispiel #3
0
def attemptRock():
  global rubbleBlownUp
  if not rubbleBlownUp:
    print("it's darker than before, but the rubble is still there")
    sleep(1)
    print("and an explosive in your hands")
    sleep(2)
    print("\nyou need something to light the dynamite with")
    sleep(2)
  else:
    print("it's darker than before, and your ears are ringing a bit")
    sleep(1)

  while True:
    print("\nlook around?\n\nyes or no")
    option = input("> ")

    if option == "yes" and not rubbleBlownUp:
      print("you look around on the ground, pushing over rocks and feeling around on the walls")
      sleep(1)
      print("you find a piece of flint\n")
      sleep(1)
      print("you grab another rock and spark the flint over the fuse", end='')
      sleep(1)
      printVerySlow(".......")
      printSlow("\nboom!")
      rubbleBlownUp = True
      p1.inventory.remove(items.Dynamite.ID)
      sleep(2)
      print("\nthe rock was blown away, leaving a path forward")
      sleep(1)
      while True:
        print("\nkeep going or go back")
        option2 = input("> ")
        
        if option2 == "keep going":
          loreRoom()
          break
        elif option2 == "go back" or option2 == "back":
          attemptRock()
          break
        inputError(option2)
      break
    elif option == "yes" and rubbleBlownUp:
      print("the rubble is already blown up, idiot")
      sleep(2)
      print("\nyou step forward into the room")
      sleep(1)
      loreRoom()
    elif option == "no":
      print("you decide against looking around the room")
      sleep(2)
      print("\nwhy not give youself a name?")
      sleep(1)
      p1.getName()
      sleep(2)
      clearScreen()
      attemptRock()
      break
    inputError(option)
Beispiel #4
0
def findExplosive():
    global dynamite
    dynamite = 1

    print("\nyou take a step back and hit your head")
    sleep(1)
    print("\"what the f**k\" you exclaim out loud")
    sleep(2)
    print(
        "that wall was not there before, and the ceiling was definitely not that low\n"
    )
    sleep(3)
    print(
        "you turn around once more, this time you notice something on the ground\n"
    )
    sleep(2)

    while True:
        print("inspect ground?")
        sleep(1)
        print("yes or no")
        option = input("> ")

        if option == "yes":
            print("you walk over and reach down\n")
            sleep(1)
            printSlow("picked up: " + items.Dynamite.name + "\n")
            sleep(1)
            print(
                "you think you might be able to blow up the rubble and get back to the door with this"
            )
            sleep(1)
            endOfAct2()
            break
        elif option == "no":
            print("you keep looking around\n")
            sleep(1)
            print("the cave keeps changing")
            sleep(3)
            print("the walls have been morphing")
            sleep(1)
            print("the paths have been changing\n")
            sleep(1)
            printSlow("what is going on?\n")
            sleep(3)

            print("you fall down, on your knees, trembling\n")
            sleep(1)
            print("you move your hands around and feel something, you grab it")
            sleep(1)
            printSlow("picked up: " + items.Dynamite.name + "\n")
            sleep(1)
            print("what do i need this for?")
            sleep(2)
            endOfAct2()
            break
        inputError(option)
Beispiel #5
0
def jumpOrBack():
    while True:
        print("jump or go back")
        option = input("> ")

        if option == "jump":
            jump()
            break
        elif option == "go back" or option == "back":
            pastThicket()
            break
        inputError(option)
Beispiel #6
0
def inspectThicket():
    print("it's sharp through there\n")
    sleep(1)
    print("do i really need to crawl through...")
    sleep(1)

    while True:
        print("\nbe brave or cower")
        option = input("> ")

        if option == "be brave" or option == "brave":
            sleep(1)
            print("it hurts")
            sleep(1)
            print("\nthe light gets stronger... it's blinding")
            sleep(2)
            print(
                "you emerge into a tight tunnel, the walls practically suffocating you"
            )
            sleep(1)
            print("you see only one way forward")
            sleep(1)

            while True:
                print("\nkeep going or go back")
                option2 = input("> ")

                if option2 == "keep going":
                    pastThicket()
                    break
                elif option2 == "go back" or option2 == "back":
                    differentArea()
                    break
                inputError(option2)
            break
        elif option == "cower":
            sleep(1)
            print("\nthe light beyond the thicket screams")
            sleep(1)
            print("you close your eyes but its still blinding\n")
            sleep(1)
            printSlow("you can't think\n")
            sleep(3)
            clearScreen()
            lookAround()
            break
        inputError(option)
Beispiel #7
0
def jump():
    sleep(3)
    print("you prepare youself, and get ready to jump\n")
    sleep(2)
    print("you throw youself forward", end='')
    printSlow("...")
    sleep(1)
    print("\nbut your foot gets caught on a rock\n")
    sleep(3)
    print("you're dangling out over the ledge, staring down at the void")
    sleep(5)
    clearScreen()
    printSlow("the blackness is calling out to you, urging you forward\n")
    sleep(2)
    print("you feel a deep rumble throughout the cavern\n")
    sleep(6)
    print("you scramble to get your grip again")
    sleep(1)
    print(
        "hoisting youself back onto the ledge you just tried to throw yourself off of\n"
    )
    sleep(4)

    print("you back up\n")
    sleep(1)
    while True:
        print("try again or go back")
        option = input("> ")

        if option == "try" or option == "try again":
            print("you back up and breathe, preparing to go again")
            sleep(3)
            print("but something is different\n")
            sleep(1)
            print("the tunnels seem off again")
            sleep(3)
            findExplosive()
            break
        elif option == "back" or option == "go back":
            print(
                "you decide jumping off of a cliff might have been a bad idea")
            sleep(2)
            print("you turn to head back")
            sleep(2)
            findExplosive()
            break
        inputError(option)
Beispiel #8
0
def beginStory():
    print("you wake up, your head hurts\n")
    sleep(1)
    print(
        "it's dark all around, but there is a small unlit lantern next to you, light it?\n"
    )
    sleep(1)

    while True:
        print("leave it or light it")
        sleep(1)
        option = input("> ")

        if option == "leave it":
            start()
            break
        elif option == "light it":
            print("you're embraced by a comforting warmth\n")
            sleep(2)
            lightIt()
            break
        inputError(option)
Beispiel #9
0
def paths():
    print(
        "the path in front of you seeps cold air, and appears as a dark hole in the wall, there is a faint howl\n"
    )
    sleep(2)
    print("maybe wind, maybe beast\n")
    sleep(2)
    print("the path behind is shut by a door\n")

    while True:
        print("inspect door, through hole, back")
        option = input("> ")

        if option == "inspect door" or option == "door":
            inspectDoor()
            break
        elif option == "through hole" or option == "hole":
            throughHole()
            break
        elif option == "back":
            roomsOrPaths()
            break
        inputError(option)
Beispiel #10
0
def throughHole():
    global uselessKey
    sleep(1)
    print("the air gets noticeably colder, the howl ceases\n")
    sleep(1)
    print(
        "it's very dark, you find yourself stumbling, however you can see a faint glow further on\n"
    )
    sleep(1)
    print("keep going?\n")

    while True:
        print("keep going or go back")
        option = input("> ")

        if option == "keep going" and uselessKey == 0:
            sleep(1)
            print(
                "you come to a bend in the tunneling, a key is stuck in the ground"
            )
            sleep(1)
            print("pick it up?\n")

            while True:
                print("pick it up or keep going")
                option2 = input("> ")

                if option2 == "pick it up" or option2 == "pick up":
                    uselessKey = 1
                    print("picked up: " + items.UselessKey.name + "\n")
                    sleep(1)

                    while True:
                        print("keep going or go back")
                        option3 = input("> ")

                        if option3 == "keep going":
                            furtherInTheHole()
                            break
                        elif option3 == "back" or option3 == "go back":
                            paths()
                            break
                        inputError(option3)
                    break
                elif option2 == "keep going":
                    furtherInTheHole()
                    break
                inputError(option2)
            break
        elif option == "keep going" and uselessKey == 1:
            furtherInTheHole()
            break
        elif option == "go back" or option == "back":
            paths()
            break
        inputError(option)
Beispiel #11
0
def differentArea():
    print("you crawl back the way you came, but something's different\n")
    sleep(1)
    print("the walls seem different")
    sleep(1)
    print("the thicket is gone")
    sleep(3)
    print("\nthis doesn't make sense")
    sleep(1)
    print("your heart rate picks up\n")
    sleep(2)
    while True:
        print("look around or go back")
        option = input("> ")

        if option == "look" or option == "look around":
            print("you stop for a second and really look around\n")
            sleep(3)
            print("the walls are deformed, spikes coming in on all sides")
            sleep(2)
            print("there's a wretched smell hanging in the air")
            sleep(2)
            print(
                "it seems like the cave might close in on you at any second\n")
            sleep(3)
            printSlow("you start to panic\n\n")
            sleep(3)
            while True:
                print("keep looking or go back")
                option2 = input("> ")

                if option2 == "keep looking" or option2 == "keep":
                    sleep(2)
                    print(
                        "the more you look aroud the more terrified you become"
                    )
                    sleep(2)
                    print(
                        "you try to keep crawling forward but your arms give out\n"
                    )
                    sleep(2)
                    printSlow("your vision goes black......\n")
                    sleep(6)
                    clearScreen()
                    inspectThicket()
                    break
                elif option2 == "go back" or option2 == "back":
                    sleep(1)
                    print(
                        "you decide to head back before anything gets any wierder"
                    )
                    sleep(1)
                    print(
                        "quickly turning around you manage to bump your head a bit, but you push on\n"
                    )
                    jump()
                    break
                inputError(option2)
            break
        elif option == "back":
            print("you rub your eyes, you must be seeing things")
            sleep(1)
            print(
                "you turn back around and go the other way towards the sound of water"
            )
            sleep(2)
            jump()
            break
        inputError(option)
Beispiel #12
0
def pastThicket():
    print("you keep crawling for a bit")
    sleep(1)
    print(
        "\nyour hands slip and you realize your hanging out over a large ravine"
    )
    sleep(1)
    print(
        "you scramble to get your grip, and do, but there is no easy way down")
    sleep(1)
    print(
        "\nit's too dim to tell, but it sounds like there could be water below you\n"
    )
    sleep(1)
    while True:
        print("throw something or jump")
        option = input("> ")

        if option == "throw something" or option == "throw":
            global p1
            print("you fumble around in your pockets for a bit", end='')
            printVerySlow("...")
            sleep(1)
            if items.UselessKey.ID in p1.inventory:
                print("\nyou feel the " + items.UselessKey.name +
                      " that you picked up earlier")
                sleep(1)
                while True:
                    print("\nthrow it?\nyes or no")
                    option2 = input("> ")

                    if option2 == "yes":
                        print(
                            "you decide throwing the key is the best option to test for water"
                        )
                        sleep(1)
                        print("\nyou throw the key", end='')
                        printVerySlow(".........")
                        sleep(2)
                        p1.inventory.remove(items.UselessKey.ID)
                        print("\n\nyou hear a splash")
                        sleep(3)
                        print("the water seems safe to land in\n")
                        sleep(2)
                        jumpOrBack()
                        break
                    elif option2 == "no":
                        print("you decide against throwing the key")
                        sleep(1)
                        print("there aren't any other options\n")
                        sleep(1)
                        jumpOrBack()
                        break
                    inputError(option2)
                break
            else:
                print("\nyou can't seem to find anything to throw")
                sleep(1)
                print("and you figure throwing the lamp might be a bad idea\n")
                sleep(1)
                print("you don't really have any other options\n")
                sleep(1)
                jumpOrBack()
        elif option == "jump":
            jump()
            break
        inputError(option)
Beispiel #13
0
def loreRoom():
  print("you emerge into a very odd room\n")
  sleep(1)
  print("the room is small, with many paths leading to other rooms")
  sleep(2)
  print("there are slimy, tentacle-like apendages rising from the ground")
  sleep(2)
  print("straight ahead is a word engraved on the wall: ", end='')
  sleep(1.5)
  printVerySlow("Arenam")
  sleep(3)
  print("\n\nin the middle of the room sits a podium\n")
  sleep(1)
  while True:
    print("investiage podium or go back")
    option = input("> ")

    if option == "investigate":
      print("you step up to the podium")
      sleep(1)
      print("on it lies a rusty dagger")
      sleep(1)
      while True:
        print("\ntake the dagger?\n\nyes or no")
        option2 = input("> ")

        if option2 == "yes":
          sleep(1)
          print("you pick up the dagger")
          sleep(1)
          print("you spin it around", end='')
          sleep(1.5)
          print(", admiring its rust", end='')
          sleep(1.5)
          print(", its fragility", end='')
          sleep(1.5)
          print(", and its shittiness")
          sleep(2)
          printSlow("equipped: " + items.RustyDagger.name + "\n\n")
          p1.weapon = items.RustyDagger()
          sleep(1)
          break
        elif option2 == "no":
          sleep(1)
          print("upon further consideration...")
          sleep(3)
          print("weapons are overrated")
          sleep(2)
          print("punching everything to death is way more fun anyway\n")
          sleep(2)
          break
        inputError(option2)
      # Continuing whether player has dagger or not
      print("you continue on through the room")
      sleep(1)
      print("your " + p1.weapon.name + " at the ready")
      sleep(2)
      print("\nin your excitement you failed to notice a book at your feet")
      sleep(1)
      print("you pick it up to find the book is torn, burned, and stained\n")
      sleep(2)
      print("flipping through the pages there is one excerpt still intact")
      sleep(2)
      print("it reads:\n")
      sleep(3)
      readBook()
      sleep(6)
      print("\nyou close the book\n\n")
      sleep(1)
      combatRooms()
      break
    elif option == "go back" or option == "back":
      attemptRock()
      break
    inputError(option)