Exemple #1
0
def enter_reception():
    os.system("cls")
    reception_story = [
        """
    \n
    You enter the reception of the motel, Norman looks at you menacingly next to the rear exit,
    you can see eight rooms along the corridor to your left.
    \n
    """
    ]
    read_text.read_letters(reception_story)
    options = [
        "\n", "    What would you like to do?",
        "    Go to (C)orridor or (F)ight Norman"
    ]
    option_list = ["c", "f"]
    read_text.read_line(options)
    cont = False
    while cont == False:
        answer = get_response(option_list)
        if answer == "i" or answer == "q":
            os.system("cls")
            option_functions.other_options(answer)
            read_text.read_line(options)
        elif answer == "s":
            os.system("cls")
            cont = True
            enter_reception()
        elif answer == "c":
            enter_corridor()
            cont = True
        elif answer == "f":
            fight.fight_norman()
Exemple #2
0
def end():
    read_letters("""\n\n    Norman falls to his knees, a shiny key with a skull on the end
    falls out of his pocket as he hits the ground, this is your chance to leave!
    You rush to grab the key as fast as you put it in the door.
    You turn the lock to here a click. You open the door and leave.
    Goodbye Bates Hotel, you're free from this nightmare that once was.....

                                              """)
    read_letters("         Right?...   \n")
    sys.exit()
Exemple #3
0
def enter():
    global umbrella
    os.system("cls")
    room_three_story = [
    """
    \n
    You enter room three, there is a bed in the room, a table and chairs. You search\n    under the bed but there is nothing there. There looks to be something\n    behind the door. 
    """
    ]
    read_text.read_letters(room_three_story)
    options =[
        "\n",
        "    What would you like to do?",
        "    (L)ook behind door, Look under (B)ed or go back to (C)orridor"
    ]
    read_text.read_line(options)
    cont = False
    while cont == False:
        key_pressed = msvcrt.getch().decode().lower() # gets the key pressed
        if key_pressed == "i" or key_pressed == "q":
            os.system("cls")
            option_functions.other_options(key_pressed)
            read_text.read_line(options)
        elif key_pressed == "s":
            os.system("cls")
            cont = True
            enter()
        elif key_pressed == "l":
            if umbrella == False:
                print("""
                You find an umbrella and pick it up.
                """
                )
                umbrella = True
                inventory.add_item("Umbrella")
            else:
                print("""
                You already have the umbrella.
                """
                )
            read_text.read_line(options)
        elif key_pressed == "b":
            print("""
                There is nothing under the bed.
                """
                )
            read_text.read_line(options)
        elif key_pressed == "c":
            motel_navigation.enter_corridor()
            cont = True
Exemple #4
0
def get_inventory():
    global held_item
    time.sleep(.8)
    number = 0
    num_of_items = len(inventory)
    print(f"""\n -------------------
      You are about to fight Norman Bates!
      
      INVENTORY
    -------------------
    Current Held Item: {held_item}
    You have {num_of_items} items:""")
    for i in inventory:
        number += 1
        print(f" {number}  {i}")
    print(" -------------------")
    cont = True
    while cont == True:
        read_text.read_letters(
            "\n\nPress (E) to equip an item, (R) to return to the Reception\n")
        answer = msvcrt.getch().decode().lower()
        if answer == "e":
            read_text.read_letters("What number item would you like to equip?")
            answer = int(msvcrt.getch().decode().lower())
            held_item = inventory[answer - 1]
            read_text.read_letters(f"\nYou are now holding {held_item}\n")
            cont = False
        elif answer == "r":
            motel_navigation.enter_reception()
Exemple #5
0
def retry():
  read_letters("Would you like to try again? Y/N\n")
  reset = msvcrt.getch().decode().lower()
  if reset == "y":
    motel_navigation.enter_corridor()
  elif reset == "n":
    read_letters("Thank you for playing!")
    sys.exit()
  else:
    read_letters("Please enter Y/N\n")
    retry()
