Ejemplo n.º 1
0
def mainAlt2():
    save = scripts.savePull()
    var10 = save[9]
    scripts.screenClear()
    print("\nDo you regret it?")
    print('\nYES [1]')
    print('NO [2]')
    while True:
        try:
            choose = int(input('\nACTION >> '))
            if choose == 1:
                mainAlt3()
            if choose == 2:
                if var10 == 1:
                    time.sleep(0.75)
                    print('\nError.')
                    time.sleep(0.5)
                    mainAlt2()
                if var10 == 0:
                    print("\nYou're proud of it.")
                    time.sleep(2)
                    print("Here's your chance.")
                    time.sleep(1)
                    reset.resetter()
        except ValueError:
            mainAlt2()
Ejemplo n.º 2
0
def riverSel1():
    while True:
        try:
            vars = scripts.savePull()
            scripts.screenClear()
            scripts.versionHeader()
            scripts.invDisplay()
            print(
                textwrap.fill(
                    "You and your friends sit down next to the riverbank. It's truly unlike anything you've seen back home.",
                    75))
            print('\nPH1 [1]')
            print('PH2 [2]')
            print('BACK [3]')
            choose = int(input('\nACTION >> '))
            if choose == 1:
                pass
            if choose == 2:
                pass
            if choose == 3:
                riverMain()
            if choose > 3 or choose < 1:
                scripts.inpErrorHandler()
                riverSel1()
        except ValueError:
            scripts.inpErrorHandler()
            riverSel1()
Ejemplo n.º 3
0
def toolEx():
    save = scripts.savePull()
    var1 = save[0]
    var3 = save[2]
    if var3 == 0:
        print('')
        print(
            textwrap.fill(
                "You decide that checking your tools isn't worth your time or effort.",
                75))
        time.sleep(3)
        mm1.mainMenu1()
    if var3 == 1:
        print('')
        print("With your friends contacted, you decide to head back.")
        time.sleep(2)
        if var1 != 1:
            print(
                textwrap.fill(
                    "Seems like a good time to stand in front of a hill for a while.",
                    75))
        time.sleep(4)
        print(";)")
        time.sleep(0.05)
        mm1.mainMenu1()
Ejemplo n.º 4
0
def battleItems():
    while True:
        try:
            vars = scripts.savePull()
            has_knife = vars[14]
            if has_knife == 1:
                knife_stat = "1x"
            if has_knife == 0:
                knife_stat = "0x"
            print('')
            time.sleep(0.04)
            print(knife_stat, 'KNIFE [1]')
            time.sleep(0.04)
            print('BACK [2]')
            time.sleep(0.04)
            choose = int(input('\nACTION >> '))
            if choose == 1:
                line_ext = 5
                state_ext = 1
                scripts.saveWriter(line_ext, state_ext)
                line_ext = 6
                state_ext = 1
                scripts.saveWriter(line_ext, state_ext)
                print('\nYou lunge at the lizard and stab him to death.')
                time.sleep(4)
                hill.hill()
            if choose == 2:
                battleBegin()
            if choose > 2 or choose < 1:
                scripts.inpErrorHandler()
                battleBegin()
        except ValueError:
            scripts.inpErrorHandler()
            battleBegin()
Ejemplo n.º 5
0
def talkSel1A():
    save = scripts.savePull()
    var7 = save[6]
    var8 = save[7]
    if var7 == 0 or var8 == 1:
        scripts.screenClear()
        scripts.versionHeader()
        scripts.invDisplay()
        print(
            "Your friends ask you why you didn't use any of your tools to contact them.\n"
        )
        print('UH... [1]')
        print('BACK [2]')
        while True:
            try:
                choose = int(input('\nACTION >> '))
                if choose == 1:
                    print("\nYour friends tell you to not to worry about it.")
                    time.sleep(2)
                    talk()
                if choose == 2:
                    print(
                        "\nYou pretend that you're getting a call on your phone to avoid this awkward conversation."
                    )
                    time.sleep(4)
                    talk()
                if choose > 2 or choose < 0:
                    scripts.inpErrorHandler()
                    talkSel1()
            except ValueError:
                scripts.inpErrorHandler()
                talkSel1()
    if var7 == 1 and var8 == 0:
        talkSel1B()
