the-infocom-files / hitchhiker

The Hitchhiker’s Guide to the Galaxy
20 stars 4 forks source link

Wrong message if you try "READ somthing WITH CIRCUIT BOARD" #26

Open eriktorbjorn opened 4 years ago

eriktorbjorn commented 4 years ago

This is clearly a nonsense command, so I don't know if it's worth fixing. On the other hand, it should be trivial:

>READ TOWEL WITH CIRCUIT BOARD
The message is too small for you to read.

This is a consequence of the board being transparent (probably so you can access the dipswitches on it?), so PRE-READ allows you to "READ object WITH CIRCUIT BOARD".

That means the READ action is invoked in the board first, which naturally assumes that you are reading the board:

           (<VERB? READ>
        <TELL "The message is too small for you to read." CR>)>>

So to avoid this, it should simply check that the board is PRSO, i.e. something like this I imagine:

           (<AND <VERB? READ>
             <PRSO? ,BOARD>>
        <TELL "The message is too small for you to read." CR>)>>