Top Mud Sites Forum

Top Mud Sites Forum (http://www.topmudsites.com/forums/index.php)
-   MUD Builders and Areas (http://www.topmudsites.com/forums/forumdisplay.php?f=8)
-   -   OLC- special messages for eat/drink (http://www.topmudsites.com/forums/showthread.php?t=216)

Santrilla 02-09-2003 10:46 AM

I'm trying to put a special message on food and drink objects. For example instead of just 'you drink milk from a bottle', I want to say 'you put the bottle to your lips and feel the cool milk slide down your throat'... that sort of thing. Any ideas how I would program this into an object? (I'm using the OLC method, btw.)

Jorana 02-09-2003 07:22 PM

You may have to ask your coders to code this ability as I'm not sure it's in the standard OLC. We have many object messages available. We just do an ed add for the correct string - in this case ed add @drink_char. You can try that but I'm pretty sure that was added by our coders.

Jorana
Building Manager
Legends of Karinth

Brianna 02-10-2003 04:44 PM

If its available in your olc you can put object programs on various objects. I had a several object programs that were very nice for adding ambiance to an area. Perhaps you can look into that.

Molly 02-10-2003 05:16 PM

If you cannot get the coders to do this for you as a spec_proc, it can be done easily with a script (mob_prog) set on the object. Use a command trigger, with the word eat/drink as keyword, then you can put in different echoes for the actor and the other people in the same room.

For instance the actor could see:
'you put the bottle to your lips and feel the cool milk slide down your throat'

while the rest of the room sees:
'%actor.name% downs a bottle of milk, pretending it's a cool beer'

or something along those lines.
(This is basically what makes socials so fun to tinker with, they don't always come out quite as expected in the other end).

Enzo 02-12-2003 07:00 PM

The thirst/hunger messages that come through to a player are all in the code I believe. When you set the object's liquid type, the code could have it like:

The creamy, white milk slides down your throat.

or:

The sweet wine trickles down your throat ever so slowly.

Or you could have a basic thing which applies to all the objects which most people have:

You drink some wata.

Just talk to your coders, they'll know what to do.

Iluvatar 02-18-2003 11:13 AM

It's tough to recommend anything without actually seeing your OLC interface but I know the capability exists. We don't have specifically what you're asking for our use yet, but it should be feasible as a simple entry desc you would make into an ADESC field activated by a use_adesc flag assigned when you create the object.

In our Circle, we have the ADESC enabled to apply to wand and stave functions using simple mob_prog terms, Ergo the wand or stave performs an echoing or targeting etc function as it's used. I'm pretty sure it's a basic form of Oasis 1.0 so should be available for your coder to use. Setting up a <food or drink> designator use_adesc like our <wand or stave> should be simple.


All times are GMT -4. The time now is 03:11 PM.

Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright Top Mud Sites.com 2022