the-infocom-files / trinity

Trinity
24 stars 5 forks source link

Strange failure message from the "POCKET" verb #102

Open eriktorbjorn opened 4 years ago

eriktorbjorn commented 4 years ago

The "POCKET" verb works as a shortcut for "PUT object IN POCKET", but when it fails it can print odd messages. This is at the start of the game:

>GET COIN FROM POCKET
You take the seven-sided coin out of your pocket.

>DROP COIN
You put down the seven-sided coin.

>POCKET COIN
Maybe you should take the seven-sided coin out of the Palace Gate first.

The verb is defined like this:

<SYNTAX POCKET OBJECT (HELD CARRIED) = V-POCKET PRE-POCKET>

Perhaps we should change that to:

<SYNTAX POCKET OBJECT (HELD CARRIED HAVE) = V-POCKET PRE-POCKET>

Then the parser would print "You're not holding a seven-sided coin." instead.