[MUD-Dev] Re: npc memory and reactions

Ross Nicoll rnicoll at lostics.demon.co.uk
Fri Sep 11 17:42:10 CEST 1998


>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
 /_) / / (_  (__
/\  /_/  __)   /
______________/






More information about the mud-dev-archive mailing list