Message-ID: <3C406372.93562A6B@attglobal.net>
Date: Sat, 12 Jan 2002 08:25:22 -0800
From: Chip Hayes <jwhayes@attglobal.net>
X-Mailer: Mozilla 4.72 (Macintosh; U; PPC)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: rec.arts.int-fiction
Subject: Re: [Inform] Describing supporters and their contents
References: <d00c7975.0201112150.2aafba8d@posting.google.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 32.100.7.24
X-Trace: 12 Jan 2002 16:21:55 GMT, 32.100.7.24
Organization: Global Network Services - Remote Access Mail & News Services
Lines: 33
X-Complaints-To: abuse@prserv.net
Path: news.duke.edu!newsgate.duke.edu!nntp-out.monmouth.com!newspeer.monmouth.com!cpk-news-hub1.bbnplanet.com!washdc3-snh1.gtei.net!news.gtei.net!newsfeed.us.prserv.net!prserv.net!news3.prserv.net!32.100.7.24
Xref: news.duke.edu rec.arts.int-fiction:97281



Michael Iachini wrote:
>
> 1. How can I give a supporter a description that makes it interesting
> to look yet, yet also have it list any objects that might be sitting
> on it?

Per another posted reply, the WriteListFrom routine is best used for
this. See DM4.

>
> 2. This one is a bit weirder.  I have a supporter (a table) which has
> a couple of static objects on it.  The table and the objects are
> mentioned in the room description, so I have them categorized as
> scenery.  No problem.  Now, I would like to be able to put non-static
> objects on the table and still have them described appropriately.  I
> have written (okay, stolen from the DM4) a routine that appropriately
> lists these objects when the table is examined ("The table has the two
> static objects on it.  Also on the table is...<any other objects that
> might be on it>").  This works beautifully.  My problem is cropping up
> in the room description.  Any time an object is left on the table and
> you Look in the room, it gives the room description (including the
> table and the static objects), then my "Also on the table is..." part,
> and then the default response for an object sitting on a supporter:
> "On the table is...".

Try looking at the SayWhatsOn routine in the library.  You might want to
copy it over to your game, (along with a "Replace SayWhatsOn" of
course), then modify it to suppress any output for any objects you don't
want to have "On the <supporter> is..." displayed.

Chip
