>>Am I trapping the wrong action? This is really frustrating....
<<
You're probably not gonna believe this, but give it a try and see
if I'm lying. Move your "before" routine code to the before
routine of the room your object is in (and comment out the old
code). Now compile and run the game. As long as you don't move
the object out that room, it should work as desired. *Now* delete
the code you just added to the room's before routine and restore
it to the object's. Recompile and run. It works! Why it works,
though, is beyond me. How can something change like this across
compilations? Oh well, to the point: since I suspect your object
is going to be moving from room to room, you're probably going to
have to put the code in the GamePreRoutine so that the parser
will always see it. If, before you do the exercise I've described
above, you run the game in its current state with "routines on,"
you'll see that the object's before routine is not running. That
is, *until* you once move the code to the room and back again.
Sheesh! Weird stuff.
Hope this works for you,
(I did it with Inf5.5 + ver 10 libs)
Jim Newland (76461.2144@compuserve.com)