the-infocom-files / amfv

A Mind Forever Voyaging
5 stars 2 forks source link

When the game blocks e.g. "ENTER CHURCH" it doesn't block "GO TO CHURCH" #27

Open eriktorbjorn opened 4 years ago

eriktorbjorn commented 4 years ago

Rockvil changes over time, e.g. after 2041 the Train Station turns into the Church Lobby. To keep the player from refering to the church, CHURCH-OBJECT does this:

     <COND (<AND <EQUAL? ,HERE ,TRAIN-STATION ,BODANSKI-SQUARE
                       ,MIDLAND-AND-RIVER>
             <EQUAL? ,SYEAR 2041>
             <NOT <MOBY-VERB?>>>
        <CANT-SEE ,CHURCH-OBJECT>)

This works fairly well, but is not airtight:

>LOOK
Bodanski Square
This is a large plaza formed by the intersection of Bodanski Boulevard from the
east, Centre Street from the southwest, and River Street from the north and
south. There is a car lot on the western side of the square. On the northeastern
corner is a restaurant, and the old train station can be entered to the
southeast. A covered stairway leads down to the Tubes.
There is a newspaper dispenser chained to a lamp post on the corner.

>EXAMINE CHURCH
[You can't see any church here.]

>ENTER CHURCH
[You can't see any church here.]

>GO TO CHURCH
Train Station
The former North Central Station is a magnificent building from the earliest
part of the twentieth century. Unused for years, it has been restored as a
national landmark. The newsstands have been converted to souvenir stands, and
tourists stream through the station to buy tickets for a fifteen minute ride on
an authentic electric railroad train, which can be boarded to the east. You can
leave the station to the northwest or southwest.

That's because MOBY-VERB?, through PRSO-VERB?, explicitly allows the WALK-TO action.

I'm a bit scared of changing that though, since I don't know what unwanted effects that might have. So perhaps we should just allow it?