# Print out the player's Held Items and let player know if they can USE an item to fight a character or something if len(heldItems) == 1: print("You are holding a "+heldItems[0]) print("You can DROP "+heldItems[0].upper()) if current_room.character is not None: print("You can USE "+heldItems[0].upper()+" to fight "+current_room.character.name) elif len(heldItems) >= 2: print("Your hands are full. You must drop something before you can pick anything else up.") print("You are holding a "+heldItems[0]+" and a "+heldItems[1]) print("You can DROP "+heldItems[0].upper()+" or DROP "+heldItems[1].upper()) if current_room.character is not None: print("You can USE "+heldItems[0].upper()+" to fight "+current_room.character.name+" or USE "+heldItems[1].upper()) # ********************************* SPECIAL ITEM INTERFACES ********************************* # If holding a special item, then display the item's interface with get_interface() if "red flashlight" in heldItems: redFlashlight.get_interface(heldItems,current_room) if "yellow flashlight" in heldItems: yellowFlashlight.get_interface(heldItems,current_room) if "cat ears" in heldItems: catEars.get_interface() if "pocket knife" in heldItems: PocketKnife.get_interface() # This fuction checks the player's command and then runs the corresponding method def checkUserInput(current_room,command,heldItems): # Convert it to ALL CAPS command = command.upper() # All possible user input commands go here print("\n") # ********************************* SPECIAL USER INPUT *********************************