Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

I7: More descriptive groupings

0 views
Skip to first unread message

weevil

unread,
Dec 21, 2009, 4:51:54 PM12/21/09
to
If you have a kind of item that is described by a value, and then you
randomly have some of those items in a room, if two of them have the
same descriptive value then they display as "two thingies". So a room
may print:

"you see a blue marshmallow, a yellow marshmallow, and two
marshmallows".

How to I change that grouping to include the value? (I've given up on
trying to keep the same value from happening twice)

<code>
space-banana is a room. "You are standing on a giant banana, flying
through space at the crest of a solar wind. Stardust collects on your
fur like a violet snowdrift as you race on the causeways of infinity.
The banana that you stand upon stretches out for what seems like miles
in every direction. Above your head galaxies careen by at impossible
speeds. Many happy creatures made of fruit-flavored marshmallow bounce
around you happily, occasionally nuzzling your and making cooing
noises."

Marshmallow creature is a kind of animal. Flavor is a kind of value.
The flavors are strawberry, orange, banana, grapefruit, elderly,
watermelon, cinnamon, vanilla, pineapple, chocolate, apple, gumbo,
fish, manure, pork, caramel, maple, cheese, grape, and smelly. A
Marshmallow creature has a flavor. The flavor of a marshmallow
creature is usually strawberry. Consumption is a kind of value. The
consumptions are whole and gnawed-on. A Marshmallow creature has a
consumption. The consumption of a marshmallow creature is usually
whole. The description of a marshmallow creature is "The fluffy
[flavor] marshmallow creature smiles up at you. It is [consumption]."
Understand the flavor property as describing a marshmallow creature.
The printed name of a marshmallow creature is "[flavor] marshmallow
creature".

There are five marshmallow creatures in space-banana.

When play begins:
repeat with item running through marshmallow creatures:
change the flavor of the item to a random flavor.
</code>

JDC

unread,
Dec 21, 2009, 5:46:04 PM12/21/09
to
On Dec 21, 4:51 pm, weevil <wileywg...@gmail.com> wrote:
> How to I change that grouping to include the value? (I've given up on
> trying to keep the same value from happening twice)

You also need to change the plural name:
The printed plural name of a marshmallow creature is "[flavor]
marshmallow creatures".

-JDC

weevil

unread,
Dec 21, 2009, 5:48:54 PM12/21/09
to
Aha! plural name! I had been trying the same thing but with 'printed
name of a group of marshmallow creatures' etc.
Thanks!
0 new messages