All pastes #737569 Raw Edit

Stuff

public text v1 · immutable
·published 2007-10-15 14:55 UTC
rendered paste body
#World Editor
print 'Currently editing ' + worldname
#I'll need help with importing data in Python
print '01. Add Room'
print '02. Edit Room'
print '03. List Rooms'
print '04. Main Menu'
choiceEditor = raw_input('Choice: ')

if ((choiceEditor = 1) or (choiceEditor = 2)):
	roomCheck = 'n'
	while (roomCheck == 'n'):
		roomName = raw_input('Name of Room: ')
		roomExits = raw_input('Exits: ')
		roomContents = raw_input('Contents: ')
		roomDescription = raw_input('Description: \n\
		Enter lines of text to describe your room. Enter @\n\
		to end the description, and continue\n\ ')
		roomCheck = raw_input('Is this room correct?(y/n): ')
	tempList = [roomName, roomExits, roomContents, roomDescription]
	if (choiceEditor = 1):
		newRoom = tempList
	elif (choiceEditor = 2):
		newRoom = tempList
		#Same here
elif (choiceEditor = 3):
	print roomList
	#and also here