[DGD] Re: Individual messages
Serhat Sakarya
serhat at freud.et.tudelft.nl
Sat Jul 18 14:39:40 CEST 1998
On Fri, 17 Jul 1998, Mikael Lind wrote:
> I'm considering having my DGD-based mudlib generate individual messages for
> interested observers when something happens. For instance, if a werewolf
> wields a sword:
[snip]
> I hope that you get my point. In these cases the solution seems easy.
> Generate one message for the subject (the elf in the latter case), one for
> the object (the orc) and one for everybody else.
>
> The problem is, what if the orc is invisible? And some of the observers can
> see invisible creatures, while others can't? If the elf is known as Elemelf
> to some observers, while he's anonymous to others?
What you mean (I think) is: in the simplest case, you could generate one
single message for _all_ observers, e.g. "Serhat hits Mikael", but in
order to achieve some more realism, the message for each observer might
have to be different. If I were invisible, some (non wiz?) observers
would see "Some shadow hits Mikael" or even "Mikael falls on the floor
as though some invisible force attacked him".
> The solution that I came up with (and which probably isn't anything new) is
> using message packets from which an each observer can generate a proper
> message if she wants to. But it feels like a lot of work and I'm not sure
> if it's worth it...
Something along the lines of <ask /obj/player#123 for the custom message>
instead of "Foo hits Bar"? Then every observer object can call some function
(e.g. get_relayed_message) in the object "emitting" the message and get a
custom one. I don't think it's too much work, but I don't think it's the
best solution either.
> Could anyone of you give me a hint? If you feel that the thread is off-topic
> you can reply to my address instead of the reply-to address. I'm only
> familiar with the old LPmud solutions, specifically Igormud.
I myself would be quite interested in any smart/new/efficient ideas on
this topic.
> PS. My mother sends her regards. (?)
My regards back :-)
Regards,
Serhat Sakarya
List config page: http://list.imaginary.com/mailman/listinfo/dgd
More information about the DGD
mailing list