示例#1
0
文件: tool.py 项目: draumaz/plains
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()
示例#2
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()
示例#3
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()
示例#4
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()
示例#5
0
文件: ch1end.py 项目: draumaz/plains
def ch1End():
    scripts.screenClear()
    scripts.versionHeader()
    scripts.invDisplay()
    print(textwrap.fill("You didn't notice it at first, but alongside a strange noise, you see a black disc in the sky.\n", 75))
    print('\nLOOK [1]')
    while True:
        try:
            choose = int(input('\nACTION >> '))
            if choose == 1:
                line_ext = 1
                state_ext = 1
                scripts.saveWriter(line_ext, state_ext)
                print('')
                print(textwrap.fill('The spacecraft descends from the sky, and lands safely. A hatch opens, and your friends walk out.', 75))
                time.sleep(5)
                scripts.screenClear()
                time.sleep(1)
                print('\nChapter One complete.')
                time.sleep(2)
                scripts.screenClear()
                time.sleep(1)
                mm2.mainMenu2()
            if choose > 1 or choose < 0:
                ch1End()
        except ValueError:
            ch1End()
示例#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()
示例#7
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()
示例#8
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()
示例#9
0
文件: hill.py 项目: draumaz/plains
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()
示例#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()
示例#11
0
文件: battle.py 项目: draumaz/plains
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()
示例#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()
示例#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()
示例#14
0
文件: hill.py 项目: draumaz/plains
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()
示例#15
0
文件: mm1.py 项目: draumaz/plains
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()
示例#16
0
文件: mm3.py 项目: draumaz/plains
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()
示例#17
0
文件: mm3.py 项目: draumaz/plains
def mainMenu3W():  #Placeholder director
    scripts.screenClear()
    line_ext = 13
    state_ext = 1
    scripts.saveWriter(line_ext, state_ext)
    scripts.versionHeader()
    scripts.invDisplay()
    print(
        textwrap.fill(
            "Thank you for playing! You've reached the end of this build - but much, much more is coming. Stay tuned!",
            75))
    print('')
    print(
        textwrap.fill(
            "Visit https://github.com/draumaz/plains to keep up with the game!",
            75))
    print('')
    time.sleep(5)
    quit()
示例#18
0
文件: tool.py 项目: draumaz/plains
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()
示例#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()
示例#20
0
文件: embark.py 项目: draumaz/plains
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()
示例#21
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()
示例#22
0
文件: hill.py 项目: draumaz/plains
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()
示例#23
0
文件: tool.py 项目: draumaz/plains
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()
示例#24
0
文件: tool.py 项目: draumaz/plains
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()
示例#25
0
文件: saan.py 项目: draumaz/plains
def saan():
    while True:
        try:
            save = scripts.savePull()
            var4 = save[3]
            var6 = save[5]
            var8 = save[7]
            var16 = save[15]
            if var8 == 0 and var6 == 1:
                scripts.screenClear()
                scripts.versionHeader()
                scripts.invDisplay()
                print("Saan won't even look you in the eye.")
                time.sleep(4)
                mm2.mainMenu2()
            scripts.screenClear()
            scripts.versionHeader()
            scripts.invDisplay()
            if var4 == 1:
                print('Saan seems distant.\n')
            if var4 != 1:
                print('Saan seems excited to talk to you.\n')
            print('WHERE ARE WE? [1]')
            print('FLIRT WITH HIM [2]')
            if var16 == 1:
                print('GIVE FLOWER [3]')
                print('BACK [4]')
            if var16 == 0 or var16 == 2 or var16 == 3:
                print('BACK [3]')
            choose = int(input('\nACTION >> '))
            if choose == 1:
                print('')
                print(
                    textwrap.fill(
                        "Saan explains how far away you ended up. This planet is light years away from home..."
                    ))
                time.sleep(5)
                friendFlagger3()
            if choose == 2:
                if var4 == 2:
                    print('')
                    print(
                        textwrap.fill(
                            "You keep telling him how cute he is. He looks happy.",
                            75))
                    time.sleep(2)
                    saan()
                if var4 == 1:
                    print('\nHe seems busy right now.')
                    time.sleep(2)
                    saan()
                if var4 == 0 or 3:
                    print('\nYou tell Saan that he has cute eyes.')
                    time.sleep(3)
                    print("You're making him blush!")
                    time.sleep(2)
                    friendFlagger1()
            if choose == 3:
                if var16 == 0 and var4 == 1 or var16 == 2 and var4 == 1:  #back|no flower, rude
                    mm2.mainMenu2()
                if var16 == 0 and var4 == 2 or var16 == 2 and var4 == 2:  #back|no flower, flirty
                    print(
                        '\nSaan follows you back to where you started, looking happy.'
                    )
                    time.sleep(3)
                    mm2.mainMenu2()
                if var16 == 0 and var4 == 0 or var16 == 0 and var4 == 3:  #back|no flower, neutral
                    print('\nSaan follows you back to where you started.')
                    time.sleep(3)
                    mm2.mainMenu2()
                if var16 == 1 and var4 == 1:  #flower, rude
                    print(
                        '\nSaan reluctantly takes the flower. He looks confused.'
                    )
                    time.sleep(3)
                    flowerFlag()
                if var16 == 1 and var4 == 2:  #flower, flirty
                    print(
                        "\nSaan looks borderline embarassed, you've made him blush quite a bit."
                    )
                    print('He happily takes the flower.')
                    time.sleep(3)
                    flowerFlag()
                if var16 == 1 and var4 == 3 or var16 == 1 and var4 == 0:  #flower, neutral
                    print(
                        "\nSaan appreciates the flower. He admires its petals and form."
                    )
                    time.sleep(3)
                    flowerFlag()
                if var16 == 3 and var4 == 1:  #back|flower, rude
                    print('\nSaan follows you back.')
                    time.sleep(2)
                    mm2.mainMenu2()
                if var16 == 3 and var4 == 3:  #back|flower, neutral
                    print(
                        '\nSaan follows you back to where you started, admiring the flower.'
                    )
                    time.sleep(3)
                    mm2.mainMenu2()
                if var16 == 3 and var4 == 2:  #back|flower, flirty
                    print('')
                    print(
                        textwrap.fill(
                            "Saan happily follows you back to where you started, looking at his flower as he walks.",
                            75))
                    time.sleep(5)
                    mm2.mainMenu2()
                else:  #Unpredictable scenario handler
                    print("\nYou and Saan head back.")
                    time.sleep(3)
                    mm2.mainMenu2()
            if choose == 4:
                if var4 <= 1:
                    print('\nYou walk back without talking...how rude.')
                    time.sleep(2)
                    friendFlagger2()
                if var4 == 2:
                    print('')
                    print(
                        textwrap.fill(
                            'You head back to the rest of your friends, Saan still blushing.',
                            75))
                    time.sleep(2)
                    mm2.mainMenu2()
            if choose > 4 or choose < 0:
                scripts.inpErrorHandler()
                saan()
        except ValueError:
            scripts.inpErrorHandler()
            saan()
