the-infocom-files / witness

The Witness
3 stars 4 forks source link

Some intended Phong answers to questions are never shown #45

Open eriktorbjorn opened 4 years ago

eriktorbjorn commented 4 years ago
          (<EQUAL? .OBJ ,THREAT-NOTE>
           <COND (,PHONG-ADMITTED-HELPING?
              <TELL
"\"Yes, now you know that Mr. Linder forged that note. Stiles didn't
send it to him.\"" CR>)
             (T <TELL
"\"Yes, that's the note that Stiles sent to Mr. Linder.\"" CR>)
          (<EQUAL? .OBJ ,GENERIC-CAR ,FILE-CABINET>
           <TELL
"\"That has nothing to do with why Mr. Linder asked you here.\"" CR>)
          (T <TELL
"\"I'm sorry, Detective, but I can't help you.\"" CR>)>)>)
>ASK PHONG ABOUT FILE CABINET
Mr. Phong doesn't seem to know about that.

There's a mismatched >) there. It should be:

          (<EQUAL? .OBJ ,THREAT-NOTE>
           <COND (,PHONG-ADMITTED-HELPING?
              <TELL
"\"Yes, now you know that Mr. Linder forged that note. Stiles didn't
send it to him.\"" CR>)
             (T <TELL
"\"Yes, that's the note that Stiles sent to Mr. Linder.\"" CR>)>)
          (<EQUAL? .OBJ ,GENERIC-CAR ,FILE-CABINET>
           <TELL
"\"That has nothing to do with why Mr. Linder asked you here.\"" CR>)
          (T <TELL
"\"I'm sorry, Detective, but I can't help you.\"" CR>)>)

Otherwise, it will only test for the car and file cabinet if it's already determined that it's the threat note. With the change it works correctly:

>ASK PHONG ABOUT FILE CABINET
"That has nothing to do with why Mr. Linder asked you here."

>ASK PHONG ABOUT CAR
"That has nothing to do with why Mr. Linder asked you here."

>ASK PHONG ABOUT CAT
"I'm sorry, Detective, but I can't help you."
eriktorbjorn commented 4 years ago

He's also supposed to have an answer if you ask him about the gun:

          (<EQUAL? .OBJ ,GENERIC-GUN>
           <TELL "\"I don't have one, if that's what you mean.\"" CR>)

I'm not sure why that's not working.