1998Q2/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: [MUD&#45;Dev] Re: darkness/visibility -->
<!--X-From-R13: Yngevan [pQyryna <xvgxngNgur486.oenqyrl.rqh> -->
<!--X-Date: Mon, 15 Jun 1998 16:34:25 &#45;0700 -->
<!--X-Message-Id: Pine.LNX.3.93.980615162839.9420B&#45;100000#the486,bradley.edu -->
<!--X-Content-Type: text/plain -->
<!--X-Reference: Pine.LNX.3.96.980614142156.2019A&#45;100000#shamen,cyberhighway.net -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, [MUD-Dev] Re: darkness/visibility</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:kitkat#the486,bradley.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>
[&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="msg01056.html">Previous</a>
&nbsp;|&nbsp;<a href="msg01058.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg01036.html">Previous</a>
&nbsp;|&nbsp;<a href="msg01186.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#01057">Author</A>
&nbsp;|&nbsp;<A HREF="#01057">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#01057">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>[MUD-Dev] Re: darkness/visibility</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: darkness/visibility</LI>
<LI><em>From</em>: Katrina McClelan &lt;<A HREF="mailto:kitkat#the486,bradley.edu">kitkat#the486,bradley.edu</A>&gt;</LI>
<LI><em>Date</em>: Mon, 15 Jun 1998 17:20:25 -0500 (CDT)</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, 14 Jun 1998, Ben Greear wrote:

&gt; On Sun, 14 Jun 1998, Chris Gray wrote:

&gt; I probably have the most sparse command language of any mud out there.
&gt; 

not likely....

&gt; I don't even allow adjetives or prepositions.  For instance, this is
&gt; the command to get the third sword from the second bag:
&gt; 
&gt; get 3.sword 2.bag
&gt; 

Looks very much like mine....

&gt; get 3 sword 2 bag    also works.
&gt; 

I don't allow this though.

&gt; What's worse, (almost) every command and name can be abbreviated, so this
&gt; will work, unless other completions get in the way (it may still work,
&gt; just not what you expected.):
&gt; 
&gt; ge 3.sw 2.b
&gt; 

Beat ya...

R:[37][139] I:0+ -&gt;g 3.s 2.b
You get a broad sword from a backpack.

And it'll work unless other items get in the way, in which case it'll work
as not intended.  It will only fail if fewer than 3 items in "2.b" match
"s", or if "2.b" does not exist.  My parser does have some extra needed
frills though.  For instance, try loading "an elf":

R:[37][139] I:0+ -&gt;load m elf
You summon a drow elf from nowhere.

R:[37][139] I:0+ -&gt;load m an
You summon Anubis from nowhere.

Well that didn't work.  Fortunately, this does:

R:[37][139] I:0+ -&gt;load m "an elf"
You summon an elf from nowhere.

&gt; I did this because I'm lame at parsing, and I grew up on a Diku typing
&gt; commands this way.
&gt; 

Well I did it because I was most familiar with diku parsing rather than
not being able to.  Having watched logs the player that actually typed out
phrases with prepositions and such was rare indeed.

&gt; But you know what, I have never heard anyone complain, and I haven't even
&gt; gotten any suggestions to change it, although I've got an incredible load
&gt; of other suggestions and complaints!
&gt; 

Actually, on the old downloaded code that I learned on, the most common
complaint I had was that remove did not allow object abbrieviations like
everything else did.

&gt; So, maybe it doesn't matter.  If you are already down to interfacing
&gt; through a keyboard, why would you want to type more than you had to.  It
&gt; doesn't take to long to learn to leave out modifiers prepositions...
&gt; 

No, on the other hand it would be kind of neat.  The thing I'd worry about
is less the pronouns and such but more how to cleanly interpret more than
one command on a line; 

Method one: look for command verbs

1) ]get the axe and sword from the bag and equip them
    ^                                      ^

2) ]get the axe and hide armor from the bag and equip them
    ^               ^                           ^

3) ]get the purple and light green cloak from the bag and equip it
    ^                  ^                                  ^

4) ]get the sword and shield from the bag and equip them
    ^                 ^                       ^ 

Score: 1/3 right, it catches hide as a command instead of the adjective
and light as an action (light torch) instead of an adjective.  It also
catches shield as a command (as in "shield Bubba from arrows")

Method two: Look for the "and" directive

