1997Q2/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: Re: [MUD&#45;Dev]  Magnetic Scrolls' magical parser -->
<!--X-From-R13: Zvat <Y.Z.Zb&#45;94Nfghqrag.yhg.np.hx> -->
<!--X-Date: from fabius.globecomm.net [207.51.48.6] by mx01.ny.us.ibm.net id 862580104.91976&#45;1 Fri May  2 13:35:04 1997 -->
<!--X-Message-Id: Pine.SOL.3.95.970502141533.3379A&#45;100000@sun&#45;cc203 -->
<!--X-Content-Type: text/plain -->
<!--X-Reference: 199704290453.VAA11778#user2,inficad.com -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, Re: [MUD-Dev]  Magnetic Scrolls' magical parser</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:K.L.Lo-94#student,lut.ac.uk">
</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="msg00306.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00308.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00286.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00282.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00307">Author</A>
&nbsp;|&nbsp;<A HREF="#00307">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00307">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>Re: [MUD-Dev]  Magnetic Scrolls' magical parser</H1>
<HR>
<!--X-Subject-Header-End-->
<!--X-Head-of-Message-->
<UL>
<LI><em>To</em>: <A HREF="mailto:mud-dev#null,net">mud-dev#null,net</A></LI>
<LI><em>Subject</em>: Re: [MUD-Dev]  Magnetic Scrolls' magical parser</LI>
<LI><em>From</em>: Ling &lt;<A HREF="mailto:K.L.Lo-94#student,lut.ac.uk">K.L.Lo-94#student,lut.ac.uk</A>&gt;</LI>
<LI><em>Date</em>: Fri, 2 May 1997 14:34:44 +0100 (BST)</LI>
<LI><em>Reply-To</em>: Ling &lt;<A HREF="mailto:K.L.Lo-94#student,lut.ac.uk">K.L.Lo-94#student,lut.ac.uk</A>&gt;</LI>
</UL>
<!--X-Head-of-Message-End-->
<!--X-Head-Body-Sep-Begin-->
<HR>
<!--X-Head-Body-Sep-End-->
<!--X-Body-of-Message-->
<PRE>
Hiya folks,

I'm kinda back again...

On Mon, 28 Apr 1997, Adam Wiggins wrote:

&gt; On the other hand, NLP has come of interest to me of late as we've tried
&gt; to make NPCs respond to communications from players.  Most muds have
&gt; a simple keyword thing, ie:
&gt; 
&gt; You say, 'Could you cast fly on me, please?'
&gt; &gt;
&gt; The mage guildmaster says, 'Get out of here!  Quit wasting our time and go
&gt; buy a horse or something!'

Could use a regexp function on lines to trigger.  I feel regexp is too
complex for something as simple as that though.

&gt; We've done some basic stuff with trying to break the sentence into major
&gt; parts, which allows the mob scripts to easily determine insults, inquiries,
&gt; statements, etc.  Still all very basic; I'm wondering if any of you have
&gt; played with this at all?

Lemme see if I can get this right, DartMUD:

 * Break the sentance down into more strings (ie: fullstops, exclamation
   marks, etc, maybe commas).

 * Take first word and see if it is a verb stored in the hash tables.

 * If not, discard, repeat with second word, etc

 * If there's a match, grab the rules related to the verb and try and fit
   the rest of the sentance into the rule.  So give would have the rule:

      VERB OBJECT BEING

   Or sell would have:

      VERB BEING OBJECT  (eg: sell me your finest sword)
      VERB OBJECT        (eg: sell sword)

   Getting a bit muddled here (I'm in between fixing ultrasonics).

 * Also, there is a hash table of all the objects and a hash table of
   all the descriptions.  So sword is pretty obvious, 'finest' would
   be translated to best sword (either ornate, expensive, or lethal).

Um, that didn't make sense to me either.  Anyway, it doubles up as a
command parsing solution.  It's quite cute coz you can add stuff like 'hi'
for a verb.  Hmm, how about, instead of directly controlling the
character, players sort of talk to the characters and tell them what to
do?

  &gt; hi
  Hello!
  &gt; walk over to that girl on the bar, wet your lips and smile seductively
  I walk over to the bar, wet my lips and stutter "MY NAME'S CHAID!"

'K, not that chatty, how about:

  &gt; walk to girl, wet lips and smile

Back to some DSPs.  Ciao

  |    Ling				"Mental slavery,
_O_O_  Freshwater fish since 1976	 set my spirit free"


</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="00273" HREF="msg00273.html">Re: [MUD-Dev]  Magnetic Scrolls' magical parser</A></STRONG>
<UL><LI><EM>From:</EM> Adam Wiggins &lt;nightfall#inficad,com&gt;</LI></UL></LI>
</UL></LI></UL>
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00306.html">Re: [MUD-Dev]  Re: Multi-threaded mudding (was a flamefest)</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00308.html">Re: [MUD-Dev]  Re: Multi-threaded mudding (was a flamefest)</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00286.html">Re: [MUD-Dev]  Magnetic Scrolls' magical parser</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00282.html">Re: [MUD-Dev]  Magnetic Scrolls' magical parser</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00307"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00307"><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="00260" HREF="msg00260.html">Re: [MUD-Dev]	(fwd) Re: Issues from the digests and Wout's list</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Mon 28 Apr 1997, 05:10 GMT
<UL>
<LI><strong><A NAME="00264" HREF="msg00264.html">Magnetic Scrolls' magical parser</A></strong>, 
Greg Munt <a href="mailto:greg#uni-corn,demon.co.uk">greg#uni-corn,demon.co.uk</a>, Tue 29 Apr 1997, 04:08 GMT
<UL>
<LI><strong><A NAME="00273" HREF="msg00273.html">Re: [MUD-Dev]  Magnetic Scrolls' magical parser</A></strong>, 
Adam Wiggins <a href="mailto:nightfall#inficad,com">nightfall#inficad,com</a>, Tue 29 Apr 1997, 11:46 GMT
<UL>
<LI><strong><A NAME="00286" HREF="msg00286.html">Re: [MUD-Dev]  Magnetic Scrolls' magical parser</A></strong>, 
Nathan Yospe <a href="mailto:yospe#hawaii,edu">yospe#hawaii,edu</a>, Wed 30 Apr 1997, 00:32 GMT
</LI>
<LI><strong><A NAME="00307" HREF="msg00307.html">Re: [MUD-Dev]  Magnetic Scrolls' magical parser</A></strong>, 
Ling <a href="mailto:K.L.Lo-94#student,lut.ac.uk">K.L.Lo-94#student,lut.ac.uk</a>, Fri 02 May 1997, 20:35 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="00282" HREF="msg00282.html">Re: [MUD-Dev]  Magnetic Scrolls' magical parser</A></strong>, 
Shawn Halpenny <a href="mailto:malachai#iname,com">malachai#iname,com</a>, Tue 29 Apr 1997, 20:49 GMT
</LI>
<LI><strong><A NAME="00290" HREF="msg00290.html">Re: [MUD-Dev]  Magnetic Scrolls' magical parser</A></strong>, 
clawrenc <a href="mailto:clawrenc#cup,hp.com">clawrenc#cup,hp.com</a>, Wed 30 Apr 1997, 01:06 GMT
</LI>
</UL>
</LI>
</UL>
<UL>
<li>&lt;Possible follow-up(s)&gt;<br>
<LI><strong><A NAME="00329" HREF="msg00329.html">Re: [MUD-Dev]	(fwd) Re: Issues from the digests and Wout's list</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Wed 07 May 1997, 21:49 GMT
<UL>
<LI><strong><A NAME="00346" HREF="msg00346.html">Re: [MUD-Dev] (fwd) Re: Issues from the digests and Wout's list</A></strong>, 
clawrenc <a href="mailto:clawrenc#cup,hp.com">clawrenc#cup,hp.com</a>, Sat 10 May 1997, 00:52 GMT
</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>