Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def menu (list, question):
- for entry in list:
- print 1 + list.index(entry),
- print ") " + entry
- return input (question) - 1
- def sub(v,b):
- while v > 0:
- if keyfound == 0:
- print v, "-", b, "=", v - b
- elif v <= 0:
- break
- while opt1 == 9: #attesc
- b = 30
- print "" #dont find teh key
- while opt2 == 10: #gouge
- b = 40
- print "" #dont find the key
- while opt3 == 11: #diginto
- b = 55
- print "" #dont find the key
- print ""
- while opt4 == 12: #eatyour
- b = 65
- print "" #dont find the key
- while opt5 == 13: #biteoff
- if opt5 == 13:
- break
- else:
- b = 10
- print "You need to find something to do this with"
- #make less crazy after initial layout
- items = ["attempt escape","gouge eyes out","dig into veins","eat your own foot","bite off your finger screaming my precious","door"]
- from random import choice
- release = choice(items)
- release = 4
- keyfound = 0
- loop = 1
- print "Hello and welcome to the game. You are here for"
- print "committing crimes against humanity."
- print "Here are your "
- print len(items), "options:"
- for x in items:
- print x
- print "You only have so much blood, choose wisely."
- print "The door is locked. Could there be a key somewhere?"
- while loop == 1:
- if v <= 0:
- restart()
- if keyfound == 1:
- break
- choice = menu(items,"What do you want to do? ")
- if choice == 0:
- if choice == release:
- print "" #find the key
- print ""
- keyfound = 1
- else:
- print "You fail the escape but you find a small"
- print "rusty saw, it may come in handy."
- opt5 = 13
- elif choice == 1:
- if choice == release:
- print ""
- print ""
- keyfound = 1
- else:
- gouge()
- elif choice == 2:
- if choice == release:
- print ""
- print ""
- keyfound = 1
- else:
- diginto()
- elif choice == 3:
- if choice == release:
- print "You found a small key inside the lampshade"
- print ""
- keyfound = 1
- else:
- eatyour()
- elif choice == 4:
- if choice == release:
- and opt5 == 13
- break
- print "You use the saw on your finger and find a key
- print "in the remains. Mmmm, tasty."
- keyfound = 1
- else:
- print "That isn't going to work."
- if v > 0:
- print "Congratulations. Change your ways or next time"
- print "I will kill you myself, slowly and painfully."
- elif v <= 0:
- print "Oh dear you have died"
- print "Good bye."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement