1999Q1/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: [MUD&#45;Dev] Re: MUD Design doc (long) -->
<!--X-From-R13: Fenivf Qnfrl <rsvaqryNvb.pbz> -->
<!--X-Date: Fri, 1 Jan 1999 21:08:23 &#45;0800 -->
<!--X-Message-Id: 17920.990101#io,com -->
<!--X-Content-Type: text/plain -->
<!--X-Reference: Version.32.19990101231603.00f31a50#sendar,prophecy.lu -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, [MUD-Dev] Re: MUD Design doc (long)</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:efindel#io,com">
</head>
<body background="/backgrounds/paperback.gif" bgcolor="#ffffff"
      text="#000000" link="#0000FF" alink="#FF0000" vlink="#006000">

  <font size="+4" color="#804040">
    <strong><em>MUD-Dev<br>mailing list archive</em></strong>
  </font>
      
<br>
[&nbsp;<a href="../">Other Periods</a>
&nbsp;|&nbsp;<a href="../../">Other mailing lists</a>
&nbsp;|&nbsp;<a href="/search.php3">Search</a>
&nbsp;]
<br clear=all><hr>
<!--X-Body-Begin-->
<!--X-User-Header-->
<!--X-User-Header-End-->
<!--X-TopPNI-->

Date:&nbsp;
[&nbsp;<a href="msg00005.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00007.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00004.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00018.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00006">Author</A>
&nbsp;|&nbsp;<A HREF="#00006">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00006">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>[MUD-Dev] Re: MUD Design doc (long)</H1>
<HR>
<!--X-Subject-Header-End-->
<!--X-Head-of-Message-->
<UL>
<LI><em>To</em>: <A HREF="mailto:mud-dev#kanga,nu">mud-dev#kanga,nu</A></LI>
<LI><em>Subject</em>: [MUD-Dev] Re: MUD Design doc (long)</LI>
<LI><em>From</em>: Travis Casey &lt;<A HREF="mailto:efindel#io,com">efindel#io,com</A>&gt;</LI>
<LI><em>Date</em>: Fri, 1 Jan 1999 22:06:01 -0500</LI>
<LI><em>Reply-To</em>: <A HREF="mailto:mud-dev#kanga,nu">mud-dev#kanga,nu</A></LI>
</UL>
<!--X-Head-of-Message-End-->
<!--X-Head-Body-Sep-Begin-->
<HR>
<!--X-Head-Body-Sep-End-->
<!--X-Body-of-Message-->
<PRE>
On Friday, January 01, 1999, Emil Eifrem wrote:

&gt; At 02:21 AM 12/24/98 , J C Lawrence wrote:
&gt;&gt;[Emil Eifrem:]
&gt;&gt;&gt; What good reasons are there for separating NPCs and PCs?
&gt;&gt;
&gt;&gt;The usual argument is simplicity and performance.  By making them
&gt;&gt;the same you remove the possibility of using short-circuit logic in
&gt;&gt;your NPC's or their AI's, thus imposing extra logic which is really
&gt;&gt;only needed for players and their typoes, command goofs,
&gt;&gt;guess-the-verb-games etc.  By devolving NPC's to a simpler form you
&gt;&gt;can bypass that and present a much simpler and in many ways more
&gt;&gt;elegant API to the NPC AI's.
&gt;&gt;
&gt;&gt;George Reese IIRC has written articulately on this in
&gt;&gt;rec.games.mud.*, but I'm unable to find the reference right now.

&gt; K, I'll be sure to look it up on dejanews. I decided to not separate PCs
&gt; and NPCs early on in my design and didn't pay it much mind -- I never quite
&gt; managed to find any major advantages to having them separated.

&gt; I have a distinction between player and character that I think helps; where
&gt; player is an actual rl person connecting to the mud, while a character is
&gt; one of possibly many in-game entities that that player may control.

My own thought is that they should be separate where it makes sense
for them to be separate, and the same where it makes sense for them to
be the same.

When I was working on Psyber Age, I set things up like this:

 - The "in-game" portions of all characters were represented by
   "bodies."

 - The "control" portion of a character was either a shell (for PCs)
   or a "mind" object (for NPCs).

Thus, PCs and NPCs had bodies that were exactly the same, but the
things controlling those bodies were different.  All the shell logic
(alias expansion, etc.) was in the shell object -- and since NPCs
didn't use a shell object, their commands didn't go through that
logic.

This separation had some other nice effects.  For example, it made it
easy to implement switching from one character to another, and it was
also easy to allow admins to "take over" monsters.

A couple of things I never got around to, but which should have been
fairly easy:

 - Having one "mind" control multiple "bodies."  This could be useful
   for implementing NPCs with group minds (Psyber Age was to be an SF
   mud, so this was a consideration).

 - On the weird side, you could have multiple objects controlling one
   body.  This could be useful for handling magical compulsions,
   possession, etc.

&gt; I use single inheritance for my world object hierarchy so multiple base
&gt; objects and other issues associated with multiple inheritance (I didn't
&gt; include the multiple-inheritance quote from your mail) won't be any
&gt; problem. The only immediate drawback I see about a global grammar is the
&gt; requirement to recompile your server in order to add a verb or command
&gt; instead of shoving that responsibility to the world scripting language.

You could have a global grammar and still have verbs/commands be
implemented in the world scripting language.  Lima does this -- verbs
are LPC programs in the mud, but the driver handles parsing (verbs
have to register themselves with the driver).

&gt; That inflexibility may end up being tedious and restraining on the
&gt; builders, such as when JoeBuilder wants 8 new small commands for his new
&gt; cool area, but will have to wait for lazy coders and the next code update
&gt; instead of just adding it dynamically by script. It may or may not be a
&gt; problem, depending on the length of one's code-update cycle and how
&gt; soft-coded one's server is.

It can also help quality control, though... some of the eight commands
that JoeBuilder wants to add may be synonyms for existing commands
that he doesn't know about.

Also, if commands are implemented in the scripting language, it may be
possible for JoeBuilder to code the new commands and then turn them
over to the person/team in charge of commands.

&gt; Yes. "cast my damagespell" was an ill-chosen example since it's normally
&gt; limited by both time and mana. Now, with the reservation that I don't know
&gt; anything about your combat system except for what I read in your post, it
&gt; seems to me that if two people were fighting with non-resource-limited
&gt; skills (such as 'kick'), *without* any player-command-lag the person with
&gt; the fastest client/connection would win.

&gt; So I would assume that you've made sure that all your (combat-)commands are
&gt; limited by something other than time. Or am I thinking too narrow here?

On SWmud, we chose to limit the rate at which commands could be
entered.  Specifically, you can't enter more than five commands per
second (if you try, the excess commands are simply thrown away).

We chose that rate because we found that it was about as fast as we
could enter commands that we had aliased to one letter.

--
       |\      _,,,---,,_        Travis S. Casey  &lt;efindel#io,com&gt;
 ZZzz  /,`.-'`'    -.  ;-;;,_   No one agrees with me.  Not even me.
      |,4-  ) )-,_..;\ (  `'-'
     '---''(_/--'  `-'\_)




</PRE>

<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<HR>
<ul compact><li><strong>Follow-Ups</strong>:
<ul>
<li><strong><A NAME="00018" HREF="msg00018.html">[MUD-Dev] Re: MUD Design doc (long)</A></strong>
<ul compact><li><em>From:</em> Emil Eifrem &lt;emil#prophecy,lu&gt;</li></ul>
</UL></LI></UL>
<!--X-Follow-Ups-End-->
<!--X-References-->
<UL><LI><STRONG>References</STRONG>:
<UL>
<LI><STRONG><A NAME="00004" HREF="msg00004.html">[MUD-Dev] Re: MUD Design doc (long)</A></STRONG>
<UL><LI><EM>From:</EM> Emil Eifrem &lt;emil#prophecy,lu&gt;</LI></UL></LI>
</UL></LI></UL>
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00005.html">[MUD-Dev] Re: AFAP: As fast as possible, non linear...</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00007.html">[MUD-Dev] ADMIN: Resends and possible duplicates</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00004.html">[MUD-Dev] Re: MUD Design doc (long)</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00018.html">[MUD-Dev] Re: MUD Design doc (long)</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00006"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00006"><STRONG>Thread</STRONG></A></LI>
</UL>
</LI>
</UL>

<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
<ul><li>Thread context:
<BLOCKQUOTE><UL>
<LI><strong><A NAME="00011" HREF="msg00011.html">[MUD-Dev] META: 1998 Topic Summary</A></strong>, 
Jon A. Lambert <a href="mailto:jlsysinc#ix,netcom.com">jlsysinc#ix,netcom.com</a>, Sun 27 Dec 1998, 09:49 GMT
<LI><strong><A NAME="00010" HREF="msg00010.html">[MUD-Dev] Terragen</A></strong>, 
Vadim Tkachenko <a href="mailto:vt#freehold,crocodile.org">vt#freehold,crocodile.org</a>, Fri 25 Dec 1998, 07:49 GMT
<LI><strong><A NAME="00008" HREF="msg00008.html">[MUD-Dev] Re: MUD Design doc (long)</A></strong>, 
J C Lawrence <a href="mailto:claw#under,engr.sgi.com">claw#under,engr.sgi.com</a>, Thu 24 Dec 1998, 07:57 GMT
<UL>
<LI><strong><A NAME="00004" HREF="msg00004.html">[MUD-Dev] Re: MUD Design doc (long)</A></strong>, 
Emil Eifrem <a href="mailto:emil#prophecy,lu">emil#prophecy,lu</a>, Sat 02 Jan 1999, 02:21 GMT
<UL>
<LI><strong><A NAME="00006" HREF="msg00006.html">[MUD-Dev] Re: MUD Design doc (long)</A></strong>, 
Travis Casey <a href="mailto:efindel#io,com">efindel#io,com</a>, Sat 02 Jan 1999, 05:08 GMT
<UL>
<LI><strong><A NAME="00018" HREF="msg00018.html">[MUD-Dev] Re: MUD Design doc (long)</A></strong>, 
Emil Eifrem <a href="mailto:emil#prophecy,lu">emil#prophecy,lu</a>, Sat 02 Jan 1999, 11:26 GMT
<UL>
<LI><strong><A NAME="00020" HREF="msg00020.html">[MUD-Dev] Re: MUD Design doc (long)</A></strong>, 
Travis Casey <a href="mailto:efindel#io,com">efindel#io,com</a>, Sat 02 Jan 1999, 19:49 GMT
<UL>
<LI><strong><A NAME="00022" HREF="msg00022.html">[MUD-Dev] Re: MUD Design doc (long)</A></strong>, 
Emil Eifrem <a href="mailto:emil#prophecy,lu">emil#prophecy,lu</a>, Sat 02 Jan 1999, 21:16 GMT
<UL>
<LI><strong><A NAME="00035" HREF="msg00035.html">[MUD-Dev] Re: MUD Design doc (long)</A></strong>, 
Travis S. Casey <a href="mailto:efindel#io,com">efindel#io,com</a>, Mon 04 Jan 1999, 18:57 GMT
</LI>
</UL>
</LI>
</UL>
</LI>
</UL>
</LI>
</UL>
</LI>
</UL>
</LI>
</UL>
</LI>
</UL></BLOCKQUOTE>

</ul>
<hr>
<center>
[&nbsp;<a href="../">Other Periods</a>
&nbsp;|&nbsp;<a href="../../">Other mailing lists</a>
&nbsp;|&nbsp;<a href="/search.php3">Search</a>
&nbsp;]
</center>
<hr>
</body>
</html>