Ejemplo n.º 6
0
def mainMenu2():
    save = scripts.savePull()
    var1 = save[0]
    var6 = save[5]
    scripts.screenClear()
    scripts.versionHeader()
    scripts.invDisplay()
    print('A fancy, metallic ship lands a little ways from where you landed.')
    if var6 == 0:
        print('Your friends walk out, and approach you.\n')
    if var6 == 1:
        print('Your friends seem like they want to keep their distance.\n')
    print('TALK [1]')
    print('SAAN [2]')
    print('EMBARK [3]')
    print('QUIT [4]')
    while True:
        try:
            choose = int(input('\nACTION >> '))
            if choose == 1:
                talk.talk()
            if choose == 2:
                saan.saan()
            if choose == 3:
                embark.Embark()
            if choose == 4:
                scripts.quitHandler()
            if choose > 4 or choose < 0:
                scripts.inpErrorHandler()
                mainMenu2()
        except ValueError:
            scripts.inpErrorHandler()
            mainMenu2()
Ejemplo n.º 7
0
def splashScreen(): #Main menu
    save = scripts.savePull()
    var9 = save[8]
    var10 = save[9]
    var14 = save[13]
    if var10 == 1:
        mainAlt2()
    if var9 == 1:
        mainExt()
    if var9 == 0:
        scripts.screenClear()
        splashDisp()
        if var14 == 0:
            print('\nPLAY [1]')
        if var14 == 1:
            print('\nPLAY [1] ★')
        print('RESET [2]')
        while True:
            try:
                choose = int(input('\nACTION >> '))
                if choose == 1:
                    saveLoader()
                if choose == 2:
                    scripts.screenClear()
                    reset.resetter()
                    splashScreen()
                if choose < 1 or choose > 2:
                    scripts.inpErrorHandler()
                    splashScreen()
            except ValueError:
                scripts.inpErrorHandler()
                splashScreen()
Ejemplo n.º 8
0
def fileTest():
    while True:
        try:
            saves = scripts.savePull()
            splashScreen()
        except (NameError, IndexError):
            scripts.saveGenerator()
            fileTest()
Ejemplo n.º 9
0
def hillSel1():
    save = scripts.savePull()
    var5 = save[4]
    var6 = save[5]
    var16 = save[15]
    var17 = save[16]
    scripts.screenClear()
    scripts.versionHeader()
    scripts.invDisplay()
    if var6 == 1:
        print('Silence fills the air.\n')
        if var16 == 1:
            print('PLACE FLOWER [1]')
        if var17 == 1:
            print('COLLECT BLOOD [2]')
        print('BACK [3]')
        while True:
            try:
                choose = int(input('\nACTION >> '))
                if choose == 1:
                    if var16 == 1:
                        line_ext = 15
                        state_ext = 4
                        scripts.saveWriter(line_ext, state_ext)
                        print('')
                        print(
                            textwrap.fill(
                                'You lay the flower down next to his lifeless corpse.',
                                75))
                        time.sleep(3)
                        hill()
                    if var16 == 4:
                        hillSel1()
                if choose == 2:
                    if var17 != 1:
                        scripts.inpErrorHandler()
                        hillSel1()
                    if var17 == 1:
                        line_ext = 16
                        state_ext = 3
                        scripts.saveWriter(line_ext, state_ext)
                        print('')
                        print(
                            textwrap.fill(
                                'You use the bottle to collect his blood. Still warm.',
                                75))
                        time.sleep(4)
                        hillSel1()
                if choose == 3:
                    hill()
                if choose > 3 or choose < 0:
                    scripts.inpErrorHandler()
                    hillSel1()
            except ValueError:
                scripts.inpErrorHandler()
                hillSel1()
    hillSel1Ext()
Ejemplo n.º 10
0
def riverMain():
    while True:
        try:
            vars = scripts.savePull()
            has_bottle = vars[16]
            scripts.screenClear()
            scripts.versionHeader()
            scripts.invDisplay()
            print(
                textwrap.fill(
                    'Making your way over to a river, you see lots of strange grasses. The water flows peacefully.',
                    75))
            print('\nSIT DOWN [1]')
            if has_bottle == 1 or has_bottle == 5:
                print('FILL BOTTLE [2]')
            if has_bottle == 4:
                print('DUMP WATER OUT [2]')
            if has_bottle == 2 or has_bottle == 0:
                print('DRINK WATER [2]')
            print('BACK [3]')
            choose = int(input('\nACTION >> '))
            if choose == 1:
                riverSel1()
            if choose == 2:
                if has_bottle == 1 or has_bottle == 5:
                    line_ext = 16
                    state_ext = 4
                    scripts.saveWriter(line_ext, state_ext)
                    print(
                        '\nYou scoop your bottle in the water and collect it.')
                    time.sleep(3)
                    riverMain()
                if has_bottle == 2 or has_bottle == 0:
                    print('\nYou drink the water. It tastes sweet...')
                    time.sleep(3)
                    riverMain()
                if has_bottle == 4:
                    line_ext = 16
                    state_ext = 5
                    scripts.saveWriter(line_ext, state_ext)
                    print('\nYou dump the water out into the river.')
                    time.sleep(3)
                    riverMain()
            if choose == 3:
                print(
                    "\nAs beautiful as the river is, there's so much more to discover."
                )
                time.sleep(2.5)
                mm3.mainMenu3()
            if choose > 3 or choose < 1:
                scripts.inpErrorHandler()
                riverMain()
        except ValueError:
            scripts.inpErrorHandler()
            riverMain()
