[Home] [Groups] - Message: [Prev in Group] [Next in Group]

nu.kanga.list.mud-dev

14831: Re: [MUD-Dev] Realism and NPCs

[Full Header] [Plain Text]
From: Travis Casey <efindel@earthlink.net>
Newsgroups: nu.kanga.list.mud-dev
Date: Mon, 24 Jul 2000 11:34:38 -0400
References: [1]
Organization: Kanga.Nu
Sunday, July 23, 2000, 4:29:38 PM, Ben <bjchambers@phoenixdsl.com> wrote:

>     I have tried out dartmud, and the idea of giving each npc a brain is
> interesting.  But the obvious problem that I can see is the kind of ram and
> space it would take up.  Does anyone know of anyones of solving this
> problem?

One thing to do would be to give different NPCs the same brain -- or
at least, have them share portions of their brain.  For example, all
the "animals" on the mud might share the same brain code, with just
variables being stored individually for each one.  Even some variables
might be shared -- for example, peasants in a particular village could
share a randomized set of responses for greetings and such.

Dartmud is an LP if I recall correctly... so I'd bet that most of the
NPC brains are simply cloned from the same object and then have
parameters set.  On an LP, it's also easy to create "intermediate"
brain objects -- e.g., there might be a general "stock NPC" brain,
which could be called by the "Foo peasant" brain code for responses to
things it doesn't handle, which in turn is called by "Charlie the
shopkeeper's" brain code, which can also call the "stock shopkeeper"
brain module.

--
       |\      _,,,---,,_    Travis S. Casey  <efindel@earthlink.net>
 ZZzz  /,`.-'`'    -.  ;-;;,_   No one agrees with me.  Not even me.
      |,4-  ) )-,_..;\ (  `'-'
     '---''(_/--'  `-'\_)   





_______________________________________________
MUD-Dev mailing list
MUD-Dev@kanga.nu
http://www.kanga.nu/lists/listinfo/mud-dev