//
Messages on exits and such

Messages on exits and such

by Perry
in KidPub Press Headquarters

Every thing in KidMud has a set of messages that can be displayed when certain events happen. As an example, we will change some of the messages on the sliding door in the living room, the one that leads out to the deck.

The command to use to see all of the messages on an object is @messages.

@messages object
For example, here are the messages available on the slider:

@messages slider
@integrate_room slider isn't set.
@integrate_player slider isn't set.
@integrate_container slider isn't set.
@nogo slider isn't set.
@onogo slider isn't set.
@arrive slider isn't set.
@oarrive slider isn't set.
@oleave slider isn't set.
@leave slider isn't set.
@nothing slider is "nothing"
@no_one slider is "no one"
@through slider is "%xt{dest}{d {in} c}, you see %xt{dest}ci."

The arrive and leave messages are dispayed when someone comes through the exit, in this example the slider.

This is what it looks like when Toby comes through the slider to the deck:

Toby arrives from the Living Room.

We can make this more interesting by setting the arrive and the oarrive messages on the slider. The messages that start with the letter o are shown to others in the room. The messages that don't start with the letter o are shown to you.

@oarrive slider is wrestles with the sticking slider and tumbles onto the deck.
Changes the oarrive message on the slider

Here is what it looks like now:

Toby wrestles with the sticking slider and tumbles onto the deck.

Now we can set the arrive message in the same way:

@arrive slider is You struggle a bit with the slider...it seems
to be sticking. With a tug it opens...

Changes the arrive message on the slider.

slider
You struggle a bit with the slider...it seems to be sticking. With a tug it opens...

You can use the same technique to change any message on any object that you own. Is your exit ina tree? Make the arrive and leave messages so that you aer clambering up a trunk. Is you room in a pond? Make the arrive and leave messages say something about water or holding your breath.

Have fun!


See more stories by Perry
Please, please,

Please, please, pleeeeeaaaaasseeeeee help me! I'm stuck at someplace called The The North Pole, and there is no description, and also there says there are no exits so I can't leave and I don't know how to get out! Please help!

Posted by Shaelyn on Thu, 01/14/2010 - 21:32
type

type "home"

 

--------------

Put this in your sig if you are against fights on KP: WRITE, NOT FIGHT!

hi Wolverine of WHACK just posted. have you read redwall??

Posted by Jack on Tue, 10/12/2010 - 08:28


KidPub Authors Club members can post their own stories, comment on stories they've read, play on KidMud, enter our contests, and more! Want to join in on the fun? Joining is easy!

CLICK HERE TO GET STARTED!