def enter(self): if 'demon_cell' in bad_guys.demon_x: return bad_guys.demon(self) else: print "\nThis cellar is dark and spooky." print "Jars on shelves, spider webs." print "The foundation of the house looks like" print "it's crumbling apart.\n" print "The stair case fell apart after all of" print "these years. It looks like the only" print "two directions for you to go are back" print "out the tunnel to the shed, or up this" print "old coal chute." while True: print "\nWhich way would you like to go?\n" action = raw_input('> ').lower() if 'chute' in action or 'coal' in action: print "\nThis is a tight fit, but I" print "think it'll hold.\n" return 'bed_1' elif 'tunnel' in action or 'shed' in action: return 'shed' else: print "Not sure that's the best idea."
def enter(self): if 'demon_gard' in bad_guys.demon_x: print "As you creep over to the garden," print "you notice something move behind the" print "rusty fence. It looked a bit big to be" print "Shnookims. Maybe the wind moved the tall" print "over grown weeds.\n" print "What's that noise?" print "It sounds like a whisper...\n" print "Are you sure you want to enter the" print "garden?\n" garden = raw_input('[YES or NO]> ').lower() if garden == 'yes': return bad_guys.demon(self) else: print "\nWay to scary!" print "get out of there!!" return 'yard' else: print "\nThe garden is just as creepy as usual." print "Good thing we killed that demon. Look" print "at these crumbling headstones. Poor" print "family... I wonder what this brick" print "patter on the ground is..." print "Looks like some kind of portal.\n" print "Keep looking for that damn mut?\n" looking = raw_input('[YES or NO]> ').lower() if 'yes' in looking: return 'yard' else: return 'garden'
def enter(self): if 'demon_roof' in bad_guys.demon_x: return bad_guys.demon(self) else: print "\nThe moon is full and shining on you." print "From the top of the house you can see" print "the whole yard. The shed, the garden," print "the front gate. There is a door to the" print "attic about 20 feet away.\n" print "This roof top feels like it is going to" print "collapse. you'd better move quickly.\n" while True: print "You can either climb back down the" print "chimney, or check out the attic" print "door.\n\nWhat now?\n" action = raw_input('> ').lower() if 'attic' in action or 'door' in action: return 'atticd' elif 'chimney' in action: return 'living_room'