Supplying a missing noun for sitting

I would disagree, but I’ve already done that! However, I will point out that the “supplying the missing noun” activity gives you more control over which noun gets chosen as opposed to a “does the player mean” rule.

This is due to the way Inform 7 recognises valid grammar lines. Basically, without that grammar line, Inform 7 thinks “sit” is not a valid grammar line and changes the grammar line to “sit on [something]”, which is a valid grammar line while automatically choosing what it thinks is the most appropriate noun via “does the player mean” rules and sometimes asking the player for more input. However, Inform 7 does get this wrong from time to time, which is why it is better to use the “supplying the missing noun” activity than a “does the player mean” rule.

Consider this.

[spoiler][code]“Test”

Rule for supplying a missing noun while locking:
now the noun is the standard door;
say “([the noun])[command clarification break]”.

Rule for supplying a missing noun while unlocking:
now the noun is the standard door;
say “([the noun])[command clarification break]”.

Rule for supplying a missing second noun while locking:
now the second noun is the key;
say “(with [the second noun])[command clarification break]”.

Rule for supplying a missing second noun while unlocking:
now the second noun is the key;
say “(with [the second noun])[command clarification break]”.

Understand “Lock” and “Lock [something]” as locking it with.

Understand “Unlock” and “Unlock [something]” as unlocking it with.

The Testing Room is A Room. A key is in the testing room. The key unlocks the standard door.

The standard door is a locked door. The Standard Door is south of The Testing Room. The Other Room is south of The Standard Door.

Test me with “unlock / lock / unlock door / lock door / unlock door with key / lock door with key / unlock door with key / s”.[/code][/spoiler]

Blanking out the 2 understand lines will cause Inform 7 to react very differently.

Hope this helps.