Example #1
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()
Example #2
0
def caveSel2():
    scripts.screenClear()
    scripts.versionHeader()
    scripts.invDisplay()
    print("Up against the entrance is a sign. It's written in a strange, alien system.\n")
    print('DECIPHER [1]')
    print('BACK [2]')
    while True:
        try:
            choose = int(input('\nACTION >> '))

            if choose == 1:
                print('\nYou pull out your phone, and attempt to translate the symbols.')
                time.sleep(4)
                print('...looks like it says "Abandon all hope, ye who enter here".')
                time.sleep(4)
                print('\nBetter safe than sorry.')
                time.sleep(2)
                cave()
            if choose == 2:
                print("\nToo much work, anyways.")
                time.sleep(2)
                cave()
            if choose > 2 or choose < 1:
                scripts.inpErrorHandler()
                caveSel2()
        except ValueError:
            scripts.inpErrorHandler()
            caveSel2()
Example #3
0
def Embark2():
    print("\nSaan mentions how beautiful this planet is.")
    time.sleep(2)
    print("Seems like they all want to stick around for a bit.")
    time.sleep(2)
    print('\nLEAVE [1]')
    print('STAY [2]')
    while True:
        try:
            choose = int(input('\nACTION >> '))
            if choose == 1:
                emb2End()
            if choose == 2:
                print('\nYou and your friends disembark.')
                line_ext = 1
                state_ext = 2
                scripts.saveWriter(line_ext, state_ext)
                time.sleep(3)
                scripts.screenClear()
                time.sleep(1)
                print('\nChapter Two complete.')
                time.sleep(2)
                scripts.screenClear()
                time.sleep(1)
                mm3.mainMenu3()
            if choose > 2 or choose < 0:
                scripts.inpErrorHandler()
                Embark2()
        except ValueError:
            scripts.inpErrorHandler()
            Embark2()
Example #4
0
def tool():
    scripts.screenClear()
    scripts.versionHeader()
    scripts.invDisplay()
    print(
        textwrap.fill(
            'Seeming to be completely stranded, you decide to use the tools at your disposal.\n',
            75))
    print('\nPHONE [1]')
    print('RADAR [2]')
    print('SCANNER [3]')
    print('BACK [4]')
    while True:
        try:
            choose = int(input('\nACTION >> '))
            if choose == 1:
                toolSel1()
            if choose == 2:
                toolSel2()
            if choose == 3:
                toolSel3()
            if choose == 4:
                toolEx()
            if choose > 4 or choose < 0:
                scripts.inpErrorHandler()
                tool()
        except ValueError:
            scripts.inpErrorHandler()
            tool()
Example #5
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()
Example #6
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()
Example #7
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()
Example #8
0
def talkSel2():
    scripts.screenClear()
    scripts.versionHeader()
    scripts.invDisplay()
    print("You just...stare at them. They look bewildered.\n")
    print('KEEP STARING [1]')
    print('GO BACK [2]')
    while True:
        try:
            choose = int(input('\nACTION >> '))
            if choose == 1:
                print('')
                print(
                    textwrap.fill(
                        "Your unblinking eyes eventually cause them to wonder if there's something seriously wrong with you.",
                        75))
                time.sleep(5)
                talk()
            if choose == 2:
                print("\nYeah, this is pretty bizarre.")
                time.sleep(1.5)
                talk()
            if choose > 2 or choose < 0:
                scripts.inpErrorHandler()
                talkSel2()
        except ValueError:
            scripts.inpErrorHandler()
            talkSel2()
Example #9
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()
Example #10
0
def cave():
    scripts.screenClear()
    scripts.versionHeader()
    scripts.invDisplay()
    print(textwrap.fill('You make your way towards a deep, dark cave. You can barely see anything past the entrance.\n', 75))
    print('\nGO FORWARDS [1]')
    print('LOOK AROUND [2]')
    print('GO RIGHT [3]')
    print('BACK [4]')
    while True:
        try:
            choose = int(input('\nACTION >> '))
            if choose == 1:
                caveSel1()
            if choose == 2:
                caveSel2()
            if choose == 3:
                caveSel3()
            if choose == 4:
                print('\nSeems pretty forboding...best to head back.')
                time.sleep(3)
                mm1.mainMenu1()
            if choose > 4 or choose < 0:
                scripts.inpErrorHandler()
                cave()
        except ValueError:
            scripts.inpErrorHandler()
            cave()
Example #11
0
def talkSel1B():
    print('\nYour friends ask you a question.')
    time.sleep(2)
    print('"Liam, is everything alright?"\n')
    time.sleep(2)
    print('EXPLAIN [1]')
    print('BACK [2]')
    while True:
        try:
            choose = int(input('\nACTION >> '))
            if choose == 1:
                line_ext = 7
                state_ext = 1
                scripts.saveWriter(line_ext, state_ext)
                talk()
                print("\nYou explain to them that you're just feeling off.")
                time.sleep(3)
                print("\n:)")
                talk()
            if choose == 2:
                print("\nThey wouldn't get it.")
                time.sleep(5)
                talk()
            if choose > 2 or choose < 0:
                scripts.inpErrorHandler()
                talkSel1B()
        except ValueError:
            scripts.inpErrorHandler()
            talkSel1B()
Example #12
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()
Example #13
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()
Example #14
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()
Example #15
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()
Example #16
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()
Example #17
0
def emb2Handler():
    while True:
        try:
            print("Save failed.")
            print('\nCONTINUE [1]')
            print('QUIT [2]\n')
            choose = int(input('ACTION >> '))
            if choose == 1:
                mm3.mainMenu3()
            if choose == 2:
                quit()
            if choose > 2 or choose < 0:
                scripts.inpErrorHandler()
                emb2Handler()
        except ValueError:
            scripts.inpErrorHandler()
            emb2Handler()
Example #18
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()
Example #19
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()
Example #20
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()
Example #21
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()
Example #22
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()
Example #23
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()
Example #24
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()
Example #25
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()
Example #26
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()
Example #27
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()
Example #28
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()
Example #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()
Example #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()