1998Q4/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: [MUD&#45;Dev] Re: MUD verb handling (Was: DevMUD &#45; thoughts.1) -->
<!--X-From-R13: Quevf Uenl <ptNnzv&#45;pt.UenlEntr.Sqzbagba.OP.QO> -->
<!--X-Date: Sun, 25 Oct 1998 08:25:41 &#45;0800 -->
<!--X-Message-Id: 199810251623.JAA02824@ami&#45;cg.GraySage.Edmonton.AB.CA -->
<!--X-Content-Type: text/plain -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, [MUD-Dev] Re: MUD verb handling (Was: DevMUD - thoughts.1)</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">
</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="msg00489.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00491.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00530.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00489.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00490">Author</A>
&nbsp;|&nbsp;<A HREF="#00490">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00490">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>[MUD-Dev] Re: MUD verb handling (Was: DevMUD - thoughts.1)</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 verb handling (Was: DevMUD - thoughts.1)</LI>
<LI><em>From</em>: Chris Gray &lt;<A HREF="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</A>&gt;</LI>
<LI><em>Date</em>: Sun, 25 Oct 1998 09:23:15 -0700</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>
[The Arrow (Joachim):]

 &gt;Hmm, reminds me of the system I have thought of for my mud.  However, I
 &gt;haven't got anything else than some random thoughts and a yacc grammar for
 &gt;my mud-language (based on a mix of C and the IF languages Hugo and Inform)
 &gt;for the definition of the verbs.  Verb handlers exists either as functions
 &gt;in the mud language, or not at all (a "Huh?!?" type message gets written),
 &gt;and all mud-objects may have one or more (or none) after and before handlers
 &gt;wich gets called after and before the verb default function.  The after and
 &gt;before handlers can return false to stop the verb parser from searching for
 &gt;more handlers and not execute the default verb function.
 &gt;For example, assume Bubba the human tries to pick up a rock, the rock object
 &gt;have a a before handler for the OnGet verb that checks the strength of the
 &gt;actor and prints "The rock is to heavy for you." message and returns false
 &gt;if the actors strength is to small, making the rock ungetable for Bubba.

Rather than 'Huh?!?', I think mine says "I don't understand a command
starting with &lt;verb&gt;." Lets the user know what went wrong, but otherwise
equivalent.

Pre and post handlers: yes! Also, there are uses for having such handlers
(I call them checkers) attached to the character and to the locations.
I would do the weight test with the character checker, rather than having
all objects have to do it.

Actually, my system isn't pure OO. So, in fact what happens is that the verb
code for 'get' does such checking directly. Currently, I have no concept of
weight, but a character can only carry so many things, so it is that check
that is done directly. The checks on the character, object and room are done
only after passing that first check, and those *are* retrieved from the
entities in an OO fashion. Also, with my system, the checkers are actually
just properties that can contain function references, and are usually
empty, thus occupying no space in the DB.

-- 
Chris Gray     cg#ami-cg,GraySage.Edmonton.AB.CA


</PRE>

<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<HR>
<!--X-Follow-Ups-End-->
<!--X-References-->
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00489.html">[MUD-Dev] Re: DevMUD - thoughts.1</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00491.html">[MUD-Dev] Re: DevMUD - thoughts.1</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00530.html">[MUD-Dev] Re: openmud or pdmud or devmud</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00489.html">[MUD-Dev] Re: DevMUD - thoughts.1</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00490"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00490"><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="00504" HREF="msg00504.html">[MUD-Dev] OpenMUD: bus-based communications</A></strong>, 
ApplePiMan <a href="mailto:ApplePiMan#aol,com">ApplePiMan#aol,com</a>, Mon 26 Oct 1998, 00:43 GMT
<LI><strong><A NAME="00493" HREF="msg00493.html">[MUD-Dev] Re: openmud or pdmud or devmud</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Sun 25 Oct 1998, 17:34 GMT
<UL>
<li>&lt;Possible follow-up(s)&gt;<br>
<LI><strong><A NAME="00528" HREF="msg00528.html">[MUD-Dev] Re: openmud or pdmud or devmud</A></strong>, 
Bruce Mitchener, Jr. <a href="mailto:bruce#puremagic,com">bruce#puremagic,com</a>, Tue 27 Oct 1998, 01:49 GMT
<UL>
<LI><strong><A NAME="00530" HREF="msg00530.html">[MUD-Dev] Re: openmud or pdmud or devmud</A></strong>, 
Adam J. Thornton <a href="mailto:adam#phoenix,Princeton.EDU">adam#phoenix,Princeton.EDU</a>, Tue 27 Oct 1998, 02:24 GMT
</LI>
</UL>
</LI>
</UL>
</LI>
<LI><strong><A NAME="00490" HREF="msg00490.html">[MUD-Dev] Re: MUD verb handling (Was: DevMUD - thoughts.1)</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Sun 25 Oct 1998, 16:25 GMT
<LI><strong><A NAME="00489" HREF="msg00489.html">[MUD-Dev] Re: DevMUD - thoughts.1</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Sun 25 Oct 1998, 16:16 GMT
<UL>
<li>&lt;Possible follow-up(s)&gt;<br>
<LI><strong><A NAME="00491" HREF="msg00491.html">[MUD-Dev] Re: DevMUD - thoughts.1</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Sun 25 Oct 1998, 17:24 GMT
<UL>
<LI><strong><A NAME="00497" HREF="msg00497.html">[MUD-Dev] Re: DevMUD - thoughts.1</A></strong>, 
James Wilson <a href="mailto:jwilson#rochester,rr.com">jwilson#rochester,rr.com</a>, Sun 25 Oct 1998, 20:45 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="00500" HREF="msg00500.html">[MUD-Dev] Re: DevMUD - thoughts.1</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Sun 25 Oct 1998, 22:38 GMT
</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>