Exemple #6
0
def fight_norman():
    global firsttime
    global your_hp
    global norm_health
    if firsttime == 0:
        firsttime += 1
        your_hp = 15
        norm_health = 20
    inventory.get_inventory()
    if inventory.held_item == "Fists":
        your_atk = random.randint(1, 2)
    elif inventory.held_item == "Gun":
        your_atk = random.randint(10, 15)
    elif inventory.held_item == "Crowbar":
        your_atk = random.randint(2, 4)
    elif inventory.held_item == "Starting pistol":
        your_atk = random.randrange(1, 9, 2)
    elif inventory.held_item == "Rusty Knife":
        your_atk = 0
    elif inventory.held_item == "Bow and arrow":
        your_atk = random.randrange(1, 8)
    elif inventory.held_item == "Manual Revolver":
        your_atk = random.randrange(1, 10, 3)
    elif inventory.held_item == "Umbrella":
        your_atk = random.randint(1, 3)
    elif inventory.held_item == "Hunting knife":
        your_atk = random.randint(3, 6)
    else:
        your_atk = 0
    f = False
    while f == False:
        if your_hp <= 0:
            read_text.read_letters(
                """\033[1;31;40m\n    Norman triumphs over you, resulting in the end of your life.
    Unfortunately Norman Bates was the last face you ever saw
    And his reign of terror will proceed to rage on.\n""")
            your_hp = 15
            norm_health = 20
            firsttime -= 1
            f = True
            retry.retry()
        read_text.read_letters(
            f"\033[1;37;40m\n    What would you like to do?:\n")
        print(
            f"\033[1;37;40m    (A)ttack Norman with {inventory.held_item}\n(D)istract Norman\n(R)eturn to reception\n"
        )
        answer = msvcrt.getch().decode().lower()
        if answer == "a":
            norm_health -= your_atk
            if your_atk == 0:
                read_text.read_letters(
                    f"\033[1;31;40m    Norman chuckles. You honestly thought your {inventory.held_item} would do something to me? FOOL\n     Norman took no damage from that attack and launches you back into the reception\n"
                )
                f = True
                motel_navigation.enter_reception()
            elif norm_health > 16:
                read_text.read_letters(
                    f"\033[1;31;40m    You hit Norman for {your_atk} damage\n    'I appreciate the effort but you've barely wounded me!'\n"
                )
                read_text.read_letters(
                    f"\033[1;31;40m    Norman has {norm_health} hp left\n")
                norm_atk = random.randint(1, 4)
                your_hp -= norm_atk
                read_text.read_letters(
                    f"\033[1;37;40m    Norman hits you for {norm_atk} hp,\n    Watch out, you only have {your_hp} hp left\n"
                )
            elif norm_health <= 16 and norm_health > 12:
                read_text.read_letters(
                    f"\033[1;31;40m\n    You hit Norman for {your_atk} damage\n    'You really think this is hurting me?' Norman exclaims\n"
                )
                read_text.read_letters(
                    f"\033[1;31;40m    Norman has {norm_health} hp left\n")
                norm_atk = random.randint(2, 5)
                your_hp -= norm_atk
                read_text.read_letters(
                    f"\033[1;37;40m    Norman hits you for {norm_atk} hp,\n    Watch out, you only have {your_hp} hp left\n"
                )
            elif norm_health <= 12 and norm_health > 6:
                read_text.read_letters(
                    f"\033[1;31;40m    You hit Norman for {your_atk} damage\n    'You're not doing a great job!' Normal stumbles as he proclaims\n"
                )
                read_text.read_letters(
                    f"\033[1;31;40m    Norman has {norm_health} hp left\n")
                norm_atk = random.randint(1, 5)
                your_hp -= norm_atk
                read_text.read_letters(
                    f"\033[1;37;40m    Norman hits you for {norm_atk} hp,\n    Watch out, you only have {your_hp} hp left\n"
                )
            elif norm_health <= 6 and norm_health >= 1:
                read_text.read_letters(
                    f"\033[1;31;40m    You hit Norman for {your_atk} damage\n    'I told you I'm not letting you leave here alive!' Normal shouts with murderous intent\n"
                )
                read_text.read_letters(
                    f"\033[1;31;40m    Norman has {norm_health} hp left\n")
                norm_atk = random.randint(2, 6)
                your_hp -= norm_atk
                read_text.read_letters(
                    f"\033[1;37;40m    Norman hits you for {norm_atk} hp,\n    Watch out, you only have {your_hp} hp left\n"
                )
            elif norm_health < 1:
                read_text.read_letters(
                    "\033[1;31;40\n    You hit Norman for the remainder of his health."
                )
                read_text.read_letters(
                    "\033[1;31;40m\n    'Impossible, you...    Can't...             L e a v e......'"
                )
                firsttime -= 1
                f = True
                retry.end()
        elif answer == "d":
            read_text.read_letters(
                "    Norman doesn't fall for your pitiful attempt to point and distract him,\n    He proceeds to launch you back into the reception.\n"
            )
            f = True
            motel_navigation.enter_reception()
        elif answer == "r":
            read_text.read_letters(
                "    You decide to return to the reception. Probably for the better..."
            )
            f = True
            motel_navigation.enter_reception()
