Advertisement
Guest User

Side Quest Unfinished

a guest
Feb 20th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.43 KB | None | 0 0
  1. import time
  2. import os
  3. import ctypes
  4.  
  5. kernel32 = ctypes.windll.kernel32
  6. kernel32.SetConsoleMode(kernel32.GetStdHandle(-11), 7)
  7.  
  8. def read(text,delay=0.07,newline=True):
  9. for i in text:print(i,end="",flush=True);time.sleep(delay)
  10. if newline:print("",flush=True)
  11. print('\033[25m')
  12. os.system('cls')
  13. time.sleep(1)
  14. print("",end="\033[92m")
  15. read('MilkyWay90\'s',delay=0.2)
  16. print("",end="\033[31m")
  17.  
  18. read('''
  19. ______ ______ _______ ________ ______ __ __ ________ ______ ________
  20. / \/ / \/ | / \/ | / / |/ \/ |
  21. /$$$$$$ $$$$$$/$$$$$$$ $$$$$$$$/ /$$$$$$ $$ | $$ $$$$$$$$//$$$$$$ $$$$$$$$/
  22. $$ \__$$/ $$ | $$ | $$ $$ |__ $$ | $$ $$ | $$ $$ |__ $$ \__$$/ $$ |
  23. $$ \ $$ | $$ | $$ $$ | $$ | $$ $$ | $$ $$ | $$ \ $$ |
  24. $$$$$$ | $$ | $$ | $$ $$$$$/ $$ |_ $$ $$ | $$ $$$$$/ $$$$$$ | $$ |
  25. / \__$$ |_$$ |_$$ |__$$ $$ |_____ $$ / \$$ $$ \__$$ $$ |_____/ \__$$ | $$ |
  26. $$ $$// $$ $$ $$/$$ | $$ $$ $$<$$ $$/$$ $$ $$/ $$ |
  27. $$$$$$/ $$$$$$/$$$$$$$/ $$$$$$$$/ $$$$$$ |$$$$$$/ $$$$$$$$/ $$$$$$/ $$/
  28. $$$/
  29. '''[1:-1],delay=0.001)
  30. time.sleep(1)
  31. print("\n"*4)
  32. input('\033[0m\033[4mPress "Enter" to play\033[0m ')
  33.  
  34. os.system('cls')
  35.  
  36. read('You have joined the game.')
  37.  
  38. time.sleep(1)
  39.  
  40. os.system('cls')
  41.  
  42. read('You have woken up.')
  43.  
  44. time.sleep(1)
  45.  
  46. read('You are very drowsy, given that you slept and midnight. It is hard for you to open your eyes.')
  47. def open_eyes():
  48. read('Would you like to open your eyes, or would you like to go back to sleep (answer with yes or no)? ')
  49. print("\033[94m", end = "")
  50. wake_up = input()
  51. print("\033[0m", end = "")
  52. if wake_up[0].lower() == "y":
  53. jail_cell()
  54. elif wake_up[0].lower() == "n":
  55. sleep_more()
  56. else:
  57. read("Invalid Input!")
  58. os.system('cls')
  59. open_eyes()
  60. def jail_cell():
  61. os.system('cls')
  62. read('You open your eyes, and reach for a cup of water.')
  63. read('You notice that there is no cup of water there. Instead, you see a steel wall.')
  64. read('Scared, you jump off your bed and look at your door. There is no door, just steel bars.')
  65. read('How will you react (Type "shout" to shout, "sleep" to go back to sleep, or "slam" to slam the jail bars)?')
  66. print("\033[94m", end = "")
  67. action = input()
  68. print("\033[0m", end = "")
  69. open_eyes()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement