I tried putting each room as a 'def' but when i done a while loop and tried calling them the getting user to search variables in them just kept printing the same thing over and over. That prob dont make sense here is an example..Im a noob btw have only just learnt def and lists etc.

print """welcome to room escapethe aim of this game is to find 100 pound."""print "type inst for instructions."pounds = 0

def inst() print """try to find the key to inspect an object type its name, to move to a different room type which room.e.g.type bookshelf to look in bookshelf, type classroom to move to classroom."""

def library(): print """you are in the library its quite spooky in here theres no lighting. you have the frontdesk, bookshelf and boxes to look in. theres a door to the south that leads to the classroom.""" bk = "bookshelf" fd = "frontdesk" bx = "boxes" room2 = "classroom"

for more info, we need a working example formatted in code tags, something we can copy and paste and see for ourself whats working and whats not. Also we need the whole traceback. In some cases seeing that will tell us exactly what you did wrong.

print """welcome to room escapethe aim of this game is to find 100 pound."""print "type inst for instructions."pounds = 0

def inst() print """try to find the key to inspect an object type its name, to move to a different room type which room.e.g.type bookshelf to look in bookshelf, type classroom to move to classroom."""

def library(): print """you are in the library its quite spooky in here theres no lighting. you have the frontdesk, bookshelf and boxes to look in. theres a door to the south that leads to the classroom.""" bk = "bookshelf" fd = "frontdesk" bx = "boxes" room2 = "classroom"

My post was written before you edited and completely changed the first post. It is good that you added code tags, but changing the content leads to responses that will not seem relevant if someone else reads the thread (forums are for everyone, not just original posters). Neither I nor metul had any way of knowing that whatever utility you used to paste it in capitalized all your lines; and as case is important we pointed out this apparent error.