Exemple #7
0
def enter():
    global bed
    global knife
    os.system("cls")
    room_one_story = [
        """
    \n
    On entering room one you see a comfortable bed which makes you feel weary, moving towards the bed you 
    step on a squeaky floorboard and examine it, hmmm, seems you could pull it up with a bit of force. The 
    window in the room looks like a way of escape and looking out you see a kennel with four vicious looking 
    dogs who stare at you and begin to snarl.
    \n
    """
    ]
    read_text.read_letters(room_one_story)
    options = [
        "\n", "    What would you like to do?",
        "    (L)ie on bed, (E)scape through window, (R)aise floorboard of go back to (C)orridor"
    ]
    read_text.read_line(options)
    cont = False
    while cont == False:
        key_pressed = msvcrt.getch().decode().lower()  # gets the key pressed
        if key_pressed == "i" or key_pressed == "q":
            os.system("cls")
            option_functions.other_options(key_pressed)
            read_text.read_line(options)
        elif key_pressed == "s":
            os.system("cls")
            cont = True
            enter()
        elif key_pressed == "l":
            if bed == False:
                read_text.read_letters(
                    "\n    You lie on the bed, as your eyes gaze up you notice four numbers scrawled on the cieling in blood, hmmm \n    what could they mean, you commit the numbers to memory and decide to get up off the bed."
                )
                inventory.add_item("Numbers off ceiling = 8374")
                bed = True
                read_text.read_line(options)
            else:
                read_text.read_letters(
                    "\n    You have already had a lie down, get on with it man, your life is in danger!"
                )
                read_text.read_line(options)
        elif key_pressed == "e":
            read_text.read_letters(
                "\n    You decide to make a break for it and jump out of the window, just as you land on the grass you notice\n    that the dogs are not chained up, as they run at you despair creeps in and you fall to the ground. The\n    dogs reach you and begin to rip you apart. THe game is over for you my friend, you are never seen again!"
            )
            print("\n\n\n       (Press spacebar to (Q)uit")
            qui = False
            while qui == False:
                q = msvcrt.getch().decode().lower()
                if q == " ":
                    qui = True
                    quit()
        elif key_pressed == "r":
            if knife == False:
                read_text.read_letters(
                    "\n    You manage to force the floorboard from its nails and looking under the floor you see something glint\n    in the dim light, on further investigation you discover a hunting knife which you quickly pun in your\n    pocket with intentions of using it to get past Norman!"
                )
                inventory.add_item("Hunting knife")
                knife = True
                read_text.read_line(options)
            else:
                read_text.read_letters([
                    "\n    You lift the floorboard again but there is nothing else there!"
                ])
                read_text.read_line(options)
        elif key_pressed == "c":
            motel_navigation.enter_corridor()
            cont = True