示例#26
0
文件: hill.py 项目: draumaz/plains
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()
示例#27
0
def Lizard():
	while True:
		try:
			scripts.screenClear()
			scripts.versionHeader()
			scripts.invDisplay()
			vars = scripts.savePull()
			var5 = vars[4]
			var6 = vars[5]
			var7 = vars[6]
			var15 = vars[14]
			var16 = vars[15]
			annoyed_lizard = vars[10]
			print('You and your friends walk towards the lizard. ', end='')
			if var16 == 2:
				print('He waves at you all, inviting you over!')
			if var16 == 0 or 1 or 3:
				print('He notices you.')
			if var5 == 1 and var7 == 1:
				print('He looks incredibly hesistant.')
			print('\nTALK [1]')
			print('OPTION [2]')
			print('BACK [3]')
			choose = int(input('\nACTION >> '))
			if choose == 1:
				if annoyed_lizard == 4:
					print('\nThe lizard mentions how strangely you acted earlier, trying to punch him.')
					time.sleep(4)
					print('...kinda awkward. You head back.')
					time.sleep(2)
					mm3.mainMenu3()
				if var5 == 1 and var7 == 1 and annoyed_lizard != 4:
					print("\nYou ask him why he looks so nervous. He can't even look at you.")
					time.sleep(3)
					print("He leaves in a hurry.")
					time.sleep(2)
					line_ext = 17
					state_ext = 1
					scripts.saveWriter(line_ext, state_ext)
					#write new var so he doesn't show up on mm3
					mm3.mainMenu3()
				if var6 == 1 and annoyed_lizard != 4:
					Lizard() #shouldn't be possible
				if var16 == 2 and annoyed_lizard != 4:
					print('\nHe starts up a little chat with you guys.')
					print('Seems like he really appreciates your presence.')
					time.sleep(5)
					Lizard()
				else:
					print('\nThe lizard man asks you guys if you need help getting back home.')
					time.sleep(3)
					print("Kinda obvious, isn't it?")
					time.sleep(2)
					Lizard()
			if choose == 2:
				pass
			if choose == 3:
				print('\nYou all tell him that you need to go for a bit.')
				time.sleep(2)
				mm3.mainMenu3()
			if choose > 3 or choose < 1:
				scripts.inpErrorHandler()
				Lizard()
		except ValueError:
			scripts.inpErrorHandler()
			Lizard()
示例#28
0
文件: hill.py 项目: draumaz/plains
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()