Ejemplo n.º 11
0
def battleBegin():
    while True:
        try:
            varz = scripts.savePull()
            var = varz[10]
            scripts.screenClear()
            scripts.versionHeader()
            print('NAME: LIAM | ATTACK: 0 | DEF: 0')
            print('ENEMY: LIZARD | ATTACK: 60 | DEF: 100')
            print('\nPUNCH [1]')
            print('ITEMS [2]')
            print('FLEE [3]')
            choose = int(input('\nACTION >> '))
            if choose == 1:
                line_ext = 10
                state_ext = var + 1
                scripts.saveWriter(line_ext, state_ext)
                if var <= 0:
                    print("\nYou're too weak.")
                    time.sleep(0.35)
                    print("He's fully unaffected.")
                    time.sleep(1)
                    print("...doesn't seem like he wants to be doing this.")
                    time.sleep(2)
                    battleBegin()
                if var == 1:
                    print("\nHe's starting to lose his patience.")
                    time.sleep(2)
                    battleBegin()
                if var == 2:
                    print('\nGetting really impatient now.')
                    time.sleep(2)
                    battleBegin()
                if var == 3:
                    line_ext = 11
                    state_ext = 1
                    scripts.saveWriter(line_ext, state_ext)
                    print('\nThe lizard man gets tired of this, and leaves.')
                    time.sleep(2)
                    hill.hill()
                if var != 0 or var != 1 or var != 2 or var != 3:
                    battleBegin()
            if choose == 2:
                battleItems()
            if choose == 3:
                print("\nSeems like the wrong guy to mess with.")
                time.sleep(2)
                hill.hill()
            if choose > 3 or choose < 1:
                scripts.inpErrorHandler()
                battleBegin()
        except ValueError:
            scripts.inpErrorHandler()
            battleBegin()
Ejemplo n.º 12
0
def caveSel1():
    save = scripts.savePull()
    var15 = save[14]
    scripts.screenClear()
    scripts.versionHeader()
    scripts.invDisplay()
    if var15 == 0:
        print("You continue deeper down the cave. There's a small box sitting near the wall.\n")
        print('OPEN [1]')
    if var15 == 1:
        print("Just a dingy old cave.\n")
        print("PUT KNIFE BACK [1]")
    if var15 == 2:
        print("You're deep into the cave. There's that box with the knife you put back.\n")
        print('TAKE [1]')
    print('BACK [2]')
    while True:
        try:
            choose = int(input('\nACTION >> '))
            if choose == 1:
                if var15 == 0:
                    line_ext = 14
                    state_ext = 1
                    scripts.saveWriter(line_ext, state_ext)
                    print('\nYou open the box and find a knife. You put it in your pocket.')
                    time.sleep(2)
                    caveSel1()
                if var15 == 1:
                    line_ext = 14
                    state_ext = 2
                    scripts.saveWriter(line_ext, state_ext)
                    print('\nYou open the box and put the knife back.')
                    time.sleep(2)
                    caveSel1()
                if var15 == 2:
                    line_ext = 14
                    state_ext = 1
                    scripts.saveWriter(line_ext, state_ext)
                    print('\nYou take the knife back.')
                    time.sleep(1)
                    caveSel1()
            if choose == 2:
                if var15 == 0:
                    print("\nContinuing in a cave this dark is just asking for trouble.")
                    time.sleep(3)
                cave()
            if choose > 2 or choose < 0:
                scripts.inpErrorHandler()
                caveSel1()
        except ValueError:
            scripts.inpErrorHandler()
            caveSel1()
