Message-ID: <3B354F8B.1AE3D23E@csi.com>
Date: Sat, 23 Jun 2001 22:25:15 -0400
From: John Colagioia <JColagioia@csi.com>
X-Mailer: Mozilla 4.61 [en] (Win98; I)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: rec.arts.int-fiction
Subject: Re: [Inform] Enterable objects
References: <KeUX6.337$lg.129043@newsrump.sjc.telocity.net> <3B348CD8.E3EEA596@csi.com> <MPG.159ea3dd8041bc259896b8@news.freeserve.net>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 128.238.10.127
X-Original-NNTP-Posting-Host: 128.238.10.127
X-Trace: excalibur.gbmtech.net 993349443 128.238.10.127 (23 Jun 2001 22:24:03 EST)
Organization: GBM Technologies Ltd
Lines: 37
X-Authenticated-User: jnc
X-Original-NNTP-Posting-Host: 127.0.0.1
Path: news.duke.edu!newsgate.duke.edu!nntp-out.monmouth.com!newspeer.monmouth.com!news-was.dfn.de!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!howland.erols.net!portc.blue.aol.com.MISMATCH!portc01.blue.aol.com!uunet!dca.uu.net!ash.uu.net!excalibur.gbmtech.net
Xref: news.duke.edu rec.arts.int-fiction:89111

Adam Biltcliffe wrote:

> Some are born John Colagioia. Some achieve John Colagioia. But
> rec.arts.int-fiction had John Colagioia thrust upon it:
>
> > Dave Malaguti wrote:
> > > I have an enterable object (a pickup truck, as it happens) that the
> > > player starts out in.  I don't want the player to be able to get out
> > > of the truck until certain conditions are met.  How do I do this?  I
> > > tried trapping the EXIT action in the truck's 'before' property, but
> > > nothing happens.
> > I don't have time to check this out right now, but could you trap the
> > player in the truck's out_to() method?  Something like:
> >     out_to [ ;
> >         if (conditions)
> >             return Outside_The_Truck;
> >         "Oddly, you can't seem to leave at this time.";
> >        ],
> As the truck is an enterable container, its out_to property is never
> referred to by the library. This would work were the truck a room,
> though.

Drat.  Oh, well.  I guess this brings up the point that I don't really
understand what "a room" is, at this point, but I'll do some more reading
before actually asking...

How about the LetGo action?


> I'd be tempted to replace ExitSub and put some kind of a hook in it so
> that the player's parent can object if it wishes.

That's also an idea, yes.  Seems like cheating, though...


> jw

