<!-- MHonArc v2.4.4 --> <!--X-Subject: Re: [MUD-Dev] Describe module --> <!--X-From-R13: Hnqvz Fxnpuraxb <inqvzgN4pf.pbz> --> <!--X-Date: Thu, 18 Dec 1997 19:46:03 +0000 --> <!--X-Message-Id: 34997659.C0C66697#4cs,com --> <!--X-Content-Type: multipart/mixed --> <!--X-Reference: 3496DEB2.4F444933#enid,com --> <!--X-Head-End--> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <html> <head> <title>MUD-Dev message, Re: [MUD-Dev] Describe module</title> <!-- meta name="robots" content="noindex,nofollow" --> <link rev="made" href="mailto:vadimt#4cs,com"> </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="msg00870.html">Previous</a> | <a href="msg00872.html">Next</a> ] Thread: [ <a href="msg00846.html">Previous</a> | <a href="msg00839.html">Next</a> ] Index: [ <A HREF="author.html#00871">Author</A> | <A HREF="#00871">Date</A> | <A HREF="thread.html#00871">Thread</A> ] <!--X-TopPNI-End--> <!--X-MsgBody--> <!--X-Subject-Header-Begin--> <H1>Re: [MUD-Dev] Describe module</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] Describe module</LI> <LI><em>From</em>: Vadim Tkachenko <<A HREF="mailto:vadimt#4cs,com">vadimt#4cs,com</A>></LI> <LI><em>Date</em>: Thu, 18 Dec 1997 13:15:37 -0600</LI> <LI><em>Sender</em>: <A HREF="mailto:vt#vadimt,4cs.com">vt#vadimt,4cs.com</A></LI> </UL> <!--X-Head-of-Message-End--> <!--X-Head-Body-Sep-Begin--> <HR> <!--X-Head-Body-Sep-End--> <!--X-Body-of-Message--> <PRE> Stephen Zepp wrote: > > DEFINITION: > module to describe an object to a player dynamically based on features of the object, illumination, perception of the > viewer, and knowledge of the user, taking into acount actual features and any "spoof", or disguised features. > > features_type: > { > string_array * format[MAX_ILLUM_LEVEL];/* X amount of char * format, allowing for different > * illumination levels. > * format[ILLUM_BRIGHT].msg = "$n $d.#P $e, and $s.#-P #M $a $m.#-M #S"\ * armourer $q #-S." > * etc., one format string for each illum level */ > feature_val base; > feature_val encrusted; > feature_val engraved; > }; > > feature_val is your storage method of values of various things relating to the object: > base : material, general obvious info like stained, damaged, broken, pointy, etc. > encrusted: things that are "attached" to the object...gems, wrappings, glued on, whatever. > engraved: sigils, runes, names, whatever might be written on an object. > format strings: > how the info is presented for this object. $ values are textual conversions of feature_vals, and # values are > character specific checks: > $n name ( namespace or item class type if not named ) > $d general obvious description stuff > $e encrusted descriptions > $s sigils, engravings, runes > $a magical auras > $m other magical "spells" embedded in the object > $q quality of the object > > #P check char perception > #M check char magical sight > #S check specific player skill named in next keyword > #-<X> close specific check. > > END DEFINITION > > Okay, now an explanation :) This is a first run design, trying to get some > brainstorming going, so a lot of things haven't been thought out. > First of all, an object has a set of real features, and a set > of "disguise" features. Perception is automatically > checked for each $ val to determine which to use, and different features > from each may be noticed ( disguised and real ). I'de recommend to generalize abovesaid as follows (once again, the details are on the project pages :-): - All objects may have several layers of functionality. For example, you may be able to recognize the computer, as your experience grows, as a: - box - humming box - thinking humming box - pseudo-thinking humming box - computer - computer running, say, Unix - computer running Solaris 2.5.1 - etc. Or, as a different example, - a stone - a gemstone - a diamond - a diamond of unsurpassed magical power And, your ability to recognize/use the object depends not only on your perception, but on arbitrary values, different for every type of that object. In my implementation, I differentiate such an objects as: - classes (diamond is a subclass of gemstone is a subclass of stone) - special objects (diamond of unsurpassed magical power is a special instance, not class, of a diamond). Now, the next question is: how would you differentiate the cases: - when the object with unrecognizable by you features works regardless of your knowledge; - when you have to be able to identify the object before you'd be able to use it. ? > Zoran -- Still alive and smile stays on, Vadim Tkachenko <VadimT#4CS,Com> Gradient MUD: <A HREF="http://206.139.13.63/~vt/gradient">http://206.139.13.63/~vt/gradient</A> (URL HAS CHANGED, you may not be able to see it at all) -- UNIX _is_ user friendly, he's just very picky about who his friends are</PRE> <PRE> begin: vcard fn: Vadim Tkachenko n: Tkachenko;Vadim org: 4C Solutions, Inc. email;internet: vadimt#4cs,com title: Web Developer x-mozilla-cpt: ;0 x-mozilla-html: TRUE version: 2.1 end: vcard </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="00846" HREF="msg00846.html">Describe module</A></STRONG> <UL><LI><EM>From:</EM> Stephen Zepp <zoran#enid,com></LI></UL></LI> </UL></LI></UL> <!--X-References-End--> <!--X-BotPNI--> <UL> <LI>Prev by Date: <STRONG><A HREF="msg00870.html">Re: [MUD-Dev] META: what's with these vcard.vcf attachments?</A></STRONG> </LI> <LI>Next by Date: <STRONG><A HREF="msg00872.html">Re: [MUD-Dev] Re: META: FAQ: Location, etc</A></STRONG> </LI> <LI>Prev by thread: <STRONG><A HREF="msg00846.html">Describe module</A></STRONG> </LI> <LI>Next by thread: <STRONG><A HREF="msg00839.html">Re: [MUD-Dev] Guilds & Politics</A></STRONG> </LI> <LI>Index(es): <UL> <LI><A HREF="index.html#00871"><STRONG>Date</STRONG></A></LI> <LI><A HREF="thread.html#00871"><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>Re: [MUD-Dev] OT: Books</STRONG>, <EM>(continued)</EM> <ul compact> <LI><strong><A NAME="00936" HREF="msg00936.html">Re: [MUD-Dev] OT: Books</A></strong>, Mike Sellers <a href="mailto:mike#online-alchemy,com">mike#online-alchemy,com</a>, Tue 23 Dec 1997, 15:27 GMT </LI> </ul> </LI> <LI><strong><A NAME="00848" HREF="msg00848.html">Seems rather quiet</A></strong>, Stephen Zepp <a href="mailto:zoran#enid,com">zoran#enid,com</a>, Wed 17 Dec 1997, 05:46 GMT <UL> <LI><strong><A NAME="00853" HREF="msg00853.html">Re: Seems rather quiet</A></strong>, coder <a href="mailto:coder#ibm,net">coder#ibm,net</a>, Thu 18 Dec 1997, 08:11 GMT </LI> </UL> </LI> <LI><strong><A NAME="00846" HREF="msg00846.html">Describe module</A></strong>, Stephen Zepp <a href="mailto:zoran#enid,com">zoran#enid,com</a>, Tue 16 Dec 1997, 20:03 GMT <UL> <LI><strong><A NAME="00871" HREF="msg00871.html">Re: [MUD-Dev] Describe module</A></strong>, Vadim Tkachenko <a href="mailto:vadimt#4cs,com">vadimt#4cs,com</a>, Thu 18 Dec 1997, 19:46 GMT </LI> </UL> </LI> <LI><strong><A NAME="00839" HREF="msg00839.html">Re: [MUD-Dev] Guilds & Politics</A></strong>, Maddy <a href="mailto:maddy#fysh,org">maddy#fysh,org</a>, Mon 15 Dec 1997, 17:26 GMT <UL> <li><Possible follow-up(s)><br> <LI><strong><A NAME="00866" HREF="msg00866.html">RE: [MUD-Dev] Guilds & Politics</A></strong>, Koster, Raph <a href="mailto:rkoster#origin,ea.com">rkoster#origin,ea.com</a>, Thu 18 Dec 1997, 15:55 GMT </LI> </UL> </LI> <LI><strong><A NAME="00835" HREF="msg00835.html">META: what's with these vcard.vcf attachments?</A></strong>, Alex Oren <a href="mailto:alexo#bigfoot,com">alexo#bigfoot,com</a>, Mon 15 Dec 1997, 13:17 GMT <UL> <LI><strong><A NAME="00870" HREF="msg00870.html">Re: [MUD-Dev] META: what's with these vcard.vcf attachments?</A></strong>, Vadim Tkachenko <a href="mailto:vadimt#4cs,com">vadimt#4cs,com</a>, Thu 18 Dec 1997, 19:45 GMT </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>