Exemple #8
0
def story_begin():
    os.system("cls")
    print("""
    \033[1;36;40m ____        _   
    |  _ \      | |  
    | |_) | __ _| |_   ___  ___ 
    |  _ < / _` | __| / _ \/ __|
    | |_) | (_| | |_ |  __/\__ \ 
    |____/_\__,_|\__|_\___||___/.  
    \033[1;31;40m|  ____________________  |  |
    \033[1;31;40m| | \033[1;30;40m[|]\033[1;33;40m[|]\033[1;30;40m[|]\033[1;33;40m[|][|][|] \033[1;31;40m| |  |
    \033[1;31;40m| | \033[1;33;40m[|][|]\033[1;30;40m[|]\033[1;33;40m[|]\033[1;30;40m[|][|] \033[1;31;40m| |  |
    \033[1;31;40m| | \033[1;33;40m[|]\033[1;30;40m[|][|][|]\033[1;33;40m[|]\033[1;30;40m[|] \033[1;31;40m| |  |
    \033[1;31;40m| | \033[1;33;40m[|][|][|]\033[1;30;40m[|][|]\033[1;33;40m[|] \033[1;31;40m| |  |
    \033[1;31;40m| | \033[1;33;40m[|]\033[1;30;40m[|]\033[1;33;40m[|][|]\033[1;30;40m[|][|] \033[1;31;40m| |  |
    \033[1;31;40m| | \033[1;30;40m[|][|]\033[1;33;40m[|]\033[1;30;40m[|][|]\033[1;33;40m[|] \033[1;31;40m| |  |
    \033[1;31;40m| | \033[1;33;40m[|]\033[1;30;40m[|]\033[1;33;40m[|]\033[1;30;40m[|]\033[1;33;40m[|][|] \033[1;31;40m| |  |
    \033[1;31;40m| |____________________\033[1;31;40m| |  |
    \033[1;31;40m|___________________________|
    \033[1;31;40m|\033[1;33;40m[][][][][][][][][][][] \033[1;31;40m|   |
    \033[1;31;40m|\033[1;33;40m[][][][][][][][][][][] \033[1;31;40m|   |
    \033[1;31;40m|\033[1;33;40m[][][][][][][][][][][] \033[1;31;40m|   |
    \033[1;31;40m|__________\033[1;37;40m||\033[1;31;40m___________\033[1;31;40m|___|"""
          )
    time.sleep(2)
    os.system("cls")

    print("""
            _______                        
           |       |              
       ____|_______|____       
          // ~~ ~~ \\               
         /\  O| |O  /\            
         \_   (_)   _/         ___________________         ________________________
           \  ___  /          |___________________|       |________________________|
            \_____/             |\ ___________ /|         |        /             / |
       _____|_____|_____        | |  /|,| |   | |         |       /         /   /  |
      /    /\    /\     \       | | |,x,| |   | |         |      /         /   /   |
     |     \ \  / /      |      | | |,x,' |   | |         |     /   /     /   /    |
     |   |  \ \/ /   |   |      | | |,x   ,   | |         |        //    /         |
     |   |   \ \/    |   |      | | |/    |   | |         |       //           /   |
     |   |    \o\    |   |      | |    /] ,   | |         |  /    /           /    |
     |   |    | |    |   |      | |   [/ ()   | |         | /    /     /     /     |
     |   |    |o|    |   |      | |       |   | |         |/          /     /      |
     |   |    | |    |   |      | |       |   | |         |========================|
     |   |    |o|    |   |      | |       |   | |
     |___|    | |\   |___|      | |      ,'   | |
     /   \___/_/\_\__/   \      | |   ,'      | |
     \\\\_\         /_////______|_|,'_________|_|______________________________________
      \\\)     |     (///         
        | ___  | ___  |         
        |      |      |   

\033[1;37;40m
         This game was created by
        Colin, Deano, John and Wayi   

        Press Space to continue......       
    """)
    c = False
    while c == False:
        key_pressed = msvcrt.getch().decode().lower()
        if key_pressed == " ":
            c = True
    os.system("cls")

    beginning_story = [
        """

    

          'Hello and welcome to Bates Motel', said the strange looking man
    outside the entrance of a seedy looking, run down motel.
            
        He walks through the creaking front entrance and beckons you inside.
    You follow him in, and on entering the reception hall you see a corridor with eight rooms to
    to your left. The strange man walks over to the back door at the other end of the reception room
    as the entrance door slams shut behind you. A fear falls over you, deciding to leave, you
    try to open the front door you find it is jammed tight with no way of escaping.
            
        Asking the strange man that you wish to go he replies 'I am Norman Bates
    and you will never leave here alive!'. He stands blocking the only way out... the door
    at the other side of reception, panic sets in and the only options you have are to fight
    Norman or enter the corridor and try to find something in one of the motel rooms to help you.


    Pressing (i) at anytime will show your inventory
             (s) at any time will show where in the story you are
         and (q) at any time will quit
    
    """
    ]
    read_text.read_letters(beginning_story)
    options = [
        "\n", "    What would you like to do?",
        "    (F)ight Norman or enter the (C)orridor\n"
    ]
    option_list = ["f", "c"]
    read_text.read_line(options)
    cont = False
    while cont == False:
        answer = get_response(option_list)
        if answer == "i" or answer == "q":
            os.system("cls")
            option_functions.other_options(answer)
            read_text.read_line(options)
        elif answer == "s":
            cont = True
            story_begin()
        elif answer == "f":
            fight.fight_norman()
            cont = True
        elif answer == "c":
            enter_corridor()
            cont = True
Exemple #9
0
def enter_corridor():
    os.system("cls")
    corridor_story = [
        """\033[1;37;40m
    \n
    You enter the corridor of the motel, it is very dark and musty with spiders webs
    and dirt everywhere, along the corridor there are eight doors numbered one to eight.
    What to do.... You decide to try looking in each room to find something to defeat 
    Norman and escape to freedom!
    \n
    """
    ]
    read_text.read_letters(corridor_story)
    options = [
        "\n", "    What would you like to do?",
        "    Go back to (R)eception or enter a room (1-8)"
    ]
    option_list = ["r", "1", "2", "3", "4", "5", "6", "7", "8"]
    read_text.read_line(options)
    cont = False
    while cont == False:
        answer = get_response(option_list)
        if answer == "i" or answer == "q":
            os.system("cls")
            option_functions.other_options(answer)
            read_text.read_line(options)
        elif answer == "s":
            os.system("cls")
            cont = True
            enter_corridor()
        elif answer == "r":
            enter_reception()
            cont = True
        elif answer == "1":
            # define function for room one
            room_one.enter()
            enter_corridor()
            cont = True
        elif answer == "2":
            # define function for room two
            room_two.enter()
            print("2")
            cont = True
        elif answer == "3":
            # define function for room three
            room_three.enter()
            cont = True
        elif answer == "4":
            # define function for room four
            print("    The door is locked")
            read_text.read_line(options)
        elif answer == "5":
            # define function for room five
            room_five.enter()
            cont = True
        elif answer == "6":
            # define function for room six
            print("    The door is locked")
            read_text.read_line(options)
        elif answer == "7":
            # define function for room seven
            room_seven.door_7()
            cont = True
        elif answer == "8":
            # define function for room eight
            print("    The door is locked")
            read_text.read_line(options)