Ejemplo n.º 13
0
def caveSel3():
    scripts.screenClear()
    scripts.versionHeader()
    scripts.invDisplay()
    save = scripts.savePull()
    var17 = save[16]
    if var17 == 0:
        print("You come across another locked chest. Sitting beside is a dusty old desk.\n")
    if var17 == 1:
        print("There's that chest where you found the bottle.\n")
    if var17 == 2:
        print("There's that chest with the bottle.\n")
    if var17 == 0:
        print('OPEN [1]')
    if var17 == 1:
        print('PUT BACK [1]')
    if var17 == 2:
        print("TAKE BACK [1]")
    print('BACK [2]')
    while True:
        try:
            choose = int(input('\nACTION >> '))
            if choose == 1:
                if var17 == 0:
                    line_ext = 16
                    state_ext = 1
                    scripts.saveWriter(line_ext, state_ext)
                    print('\nYou open the chest and find an empty bottle.')
                    time.sleep(2)
                    caveSel3()
                if var17 == 1:
                    line_ext = 16
                    state_ext = 2
                    scripts.saveWriter(line_ext, state_ext)
                    print('\nYou decide to put the bottle back in the chest.')
                    time.sleep(2)
                    caveSel3()
                if var17 == 2:
                    line_ext = 16
                    state_ext = 1
                    scripts.saveWriter(line_ext, state_ext)
                    print("\nYou take the bottle back. Could be useful, after all.")
                    time.sleep(3)
                    caveSel3()
            if choose == 2:
                cave()
            if choose > 2 or choose < 1:
                scripts.inpErrorHandler()
                caveSel3()
        except ValueError:
            scripts.inpErrorHandler()
            caveSel3()
Ejemplo n.º 14
0
def hillSel3():
    save = scripts.savePull()
    var16 = save[15]
    scripts.screenClear()
    scripts.versionHeader()
    scripts.invDisplay()
    print(
        textwrap.fill(
            "You sit down in the grassy plains and take a look around.", 75))
    if var16 == 0:
        print("There's a beautiful flower sitting there.")
    if var16 == 0:
        print('\nPICK [1]')
    if var16 == 1:
        print('')
    print('LAY DOWN [2]')
    print('BACK [3]')
    while True:
        try:
            choose = int(input('\nACTION >> '))
            if choose == 1:
                if var16 == 0:
                    print('')
                    print(
                        textwrap.fill(
                            'The flower comes off its root without hesitation.',
                            75))
                    print(textwrap.fill('You put it in your pocket.', 75))
                    line_ext = 15
                    state_ext = 1
                    scripts.saveWriter(line_ext, state_ext)
                    time.sleep(3)
                    hillSel3()
                if var16 == 1:
                    scripts.inpErrorHandler()
                    hillSel3()
            if choose == 2:
                print('\nLaying down for a moment, you feel refreshed.')
                time.sleep(3)
                hill()
            if choose == 3:
                print(
                    '\nYou decide that you have more important things to be doing.'
                )
                time.sleep(2)
                hill()
            if choose > 3 or choose < 0:
                scripts.inpErrorHandler()
                hillSel3()
        except ValueError:
            scripts.inpErrorHandler()
            hillSel3()
Ejemplo n.º 15
0
def mainMenu1():
    save = scripts.savePull()
    var1 = save[0]
    var6 = save[5]
    scripts.screenClear()
    scripts.versionHeader()
    scripts.invDisplay()
    if var6 == 0:
        print(
            textwrap.fill(
                'You are Liam. An astronaut by trade, you took a bad turn on the Space Belt and landed on a strange planet. You awaken, laying in a field of grass. You see hills, a cave, and strange flora.',
                75))
    if var6 == 1:
        print(
            textwrap.fill(
                "You're covered in the blood of the innocent reptilian man that you killed. The sky rumbles.",
                75))
    print('\nHILL [1]')
    print('CAVE [2]')
    print('TOOL [3]')
    if var1 == 0:
        print('QUIT [4]')
    if var1 == 1:
        print('SOUND [4] <--')
    if var1 == 1:
        print('QUIT [5]')
    while True:
        try:
            choose = int(input('\nACTION >> '))
            if choose == 1:
                hill.hill()
            if choose == 2:
                cave.cave()
            if choose == 3:
                tool.tool()
            if choose == 4:
                if var1 == 0:
                    scripts.quitHandler()
                if var1 == 1:
                    ch1end.ch1End()
            if choose == 5:
                if var1 == 1:
                    scripts.quitHandler()
                if var1 == 0:
                    scripts.inpErrorHandler()
            if choose > 5 or choose < 0:
                scripts.inpErrorHandler()
                mainMenu1()
        except ValueError:
            scripts.inpErrorHandler()
            mainMenu1()
Ejemplo n.º 16
0
def resetter():
    save = scripts.savePull()
    var9 = save[8]
    var10 = save[9]
    if var9 == 0:
        print('\nDoing this will reset everything. Are you sure?')
        print('\nRESET [1]')
        print('BACK [2]')
    if var9 == 1:
        print('\nRESET [1]')
    while True:
        try:
            choose = int(input('\nACTION >> '))
            if choose == 1:
                if var9 == 1:
                    scripts.savePull()
                    print('\nReset failed.\n')
                    time.sleep(1)
                    if var10 == 0:
                        line_ext = 9
                        state_ext = 1
                        scripts.saveWriter(line_ext, state_ext)
                    quit()
                if var9 == 0:
                    normalReset()
                    return
            if choose == 2:
                if var9 == 1:
                    quit()
                if var9 == 0:
                    return
            if choose == 420:
                print('')
                scripts.easterEgg()
                resetter()
        except ValueError:
            scripts.inpErrorHandler()
            resetter()
