123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- import time
- import print_slow
- def processIn(prompt, orderedOptions):
- while True:
- tmp = str(input(prompt))
- for i in range(len(orderedOptions)):
- if tmp.lower() == orderedOptions[i].lower():
- return i
-
- def response(options, responseType):
- if options == ["comfort", "ignore", "demean"]:
- if responseType == 0:
- print_slow.print_slow("You look fine. You look beautiful Emma. Don't listen to your self hatred.")
- print_slow.print_slow("Remember what Alice said? You just have to believe in yourself. You can do it.")
- if responseType == 1:
- print_slow.print_slow("Look away, look away, look away. Ok. Deep breaths.")
- if responseType == 2:
- print_slow.print_slow("Wow, you're so pathetic Emma. I can't even look in a god damn mirror anymore?")
- print_slow.print_slow("Come on, look up! Look at your ugly face, everyone else has to see it.")
- if options == ["play it cool", "be honest"]:
- if responseType == 0:
- print_slow.print_slow("Mm, politics are weird eh? What do you think about it?")
- print_slow.print_slow("This isn't just weird. They're lining the streets with cops for a reason.")
- if responseType == 1:
- print_slow.print_slow("No I didn't, tell me about it.")
- print_slow.print_slow("You really have to keep up with what's happening Emma, it's ridiculous.")
- print_slow.print_slow("They're lining the streets with cops, you're not allowed to be in a group of more than five people outside now.")
- print_slow.print_slow("I really hope someone does something about it.")
- print_slow.print_slow("Anyway, I have to go now, you can always text me!")
- if options == ["go up to child", "ignore"]:
- if responseType == 0:
- print_slow.print_slow("You to child: Hi, are you ok?")
- print_slow.print_slow("Child: Yeah, I'm just really upset.")
- print_slow.print_slow("Yeah... Well I hope you feel better soon but I really need to go now, bye!")
- time.sleep(1)
- print_slow.print_slow("Wow, I lied to that kid.")
- responseType = 1
- if responseType == 1:
- print_slow.print_slow("I wish I could help them... Why do I have to be so anxious?")
- return 0
- def dialogue(position):
- if position == "start":
- orderedOptions = ["look"] #Options ordered from friendly to
- #unfriendly.
- processIn("Type \"look\" to look around: ", orderedOptions)
- print_slow.print_slow("Ok... A mirror. Wait no, don't look at that!")
- orderedOptions = ["comfort", "ignore", "demean"]
- tmp = processIn("Options: Comfort, Ignore, or Demean: ", orderedOptions)
- response(orderedOptions, tmp)
- elif position == "legislation":
- orderedOptions = ["play it cool", "be honest"]
- tmp = processIn("Options: Be honest or play it cool: ", orderedOptions)
- response(orderedOptions, tmp)
- elif position == "child":
- orderedOptions = ["go up to child", "ignore"]
- tmp = processIn("Options: Go up to child, or ignore: ", orderedOptions)
- response(orderedOptions, tmp)
- return 0
|