the-infocom-files / moonmist

Moonmist
4 stars 3 forks source link

Odd quotation marks in the OKAY routine when the action is performed by Bolitho #15

Open eriktorbjorn opened 3 years ago

eriktorbjorn commented 3 years ago
>BOLITHO, CLOSE DOOR
"As you wish, Ms. Drew."
Okay, it is now closed," says Bolitho. He does so.

The whole response seems a bit odd, but I guess the main thing is that there is no opening quotation mark before "Okay". This is apparently handled by the OKAY routine:

    <COND (<EQUAL? ,WINNER ,PLAYER ,BUTLER>
           <COND (<VERB? THROUGH WALK WALK-TO>
              <RTRUE>)>)
          (T <TELL "\"">)>

I can see why it skips the quotation mark if it's the player that performs an action. But why the butler? For the closing quotation mark, it only checks if it's the player:

    <COND (<OR .STR <NOT .OBJ>>
           <COND (<NOT <==? ,WINNER ,PLAYER>>
              <TELL ",\" says " 'WINNER ". " CHE ,WINNER " does so."CR>
              <RTRUE>)>
           <TELL "." CR>)>