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()
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()
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()
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()
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()
def devJump(): scripts.screenClear() print('\nDevelopment Hopper\n') print('CHAPTER 1 [1]') print('CHAPTER 2 [2]') print('CHAPTER 3 [3]') print('\nPROD RESET [4]') print('') print('BAD END FLAG [5]') print('TOOLS USED FLAG [6]') print('KILLED LIZARD FLAG [7]') print('SPLASH OFF [8]') print('SPLASH ON [9]') print('FLOWER [10]') print('\nEXIT [11]') while True: try: choose = int(input('\nACTION >> ')) if choose == 1: #Chapter 1 Jump mm1.mainMenu1() if choose == 2: #Chapter 2 Jump line_ext = 0 state_ext = 1 scripts.saveWriter(line_ext, state_ext) line_ext = 0 state_ext = 1 scripts.saveWriter(line_ext, state_ext) mm2.mainMenu2() if choose == 3: #Chapter 3 Jump line_ext = 0 state_ext = 1 scripts.saveWriter(line_ext, state_ext) line_ext = 1 state_ext = 2 scripts.saveWriter(line_ext, state_ext) mm3.mainMenu3() if choose == 4: #Full Reset save = open('data.txt', 'w+') save.write("0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0") save.close() devJump() if choose == 5: #Bad Ending line_ext = 8 state_ext = 1 scripts.saveWriter(line_ext, state_ext) line_ext = 0 state_ext = 1 scripts.saveWriter(line_ext, state_ext) line_ext = 1 state_ext = 1 scripts.saveWriter(line_ext, state_ext) devJump() if choose == 6: #Tools used flag line_ext = 2 state_ext = 1 scripts.saveWriter(line_ext, state_ext) devJump() if choose == 7: #Lizard murder flag line_ext = 5 state_ext = 1 scripts.saveWriter(line_ext, state_ext) line_ext = 6 state_ext = 1 scripts.saveWriter(line_ext, state_ext) devJump() if choose == 8: line_ext = 10 state_ext = 1 scripts.saveWriter(line_ext, state_ext) devJump() if choose == 9: line_ext = 10 state_ext = 0 scripts.saveWriter(line_ext, state_ext) devJump() if choose == 10: line_ext = 15 state_ext = 1 scripts.saveWriter(line_ext, state_ext) if choose == 11: scripts.screenClear() quit() except ValueError: devJump()
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()
def friendFlagger2(): #Rude Flag line_ext = 3 state_ext = 1 scripts.saveWriter(line_ext, state_ext) mm2.mainMenu2()