Re: Inform: How to make TINY container?


Sat, 19 Aug 1995 11:17:12 +0100

"Sam Hulick" (shulick@blueberry.ucs.indiana.edu) wrote:

> I have a problem. I want to make a little medicine canister that will
> hold tiny things, i.e. a dime, a bunch of pills, a peanut.. but NOT
> things like a portable radio, a shirt, etc. How can I manage this
> effect?

How about this:

#ATTRIBUTE tiny;

#OBJECT canister "medicine canister"
with name "medicine" "canister",
description "It's very small. You probably can't get much in.",
before [;
Receive:
if (noun hasnt tiny)
print_ret "You just can't cram ", (the) noun, " into \
the canister.";
rfalse;
],
capacity 3,
has container openable open;

Then objects such as a dime, a bunch of pills, a peanut, etc. have tiny,
while a radio, a shirt, etc. do not.

Hope this helps,
Jools

-- 
Julian Arnold                                         jools@arnod.demon.co.uk