the-infocom-files / witness

The Witness
3 stars 4 forks source link

Wrong response to "<person>, GOODBYE" #25

Open eriktorbjorn opened 4 years ago

eriktorbjorn commented 4 years ago
>LINDER, HELLO
Mr. Linder nods at you.

>LINDER, GOODBYE
Only nuts say "Good-bye" to a detective.

So "HELLO" works correctly, but "GOODBYE" doesn't. This is handled by COM-CHECK, which handles default responses to "character, action":

           (<AND <VERB? GOODBYE>
             <OR <NOT ,PRSO> <==? ,PRSO .PER>>>
        <SETG WINNER ,PLAYER>
        <PERFORM ,V?GOODBYE ,WINNER>
        <RTRUE>)
           (<AND <VERB? HELLO>
             <OR <NOT ,PRSO> <==? ,PRSO .PER>>>
        <SETG WINNER ,PLAYER>
        <PERFORM ,V?HELLO .PER>

I think that should be <PERFORM ,V?GOODBYE .PER> instead.