Ejemplo n.º 17
0
def saveLoader():
    save = scripts.savePull()
    var2 = save[1]
    var14 = save[13]
    if var14 == 0:
        if var2 == 0: #Chapter 1
            mm1.mainMenu1()
        if var2 == 1: #Chapter 2
            mm2.mainMenu2()
        if var2 == 2: #Chapter 3
            print('')
            print(textwrap.fill('WARNING: This chapter is NOT ready! Only proceed if you are prepared for some seriously in-progress work...', 75))
            time.sleep(4)
            mm3.mainMenu3()
    if var14 == 1:
        mm3.mainMenu3()
Ejemplo n.º 18
0
def hs2Sub2():
    save = scripts.savePull()
    var6 = save[5]
    line_ext = 0
    state_ext = 1
    scripts.saveWriter(line_ext, state_ext)
    print('...')
    time.sleep(3)
    print("\nYou're completely motionless.")
    time.sleep(2)
    print(
        textwrap.fill(
            "And then suddenly, you hear a sound. Perhaps heading back will reveal its source.",
            75))
    time.sleep(5)
    hill()
Ejemplo n.º 19
0
def mainMenu3():  #WIP (main mm3)
    scripts.screenClear()
    scripts.versionHeader()
    scripts.invDisplay()
    vars = scripts.savePull()
    var6 = vars[5]
    var18 = vars[17]
    print(textwrap.fill("You're all walking through a field of grass.", 75))
    print('Saan points out the river, and your other friends ', end='')
    if var6 == 1:
        print('notice the Placeholder')
        print('that something something something.')
    if var6 == 0:
        print("notice a reptilian")
        print("near the cave you were at.")
    print('\nCAVE [1]')
    if var6 != 1 and var18 == 0:
        print('LIZARD [2]')
    if var6 == 1:
        print('CHECK OUT THAT MESS [2]')
    if var18 == 1:
        print('', end='')
    print('RIVER [3]')
    print('QUIT [4]')
    while True:
        try:
            choose = int(input('\nACTION >> '))
            if choose == 1:
                mainMenu3()
            if choose == 2:
                if var6 == 0:
                    lizard.Lizard()
                if var6 == 1:
                    print('not ready')
                    time.sleep(0.05)
                    mainMenu3()
            if choose == 3:
                river.riverMain()
            if choose == 4:
                scripts.quitHandler()
            if choose > 4 or choose < 0:
                scripts.inpErrorHandler()
                mainMenu3()
        except ValueError:
            scripts.inpErrorHandler()
            mainMenu3()
Ejemplo n.º 20
0
def talkSel1():
    save = scripts.savePull()
    var3 = save[2]
    var7 = save[6]
    var8 = save[7]
    if var3 == 1:
        if var7 == 0 or var8 == 1:
            print('')
            print(
                textwrap.fill(
                    "Your friends mentioned that they heard your scanner signal, and knew to come find you.",
                    75))
            time.sleep(5)
            talk()
        if var7 == 1 and var8 == 0:
            talkSel1B()
    if var3 == 0:
        talkSel1A()
Ejemplo n.º 21
0
def talk():
    save = scripts.savePull()
    var6 = save[5]
    var7 = save[6]
    var8 = save[7]
    scripts.screenClear()
    scripts.versionHeader()
    scripts.invDisplay()
    if var6 == 0 or var7 == 0 or var8 == 1:  #Normal/post-explain
        print("Your friends are relieved that you're alright.\n")
    if var6 == 1 and var8 == 0:  #Murder, pre-explain
        print('Your friends look at you with horrified expressions.\n')
    if var7 == 1 and var6 == 0 and var8 == 0:  #Murdered before reset
        print('...they seem worried.\n')
    if var6 == 0 or var8 == 1:  #Normal/post-explain
        print('CHIT-CHAT [1]')
    if var6 == 1 and var8 == 0 and var7 == 1:  #Murder
        print("WHAT'S WITH THAT LOOK? [1]")
    print('STARE [2]')
    print('BACK [3]')
    while True:
        try:
            choose = int(input('\nACTION >> '))
            if choose == 1:
                if var6 == 1 and var8 == 0:
                    talkSel1C()
                else:
                    talkSel1()
            if choose == 2:
                talkSel2()
            if choose == 3:
                if var6 == 1:
                    mm2.mainMenu2()
                if var6 == 0:
                    print('\nYou tell your friends you need a minute.')
                    time.sleep(2)
                    mm2.mainMenu2()
            if choose > 4 or choose < 0:
                scripts.inpErrorHandler()
                talk()
        except ValueError:
            scripts.inpErrorHandler()
            talk()
