I wrote the below into Inform and it crashed. This is due to a bug which crashes on a wrongly-terminated if phrase.
Check flirting with:
if a person is distracted;
say "No need, he's already totally engrossed in you.";
stop.
However how do I get this to work?
I was told:
However if I write:
Check flirting with:
if a person is distracted:
say "No need, he's already totally engrossed in you.";
stop.
It comes up with:
Problem. The phrase or rule definition 'Check flirting with' is written using the 'colon and indentation' syntax for its 'if's, 'repeat's and 'while's, where blocks of phrases grouped together are indented one tab step inward from the 'if ...:' or similar phrase to which they belong. But the phrase 'if a person is distracted' , which ought to begin a block, is immediately followed by 'say "No need, he's already totally engrossed in you."' at the same or a lower indentation, so the block seems to be empty - this must mean there has been a mistake in indenting the phrases.
So what is the correct way to make sure the player can’t flirt with a person twice and “make them distracted” again since a character can only be distracted once?