1) ]get the axe and sword from the bag and equip them
    ^                                  ^

2) ]get the axe and hide armor from the bag and equip them
    ^           ^                           ^

3) ]get the purple and light green cloak from the bag and equip it
    ^              ^                                  ^

4) ]get the sword and shield from the bag and equip them
    ^             ^                       ^ 

Score: 1/4 right.  It catches the leading get in all cases, and the equip
following the "and" in 1), but tries to "hide armor from the bag"
(wouldn't want the bag to find that armor  :) and "light cloak from bag"
(which makes little sense).  It also tries "shield from the bag" (which
makes little sense.)

Method 3: Look for and followed by a command.

This is really method 1 and 2 thrown together, and it still only gets 1 of
4 right since in all the examples above the adjective or noun confused
followed an and anyway.

Obviously you've had better luck coming up with ways to parse the commands
out of this than me?  Or have you just not run into English being dumb
yet?

Now that I'm done playing skeptic, do you have the following working?

]get all swords from the backpack except the Sword of Tibit

(similarly "not", "but", etc)

-Kat



</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="01036" HREF="msg01036.html">[MUD-Dev] Re: darkness/visibility</A></STRONG>
<UL><LI><EM>From:</EM> Ben Greear &lt;greear#cyberhighway,net&gt;</LI></UL></LI>
</UL></LI></UL>
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg01056.html">[MUD-Dev] Re: stuff that makes me leave (was Re: In game bulletin...)</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg01058.html">[MUD-Dev] Re: stuff that makes me leave (was Re: In game bulletin...)</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg01036.html">[MUD-Dev] Re: darkness/visibility</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg01186.html">[MUD-Dev] Re: darkness/visibility</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#01057"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#01057"><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: darkness/visibility</STRONG>, <EM>(continued)</EM>
<ul compact>
<ul compact>
<LI><strong><A NAME="01169" HREF="msg01169.html">[MUD-Dev] Re: darkness/visibility</A></strong>, 
J C Lawrence <a href="mailto:claw#under,engr.sgi.com">claw#under,engr.sgi.com</a>, Mon 22 Jun 1998, 23:26 GMT
</LI>
</ul>
<LI><strong><A NAME="01000" HREF="msg01000.html">[MUD-Dev] Re: darkness/visibility</A></strong>, 
Michael.Willey <a href="mailto:Michael.Willey#abnamro,com">Michael.Willey#abnamro,com</a>, Fri 12 Jun 1998, 16:25 GMT
</LI>
<LI><strong><A NAME="01035" HREF="msg01035.html">[MUD-Dev] Re: darkness/visibility</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Sun 14 Jun 1998, 21:11 GMT
<UL>
<LI><strong><A NAME="01036" HREF="msg01036.html">[MUD-Dev] Re: darkness/visibility</A></strong>, 
Ben Greear <a href="mailto:greear#cyberhighway,net">greear#cyberhighway,net</a>, Sun 14 Jun 1998, 21:35 GMT
<UL>
<LI><strong><A NAME="01057" HREF="msg01057.html">[MUD-Dev] Re: darkness/visibility</A></strong>, 
Katrina McClelan <a href="mailto:kitkat#the486,bradley.edu">kitkat#the486,bradley.edu</a>, Mon 15 Jun 1998, 23:34 GMT
</LI>
</UL>
</LI>
</UL>
</LI>
<LI><strong><A NAME="01186" HREF="msg01186.html">[MUD-Dev] Re: darkness/visibility</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Wed 24 Jun 1998, 03:47 GMT
</LI>
<LI><strong><A NAME="01197" HREF="msg01197.html">[MUD-Dev] Re: darkness/visibility</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Thu 25 Jun 1998, 03:14 GMT
</LI>
</ul>
</LI>
<LI><strong><A NAME="00957" HREF="msg00957.html">[MUD-Dev] darkness/visibility</A></strong>, 
Oliver Jowett <a href="mailto:oliver#jowett,manawatu.planet.co.nz">oliver#jowett,manawatu.planet.co.nz</a>, Thu 11 Jun 1998, 03:03 GMT
<UL>
<LI><strong><A NAME="01013" HREF="msg01013.html">[MUD-Dev] Re: darkness/visibility</A></strong>, 
Adam Wiggins <a href="mailto:adam#angel,com">adam#angel,com</a>, Sat 13 Jun 1998, 00:50 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>