Ejemplo n.º 22
0
def toolSel3():
    save = scripts.savePull()
    var3 = save[2]
    scripts.screenClear()
    scripts.versionHeader()
    scripts.invDisplay()
    print('Looks like your scanner is functioning just fine.\n')
    print('SIGNAL [1]')
    print('BACK [2]')

    while True:
        try:
            choose = int(input('\nACTION >> '))
            if choose == 1:
                if var3 == 0:
                    line_ext = 2
                    state_ext = 1
                    scripts.saveWriter(line_ext, state_ext)
                    line_ext = 0
                    state_ext = 1
                    scripts.saveWriter(line_ext, state_ext)
                    print(
                        '\nYou try to send out a signal, and it looks like it was received!\n'
                    )
                    time.sleep(4)
                    tool()
                if var3 == 1:
                    print("\nYou've already made contact.")
                    time.sleep(2)
                    tool()
            if choose == 2:
                if var3 == 0:
                    print("\nProbably wouldn't work, anyway.")
                    time.sleep(2)
                    tool()
                if var3 == 1:
                    tool()
            if choose > 2 or choose < 0:
                scripts.inpErrorHandler()
                toolSel3()
        except ValueError:
            scripts.inpErrorHandler()
            toolSel3()
Ejemplo n.º 23
0
def Embark():
    save = scripts.savePull()
    var6 = save[5]
    var8 = save[7]
    scripts.screenClear()
    scripts.versionHeader()
    scripts.invDisplay()
    if var6 == 1 and var8 == 0:
        print('Ignoring your friends, you make your way to their spaceship and lock the doors.')
    if var6 == 0 or var8 == 1:
        print("You walk to your friends' ship. Your friends follow along.")
    print('\nLOOK AROUND [1]')
    print('SET OFF [2]')
    print('BACK [3]')
    while True:
        try:
            choose = int(input('\nACTION >> '))
            if choose == 1:
                if var6 == 0:
                    print('')
                    print(textwrap.fill("This ship is gorgeous. Complex, shiny white metal covers the interior.", 75))
                    time.sleep(5)
                    Embark()
                if var6 == 1:
                    print('')
                    print(textwrap.fill("The ship doesn't matter, it's a getaway vehicle.", 75))
                    time.sleep(3)
                    Embark()
            if choose == 2:
                if var6 == 1 and var8 == 0:
                    Embark1()
                else:
                    Embark2()
            if choose == 3:
                print("\nYou decide against leaving quite yet.")
                mm2.mainMenu2()
            if choose > 3 or choose < 0:
                scripts.inpErrorHandler()
                Embark()
        except ValueError:
            scripts.inpErrorHandler()
            Embark()
Ejemplo n.º 24
0
def talkSel1C():
    save = scripts.savePull()
    var6 = save[5]
    scripts.screenClear()
    scripts.versionHeader()
    scripts.invDisplay()
    if var6 == 1:
        print('Your friends barely stammer out a question.')
        time.sleep(2)
        print('"Liam, why are you covered in blood?"\n')
        time.sleep(2)
        print('EXPLAIN [1]')
        print('RUN AWAY [2]')
        while True:
            try:
                choose = int(input('\nACTION >> '))
                if choose == 1:
                    print(
                        '\nYou explain to your friends that it was self-defense.'
                    )
                    time.sleep(2)
                    print('They understand, and help you clean off.')
                    time.sleep(2)
                    print('They seriously bought that?')
                    time.sleep(0.5)
                    talkSel1CG()
                if choose == 2:
                    print("\nYou can't face them.")
                    time.sleep(2)
                    mm2.mainMenu2()
                if choose > 2 or choose < 0:
                    scripts.inpErrorHandler()
                    talkSel1C()
            except ValueError:
                scripts.inpErrorHandler()
                talkSel1C()
    if var6 == 0:
        talk()
