Advertisement
Guest User

Untitled

a guest
Dec 10th, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.46 KB | None | 0 0
  1. ## Security office at top floor, janitor's office at basement, management is wherever we want, intercom room is on the same floor as management room
  2. import time
  3. import getpass
  4. import sys
  5. try: color = sys.stdout.shell
  6. except AttributeError: raise RuntimeError("Use IDLE")
  7. #Color.write ("What you want to show up","SYNC, stdin, BUILTIN, STRING, console, COMMENT, stdout, TODO, stderr, hit, DEFINITION, KEYWORD, ERROR, and sel") <-color format
  8. stat = 0
  9. name = ''
  10. def stats():
  11. print("Stats:", stat)
  12.  
  13. def incrementStat():
  14. global stat
  15. stat +=1
  16.  
  17. def endstat():
  18. global stat
  19. print("------Statistic------")
  20. print(" Time Survived: ",stat," ")
  21.  
  22. def credit():
  23. print("–––––––––––––––––")
  24. print("Chucky Has No End")
  25. print("–––––––––––––––––")
  26. time.sleep(1)
  27. print("Kevin Huang")
  28. time.sleep(1.5)
  29. print("Ola")
  30. time.sleep(1.5)
  31. print("Rachid")
  32.  
  33. def test():
  34. global name
  35. name = input("Please input your name.")
  36. color.write("I HOPE WE CAN BE THE BEST OF FRIENDS...\n","COMMENT")
  37. time.sleep(3)
  38. color.write("††††††††††† ","COMMENT")
  39. color.write(name,"COMMENT")
  40. color.write(" †††††††††††","COMMENT")
  41. print("")
  42. time.sleep(1)
  43. color.write("""You're an employee of a business and one day; There was a stranger who wanted a promotion. The person kept talking to himself of Chucky and how he is going to kill everybody.
  44. What are you going to do about this strange man? (1 or 2, Type out the word or it is invalid!)""","STRING")
  45. print("")
  46. color.write("1) Ignore this person and ask them to leave.","STRING")
  47. print("")
  48. color.write("2) Say 'Get some help; You'll need it.' ","STRING")
  49. choice = input("")
  50. #choice2
  51. while(True):
  52. if (choice == "one" or choice == "One" or choice == "ONE" or choice == "1"):
  53. OnePointO()
  54. break
  55. elif (choice == "two" or choice == "Two" or choice == "TWO" or choice == "2"):
  56. TwoPointO()
  57. break
  58. else:
  59. print("Invalid command, so you will just stand there.")
  60. time.sleep(1)
  61. print("Waiting.")
  62. time.sleep(1)
  63. color.write("Forever.","COMMENT")
  64. break
  65.  
  66. def OnePoint1():
  67. incrementStat()
  68. print("You try to stop the doll from killing the person. Upon closer inspection, the person looked like someone who joined the company the same time you joined.")
  69. time.sleep(2)
  70. print("""While you were running, you see several dolls walking up to you and the lights in the hall black out, blocking your vision.
  71. 1) Blitz through with your new comrade
  72. 2) Look for the nearest door and go through a detour.""")
  73. choice = input("")
  74. if(choice == "1" or choice == "One" or choice == "ONE" or choice == "one"):
  75. OnePoint2()
  76. if(choice == "2" or choice == "Two" or choice == "two" or choice == "TWO"):
  77. TwoPoint2()
  78.  
  79. def OnePoint2():
  80. incrementStat()
  81. print("You blitz through with your new comrade in arms but they are too wounded. They collapse and as you turned around to look at him/her, something heavy fell on top of you.")
  82. time.sleep(3)
  83. color.write("You are dead.","COMMENT")
  84. time.sleep(.5)
  85. endstat()
  86. time.sleep(1)
  87. credit()
  88. ##last 5 lines for death
  89.  
  90. def OnePoint4():
  91. global stat
  92. global name
  93. incrementStat()
  94. color.write("""It feels safe within the Intercom Room for now. You know the decision you make in this room will affect every worker in the facility.
  95. What kind of message do you announce?
  96. 1) Unite the remaining workers
  97. 2) Wait in the room, hoping someone comes to save you""","SYNC")
  98. if(choice == "1" or choice == "One" or choice == "ONE" or choice == "one"):
  99. uniteOne1()
  100. elif(choice == "2" or choice == "Two" or choice == "two" or choice == "TWO"):
  101. waitOne2()
  102. def uniteOne1():
  103. incrementStat()
  104. color.write("You hear the sounds of many footsteps, scrambling towards your location. The noise gets louder and louder as they get closer to you..","SYNC")
  105. time.sleep(1.5)
  106. color.write("The remaining 40% workers flood the Intercom Room, about 10 of them. You are now the leader of this group, they're depending on you for their survival.")
  107. color.write("""What will you do with the group first?
  108. 1)Quickly ask around amongst the group for any advice, any leads for an escape
  109. 2)Send the group out the hall, forward towards the chaos as a diversion for your own wellbeing
  110. 3)Exit the Intercom Room as a group""","SYNC")
  111. if(choice == "1" or choice == "One" or choice == "ONE" or choice == "one"):
  112.  
  113. elif(choice == "2" or choice == "Two" or choice == "two" or choice == "TWO"):
  114.  
  115. elif(choice == "3" or choice == "Three" or choice == "three" or choice == "THREE"):
  116.  
  117. def waitOne2():
  118. incrementStat()
  119. color.write("You hear the sounds of footsteps, it seems to be a single individual walking to the Intercom Room..")
  120. time.sleep(1)
  121. color.write("The silhouette of a doll reflects off the screen you stand infront of, the doll you saw a glimpse of has now entered the room you're in. He's here to kill you.")
  122. color.write("He attacks you in critical points to make sure you will die, but leaves you to die slowly in the Intercom Room where you had a chance to save everyone.","COMMENT")
  123. color.write("You are dead.","COMMENT")
  124. time.sleep(.5)
  125. endstat()
  126. time.sleep(1)
  127. credit()
  128. ##death scene for waiting in the intercom room
  129.  
  130. def TwoPoint4():
  131. global stat
  132. incrementStat()
  133.  
  134. def OnePoint3():
  135. global stat
  136. incrementStat()
  137. print("""You head towards the emergency exit and as you were running around a corner, you feel pain on your leg. When you look down on your leg,
  138. there was a knife jammed into it with a smiling doll. "Good night! Said the doll""")
  139. time.sleep(4)
  140. endstat()
  141. credit()
  142.  
  143. def TwoPoint3():
  144. global stat
  145. incrementStat()
  146. print("""You head towards the intercom room and while you get there, you hear screams behind you. It seems whatever killed your boss went the other way you did.
  147. Consider yourself lucky.""")
  148. time.sleep(2)
  149. print("""Entering the intercoms room, you find that the people were already dead. it seems like the killing has already been happening while you were heading towards the
  150. management office.
  151. What do you do?
  152. 1) Anounce that there is a threat within the building
  153. 2) Call the police
  154. 3) Start your escape from the building""")
  155. choice = input("")
  156. if(choice == "1" or choice == "One" or choice == "ONE" or choice == "one"):
  157. OnePoint4()
  158. elif(choice == "2" or choice == "Two" or choice == "two" or choice == "TWO"):
  159. TwoPoint4()
  160. else:
  161. ThreePoint4()
  162.  
  163. def OnePointO():
  164. global stat
  165. incrementStat()
  166. color.write("""You ask the person politely to leave but the person gets a phone call. His eyes grew wide as he looked at the call number and said he had to go.
  167. He ran out the building quickly with a paniced expression werid.""","SYNC")
  168. time.sleep(3)
  169. color.write("""Soon after, you hear screams down the hall and went to check. you find people getting stabbed by a doll
  170. made by your company. What do you do?
  171. 1) Try to stop the doll from killing the person.
  172. 2) Run the other way""","SYNC")
  173. choice = input("")
  174. if(choice == "1" or choice == "One" or choice == "one" or choice == "ONE"):
  175. OnePoint1()
  176. elif(choice == "2" or choice == "Two" or choice == "two" or choice == "TWO"):
  177. TwoPoint1()
  178. else:
  179. print("You made a mistake. Not a forgiving game for making you restart eh? Too bad.")
  180.  
  181. def TwoPointO():
  182. global stat
  183. global name
  184. incrementStat()
  185. print("The man pushes you aside and starts to blitz towards the management office.")
  186. time.sleep(2)
  187. color.write("When you enter the office, the light flickers slightly and you don't see the man but you do see your boss.","SYNC")
  188. time.sleep(2.5)
  189. print("")
  190. print("or rather")
  191. time.sleep(1)
  192. color.write("What was left of your boss. His corpse was brutalized and his head of on the desk.","COMMENT")
  193. print("What do you do?")
  194. print("1) Start running towards the emergency exit")
  195. print("2) Head towards the intercom room")
  196. choice = input("")
  197. while(True):
  198. if(choice == "1" or choice == "One" or choice == "ONE" or choice == "one"):
  199. print("")
  200. OnePoint3()
  201. break
  202. elif(choice == "2" or choice == "Two" or choice == "TWO" or choice == "two"):
  203. print("")
  204. TwoPoint3()
  205. else:
  206. print("You had one job... ONE job as the player. I guess I ASKED FOR TOO MUCH!")
  207. time.sleep(3)
  208. print("Now you will have to see this message over and over again.")
  209. print("And restart! WHAT A SHAME!")
  210.  
  211. print("It is recommended to play on full screen so you can see all the text")
  212. time.sleep(2)
  213. print("When the game abruptly ends, then it is the end of that section of the demo! Stats will only show when you die.")
  214. print("Do you want to view your stats?")
  215. color.write("Yes","STRING")
  216. color.write(" or ", "KEYWORD")
  217. color.write("No\n","COMMENT")
  218.  
  219. choice = input("")
  220.  
  221. while (choice != "Yes" or choice != "yes" or choice != "Y" or choice != "y" or choice != "No" or choice != "no" or choice != "N" or choice != "n"):
  222. if (choice == "Yes" or choice == "yes" or choice == "Y" or choice == "y"):
  223. print ("Ω---Your Statistic:",stat,"---Ω")
  224. break
  225. elif(choice == "No" or choice == "no" or choice == "N" or choice == "n"):
  226. break
  227. time.sleep(1)
  228. print("Do you want to play the game?")
  229. color.write("Yes", "STRING")
  230. color.write(" or ", "KEYWORD")
  231. color.write("No\n", "COMMENT")
  232. choice = input("")
  233. while (choice != "Yes" or choice != "yes" or choice != "Y" or choice != "y" or choice != "No" or choice != "no" or choice != "N" or choice != "n"):
  234. if (choice == "Yes" or choice == "yes" or choice == "Y" or choice == "y"):
  235. print("Welcome to the game")
  236. break
  237. elif (choice == "No" or choice == "no" or choice == "N" or choice == "n"):
  238. time.sleep(2.5)
  239. color.write("Well heres your problem. YOU didn't say yes. Close the program 'Player'! ","COMMENT")
  240. else:
  241. color.write("YOU BETTER QUIT OR RESTART OR ELSE...","COMMENT")
  242. break
  243.  
  244.  
  245. def main():
  246. test()
  247. main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement