For some reason, my door won’t open when given the password, cookie. Any ideas what I’m doing wrong?? Thanks in advance! Greg
"open the door" by Gregory Simpson
The Lab is a room.
The Control Center is a room.
The titanium door is a door. The titanium door is north of the Lab and south of the Control Center. The titanium door is lockable and locked.
Instead of examining the titanium door:
say "The titanium door is locked and has a keypad with numbers beside it, type the numbers on the keypad to unlock."
Instead of opening the titanium door when the titanium door is locked:
say "The door is locked. You didn't think they'd leave the space station unlocked in this neighborhood, did you?"
A keypad is a thing. The keypad is in the Lab. "The titanium door is locked and has a keypad with numbers beside it. Type the numbers on the keypad to unlock."
Typing a password on is an action applying to one topic and one thing. Understand "type [text] on [something]" as typing a password on.
Carry out typing a password on:
if the second noun is the keypad:
if the topic understood is "cookie":
say "The keypad beeps and the titanium door makes a clunking sound as it unlocks.";
now the titanium door is unlocked;
otherwise:
say "You type in the code '[topic understood]' on the keypad, but nothing happens.";
otherwise:
say "It doesn't appear to be a valid input device. noun: [second noun] topic: [topic understood]"