Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## 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
- import time
- import getpass
- import sys
- try: color = sys.stdout.shell
- except AttributeError: raise RuntimeError("Use IDLE")
- #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
- stat = 0
- name = ''
- def stats():
- print("Stats:", stat)
- def incrementStat():
- global stat
- stat +=1
- def endstat():
- global stat
- print("------Statistic------")
- print(" Time Survived: ",stat," ")
- def credit():
- print("–––––––––––––––––")
- print("Chucky Has No End")
- print("–––––––––––––––––")
- time.sleep(1)
- print("Kevin Huang")
- time.sleep(1.5)
- print("Ola")
- time.sleep(1.5)
- print("Rachid")
- def test():
- global name
- name = input("Please input your name.")
- color.write("I HOPE WE CAN BE THE BEST OF FRIENDS...\n","COMMENT")
- time.sleep(3)
- color.write("††††††††††† ","COMMENT")
- color.write(name,"COMMENT")
- color.write(" †††††††††††","COMMENT")
- print("")
- time.sleep(1)
- 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.
- What are you going to do about this strange man? (1 or 2, Type out the word or it is invalid!)""","STRING")
- print("")
- color.write("1) Ignore this person and ask them to leave.","STRING")
- print("")
- color.write("2) Say 'Get some help; You'll need it.' ","STRING")
- choice = input("")
- #choice2
- while(True):
- if (choice == "one" or choice == "One" or choice == "ONE" or choice == "1"):
- OnePointO()
- break
- elif (choice == "two" or choice == "Two" or choice == "TWO" or choice == "2"):
- TwoPointO()
- break
- else:
- print("Invalid command, so you will just stand there.")
- time.sleep(1)
- print("Waiting.")
- time.sleep(1)
- color.write("Forever.","COMMENT")
- break
- def OnePoint1():
- incrementStat()
- 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.")
- time.sleep(2)
- print("""While you were running, you see several dolls walking up to you and the lights in the hall black out, blocking your vision.
- 1) Blitz through with your new comrade
- 2) Look for the nearest door and go through a detour.""")
- choice = input("")
- if(choice == "1" or choice == "One" or choice == "ONE" or choice == "one"):
- OnePoint2()
- if(choice == "2" or choice == "Two" or choice == "two" or choice == "TWO"):
- TwoPoint2()
- def OnePoint2():
- incrementStat()
- 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.")
- time.sleep(3)
- color.write("You are dead.","COMMENT")
- time.sleep(.5)
- endstat()
- time.sleep(1)
- credit()
- ##last 5 lines for death
- def OnePoint4():
- global stat
- global name
- incrementStat()
- 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.
- What kind of message do you announce?
- 1) Unite the remaining workers
- 2) Wait in the room, hoping someone comes to save you""","SYNC")
- if(choice == "1" or choice == "One" or choice == "ONE" or choice == "one"):
- uniteOne1()
- elif(choice == "2" or choice == "Two" or choice == "two" or choice == "TWO"):
- waitOne2()
- def uniteOne1():
- incrementStat()
- 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")
- time.sleep(1.5)
- 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.")
- color.write("""What will you do with the group first?
- 1)Quickly ask around amongst the group for any advice, any leads for an escape
- 2)Send the group out the hall, forward towards the chaos as a diversion for your own wellbeing
- 3)Exit the Intercom Room as a group""","SYNC")
- if(choice == "1" or choice == "One" or choice == "ONE" or choice == "one"):
- elif(choice == "2" or choice == "Two" or choice == "two" or choice == "TWO"):
- elif(choice == "3" or choice == "Three" or choice == "three" or choice == "THREE"):
- def waitOne2():
- incrementStat()
- color.write("You hear the sounds of footsteps, it seems to be a single individual walking to the Intercom Room..")
- time.sleep(1)
- 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.")
- 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")
- color.write("You are dead.","COMMENT")
- time.sleep(.5)
- endstat()
- time.sleep(1)
- credit()
- ##death scene for waiting in the intercom room
- def TwoPoint4():
- global stat
- incrementStat()
- def OnePoint3():
- global stat
- incrementStat()
- 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,
- there was a knife jammed into it with a smiling doll. "Good night! Said the doll""")
- time.sleep(4)
- endstat()
- credit()
- def TwoPoint3():
- global stat
- incrementStat()
- 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.
- Consider yourself lucky.""")
- time.sleep(2)
- 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
- management office.
- What do you do?
- 1) Anounce that there is a threat within the building
- 2) Call the police
- 3) Start your escape from the building""")
- choice = input("")
- if(choice == "1" or choice == "One" or choice == "ONE" or choice == "one"):
- OnePoint4()
- elif(choice == "2" or choice == "Two" or choice == "two" or choice == "TWO"):
- TwoPoint4()
- else:
- ThreePoint4()
- def OnePointO():
- global stat
- incrementStat()
- 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.
- He ran out the building quickly with a paniced expression werid.""","SYNC")
- time.sleep(3)
- color.write("""Soon after, you hear screams down the hall and went to check. you find people getting stabbed by a doll
- made by your company. What do you do?
- 1) Try to stop the doll from killing the person.
- 2) Run the other way""","SYNC")
- choice = input("")
- if(choice == "1" or choice == "One" or choice == "one" or choice == "ONE"):
- OnePoint1()
- elif(choice == "2" or choice == "Two" or choice == "two" or choice == "TWO"):
- TwoPoint1()
- else:
- print("You made a mistake. Not a forgiving game for making you restart eh? Too bad.")
- def TwoPointO():
- global stat
- global name
- incrementStat()
- print("The man pushes you aside and starts to blitz towards the management office.")
- time.sleep(2)
- 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")
- time.sleep(2.5)
- print("")
- print("or rather")
- time.sleep(1)
- color.write("What was left of your boss. His corpse was brutalized and his head of on the desk.","COMMENT")
- print("What do you do?")
- print("1) Start running towards the emergency exit")
- print("2) Head towards the intercom room")
- choice = input("")
- while(True):
- if(choice == "1" or choice == "One" or choice == "ONE" or choice == "one"):
- print("")
- OnePoint3()
- break
- elif(choice == "2" or choice == "Two" or choice == "TWO" or choice == "two"):
- print("")
- TwoPoint3()
- else:
- print("You had one job... ONE job as the player. I guess I ASKED FOR TOO MUCH!")
- time.sleep(3)
- print("Now you will have to see this message over and over again.")
- print("And restart! WHAT A SHAME!")
- print("It is recommended to play on full screen so you can see all the text")
- time.sleep(2)
- print("When the game abruptly ends, then it is the end of that section of the demo! Stats will only show when you die.")
- print("Do you want to view your stats?")
- color.write("Yes","STRING")
- color.write(" or ", "KEYWORD")
- color.write("No\n","COMMENT")
- choice = input("")
- while (choice != "Yes" or choice != "yes" or choice != "Y" or choice != "y" or choice != "No" or choice != "no" or choice != "N" or choice != "n"):
- if (choice == "Yes" or choice == "yes" or choice == "Y" or choice == "y"):
- print ("Ω---Your Statistic:",stat,"---Ω")
- break
- elif(choice == "No" or choice == "no" or choice == "N" or choice == "n"):
- break
- time.sleep(1)
- print("Do you want to play the game?")
- color.write("Yes", "STRING")
- color.write(" or ", "KEYWORD")
- color.write("No\n", "COMMENT")
- choice = input("")
- while (choice != "Yes" or choice != "yes" or choice != "Y" or choice != "y" or choice != "No" or choice != "no" or choice != "N" or choice != "n"):
- if (choice == "Yes" or choice == "yes" or choice == "Y" or choice == "y"):
- print("Welcome to the game")
- break
- elif (choice == "No" or choice == "no" or choice == "N" or choice == "n"):
- time.sleep(2.5)
- color.write("Well heres your problem. YOU didn't say yes. Close the program 'Player'! ","COMMENT")
- else:
- color.write("YOU BETTER QUIT OR RESTART OR ELSE...","COMMENT")
- break
- def main():
- test()
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement