Hi again (I’m still working on the flowers but this has come to the fore).
If the player types unlock door and then responds to the prompt with “key”, it itemizes the keys the player could choose. I’d like to prevent this happening until they hold the keyring. I know there are some built in parts of the programme this clashes with, so maybe it is not possible.
use serial comma.
the mainhallway is a room.
the olddoor is a door.
the olddoor is south of the mainhallway.
the oldclass is a room.
the oldclass is south of the olddoor.
the olddoor is locked.
understand "door" as the olddoor.
a key is a kind of thing.
a key is undescribed.
the indefinite article of a key is "the".
the keyring is a portable supporter in the mainhallway.
the small steel key is a key on the keyring. The description of the small steel key is "A short, plain steel key with a faint scratch near the bow."
the medium steel key is a key on the keyring. The description of the medium steel key is "A standard mid-sized key, slightly dull from handling."
the large tarnished key is a key on the keyring. The description of the large tarnished key is "A longer key with visible tarnish along the stem."
check examining keyring:
say "on the key ring are [a list of things on the keyring].";
stop the action.
the small steel key unlocks the olddoor.