topnav

Series Info...In the Trenches #9:

What's What 1: Eat, Drink and Play Merry

by Laurel Stuart
May 20, 2002

Everything in a Chat Theatre is an object, but not all objects are equal. Some have specific functions or levels of complexity. The types of objects I'm going to talk about today are common to Chat Theatres regardless of size or genre. They are: food, clothing, weapons, containers and rooms. Today I'm going to write about creating food objects.

Food=Consumption

Food is any object that can be consumed by a character. Food is divided into edible and potable objects. A candy bar would be classified as edible; water is potable- its all a matter choosing between eating and drinking. Base:Misc is the Interface field that contains the options. If the object is edible or potable, there's a box to check off so the parser will react appropriately. Food is the only kind of object that can be consumed by a character. In order to consume the food, the player will give some form of consume command to the parser.

Build Example

Let me build a candy bar as an illustration. I decide it will be a plain chocolate bar, without a wrapper for simplicity's sake. I'll want characters to be able to devour it in four bites.

 <Base:Descriptions>
      <Base:Description type="brief">candy bar</Base:Description>
      <Base:Description type="examine">
         The <eaten what="$(this)"/> dark chocolate candy has a delicious flavor.
      </Base:Description>
      <Base:Description type="look">
         You look at the <eaten what="$(this)"/>chunk of dark milk chocolate.
      </Base:Description>
      <Base:Description type="taste">
         The candy bar has a delicious flavor.
      </Base:Description>
    </Base:Descriptions>

When a character tastes the candy bar, they will find out that it has a delicious flavor- and if they look at it again, they will see that its been partially eaten.

<eaten what="$(this)"/> is a simple SAM (Skotos Active Markup) command that expands the object description to provide information regarding how much food has been consumed. So I'll need not just one, but at least two sets of descriptions.

Basic Candy Bar
brief: the candy bar
look: You look at the dark chocolate candy bar.
examine: the dark chocolate candy has a delicious flavor.

Half Eaten Candy Bar
brief: the candy bar
look: You look at the half eaten chunk of dark chocolate.
examine: The half eaten chunk of dark chocolate candy has a delicious flavor.

Description Essentials

The example before is very simple. It provides a couple of facts about the food; the candy bar is dark chocolate (visual) and has a delicious flavor (taste). A more elaborate food object could contain descriptive words accounting for texture or smell as well. Object details should address as many of the "Five Senses" as seems appropriate. Ridiculously long details will bore the reader, however.

Writing in a simple but elegant style is probably the best form.

With this in mind, I do a little revising on my candy bar to give it a bit more color.

Revised Candy Bar
brief: the candy bar
look: You look at the dark chocolate candy bar.
examine: the inch-thick dark chocolate candy has a delicious flavor. The bar is firm to the touch and smells extremely appetizing.

Conceivably, I could also create a candy bar inside a container called a candy bar wrapper. In this case, I would work towards an unwrap command that could be used to remove candy bars (and other objects) from the candy bar wrapper before consumption.

Lets say I wanted to create a dozen different kinds of candy bars. To save myself some time, I would take my original object and create candy bar "descendents" from it to save myself time and trouble. Each candy bar would require its own name and some alterations in details to stand as a unique object. Working from templates saves time and minimizes Interface problems.

Developing A Menu

Man cannot live by candy bar alone. Every chat theatre will probably want to offer a wide variety of foods appropriate for its time period and genre. Devil's Cay, being a modern resort in the Bahamas, will have a very different menu than Marrach. Red Snapper, Shrimp Louie, Callaloo Creole Soup and Phoulorie with spicy chutney or tamarind might be very appropriate in the formal dining room. A little research into what different foods look and taste like is in order for Storybuilding. The extra effort will be appreciated by the player base.

Recent Discussions on In the Trenches:

jump new