Exemple #10
0
def enter():
    global safe
    global crowbar
    global gun
    os.system("cls")
    room_one_story = [
        """
    \n
    On entering room two there is a picture on the wall, a quick glance shows it is on a hinge, in\n    the corner there are a bunch of crowbars stood against the wall and in the middle\n    of the room is a table with a drawer partly open.
    \n
    """
    ]
    read_text.read_letters(room_one_story)
    options = [
        "\n", "    What would you like to do?",
        "    (L)ook at picture, (P)ick up crowbar, (E)xamine table or go back to (C)orridor?"
    ]
    read_text.read_line(options)
    cont = False
    while cont == False:
        key_pressed = msvcrt.getch().decode().lower()  # gets the key pressed
        if key_pressed == "i" or key_pressed == "q":
            os.system("cls")
            option_functions.other_options(key_pressed)
            read_text.read_line(options)
        elif key_pressed == "s":
            os.system("cls")
            cont = True
            enter()
        elif key_pressed == "l":
            if safe == False:
                read_text.read_letters(
                    "\n    Looking a little closer at the picture you discover that it pulls sideways to reveal a safe.\n    Looks like you need a code to open the safe!"
                )
                if "Numbers off ceiling = 8374" in inventory.inventory:
                    read_text.read_letters(
                        "\n    Ah... you remember the numbers from the cieling in room one, trying the numbers with\n    the safe you find the safe opens to reveal some money! £2000, what a lucky day!"
                    )
                    inventory.add_item("£2000")
                    safe = True
                else:
                    read_text.read_letters(
                        "\n    You try different numbers but you cant open the safe!"
                    )
            else:
                read_text.read_letters(
                    "\n    Now you are being greedy! You already have the money from the safe!"
                )
            read_text.read_line(options)
        elif key_pressed == "p":
            if crowbar == False:
                read_text.read_letters(
                    "\n    You go over to the crowbars and pick one up")
                crowbar = True
                inventory.add_item("Crowbar")
            else:
                read_text.read_letters("\n    You have already got a crowbar")
            read_text.read_line(options)
        elif key_pressed == "e":
            if gun == False:
                read_text.read_letters(
                    "\n    You go over to the table, on opening the drawer fully you discover a gun inside, you add it\n    to your weapons to fight Norman!"
                )
                inventory.add_item("Gun")
                gun = True
            else:
                read_text.read_letters(
                    "\n    You check the drawer again but it is empty!")
            read_text.read_line(options)
        elif key_pressed == "c":
            motel_navigation.enter_corridor()
            cont = True
