I would like to test whether or not the player has spoken to a particular NPC before the player leaves a given room. Something like:
The Winged Otter is here. "His tophat is dapper." Instead of going south: if we have not spoken to the winged otter: say "The winged otter flaps down to block your path, doffing his dapper tophat to you each time and extending a soft paw to shake."; otherwise: continue the action.
The code above does not compile, complaining that “In the sentence ‘if we have not spoken to the winged otter’ , I was expecting to read a condition, but instead found some text that I couldn’t understand - ‘we have not spoken to the winged otter’.” I tested the same setup with a different condition, simply
if we have not examined the winged otter
and that seems to work, so I’m fairly sure the problem is that I’m not referring to the speaking action in a way Inform 7 understands. How should I re-phrase this?