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 5 - Locking keylessly

Understand "lock [something]" as locking keylessly. Understand "lock [an unlocked lockable thing]" as locking keylessly. Understand "lock [a lockable thing]" as locking keylessly.

Locking keylessly is an action applying to one thing.

Check locking keylessly:
    abide by the can't lock without a lock rule;
    abide by the can't lock what's already locked rule;
    abide by the can't lock what's open rule;
    abide by the need a matching key rule.
    
Carry out locking keylessly:
    say "(with [the matching key of the noun])[command clarification break]";
    try locking the noun with the matching key of the noun.

Check someone trying locking keylessly:
    abide by the can't lock without a lock rule;
    abide by the can't lock what's already locked rule;
    abide by the can't lock what's open rule;
    abide by the need a matching key rule.
    
Carry out someone trying locking keylessly:
    try the person asked trying locking the noun with the matching key of the noun.