<ROUTINE V-KNOCK
()
<COND (<WORD-TYPE ,PRSO ,W?DOOR>
<TELL "I don't think that anybody's home." CR>)
(ELSE <TELL "Why knock on " A ,PRSO "?" CR>)>>
I think what it means is that if PRSO has "DOOR" as one of its synonyms, it will print "I don't think anybody's home." I have tested this, and it seems to work.
But if you try to knock on, say, the gate to the castle, it just says "Why knock on an iron gate?"
Should it check for W?GATE as well? That should then cover IRON-GATE, RUSTY-GATE and NORTH-GATE-OBJ.
V-KNOCK
has a special case for doors:I think what it means is that if
PRSO
has "DOOR" as one of its synonyms, it will print "I don't think anybody's home." I have tested this, and it seems to work.But if you try to knock on, say, the gate to the castle, it just says "Why knock on an iron gate?"
Should it check for
W?GATE
as well? That should then coverIRON-GATE
,RUSTY-GATE
andNORTH-GATE-OBJ
.