Newsgroups: rec.games.int-fiction,rec.arts.int-fiction
Path: nntp.gmd.de!news.rwth-aachen.de!news.ruhr-uni-bochum.de!news.uni-stuttgart.de!news.belwue.de!news-stu1.dfn.de!news-kar1.dfn.de!news.nacamar.de!howland.erols.net!netcom.com!erkyrath
From: erkyrath@netcom.com (Andrew Plotkin)
Subject: Re: [Inform] Hangers-on?
Message-ID: <erkyrathE1ErIv.Mpr@netcom.com>
Followup-To: rec.arts.int-fiction
Organization: NETCOM On-line Communication Services (408 261-4700 guest)
X-Newsreader: TIN [version 1.2 PL1]
References: <57b31g$bu7@linux.cpsc.ucalgary.ca>
Date: Mon, 25 Nov 1996 04:08:54 GMT
Lines: 29
Sender: erkyrath@netcom22.netcom.com
Xref: nntp.gmd.de rec.games.int-fiction:18913 rec.arts.int-fiction:18657

Brendan Lane (laneb@cpsc.ucalgary.ca) wrote:
> Okay, I've hacked at it for a few hours now, and I can't find anything.
> There's lots of code for characters who can be followed, but none that I
> can find for characters who doggedly follow the player!  How can I implement
> this:

> Plain Room
> John is here.
> > n
> Another Plain Room
> John shuffles in behind you.

> react_before doesn't work, because it's activated even if the player
> can't go that way.  react_after doesn't work, because the player will
> have moved into another room by then, so it won't be activated.
> Well?  Any suggestions?

You could put an after:Go clause on the player. Object orientation isn't 
a straightjacket. If you want something happen every time the players 
moves successfully, that's a fine place to put the code. 

Or have a daemon on John.

--Z

-- 

"And Aholibamah bare Jeush, and Jaalam, and Korah: these were the
borogoves..."
