Newsgroups: rec.arts.int-fiction
Path: nntp.gmd.de!news.rwth-aachen.de!news.rhrz.uni-bonn.de!news.uni-stuttgart.de!rz.uni-karlsruhe.de!ka.sub.net!xlink.net!howland.reston.ans.net!usc!crash!bbarnett
From: bbarnett@crash.cts.com (Bruce Barnett)
Subject: Inform: moving NPCs through doors
Organization: CTS Network Services (CTSNET), San Diego, CA
Date: Fri, 31 Mar 1995 21:22:41 GMT
Message-ID: <D6Bq1u.FIp@crash.cts.com>
X-Newsreader: TIN [version 1.2 PL2]
Sender: news@crash.cts.com (news subsystem)
Nntp-Posting-Host: crash.cts.com
Lines: 15

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
