Inform: moving NPCs through doors


Fri, 31 Mar 1995 21:22:41 GMT

The "thief" example in Inform's designer manual (page 94) demonstrates
how to move a non-player character from one room to another, but the
example explicitly rules out movements through doors. That turned out to
be a crucial omission for me; my game doesn't move: room -> room -> room
. . ., but rather room -> door -> room -> door -> room -> . . .

I finally cobbled up a method to get the thief through a door, but it's
really a Rube Goldberg method involving the ChangePlayer function and a
slightly tweaked version of the GoSub routine in the library. It works
most of the time, but it's buggy. There's a lot going on in GoSub that I
don't understand and which seems to be mostly undocumented (e. g.,
RunRoutines, L__M). Besides, this really seems to be the hard way. Is
there a more straightforward way to get the thief through a door?

Bruce Barnett