Ok, so I am trying to set a bool so that if an item is taken it becomes True and next time if it is True then it takes a different path, it's my first time writing something in Python so excuse the bad code conventions. Anyways, I need the bool to be False until the note is taken, and when it is I want it to become True. One problem I will probably have in the future is that in one part the player comes back to this room, how can I keep the bool True for when they do?
def first_room(Note):
choice1_1 = raw_input('The house looks much larger than it did from the outside. You appear in a room, to your left is a closet, to your right is a pile of junk, in front of you is a door, and behind you is the exit.')
choice1_1 = choice1_1.lower()
if choice1_1 == 'left' or choice1_1 == 'l' or choice1_1 == 'closet':
if note == False:
choice1_c = raw_input('You open the closet and check inside, there is a note. Do you take the note? (Y/N)')
choice1_c = choice1_c.lower()
if choice1_c == 'y':
print 'You took the note.'
first_room(True)
if choice1_c == 'n':
print 'You leave the note alone.'
first_room(False)
else:
print 'The closet is empty.'
first_room(True)
first_room(False)