Re: Inform question ...


11 Jun 1995 05:19:24 GMT

Evan,

Ok, ok, so I was a little hasty with my previous reply; the
parser's behavior is not changing across compilations, mine is.
Here's the scoop: typing "exit" or "get off" will not run the
before routine of the object being exited (i.e. the Exit action
only extends to the routines of the room the object is in, not
the object's own routines). However, typing "get off chair"
*will* work, since the GetOff action evidently does extend to the
object's own routines. Thus, there are two courses of action you
can take: either change the "exit" and "get off" verbs so that
they generate GetOff actions (rather than Exit, as they currently
do), or put your code in the GamePreRoutine, where it will always
be run no matter what.

I haven't tried the grammar change, though. It now occurs to me
that it still might not work; that is, it might just be that
neither Exit nor GetOff will run the routines for objects unless
those objects are specified in the command. Aw, hell. Just put
the thing in the preroutine and be done with it...<g>

Jim Newland (76461.2144@compuserve.com)