Пример #1
0
	def enter(self):
		global doors
		print "You enter a bright and flickering orange room with every surface "
		print "flickering with multi varied shades of orange flame; it feels warm "
		print "in here, a little uncomfortable, but the flames are surface visuals "
		print "only - they do not burn. Behind you is a",doors['behind'], "door, to the left "
		print "is a",doors['left'], "door, straight ahead is a",doors['ahead'], "door, to the right is "
		print "a",doors['right'], "door, in the middle of the ceiling is a",doors['ceiling'], "door, and "
		print "in the middle of the floor is a",doors['floor'], "door. You notice one area of "
		print "the flames doesn't flicker randomly but rather seems regular. What "
		print "will you do? Open a door or examine the pattern?"
		
		global orangecount
		orangecount += 1
		
		action = raw_input("> ")
		
		if "red" in action or "Red" in action:
			doors = {'behind': 'Black', 'left': 'Green', 'ahead': 'White', 'right': 'Yellow', 'ceiling': 'Orange', 'floor': 'Purple'}
			portalactions.wallceiling()
			return 'red'
		elif "blue" in action or "Blue" in action:
			doors = {'behind': 'Black', 'left': 'Yellow', 'ahead': 'White', 'right': 'Green', 'ceiling': 'Orange', 'floor': 'Purple'}
			portalactions.wallceiling()
			return 'blue'
		elif "green" in action or "Green" in action:
			doors = {'behind': 'Black', 'left': 'Blue', 'ahead': 'White', 'right': 'Red', 'ceiling': 'Orange', 'floor': 'Purple'}
			portalactions.wallceiling()
			return 'green'
		elif "yellow" in action or "Yellow" in action:
			doors = {'behind': 'Black', 'left': 'Red', 'ahead': 'White', 'right': 'Blue', 'ceiling': 'Orange', 'floor': 'Purple'}
			portalactions.wallceiling()
			return 'yellow'
		elif "black" in action or "Black" in action:
			doors = {'behind': 'Red', 'left': 'Yellow', 'ahead': 'Blue', 'right': 'Green', 'ceiling': 'Orange', 'floor': 'Purple'}
			portalactions.floorceiling()
			return 'black'
		elif "white" in action or "White" in action:
			doors = {'behind': 'Red', 'left': 'Green', 'ahead': 'Blue', 'right': 'Yellow', 'ceiling': 'Orange', 'floor': 'Purple'}
			portalactions.ceilingceiling()
			return 'white'
		elif "pattern" in action or "Pattern" in action:
			portalactions.pattern()
			orangecount -= 1
			raw_input("Back to room?" )
			return 'orange'
		else:
			print "\n"
			print "Aaaaaaand you still have a choice to make."
			print "\n"
			orangecount -= 1
			return 'orange'
Пример #2
0
	def enter(self):
		global doors
		print "You enter a black room; every surface, walls, ceiling, floor, seems "
		print "to glisten wetly like thick black oil and the illumination is dim. "
		print "Despite feeling slippery to walk on, no stain marks your shoes. Behind "
		print "you is a",doors['behind'], "door, to the left is a",doors['left'], "door, straight ahead "
		print "is a",doors['ahead'], "door, to the right is a",doors['right'], "door, in the middle of "
		print "the ceiling is a",doors['ceiling'], "door, and in the middle of the floor is a "
		print doors['floor'],"door. In one corner there is an inky black sculpture. What "
		print "will you do? Open a door or examine the sculpture?"
		
		global blackcount
		blackcount += 1
		
		action = raw_input("> ")
		
		if "red" in action or "Red" in action:
			doors = {'behind': 'Black', 'left': 'Green', 'ahead': 'White', 'right': 'Yellow', 'ceiling': 'Orange', 'floor': 'Purple'}
			portalactions.door()
			return 'red'
		elif "blue" in action or "Blue" in action:
			doors = {'behind': 'Black', 'left': 'Yellow', 'ahead': 'White', 'right': 'Green', 'ceiling': 'Orange', 'floor': 'Purple'}
			portalactions.door()
			return 'blue'
		elif "green" in action or "Green" in action:
			doors = {'behind': 'Black', 'left': 'Blue', 'ahead': 'White', 'right': 'Red', 'ceiling': 'Orange', 'floor': 'Purple'}
			portalactions.door()
			return 'green'
		elif "yellow" in action or "Yellow" in action:
			doors = {'behind': 'Black', 'left': 'Red', 'ahead': 'White', 'right': 'Blue', 'ceiling': 'Orange', 'floor': 'Purple'}
			portalactions.door()
			return 'yellow'
		elif "purple" in action or "Purple" in action:
			doors = {'behind': 'Red', 'left': 'Yellow', 'ahead': 'Blue', 'right': 'Green', 'ceiling': 'Black', 'floor': 'White'}
			portalactions.floorceiling()
			return 'purple'
		elif "orange" in action or "Orange" in action:
			doors = {'behind': 'Red', 'left': 'Yellow', 'ahead': 'Blue', 'right': 'Green', 'ceiling': 'White', 'floor': 'Black'}
			portalactions.ceilingfloor()
			return 'orange'
		elif "sculpture" in action or "Sculpture" in action:
			portalactions.sculpture()
			blackcount -= 1
			raw_input("Back to room?" )
			return 'black'
		else:
			print "\n"
			print "Aaaaaaand you still have a choice to make."
			print "\n"
			blackcount -= 1
			return 'black'