def menu(list, question):
for entry in list:
print 1 + list.index(entry),
print ") " + entry
return input(question) - 1
items = ["Curvy Alien Vase,""The Mona Lisa","Aristotles Bookshelf","The Worlds Largest Pair of Boots","The Mystical Door of Incredibly Awesome Mystical Magic"]
keylocation = 2
keyfound = 0
loop = 1
print "Last night you went to sleep in the comfort of your Incredibly Comfortable Bed of Sleep and Resting,"
print "But while you slept"
print "Maniacal Plotting Evil Little Tiny Elf-Creatures of Uncertain Doom and Despair"
print "drug you out and locked you in a small room with no windows and only one way out,"
print len(items), "things:"
for x in items:
print x
print "The Worlds Largest Pair of Boots","The Mystical Door of Incredibly Awesome Mystical Magic"
print "The Mystical Door of Incredibly Awesome Mystical Magic is locked,"
print "I wonder if there is a key anywhere."
while loop == 1:
choice = menu(items,"Wha' yoo wanna look a'? ")
if choice == 0:
if choice == keylocation: [COLOR="GREEN"]It shows the problem in this line.[/COLOR]
print "You found a small key in the Curvy Alien Vase"
print ""
keyfound = 1
else:
print "You found nothing in the Curvey Alien Vase."
print ""
elif choice == 1:
if choice == keylocation:
print "You found a small key behind The Mona Lisa."
print ""
keyfound = 1
else:
print "You found nothing behind The Mona Lisa."
print ""
elif choice == 2:
if choice == keylocation:
print "You found a small key in Aristotles Bookshelf."
print ""
keyfound = 1
else:
print ""
elif choice == 3:
if choice == keylocation:
print "You found a small key in The Worlds Largest Pair of Boots"
print ""
keyfound = 1
else:
print "You found nothing in The Worlds Largest Pair of Boots"
print ""
elif choice == 4:
if keyfound == 1:
loop = 0
print "You put the key in, turn it, and hundreds of Maniacal Plotting Evil Little Tiny Elf-Creatures of Uncertain Doom and Despair swarm out and devour your flesh,"
print "jump on your bloody carcass until it turns to dust"
print "then calmly walk out of the Mystical Door of Incredibly Awesome Door of Mystical Magic,"
print "then lock it and walk away as if nothing had happened."
print ""
else:
print "Hundreds of Maniacal Plotting Evil Little Tiny Elf-Creatures of Uncertain Doom and Despair"
print "spit on your eyes until you lose conciousness"
print ""
Edited by Prestidigitator, 26 February 2009 - 05:16 PM.
add code tags (the # button)


Sign In
Create Account


Back to top