Exemple #11
0
def in_room7():
    global TV_count
    global ward_count
    print("""\033[1;31;40m\n o(=(=(=(=)=)=)=)o
  !!!!!!}!{!!!!!!                                    __________
  !!!!!} | {!!!!!                                   |  __  __  |   ___________
  !!!!}  |  {!!!!     _!_                           | |  ||  | |  |     |     |
  !!!'   |   '!!!    |~@~|     ________________     | |  ||  | |  |     |     |
  ~@~----+----~@~    |___|    |                |    | |__||__| |  |    o|o    |
  !!!    |    !!!      |      |                |    |  __  __()|  |     |     |
  !!!    |    !!!     ( )     |_______  _______|    | |  ||  | |  |_____|_____|
  !!!____|____!!!  __(___)__  {__~@~__}{__~@~__}    | |  ||  | |  |_____-_____|
  !!!=========!!!   |__-__|   |%%%%%%%%%%%%%%%%|    | |__||__| |  |_____-_____|
 _!!!_________!!!___|_____|___|%%%%%%%%%%%%%%%%|____|__________|__|_____-_____|_
                    |     |   |%%%%%%%%%%%%%%%%|                  |/         \|
    
    You enter room 7 and are immediately greeted by an overwhelming acidic smell
    It's making your nose burn.""")
    d = False
    while d == False:
        read_letters(
            """\033[1;37;40m\n    When you inspect the room, you notice:
      A (T)V
      A (W)ardrobe
      A (B)athroom
     (C) to return to corridor
      
    What would you like to inspect?\n""")
        answer = msvcrt.getch().decode().lower()
        if answer == "t":
            if TV_count == 0:
                read_letters("""\033[1;31;40m\n\n   
    You inspect the TV, and turn it on.... Static                                             
    But you swear you're hearing things.
\033[1;37;40m\n    (W)ait around or (B)ack?\n""")
                answer = msvcrt.getch().decode().lower()
                if answer == "w":
                    TV_count += 1
                    read_letters(
                        "\033[1;31;40m\n\n#̷͍̝͔͚̩̻̰̮͇̪̝̃̓̐̄̏͗̔̆͂̈́́̾̓͜͜͝ͅ#̷̰̘̠̩̖̱̟̜̅̈́̉͆͂̉̾̕#̶̭̼̘̥͉̙̖̝̭̖̄̏#̵̢̂̊̓͐̌͂̊͋͂͘͠͝   #̸̳͚̲͇̅̌̈́͛̈́̓͠#̶̘̤͓͈̓̌̆̄̈́̋́̈́̾̕̕͝#̷͍̝͔͚̩̻̰̮͇̪̝̃̓̐̄̏͗̔̆͂̈́́̾̓͜͜͝ͅ#̷̰̘̠̩̖̱̟̜̅̈́̉͆͂̉̾̕#̶̭̼̘̥͉̙̖̝̭̖̄̏#̵̢̂̊̓͐̌͂̊͋͂͘͠͝#̷̤̦̟̼̭̳͗͋̈́̊͊̒͝#̷̡̼̪̱̫̱̻̣̾͆͑ͅ#̷̡̦̼̰̥͈̱̣̼͉͎͚̖̌̈́̂͜#̸̳̜̤͉͈̅͆̂̾͛͛́͌̕͝.  #̷̢̘̱̳͖̺̞͖͂̆̋̀͋̍̇́̑̄̍̅̿̽̃́̇̓̉͆̋̄͂̂̇̈̓͊͆͘͝#̷̡̛̦̯̻̬̥̟̹͉̲͈̘͋̓̈͌̾̅̊͂̔̆̂̓͂̏̈́͒̀̾̈̿͗́́̈̑̑͘͠#̷̢͍̺̻̻̩̘͇͍͎̪̲͈̰̝̦͍̱̹͙̠̥̹͒͊͐͐̍̈̏̀͒͌̔̄̀̉̄̾̅̎̉͂̕͝ͅ#̸̡̡̨̡̛̮̦̞̟̝͍͉̰͓͕̯͇̜̖̖̥͎̯̜͙̪͇̼̦̮̮͙̝͍́̋͂͒̽̅̎̅͑͆͗̍́̆̓͗̽̐̋̉͒̂͛̀̃̂͂̆͌͛̽̆͘ͅͅ#̸̡̢̙͔̥͙͚͇͓̙̠̍͑̇͒͜͝#̷̧̨̧̪̟̦͙̳̬̼̻͚̹̻͔̤̩͚̳̽́͜͜#̵̖̬̝̖͚͉̫̥̖̹̪̭̳̻̜̤̪͍͈̞̏̿̀̂̃͒̊͝   #̶̖͍̦̟̲͙̖͍̔͌͗̌̍̎̒ͅ#̷͈̦͇̬̌̂̋̊́̽̎͒͠#̴̢̛̝̠̩̯̮̝͗͋̓̑̕#̴̡̱̤͍͙̪͎̽̈́̾̇̚͜͝͠\n#̶͚̅̈́͗̾͝#̶̠̰̠͔̯̱̌#̷̛̜̠̐̀̌̅͘̚͘͝ͅ#̸̠̜̒͌̿̽#̷̭͓̪͊   #̷̡̛̦̯̻̬̥̟̹͉̲͈̘͋̓̈͌̾̅̊͂̔̆̂̓͂̏̈́͒̀̾̈̿͗́́̈̑̑͘͠#̷̢͍̺̻̻̩̘͇͍͎̪̲͈̰̝̦͍̱̹͙̠̥̹͒͊͐͐̍̈̏̀͒͌̔̄̀̉̄̾̅̎̉͂̕͝ͅ#̸̡̡̨̡̛̮̦̞̟̝͍͉̰͓͕̯͇̜̖̖̥͎̯̜͙̪͇̼̦̮̮͙̝͍̘́̋͂͒̽̅̎̅͑͆͗̍́̆̓͗̽̐̋̉͒̂͛̀̃̂͂̆͌͛̽̆͘ͅͅ"
                    )

                    read_letters(
                        "\n\n\033[1;37;40m\n    Seem there's nothing but static on tv...\n"
                    )
                elif answer == "b":
                    read_letters(
                        "\n    You leave the TV alone, god knows what they're showing here.\n"
                    )
            else:
                read_letters(
                    "\n    You seem to have done everything you can with the TV.\n"
                )
        elif answer == "w":
            if ward_count == 0:
                read_letters(
                    "\n    You walk over to the wardrobe, it can be opened.\n    Would you like to open the Wardrobe? Y/N\n"
                )
                answer = msvcrt.getch().decode().lower()
                if answer == "i":
                    get_items()
                elif answer == "y":
                    read_letters(
                        """\033[1;31;40m\n    You inspect the wardrobe and a-\n\n\n\n\n\n BODY FALLS OUT?!?!?\n
    Do you want to inspect the body?...   (Y/N)""")
                    answer = msvcrt.getch().decode().lower()
                    if answer == "i":
                        get_items()
                    elif answer == "y":
                        read_letters(
                            """\033[1;37;40m\n\n    Checking the body, you see it seems to have been horrificly morphed by time,
    With mold and maggots, but you notice something sticking out of it's chest..."""
                        )
                        print("""
\033[1;37;40m      .---.
      |---|
      |---|
      |---|
      |^ - \--.
      |________:
\033[1;30;40m      |  |//|
      |  |//|
      |  |//|
      |  |//|
      |  |\033[1;31;40m//|
      |  |//|
__\033[1;30;40m    |  |.-|
  \033[1;31;40m\___|  \033[1;31;40m|**|______________""")
                        read_letters(
                            "\n\n\033[1;31;40m\n    'A knife? Poor fella' You mutter to yourself\n\033[1;37;40m    Do you want to retreive the rusty knife? (Y/N)\n"
                        )
                        answer = msvcrt.getch().decode().lower()
                        if answer == "i":
                            get_items()
                        elif answer == "y":
                            read_letters(
                                "\033[1;37;40m\n    You decide to take the knife, with it taking a bit more tug that you'd have liked...\n"
                            )
                            add_item("Rusty Knife")
                            ward_count += 1
                        elif answer == "n":
                            read_letters(
                                "    It's probably best to leave the knife in it's 'pedestal'..."
                            )
                    elif answer == "n":
                        read_letters(
                            "\n    You leave the body alone, respecting the dead\n"
                        )
                elif answer == "n":
                    read_letters("\n    You leave the wardrobe alone.\n")
            else:
                read_letters(
                    "\n    You seem to have done everything you can with the wardrobe.\n"
                )
        elif answer == "b":
            if bath_count == 0:
                read_letters(
                    "\033[1;31;40m\n    You enter the bathroom, where the acidic smell gets worse."
                )
                d = True
                bath_7()
            else:
                read_letters(
                    "    It appears you've done everything you can in the bathroom."
                )
        elif answer == "c":
            d = True
            motel_navigation.enter_corridor()
        elif answer == "i":
            get_items()
Exemple #12
0
def bath_7():
    global bath_count
    global sink_count
    e = False
    while e == False:
        read_letters("""\n\033[1;37;40m\n    There is
    A (B)ath filled with a murky dark acidic smelling liquid
    A (S)ink cabinet.
    (L)eave
    What would you like to do?\n\n""")
        answer = msvcrt.getch().decode().lower()
        if answer == "i":
            get_items()
        elif answer == "b":
            if bath_count == 0:
                invent = inv()
                if invent.count("Plastic Gloves") > 0:
                    read_letters(
                        "    You can stick your hand in the acidic bath wearing the Plastic Gloves, continue? (Y/N)\n"
                    )
                    answer = msvcrt.getch().decode().lower()
                    if answer == "i":
                        get_items()
                    elif answer == "y":
                        read_letters(
                            """\033[1;31;40m    You put your hand in the bath and feel around the liquid...
    You can't tell what's in there, but you don't want to know either.
    Eventually you feel something and pull your hand out as quickly as you can"""
                        )
                        read_letters(
                            """\n    A bone?... You run out of the bathroom immediately"""
                        )
                        time.sleep(3)
                        bath_count += 1
                        e = True
                        in_room7()
                    elif answer == "n":
                        read_letters(
                            "    It's probably of the right idea that you don't put you hand in there at all."
                        )
                else:
                    read_letters(
                        "    You can risk putting your arm in the bath, but it might not be the best idea. Proceed? (Y/N)"
                    )
                    answer = msvcrt.getch().decode().lower()
                    if answer == "i":
                        get_items()
                    elif answer == "y":
                        read_letters(
                            """\033[1;31;40m\n    You put your arm down into the bath's liquid and start to slowly feel pain.
    and the pain scales incredibly quickly- you jerk your arm out of the bath to see"""
                        )
                        print("""
\033[1;37;40m        _     .-.
       ( `. .'   )
        `. `   /'
          |   |
\033[1;31;40m       ,. |   |,.,
\033[1;33;40m      |  \033[1;31;40m`**^^*`  \033[1;33;40m|
      |           |
      |           |""")
                        read_letters("\033[1;31;40mOh... My... God...\n")
                        read_letters(
                            """    The sudden realisation that your arm is missing overwhelms you with pain
    To the point your screaming in agony, writhing in pain bleeding down your missing arm
    Until you eventually pass out and bleed out on the floor...\n""")
                        retry.retry()
                    elif answer == "n":
                        read_letters(
                            "\n    Not putting your hand in that? Yeah that's definitely for the better\n"
                        )
                    else:
                        read_letters("    Invalid answer, please try retry\n")
            else:
                read_letters(
                    "    It appears you've done everything you can in the bathroom.\n"
                )
                e = True
                in_room7()
        elif answer == "s":
            if sink_count == 0:
                sink_count += 1
                read_letters(
                    """    You inspect the sink cabinet and find a pair of
    Latex plastic gloves. Maybe you could stick your hand in the bath without fearing anything now"""
                )
                add_item("Plastic Gloves")
            else:
                read_letters(
                    "    It appears you've done everything you can with the sink.\n"
                )
        elif answer == "l":
            e = True
            in_room7()