Ejemplo n.º 25
0
def display():
    save = scripts.savePull()
    var1 = save[0]
    var2 = save[1]
    var3 = save[2]
    var4 = save[3]
    var5 = save[4]
    var6 = save[5]
    var7 = save[6]
    var8 = save[7]
    var9 = save[8]
    var10 = save[9]
    var11 = save[10]
    var12 = save[11]
    var13 = save[12]
    var14 = save[13]
    var15 = save[14]
    var16 = save[15]
    var17 = save[16]
    print('')
    print('VAR1: CH1ENDFLAG', '      |', 'STATE:', var1)
    print('VAR2: CHAPTFLAG', '       |', 'STATE:', var2)
    print('VAR3: TOOLFLAG', '        |', 'STATE:', var3)
    print('VAR4: FRIENDFLAG', '      |', 'STATE:', var4)
    print('VAR5: RESET', '           |', 'STATE:', var5)
    print('VAR6: LIZARD', '          |', 'STATE:', var6)
    print('VAR7: LIZARD-EXT', '      |', 'STATE:', var7)
    print('VAR8: OKAY', '            |', 'STATE:', var8)
    print('VAR9: BADEND', '          |', 'STATE:', var9)
    print('VAR10: BADEND-EX', '      |', 'STATE:', var10)
    print('VAR11: SPLASHSKIP', '     |', 'STATE:', var11)
    print('VAR12: LIZARD-DX', '      |', 'STATE:', var12)
    print('VAR13: SPLASHSKIP2', '    |', 'STATE:', var13)
    print('VAR14: GAMEOVER', '       |', 'STATE:', var14)
    print('VAR15: BLADE', '          |', 'STATE:', var15) #0=false, 1=has, 2=put back, 3=bloody
    print('VAR16: FLOWER', '         |', 'STATE:', var16) #0=false, 1=has, 2=put back, 3=gave to lizard, 4=gave to saan
    print('VAR17: BOTTLE', '         |', 'STATE:', var17) #0=false, 1=has, 2=put back, 3=fill with blood, 4=filled with water, 5=water poured out
    print('')
Ejemplo n.º 26
0
def hillSel2():
    save = scripts.savePull()
    var6 = save[5]
    scripts.screenClear()
    scripts.versionHeader()
    scripts.invDisplay()
    if var6 == 0:
        print(
            'Despite the massive mountain ahead of you, you decide to simply stand still.'
        )
    if var6 == 1:
        hs2Sub()
    if var6 == 0:
        time.sleep(2)
        print('...')
        time.sleep(2.5)
        print('Seems like a bit of a waste of time.')
        time.sleep(2)
        print('\nKEEP STANDING [1]')
        print('GO BACK [2]')
        while True:
            try:
                choose = int(input('\nACTION >> '))
                if choose == 1:
                    hs2Sub2()
                if choose == 2:
                    print(
                        '\nYou decide to stop being motionless, and return to a life full of motion.\n'
                    )
                    time.sleep(5)
                    hill()
                if choose > 2 or choose < 0:
                    scripts.inpErrorHandler()
                    hillSel2()
            except ValueError:
                scripts.inpErrorHandler()
                hillSel2()
Ejemplo n.º 27
0
def toolSel2():
    save = scripts.savePull()
    var3 = save[2]
    scripts.screenClear()
    scripts.versionHeader()
    scripts.invDisplay()
    print('Using your radar, you can attempt to establish contact.\n')
    print('SCAN [1]')
    print('BACK [2]')
    while True:
        try:
            choose = int(input('\nACTION >> '))
            if choose == 1:
                if var3 == 0:
                    print(
                        '\nYou try establishing contact...your radar just shuts off.'
                    )
                    time.sleep(4)
                    tool()
                if var3 == 1:
                    print("\nYou've already made contact.")
                    time.sleep(2)
                    tool()
            if choose == 2:
                if var3 == 0:
                    print("\nProbably wouldn't work, anyway.")
                    time.sleep(2)
                    tool()
                if var3 == 1:
                    tool()
            if choose > 2 or choose < 0:
                scripts.inpErrorHandler()
                toolSel2()
        except ValueError:
            scripts.inpErrorHandler()
            toolSel2()
Ejemplo n.º 28
0
def toolSel1():
    save = scripts.savePull()
    var3 = save[2]
    scripts.screenClear()
    scripts.versionHeader()
    scripts.invDisplay()
    print(
        'You pull out your phone. Unsurprisingly, the signal is rather weak.\n'
    )
    print('MESSAGE A FRIEND [1]')
    print('BACK [2]')
    while True:
        try:
            choose = int(input('\nACTION >> '))
            if choose == 1:
                if var3 == 0:
                    print("\nThe message won't even go through...")
                    time.sleep(4)
                    tool()
                if var3 == 1:
                    print("\nYou've already made contact.")
                    time.sleep(2)
                    tool()
            if choose == 2:
                if var3 == 0:
                    print("\nWhat good's a phone without service?")
                    time.sleep(3)
                    tool()
                if var3 == 1:
                    tool()
            if choose > 2 or choose < 0:
                scripts.inpErrorHandler()
                toolSel1()
        except ValueError:
            scripts.inpErrorHandler()
            toolSel1()
