the-infocom-files / amfv

A Mind Forever Voyaging
5 stars 2 forks source link

"GUARD, OPEN GATE" doesn't work as intended #84

Open eriktorbjorn opened 4 years ago

eriktorbjorn commented 4 years ago
>DATE
Today is 4/25/2041.

>GUARD, OPEN GATE
"Can I help you?"

There is a special case for that command in SPEAR-CARRIER-F:

              (<AND <VERB? OPEN>
                <PRSO? ,GATE>>
               <DO-WALK ,P?NW>
               <RTRUE>)

But it doesn't work, because it tells the guard to walk northwest, and that's what he's responding to. If you change the code to:

              (<AND <VERB? OPEN>
                <PRSO? ,GATE>>
               <SETG WINNER ,PLAYER>
               <DO-WALK ,P?NW>
               <SETG WINNER ,SPEAR-CARRIER>
               <RTRUE>)

it works as was probably intended:

>GUARD, OPEN GATE
The gate is closed. A guard politely informs you that nonmilitary personnel are
not allowed beyond this point.