<!-- MHonArc v2.4.4 --> <!--X-Subject: [MUD-Dev] Re: MUD verb handling (Was: DevMUD - thoughts.1) --> <!--X-From-R13: "Oqnz X. Fubeagba" <nqnzNcubravk.Bevaprgba.SRG> --> <!--X-Date: Sun, 25 Oct 1998 07:11:04 -0800 --> <!--X-Message-Id: 19981025100755.B3462#tucson,Princeton.EDU --> <!--X-Content-Type: text/plain --> <!--X-Reference: 199810250458.WAA02465@ami-cg.GraySage.Edmonton.AB.CA --> <!--X-Reference: Pine.LNX.3.96.981025123253.3986C-100000@localhost --> <!--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:adam#phoenix,Princeton.EDU"> </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> [ <a href="../">Other Periods</a> | <a href="../../">Other mailing lists</a> | <a href="/search.php3">Search</a> ] <br clear=all><hr> <!--X-Body-Begin--> <!--X-User-Header--> <!--X-User-Header-End--> <!--X-TopPNI--> Date: [ <a href="msg00486.html">Previous</a> | <a href="msg00488.html">Next</a> ] Thread: [ <a href="msg00482.html">Previous</a> | <a href="msg00543.html">Next</a> ] Index: [ <A HREF="author.html#00487">Author</A> | <A HREF="#00487">Date</A> | <A HREF="thread.html#00487">Thread</A> ] <!--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>: "Adam J. Thornton" <<A HREF="mailto:adam#phoenix,Princeton.EDU">adam#phoenix,Princeton.EDU</A>></LI> <LI><em>Date</em>: Sun, 25 Oct 1998 10:07:55 -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 Sun, Oct 25, 1998 at 12:54:34PM +0100, The Arrow wrote: > For example, assume Bubba the human tries to pick up a rock, the rock object > have a a before handler for the OnGet verb that checks the strength of the > actor and prints "The rock is to heavy for you." message and returns false > if the actors strength is to small, making the rock ungetable for Bubba. Has anyone delved deeply enough into the Inform code to see how separable the parser/tokenizer/semantic parts are? It seems like there should be--for a generic MUD project, although *not* necessarily for Inform or Hugo--very distinct steps. The first part needs to break input into separate chunks: this is the verb, this is a direct object, this is a preposition (and needs to be flexible enough that, for example, a point-click-drag paradigm rather than a type-at-the-prompt paradigm could be done too). The second needs to assign those chunks to data objects within the system: the string EAT maps to verb #34. The third does the check to see whether the direct object is something that supports an EAT method, either directly or through a superclass, and Does The Right Thing with it. The first is very low-level indeed, of course, and probably should be done in native code. The second depends on the interface to the world data, and so should probably be in the game language. The third is itself world representation data and must be done in the game language if the system is to have any flexibility. Inform or Hugo might be good models. They might not. I've never dealt with their internals. I know TADS isn't: I ported Dave Baggett's Sun code to Linux in '92, and I looked into doing an HTML TADS port a few months ago. That language, alas, was designed for a 16-bit DOS system, and the implementation is incredibly crocky; the source is well-nigh unreadable. Adam -- adam#princeton,edu "There's a border to somewhere waiting, and a tank full of time." - J. Steinman </PRE> <!--X-Body-of-Message-End--> <!--X-MsgBody-End--> <!--X-Follow-Ups--> <HR> <!--X-Follow-Ups-End--> <!--X-References--> <UL><LI><STRONG>References</STRONG>: <UL> <LI><STRONG><A NAME="00477" HREF="msg00477.html">[MUD-Dev] DevMUD - thoughts.1</A></STRONG> <UL><LI><EM>From:</EM> Chris Gray <cg#ami-cg,GraySage.Edmonton.AB.CA></LI></UL></LI> <LI><STRONG><A NAME="00482" HREF="msg00482.html">[MUD-Dev] Re: MUD verb handling (Was: DevMUD - thoughts.1)</A></STRONG> <UL><LI><EM>From:</EM> The Arrow <arrow#trelleborg,mail.telia.com></LI></UL></LI> </UL></LI></UL> <!--X-References-End--> <!--X-BotPNI--> <UL> <LI>Prev by Date: <STRONG><A HREF="msg00486.html">[MUD-Dev] openmud: open issues</A></STRONG> </LI> <LI>Next by Date: <STRONG><A HREF="msg00488.html">[MUD-Dev] Re: OpenMUD: bus-based communications</A></STRONG> </LI> <LI>Prev by thread: <STRONG><A HREF="msg00482.html">[MUD-Dev] Re: MUD verb handling (Was: DevMUD - thoughts.1)</A></STRONG> </LI> <LI>Next by thread: <STRONG><A HREF="msg00543.html">[MUD-Dev] Re: MUD verb handling (Was: DevMUD - thoughts.1)</A></STRONG> </LI> <LI>Index(es): <UL> <LI><A HREF="index.html#00487"><STRONG>Date</STRONG></A></LI> <LI><A HREF="thread.html#00487"><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>[MUD-Dev] Re: openmud or pdmud or devmud</STRONG>, <EM>(continued)</EM> <ul compact> <ul compact> <LI><strong><A NAME="00526" HREF="msg00526.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, 00:54 GMT </LI> </ul> </ul> </LI> <LI><strong><A NAME="00477" HREF="msg00477.html">[MUD-Dev] 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, 05:04 GMT <UL> <LI><strong><A NAME="00481" HREF="msg00481.html">[MUD-Dev] Re: DevMUD - thoughts.1</A></strong>, Niklas Elmqvist <a href="mailto:d97elm#dtek,chalmers.se">d97elm#dtek,chalmers.se</a>, Sun 25 Oct 1998, 09:39 GMT </LI> <LI><strong><A NAME="00482" HREF="msg00482.html">[MUD-Dev] Re: MUD verb handling (Was: DevMUD - thoughts.1)</A></strong>, The Arrow <a href="mailto:arrow#trelleborg,mail.telia.com">arrow#trelleborg,mail.telia.com</a>, Sun 25 Oct 1998, 11:57 GMT <UL> <LI><strong><A NAME="00487" HREF="msg00487.html">[MUD-Dev] Re: MUD verb handling (Was: DevMUD - thoughts.1)</A></strong>, Adam J. Thornton <a href="mailto:adam#phoenix,Princeton.EDU">adam#phoenix,Princeton.EDU</a>, Sun 25 Oct 1998, 15:11 GMT </LI> <LI><strong><A NAME="00543" HREF="msg00543.html">[MUD-Dev] Re: MUD verb handling (Was: DevMUD - thoughts.1)</A></strong>, Jon Leonard <a href="mailto:jleonard#divcom,slimy.com">jleonard#divcom,slimy.com</a>, Tue 27 Oct 1998, 06:57 GMT <UL> <LI><strong><A NAME="00549" HREF="msg00549.html">[MUD-Dev] Re: MUD verb handling (Was: DevMUD - thoughts.1)</A></strong>, Niklas Elmqvist <a href="mailto:d97elm#dtek,chalmers.se">d97elm#dtek,chalmers.se</a>, Tue 27 Oct 1998, 16:32 GMT </LI> </UL> </LI> </UL> </LI> <LI><strong><A NAME="00483" HREF="msg00483.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, 13:47 GMT </LI> </UL> </LI> <LI><strong><A NAME="00475" HREF="msg00475.html">[MUD-Dev] Re: I wanna do it OO</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, 03:53 GMT </UL></BLOCKQUOTE> </ul> <hr> <center> [ <a href="../">Other Periods</a> | <a href="../../">Other mailing lists</a> | <a href="/search.php3">Search</a> ] </center> <hr> </body> </html>