Advertisement
Guest User

Untitled

a guest
Dec 12th, 2019
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.53 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. ##Key to the roof is in the basement, armory in security room (top floor), near janitors room in basement there is a boiler room
  3. import time
  4. import getpass
  5. import sys
  6. try: color = sys.stdout.shell
  7. except AttributeError: raise RuntimeError("Use IDLE")
  8. #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
  9. stat = 0
  10. name = ''
  11. def stats():
  12. print("Stats:", stat)
  13.  
  14. def incrementStat():
  15. global stat
  16. stat +=1
  17.  
  18. def endstat():
  19. global stat
  20. print("------Statistic------")
  21. print(" Time Survived: ",stat," ")
  22.  
  23. def credit():
  24. print("–––––––––––––––––")
  25. print("Chucky Has No End")
  26. print("–––––––––––––––––")
  27. time.sleep(1)
  28. print("Kevin Huang")
  29. time.sleep(1.5)
  30. print("Ola")
  31. time.sleep(1.5)
  32. print("Rachid")
  33.  
  34. def test():
  35. global name
  36. name = input("Please input your name.")
  37. color.write("I HOPE WE CAN BE THE BEST OF FRIENDS...\n","COMMENT")
  38. time.sleep(3)
  39. color.write("††††††††††† ","COMMENT")
  40. color.write(name,"COMMENT")
  41. color.write(" †††††††††††","COMMENT")
  42. print("")
  43. time.sleep(1)
  44. 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.
  45. What are you going to do about this strange man? (1 or 2, Type out the word or it is invalid!)""","STRING")
  46. print("")
  47. color.write("1) Ignore this person and ask them to leave.","STRING")
  48. print("")
  49. color.write("2) Say 'Get some help; You'll need it.' ","STRING")
  50. choice = input("")
  51. #choice2
  52. while(True):
  53. if (choice == "one" or choice == "One" or choice == "ONE" or choice == "1"):
  54. OnePointO()
  55. break
  56. elif (choice == "two" or choice == "Two" or choice == "TWO" or choice == "2"):
  57. TwoPointO()
  58. break
  59. else:
  60. print("Invalid command, so you will just stand there.")
  61. time.sleep(1)
  62. print("Waiting.")
  63. time.sleep(1)
  64. color.write("Forever.","COMMENT")
  65. break
  66.  
  67. def OnePoint1():
  68. incrementStat()
  69. 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.")
  70. time.sleep(2)
  71. print("""While you were running, you see several dolls walking up to you and the lights in the hall black out, blocking your vision.
  72. 1) Blitz through with your new comrade
  73. 2) Look for the nearest door and go through a detour.""")
  74. choice = input("")
  75. if(choice == "1" or choice == "One" or choice == "ONE" or choice == "one"):
  76. OnePoint2()
  77. if(choice == "2" or choice == "Two" or choice == "two" or choice == "TWO"):
  78. TwoPoint2()
  79.  
  80. def OnePoint2():
  81. incrementStat()
  82. 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.")
  83. time.sleep(3)
  84. color.write("You are dead.","COMMENT")
  85. time.sleep(.5)
  86. endstat()
  87. time.sleep(1)
  88. credit()
  89. ##last 5 lines for death
  90.  
  91. def OnePoint4():
  92. global stat
  93. global name
  94. incrementStat()
  95. 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.
  96. What kind of message do you announce?
  97. 1) Unite the remaining workers
  98. 2) Wait in the room, hoping someone comes to save you""","SYNC")
  99. if(choice == "1" or choice == "One" or choice == "ONE" or choice == "one"):
  100. uniteOne1()
  101. elif(choice == "2" or choice == "Two" or choice == "two" or choice == "TWO"):
  102. waitOne2()
  103. ##people are united from the intercom room
  104. def uniteOne1():
  105. incrementStat()
  106. 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")
  107. time.sleep(1.5)
  108. 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.")
  109. color.write("""What will you do with the group first?
  110. 1)Quickly ask around amongst the group for any advice, any leads for an escape
  111. 2)Send the group out the hall, forward towards the chaos as a diversion for your own wellbeing
  112. 3)Exit the Intercom Room as a group""","SYNC")
  113. if(choice == "1" or choice == "One" or choice == "ONE" or choice == "one"):
  114. uniteAdvice1()
  115. elif(choice == "2" or choice == "Two" or choice == "two" or choice == "TWO"):
  116. Diversion2()
  117. elif(choice == "3" or choice == "Three" or choice == "three" or choice == "THREE"):
  118. ExitIntercom3()
  119. ##after uniting people the player chooses for advice, where more information is provided about the building. Best choice
  120. def uniteAdvice1():
  121. incrementStat()
  122. color.write("The employee mentions the key in the basement. Being an employee for a while there you know what he speaks of. The key in the basement unlocks the door to the roof, which has a fire escape.")
  123. color.write("You recall the security room, which has an armory. This room is located at the top floor as well, luckily amongst the group is a security guard who has the key.")
  124. color.write("""Where will you take the group?
  125. 1)Go towards the basement
  126. 2)Go towards the roof""","SYNC")
  127. if(choice == "1" or choice == "One" or choice == "ONE" or choice == "one"):
  128. intercomBasement1()
  129. elif(choice == "2" or choice == "Two" or choice == "two" or choice == "TWO"):
  130. intercomRoof1()
  131. def waitOne2():
  132. incrementStat()
  133. color.write("You hear the sounds of footsteps, it seems to be a single individual walking to the Intercom Room..")
  134. time.sleep(1)
  135. 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.")
  136. 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")
  137. color.write("You are dead.","COMMENT")
  138. time.sleep(.5)
  139. endstat()
  140. time.sleep(1)
  141. credit()
  142. ##death scene for waiting in the intercom room
  143.  
  144. def TwoPoint4():
  145. global stat
  146. incrementStat()
  147.  
  148. def OnePoint3():
  149. global stat
  150. incrementStat()
  151. 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,
  152. there was a knife jammed into it with a smiling doll. "Good night! Said the doll""")
  153. time.sleep(4)
  154. endstat()
  155. credit()
  156.  
  157. def TwoPoint3():
  158. global stat
  159. incrementStat()
  160. 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.
  161. Consider yourself lucky.""")
  162. time.sleep(2)
  163. 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
  164. management office.
  165. What do you do?
  166. 1) Anounce that there is a threat within the building
  167. 2) Call the police
  168. 3) Start your escape from the building""")
  169. choice = input("")
  170. if(choice == "1" or choice == "One" or choice == "ONE" or choice == "one"):
  171. OnePoint4()
  172. elif(choice == "2" or choice == "Two" or choice == "two" or choice == "TWO"):
  173. TwoPoint4()
  174. else:
  175. ThreePoint4()
  176.  
  177. def OnePointO():
  178. global stat
  179. incrementStat()
  180. 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.
  181. He ran out the building quickly with a panicked expression werid.""","SYNC")
  182. time.sleep(3)
  183. color.write("""Soon after, you hear screams down the hall and went to check. you find people getting stabbed by a doll
  184. made by your company. What do you do?
  185. 1) Try to stop the doll from killing the person.
  186. 2) Run the other way""","SYNC")
  187. choice = input("")
  188. if(choice == "1" or choice == "One" or choice == "one" or choice == "ONE"):
  189. OnePoint1()
  190. elif(choice == "2" or choice == "Two" or choice == "two" or choice == "TWO"):
  191. TwoPoint1()
  192. else:
  193. print("You made a mistake. Not a forgiving game for making you restart eh? Too bad.")
  194.  
  195. def TwoPointO():
  196. global stat
  197. global name
  198. incrementStat()
  199. print("The man pushes you aside and starts to blitz towards the management office.")
  200. time.sleep(2)
  201. 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")
  202. time.sleep(2.5)
  203. print("")
  204. print("or rather")
  205. time.sleep(1)
  206. color.write("What was left of your boss. His corpse was brutalized and his head of on the desk.","COMMENT")
  207. print("What do you do?")
  208. print("1) Start running towards the emergency exit")
  209. print("2) Head towards the intercom room")
  210. choice = input("")
  211. while(True):
  212. if(choice == "1" or choice == "One" or choice == "ONE" or choice == "one"):
  213. print("")
  214. OnePoint3()
  215. break
  216. elif(choice == "2" or choice == "Two" or choice == "TWO" or choice == "two"):
  217. print("")
  218. TwoPoint3()
  219. else:
  220. print("You had one job... ONE job as the player. I guess I ASKED FOR TOO MUCH!")
  221. time.sleep(3)
  222. print("Now you will have to see this message over and over again.")
  223. print("And restart! WHAT A SHAME!")
  224.  
  225. print("It is recommended to play on full screen so you can see all the text")
  226. time.sleep(2)
  227. print("When the game abruptly ends, then it is the end of that section of the demo! Stats will only show when you die.")
  228. print("Do you want to view your stats?")
  229. color.write("Yes","STRING")
  230. color.write(" or ", "KEYWORD")
  231. color.write("No\n","COMMENT")
  232.  
  233. choice = input("")
  234.  
  235. while (choice != "Yes" or choice != "yes" or choice != "Y" or choice != "y" or choice != "No" or choice != "no" or choice != "N" or choice != "n"):
  236. if (choice == "Yes" or choice == "yes" or choice == "Y" or choice == "y"):
  237. print ("Ω---Your Statistic:",stat,"---Ω")
  238. break
  239. elif(choice == "No" or choice == "no" or choice == "N" or choice == "n"):
  240. break
  241. time.sleep(1)
  242. print("Do you want to play the game?")
  243. color.write("Yes", "STRING")
  244. color.write(" or ", "KEYWORD")
  245. color.write("No\n", "COMMENT")
  246. choice = input("")
  247. while (choice != "Yes" or choice != "yes" or choice != "Y" or choice != "y" or choice != "No" or choice != "no" or choice != "N" or choice != "n"):
  248. if (choice == "Yes" or choice == "yes" or choice == "Y" or choice == "y"):
  249. print("Welcome to the game")
  250. break
  251. elif (choice == "No" or choice == "no" or choice == "N" or choice == "n"):
  252. time.sleep(2.5)
  253. color.write("Well heres your problem. YOU didn't say yes. Close the program 'Player'! ","COMMENT")
  254. else:
  255. color.write("YOU BETTER QUIT OR RESTART OR ELSE...","COMMENT")
  256. break
  257.  
  258.  
  259. def main():
  260. test()
  261. main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement