Sorry to bother people on the list again. OK, I've started making a mini text adventure thing and ran it through the command line as usual. I fixed an error that I really should have spotted anyway (a missing quotation mark), but it now says unexpected indentation on line 12. This is part of an if . else statement and is at the same indentation as the if line a couple of lines above. I changed it anyway to see if it would make a difference and as I expected, it said invalid sintax at line 12, so I put it back to the way it was in the first place to see if anyone else has any suggestions? I hate indentation at times . Attached is the file game.py If anyone had any suggestions, feel free to reply here or offlist. Thanks, Harmony.
from sys import exits def gold_room(): print "This room is full of gold. How much do you wish to take?" next = raw_input("") if "1" in next or "0" in next: how_much = int(next) else: dead("Learn to type numbers!") if how_much < 50: print "You are not greedy. You win!" exit(0) else: dead("You greedy bastard!") def bear_room(): print """There is a bear here. The bear is holding a bunch of honey. He is standing in front of the door. How are you going to move the bear?""" bear_moved = false while true: next = raw_input("") if next == "take honey": print "The bear slaps your face off!" elif next == "taunt bear" and not bear_moved: print "The bear has moved from in front of the door. You can go through it now." bear_moved = true elif next == "taunt bear" and bear_moved: dead("The bear gets annoyed and chews your legs off.") elif next == "open door" and bear_moved: gold_room() else: print"Command not recognized."