Newsgroups: rec.arts.int-fiction
Path: nntp.gmd.de!Dortmund.Germany.EU.net!Germany.EU.net!EU.net!newsfeed.internetmci.com!miwok!ratbert!raisin!egh
From: egh@raisin.bagel.org (Erik Hetzner)
Subject: Re: [Inform] "describe" for things that are on supporters
X-Newsreader: TIN [version 1.2 PL2]
Organization: Raisin Bagels, Inc.
Message-ID: <E2Bvv2.13F@raisin.bagel.org>
References: <57ra5a$nd0@dfw-ixnews11.ix.netcom.com> <57umvu$hek@saturn.brighton.ac.uk> <32A73B36.623@fred.aurora.edu> <erkyrathE202JC.DM5@netcom.com> <32AC6C51.21AE@fred.aurora.edu> <erkyrathE26E70.CCM@netcom.com>
Date: Fri, 13 Dec 1996 01:23:26 GMT
Lines: 33

Andrew Plotkin (erkyrath@netcom.com) wrote:
: As to your actual problem: I was wrong, it has nothing to do with your 
: "description" or "describe" routines. It's just that you have a static 
: supporter, and the contents of static objects are listed out 
: automatically as part of the room description. If you don't want this to 
: happen, give it the scenery attribute instead.

: (This will also suppress the display of the "initial" property, I think. 
: If that's a big deal, you can always cheat and put "A cheap Wills Mart 
: bulletin board hangs on the wall." in the *room* description, after after 
: a couple of newlines.)

Here's a better, though not perfect, solution. It's not perfect
because the board won't be listed with other objects, as perhaps it
ought to be, in the room description.

Nearby Board "Bulletin Board"
with name "board" "bulletin",
	initial "There is a bulletin board here.",
	description [;
		print "A bulletin board.^";
		<search board>;
		rtrue;
	],
	describe [;
		"^", (string) self.initial;
	],
has static supporter;

My descriptions perhaps are nothing to write home about, but the idea
is there. :)
-- 
Erik Hetzner <egh@raisin.bagel.org>
