Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import sys, random
- Inventory = {}
- PHealth = 60
- FoeHealth = 60
- Pills = 100
- # Bedroom Code
- def Guy():
- choice = input('This guy is still awake and he has a back pack which probably has some water.n>>>I need pills<<<'
- 'ntype give pills')
- try:
- if choice == 'give pills':
- 'Some Pills' in Inventory==True
- print('It works')
- except:
- print('leave me alone')
- Guy()
- # Bathroom Code
- def BathRoom():
- print('n>>>This place is disgusting and some body is passed out on the toilet'
- 'n>>>Hmm maybe I could find something here'
- )
- print('You can always check you inventory with ''i')
- choice = input('Check medicine cabinet, in toilet, under the sink or leave?')
- if choice == 'medicine cabinet':
- print('n>>>These Pills look useful')
- Inventory['Some Pills'] = 'Someone might want these'
- print('nYou have Some Pills in your Inventory')
- if choice == 'toilet':
- print('n>>>I doubt he will wake up')
- if choice == 'under the sink':
- print('n>>>Definitely no water here')
- if choice == 'leave':
- print('nYou are now in the living room')
- MainRoom()
- if choice == 'i':
- for k, v in Inventory.items():
- print('>>>You have the following Items<<<')
- print (k)
- print('n')
- break
- else:
- print("You don't have anything in your inventory")
- print("n")
- BathRoom()
- #Kitchen function
- def Kitchen():
- print('>>>This looks the kitchen alright, I should check everywhere')
- choice = input('Search fridge, cupboard, sink or leaven')
- if choice == ('fridge'):
- print('>>>Darnit its empty...I should keep searchingn')
- elif choice == ('cupboard'):
- print('>>>Nope no water heren')
- elif choice == ('sink'):
- print('>>>There is no water running, *sigh* of course not, this is a squat housen')
- elif choice == ('i'):
- for k, v in Inventory.items():
- print('>>>You have the following Items<<<')
- print (k)
- print('n')
- break
- else:
- print("You don't have anything in your inventory")
- print("n")
- else:
- print('>>>Screw this')
- print('You have left the kitchen you are now in the living roomn')
- MainRoom()
- Kitchen()
- #Introduction
- print("You awaken hungover at a house party,n"
- "Every one around you is passed out. n"
- "Find some water")
- print('you can do the followingn')
- #MAIN ROOM function
- def MainRoom():
- print('Go to kitchen, bathroom, or that guy who keeps starring at you?n'
- 'or press i to open your Inventory')
- destination = input('Choose a locationn')
- if destination == 'kitchen':
- Kitchen()
- if destination == 'bathroom':
- BathRoom()
- if destination == 'guy':
- Guy()
- if destination == 'i':
- for k, v in Inventory.items():
- print('>>>You have the following Items<<<')
- print (k)
- print('n')
- break
- else:
- print("You don't have anything in your inventory")
- print("n")
- MainRoom()
- MainRoom()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement