Message-ID: <3CC0415F.60B7D3D5@attNOSPAMglobal.net>
Date: Fri, 19 Apr 2002 09:10:07 -0700
From: Chip Hayes <chiphayes@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] Attached To?
References: <20020419114145.26402.00002333@mb-ff.aol.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 32.100.7.64
X-Trace: 19 Apr 2002 16:08:28 GMT, 32.100.7.64
Organization: Global Network Services - Remote Access Mail & News Services
Lines: 37
X-Complaints-To: abuse@prserv.net
Path: news.duke.edu!newsgate.duke.edu!nntp-out.monmouth.com!newspeer.monmouth.com!skynet.be!skynet.be!newshub1.nl.home.com!news.nl.home.com!news-x2.support.nl!newsfeed.equant.nl!newsfeed.equant.nl!news2.euro.net!uunet!ash.uu.net!newsfeed.us.prserv.net!prserv.net!news3.prserv.net!32.100.7.64
Xref: news.duke.edu rec.arts.int-fiction:103511

Kathleen...

I've had something similar to deal with lately. Take a look at Ex. 104
(page 236) in the DM4. The red sticky label that can be affixed to
anything might be one way of doing this.

But since you want to restrict the receiving item to just one object,
another possible way is to create a special limbo-like room into which
you move all things you want to have attached to the hat. Then in the
hat's definition, use an add_to_scope routine to bring all objects in
that room into scope. Then write a describe and invent routine for the
hat that checks for all objects in that room, and describe them as being
attached to the hat.

There's probably a much easier method that's someone else is going to
point out, but that's how I've handled such attached-to objects before.

Chip

MFischer5 wrote:
>
> I want to code something like a fishing hat where the player can attach various
> fishhooks to it. Something like:
>
> >L
> You see your fishing hat here, attached to which is a worm hook, a fly hook,
> and a beetle hook.
>
> Sounds easy enough, but when I make the hat a supporter, I get "on top of" and
> a container gives me something like "inside" - both printed by library
> messages, and I don't see that I can check to see the object being printed at
> that time to override it with "attached to"
>
> Suggestions?
>
> Kathleen - a bit rusty from disuse so be gentle :)
>
