the-infocom-files / sorcerer

Sorcerer
3 stars 3 forks source link

Hiding an object from a non-actor doesn't print any message #20

Open eriktorbjorn opened 4 years ago

eriktorbjorn commented 4 years ago

This came up while testing V-HIDE:

>HIDE
There's no place to hide here.

>HIDE ZORKMID
From what? From whom? Why?

>HIDE ZORKMID FROM GNOME
Why hide it when the gnome isn't interested in it.

>HIDE ZORKMID FROM TOLL BOOTH

>

That's because V-HIDE has no case for when you have a PRSI and it's not an actor:

<ROUTINE V-HIDE ()
     <COND (<NOT ,PRSO>
        <TELL "There's no place to hide here." CR>
        <RFATAL>)
           (<AND ,PRSI <FSET? ,PRSI ,ACTORBIT>>
        <TELL "Why hide it when">
        <ARTICLE ,PRSI T>
        <TELL " isn't interested in it." CR>)
           (<NOT ,PRSI>
        <TELL "From what? From whom? Why?" CR>)>>