The Beast of Torrack Moor

An interactive fiction by Linda Wright (2007) - the Inform 7 source text

Home page

Contents
Previous
Next

Complete text
Section 4 - Regular locking

Understand the command "lock" as something new. Understand "lock [something] with [something]" as locking it with. Understand "lock [an unlocked lockable thing] with [something]" as locking it with. Understand "lock [a lockable thing] with [something]" as locking it with.

Check locking it with:
    abide by the must have accessible the second noun rule.

Procedural rule: substitute the right second rule for the can't lock without the correct key rule.