[Home] [Groups] - Message: [Prev in Group] [Next in Group]
7248: [MUD-Dev] Re: npc memory and reactions
[Full Header] [Plain Text]
From: Ross Nicoll <rnicoll@lostics.demon.co.uk>
Newsgroups: nu.kanga.list.mud-dev
Date: Fri, 11 Sep 1998 17:42:10 +0100
References: [1]
Organization: Kanga.Nu
>For instance, suppose that when Robot Zeke sees Tom wearing
>a swastika, he immediately reports him to the local ADL and
>Tom is brought in for questioning...
The plan with my server is that most good NPCs, if they see
one character attack another, will decide whether it is worth
noting (is a high level character attacking a newbie, or an evil
character attacking a good character, for instance), and if it
is, take note and the next time they see a guard, "report" and
then "forget" about the event.
How the guard's will handle that remains to be seen.
>First, how does Zeke get the information about Tom's sartorial
>faux pas? Perhaps Zeke is the consumer of a stream of 'sensory
>events', i.e. some machine-reasonable encoding of "You see
>Tom wearing a swastika". When Tom does something notable,
>he broadcasts a stream of such events to all who can sense him.
>Ideally, only events appropriate to the receiver would be sent (or
>there'd be some wasted effort there).
Well, on my server, events are sent to NPCs as they happen. I plan
to change it so that instead of calling a NPC function with the event
data as arguments, it finds the correct code for the NPC to handle
that event, and send the pass the event data to that code, if there
is any code.
_ __ __ __ Ross "Xugumad" Nicoll
/_) / / (_ (__
/\ /_/ __) /
______________/