Ejemplo n.º 29
0
def hill():
    save = scripts.savePull()
    var1 = save[0]
    var6 = save[5]
    var12 = save[11]
    var16 = save[15]
    scripts.screenClear()
    scripts.versionHeader()
    scripts.invDisplay()
    if var6 == 0 and var1 == 0:
        print(
            textwrap.fill(
                'That hill looks pretty strange. It juts out of the landscape in an unrealistic way.',
                75))
    if var6 == 0 and var1 == 1:
        print(
            textwrap.fill(
                "Having stood there, you hear a strange noise in the sky. Perhaps heading back to where you started will reveal the source.",
                75))
    if var6 == 1 and var1 == 0:
        print('Stand still.')
    if var6 == 1 and var1 == 1:
        print("Go back.")
    if var6 == 0 and var12 == 0 and var16 != 2:
        print('In the distance, you can see a creature moving about.\n')
        print('GO TOWARDS THE CREATURE [1]')
    if var16 == 2:
        print('You can see the lizard sitting down, enjoying the sun.\n')
        print('VISIT [1]')
    if var12 == 1:
        print('')
    if var6 == 1:
        print('')
        print('GO FORWARDS [1]')
    if var1 == 0:
        print('STAND STILL [2]')
    print('TAKE A BREAK [3]')
    print('BACK [4]')
    while True:
        try:
            choose = int(input('\nACTION >> '))
            if choose == 1:
                if var12 == 1:
                    scripts.inpErrorHandler()
                    hill()
                if var12 == 0:
                    hillSel1()
            if choose == 2:
                if var1 == 0:
                    hillSel2()
                if var1 == 1:
                    scripts.inpErrorHandler()
                    hill()
            if choose == 3:
                hillSel3()
            if choose == 4:
                if var6 == 0:
                    print('\nBest to head back.')
                    time.sleep(2)
                    mm1.mainMenu1()
                if var6 == 1:
                    mm1.mainMenu1()
            if choose > 4 or choose < 0:
                scripts.inpErrorHandler()
                hill()
        except ValueError:
            scripts.inpErrorHandler()
            hill()
Ejemplo n.º 30
0
def hillSel1Ext():
    save = scripts.savePull()
    var7 = save[6]
    var15 = save[14]
    var16 = save[15]
    scripts.screenClear()
    scripts.versionHeader()
    scripts.invDisplay()
    if var16 != 2:
        print('The huge reptilian sees you, and approaches.')
    if var16 == 2:
        print('The reptilian waves and smiles at you.')
    if var7 == 0:
        print('')
    if var7 == 1:
        time.sleep(2)
        print("Looks like he's having a sense of déjà vu.\n")
        time.sleep(3)
    if var15 == 1:
        print('FIGHT [1]')
    print('TALK [2]')
    if var16 == 0:
        print('BACK [3]')
    if var16 == 1:
        print('GIVE FLOWER [3]')
        print('BACK [4]')
    if var16 == 2:
        print('BACK [3]')
    while True:
        try:
            choose = int(input('\nACTION >> '))
            if choose == 1:
                if var16 == 2 and var15 == 1:
                    print(
                        '\nI genuinely do not have the heart to program a scenario for this.'
                    )
                    time.sleep(2)
                    print('Sorry!')
                    time.sleep(2)
                    hill()
                if var15 == 1:
                    battle.battleFlashy()
                if var15 == 0:
                    scripts.inpErrorHandler()
                    hillSel1Ext()
            if choose == 2:
                if var7 == 0 and var16 == 2:
                    hs1e3()
                if var7 == 1:
                    hs1e1()
                if var7 == 0:
                    hs1e2()
            if choose == 3:
                if var16 == 0:
                    lizardBack()
                if var16 == 1:
                    print(
                        '\nYou give the lizard man the flower. He smiles at you.'
                    )
                    line_ext = 15
                    state_ext = 2
                    scripts.saveWriter(line_ext, state_ext)
                    time.sleep(3)
                    hillSel1Ext()
                if var16 == 2:
                    print('')
                    print(
                        textwrap.fill(
                            "That lizard looks like nobody's shown him kindness before this in a long while...",
                            75))
                    time.sleep(4)
                    hill()
            if choose == 4:
                if var16 == 0:
                    scripts.inpErrorHandler()
                    hillSel1Ext()
                if var16 == 1:
                    lizardBack()
            if choose > 4 or choose < 0:
                scripts.inpErrorHandler()
                hillSel1Ext()
        except ValueError:
            scripts.inpErrorHandler()
            hillSel1Ext()