Disregard the following – I moved the “stop the action” lines to align with the “if” clauses, and now the thing works. Thanks all.
Quote
Hmm. Try this:
Before going south while player is in Living Room:
if player is not wearing thong:
say "No thong? You wanna get arrested?";
stop the action;
if player is not wearing wickedly-short miniskirt:
say "No skirt? Let's not tempt fate!";
stop the action;
if player is not wearing halter:
say "No halter? You wanna get arrested?";
stop the action;
if player is not wearing six-inch heels:
say "No shoes? There's an ordinance against that in this town.";
stop the action;
I tried that and got this:
Problem. The phrase or rule definition ‘Before going south while player is in Living Room’ 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 player is not wearing wickedly-short miniskirt’ , which ought to begin a block, is immediately followed by ‘say “No skirt? Let’s not tempt fate!”’ 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.
Problem. The phrase or rule definition ‘Before going south while player is in Living Room’ 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 player is not wearing halter’ , which ought to begin a block, is immediately followed by ‘say “No halter? You wanna get arrested?”’ 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.
Problem. The phrase or rule definition ‘Before going south while player is in Living Room’ 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 player is not wearing six-inch heels’ , which ought to begin a block, is immediately followed by ‘say “No shoes? There’s an ordinance against that in this town.”’ 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.
Problem. The phrase or rule definition ‘Before going south while player is in Living Room’ 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 tabs here seem to be misaligned, and I can’t determine the structure. The first phrase going awry in the definition seems to be ‘stop the action’ , in case that helps.
This sometimes happens even when the code looks about right, to the eye, if rows of spaces have been used to indent phrases instead of tabs