Fantasy Worlds Icon

Generic Carafe



@create #149 named MyCarafe

Description

Here's what it looks like to the person who pours a drink from the carafe:

pour tea from MyCarafe
Valorie pours a hot steaming mug full of tea from the carafe.
The wonderful aroma of your tea surrounds you as you raise the mug to your lips...
You take another sip of your tea. Good to the last drop, eh?
You take another sip of your tea. Maybe it needs just a tad more sugar?
You take another sip of your tea. Wow! It's too hot!
You take another sip of your tea. Ummm
You take another sip of your tea. Eyeballs popping wide open ...
You set down your mug with a thud. Ready to get back to work?

Commands

Pour flavor from carafe to get yourself a cup of something hot to drink.

When you type "pour" the Carafe sets up a 30 second timer. Every 30 seconds you will get a "sip" message from the Carafe. Which message and how many messages total is controlled by a random number between 3 and 7.

@edit MyCarafe.drink_msg

Put each "drink" message on a separate line.

In the example above, the drink messages are:

Uses

The Carafe can be used to create a "social" environment. When people get together for an online meeting or to chat they frequently like to "pour" themselves a cup of virtual tea, coffee, or hot chocolate. The social niceties help to facilitate collaborative and cooperative behaviors.

Programming

This is a useful example of how to use a trigger event (pour) to generate random messages back to the person who caused the event. This is also a good example of how to use pronoun substitutions in messages.

If you want to serve cold beverages, you will need to modify the messages which are internal to the verb code.

@list #149:pour will show you the MOO code for this verb.

Back


Last Updated: 07 January 2001
This webpage is maintained by Kit Finn (director@tagfam.org)