Exemple #13
0
def door_7():
    global TV_count
    global first7
    global ward_count
    global bath_count
    global held_item
    global umb_count
    if TV_count != 0 and ward_count != 0 and bath_count != 0:
        read_letters(
            "    It appears you've done everything you can in room 7.")
        motel_navigation.enter_corridor()
    if first7 == 0:
        first7 += 1
        read_letters(
            f"""\033[1;31;40m\n\n    You attempt to enter room No. 7, but it appears to be locked.\n    The lock seems brittle, maybe I could break it with something"""
        )

        a = False
        while a == False:
            if inventory.count("Umbrella") == 0:
                read_letters(
                    "\033[1;31;40m\n    It seems that there's no way in this room right now\n"
                )

                print("\n\n\n       (Press spacebar to continue)")
                c = False
                while c == False:
                    space = msvcrt.getch().decode().lower()
                    if space == " ":
                        motel_navigation.enter_corridor()
                        c = True
                        a = True
            elif inventory.count("Umbrella") > 0:
                read_letters(
                    "\033[1;31;40m\n    You could use the Umbrella to open the door,\n    But it looks like it might break,\033[1;37;40m\n    Would you like to use the unbrella? (Y)es or (N)o\n"
                )
                answer = msvcrt.getch().decode().lower()
                if answer == "y":
                    read_letters(
                        "\033[1;31;40m\n    You break the lock and Umbrella snaps in half.\n"
                    )
                    held_item = "Fists"
                    remove_item("Umbrella")
                    umb_count += 1
                    a = True
                    in_room7()
                elif answer == "n":
                    a = True
                    motel_navigation.enter_corridor()
                else:
                    read_letters("Invalid answer, please try retry")
                    continue
    elif first7 == 1:
        b = False
        while b == False:
            if umb_count == 0:
                if inventory.count("Umbrella") > 0:
                    read_letters(
                        "\033[1;31;40m    You could use the Umbrella to open the door,\n    But it looks like it might break,\033[1;37;40m\n    Would you like to continue?\n"
                    )
                    answer = msvcrt.getch().decode().lower()
                    if answer == "y":
                        read_letters(
                            "\033[1;37;40m\n    You break the lock and Umbrella snaps in half.\n"
                        )
                        held_item = "Fists"
                        remove_item("Umbrella")
                        umb_count += 1
                        b = True
                        in_room7()
                    elif answer == "n":
                        b = True
                        motel_navigation.enter_corridor()
                    #else:
                    #  read_letters("Invalid answer, please try retry")
                    #  continue
            elif umb_count > 0:
                in_room7()
Exemple #14
0
def enter():
    global starting_pistol
    global bow_and_arrow

    os.system("cls")
    room_three_story = [
        """
    \n
    You enter room five and you see two items in the room, one is a starting\n    pistol under the table, a bow and arrows hanging off a picture\n    on the wall and a door leading to who knows where. 
    """
    ]
    read_text.read_letters(room_three_story)
    options = [
        "\n", "    What would you like to do?",
        "    (P)ick up the starting pistol, (T)ake the bow and arrows from the picture, (O)pen\n    the door or go back to (C)orridor "
    ]
    read_text.read_line(options)
    cont = False
    while cont == False:
        key_pressed = msvcrt.getch().decode().lower()  # gets the key pressed
        if key_pressed == "i" or key_pressed == "q":
            os.system("cls")
            option_functions.other_options(key_pressed)
            read_text.read_line(options)
        elif key_pressed == "s":
            os.system("cls")
            cont = True
            enter()
        elif key_pressed == "p":
            if starting_pistol == False:
                print("""
                You pick up the starting pistol!
                """)
                starting_pistol = True
                inventory.add_item("Starting Pistol")
            else:
                print("""
                You already have the starting pistol.
                """)
            read_text.read_line(options)
        elif key_pressed == "t":
            if bow_and_arrow == False:
                print("""
                You take the bow and arrow from the picture!
                """)
                bow_and_arrow = True
                inventory.add_item("Bow and arrow")
            else:
                print("""
                You already have bow and arrow.
                """)
            read_text.read_line(options)
        elif key_pressed == "o":
            read_text.read_letters(
                """\n    Behind the door is a corridor, you follow it and go through a hatch at the end\n    and you end up ????"""
            )
            print("\n\n\n       (Press spacebar to continue")
            c = False
            while c == False:
                space = msvcrt.getch().decode().lower()
                if space == " ":
                    motel_navigation.enter_corridor()
                    c = True
        elif key_pressed == "c":
            motel_navigation.enter_corridor()
            cont = True