msg00994.html
1998Q4/msg00994.html · 7.3 KB
From the archive 1998Q4.zip
Download the archive « Back to the archive contents
<!-- MHonArc v2.4.4 -->
<!--X-Subject: [MUD-Dev] Re: MUD Design doc (long) -->
<!--X-From-R13: Quevf Uenl <ptNnzv-pt.UenlEntr.Sqzbagba.OP.QO> -->
<!--X-Date: Fri, 18 Dec 1998 04:58:04 -0800 -->
<!--X-Message-Id: 199812180430.VAA07421@ami-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 Design doc (long)</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>
[ <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="msg00993.html">Previous</a>
| <a href="msg00995.html">Next</a>
]
Thread:
[ <a href="msg01004.html">Previous</a>
| <a href="msg00998.html">Next</a>
]
Index:
[ <A HREF="author.html#00994">Author</A>
| <A HREF="#00994">Date</A>
| <A HREF="thread.html#00994">Thread</A>
]
<!--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>: Chris Gray <<A HREF="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</A>></LI>
<LI><em>Date</em>: Thu, 17 Dec 1998 21:30:30 -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>
[Mik Clarke:]
> if target object not specified,
> emote is in dire need of a bath
> else
> locate target object
> if not found,
> send_to_char "Sorry, can't find one of those."
> else
> if (!object->can_you_be(CMD_SNIFFED))
> send_to_char "It smells of nothing in particular."
> else
> object->you_are(CMD_SNIFFED, char)
Big nod here.
This is what I do in my system, and it works fairly well. It is also
possible to write generic code that will do this with lots of verbs,
so the skeleton can be re-used via a function call.
You can get more complex, too:
- there can be command pre-empts attached to the room and the
character, which may supercede any attached to the object.
- to save effort, you can check for simple string responses as
alternatives to methods - just emit the string.
- locating the target object can vary a bit. I have two variants, one
which searches only the character's inventory, and one which
searches that, then the room's contents. (So far, 'get' is the
only one that wants to search the room's contents before checking
in the inventory.)
- another simplification is to have rooms able to have lists of
"scenery" words - if no matching object is found, check that
list of words, and if a match is found, just say something
generic like "You can't " + verbString + " the " + nounString.
- there might be other places to sort-of check. For example, items
for sale in a store might be off-limits to some verbs until
you have purchased them.
--
Don't design inefficiency in - it'll happen in the implementation. - me
Chris Gray cg#ami-cg,GraySage.Edmonton.AB.CA
</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="00998" HREF="msg00998.html">[MUD-Dev] Re: MUD Design doc (long)</A></strong>
<ul compact><li><em>From:</em> Sunny Gulati <sunnywiz#radiks,net></li></ul>
</UL></LI></UL>
<!--X-Follow-Ups-End-->
<!--X-References-->
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00993.html">[MUD-Dev] Re: MUD Design doc (long)</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00995.html">[MUD-Dev] Re: Graphic design, client questions</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg01004.html">[MUD-Dev] Response (Was Re: MUD Design doc (long))</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00998.html">[MUD-Dev] Re: MUD Design doc (long)</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00994"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00994"><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: MUD Design doc (long)</STRONG>, <EM>(continued)</EM>
<ul compact>
<ul compact>
<ul compact>
<LI><strong><A NAME="01014" HREF="msg01014.html">[MUD-Dev] Re: MUD Design doc (long)</A></strong>,
Travis Casey <a href="mailto:efindel#io,com">efindel#io,com</a>, Sat 19 Dec 1998, 04:26 GMT
</LI>
<LI><strong><A NAME="01047" HREF="msg01047.html">[MUD-Dev] Re: MUD Design doc (long)</A></strong>,
Nathan F Yospe <a href="mailto:yospe#hawaii,edu">yospe#hawaii,edu</a>, Wed 23 Dec 1998, 03:12 GMT
</LI>
</ul>
</ul>
<LI><strong><A NAME="00993" HREF="msg00993.html">[MUD-Dev] Re: MUD Design doc (long)</A></strong>,
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Fri 18 Dec 1998, 12:58 GMT
<UL>
<LI><strong><A NAME="01004" HREF="msg01004.html">[MUD-Dev] Response (Was Re: MUD Design doc (long))</A></strong>,
Ola Fosheim Grøstad <a href="mailto:olag#ifi,uio.no">olag#ifi,uio.no</a>, Fri 18 Dec 1998, 23:20 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="00994" HREF="msg00994.html">[MUD-Dev] Re: MUD Design doc (long)</A></strong>,
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Fri 18 Dec 1998, 12:58 GMT
<UL>
<LI><strong><A NAME="00998" HREF="msg00998.html">[MUD-Dev] Re: MUD Design doc (long)</A></strong>,
Sunny Gulati <a href="mailto:sunnywiz#radiks,net">sunnywiz#radiks,net</a>, Fri 18 Dec 1998, 19:19 GMT
<UL>
<LI><strong><A NAME="01029" HREF="msg01029.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>, Mon 21 Dec 1998, 23:19 GMT
</LI>
</UL>
</LI>
</UL>
</LI>
<LI><strong><A NAME="00999" HREF="msg00999.html">[MUD-Dev] Re: MUD Design doc (long)</A></strong>,
Michael Willey <a href="mailto:Michael.Willey#abnamro,com">Michael.Willey#abnamro,com</a>, Fri 18 Dec 1998, 19:20 GMT
<UL>
<LI><strong><A NAME="01001" HREF="msg01001.html">[MUD-Dev] Re: MUD Design doc (long)</A></strong>,
Adam Wiggins <a href="mailto:adam#angel,com">adam#angel,com</a>, Fri 18 Dec 1998, 22:16 GMT
</LI>
</UL>
</LI>
</ul>
</LI>
</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>