Message-ID: <3B979689.B35FF8FD@attglobal.net>
Date: Thu, 06 Sep 2001 08:30:18 -0700
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] Is there a way to exclude a class from being counted as
 CARRIED?
References: <btieptonvuauprba0716lvnfmvqffvplk5@4ax.com> <slrn9peraq.82.cerutti@fiad06.norwich.edu> <hg1fptkd8en0h8q88a0g500e2ss1i2ucjh@4ax.com> <aILl7.5672$235.201996@news6-win.server.ntlworld.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 32.100.6.45
X-Trace: 6 Sep 2001 15:27:15 GMT, 32.100.6.45
Organization: Global Network Services - Remote Access Mail & News Services
Lines: 24
X-Complaints-To: abuse@prserv.net
Path: news.duke.edu!newsgate.duke.edu!nntp-out.monmouth.com!newspeer.monmouth.com!nntp.abs.net!uunet!dca.uu.net!ash.uu.net!newsfeed.us.prserv.net!prserv.net!news3.prserv.net!32.100.6.45
Xref: news.duke.edu rec.arts.int-fiction:92249



Dave Holland wrote:
>
> Gadget  <gadget@SPAMBLOCKhaha.demon.nl> wrote:
> >Well, could you be a bit more specific? I can only find references to
> >MAX_CARRIED and the SACK_OBJECT and I want to exclude a class of
> >objects as being counted as carried...
> >Can someone help me solve this?
>
> The solution to exercise 43 does more than you want, but might be
> helpful?
>
> Dave

Gadget...

To expand on Dave's suggestion, the WeightOf() routine and
WeightMonitor() daemon in exercise 43 should indeed work as you want.
You can either give the coins a weight of 0 (or, more logically, a very
light weight) or trap your coin class within the objectloop prior to
being added to the total weight so it isn't included in that total weight.

Chip
