Advertisement
Guest User

Untitled

a guest
Mar 1st, 2015
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.15 KB | None | 0 0
  1. import sys, random
  2.  
  3. Inventory = {}
  4.  
  5. PHealth = 60
  6. FoeHealth = 60
  7. Pills = 100
  8.  
  9. # Bedroom Code
  10. def Guy():
  11. choice = input('This guy is still awake and he has a back pack which probably has some water.n>>>I need pills<<<'
  12. 'ntype give pills')
  13. try:
  14. if choice == 'give pills':
  15. 'Some Pills' in Inventory==True
  16. print('It works')
  17. except:
  18. print('leave me alone')
  19. Guy()
  20.  
  21.  
  22. # Bathroom Code
  23. def BathRoom():
  24. print('n>>>This place is disgusting and some body is passed out on the toilet'
  25. 'n>>>Hmm maybe I could find something here'
  26. )
  27. print('You can always check you inventory with ''i')
  28. choice = input('Check medicine cabinet, in toilet, under the sink or leave?')
  29. if choice == 'medicine cabinet':
  30. print('n>>>These Pills look useful')
  31. Inventory['Some Pills'] = 'Someone might want these'
  32. print('nYou have Some Pills in your Inventory')
  33. if choice == 'toilet':
  34. print('n>>>I doubt he will wake up')
  35. if choice == 'under the sink':
  36. print('n>>>Definitely no water here')
  37. if choice == 'leave':
  38. print('nYou are now in the living room')
  39. MainRoom()
  40. if choice == 'i':
  41. for k, v in Inventory.items():
  42. print('>>>You have the following Items<<<')
  43. print (k)
  44. print('n')
  45. break
  46. else:
  47. print("You don't have anything in your inventory")
  48. print("n")
  49. BathRoom()
  50.  
  51.  
  52. #Kitchen function
  53. def Kitchen():
  54. print('>>>This looks the kitchen alright, I should check everywhere')
  55. choice = input('Search fridge, cupboard, sink or leaven')
  56. if choice == ('fridge'):
  57. print('>>>Darnit its empty...I should keep searchingn')
  58. elif choice == ('cupboard'):
  59. print('>>>Nope no water heren')
  60. elif choice == ('sink'):
  61. print('>>>There is no water running, *sigh* of course not, this is a squat housen')
  62. elif choice == ('i'):
  63. for k, v in Inventory.items():
  64. print('>>>You have the following Items<<<')
  65. print (k)
  66. print('n')
  67. break
  68. else:
  69. print("You don't have anything in your inventory")
  70. print("n")
  71. else:
  72. print('>>>Screw this')
  73. print('You have left the kitchen you are now in the living roomn')
  74. MainRoom()
  75. Kitchen()
  76.  
  77.  
  78. #Introduction
  79. print("You awaken hungover at a house party,n"
  80. "Every one around you is passed out. n"
  81. "Find some water")
  82. print('you can do the followingn')
  83. #MAIN ROOM function
  84. def MainRoom():
  85. print('Go to kitchen, bathroom, or that guy who keeps starring at you?n'
  86. 'or press i to open your Inventory')
  87. destination = input('Choose a locationn')
  88. if destination == 'kitchen':
  89. Kitchen()
  90. if destination == 'bathroom':
  91. BathRoom()
  92. if destination == 'guy':
  93. Guy()
  94. if destination == 'i':
  95. for k, v in Inventory.items():
  96. print('>>>You have the following Items<<<')
  97. print (k)
  98. print('n')
  99. break
  100. else:
  101. print("You don't have anything in your inventory")
  102. print("n")
  103. MainRoom()
  104.  
  105. MainRoom()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement