1998Q1/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: Describe Concept -->
<!--X-From-R13: Egrcura Lrcc <mbenaNravq.pbz> -->
<!--X-Date: Sun, 01 Mar 1998 22:05:24 +0000 -->
<!--X-Message-Id: 34F9DC45.1061DF30#enid,com -->
<!--X-Content-Type: text/plain -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, Describe Concept</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:zoran#enid,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>
[&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="msg00660.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00662.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00803.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00674.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00661">Author</A>
&nbsp;|&nbsp;<A HREF="#00661">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00661">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>Describe Concept</H1>
<HR>
<!--X-Subject-Header-End-->
<!--X-Head-of-Message-->
<UL>
<LI><em>To</em>: MUD- Dev &lt;<A HREF="mailto:mud-dev#null,net">mud-dev#null,net</A>&gt;</LI>
<LI><em>Subject</em>: Describe Concept</LI>
<LI><em>From</em>: Stephen Zepp &lt;<A HREF="mailto:zoran#enid,com">zoran#enid,com</A>&gt;</LI>
<LI><em>Date</em>: Sun, 01 Mar 1998 16:08:05 -0600</LI>
</UL>
<!--X-Head-of-Message-End-->
<!--X-Head-Body-Sep-Begin-->
<HR>
<!--X-Head-Body-Sep-End-->
<!--X-Body-of-Message-->
<PRE>
This is a re-post of a previous message, do to the revival of a similar thread.

I've been thinking about this for a few days, after hearing about it here and
seeing it on Kavir's mud, and I'd like to hear thoughts/suggestions on a
generic module to describe objects, people, etc.For simplicity's sake, I'm gonna
just talk about objects here.  In addition, ( I'd like to see if this works ),
I'd like to keep a "data definition" block at the top of the message and all
replies, so that we can update info easily for all people that are interested
to stay current.  I suggest cut/paste of this definition block from message to
message, adding in any changes with a /* person's name */ so that we can all
stay current...not sure if this is gonna work, but might make it easier!


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
  #-&lt;X&gt; 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 ).
        The format string is _one_ idea to help avoid having samo samo
descriptions of objects.  Normally, stock descs will be used, but it allows the
olc to give specific prototypes for the complete description text.
        $ vals work similar to Merc's act values, defining places within the
output string to redefine based on atm features of the object.
        feature_vals are dynamic, some able to be changed after object
creation, some not.

        I'm thinking that each way of observing an object ( scan, look, study )
gives different chances of penetrating disguises, and noting smaller details.
        One major problem so far that I see is that once you know that Sting
has three emeralds and a ruby hidden in the hilt, you should always be able to
see them, and if someone points them out to you, you should be able to see them
even if your perception sucks ( well, not _always_, but you get the idea).


Okay, comments?

Z

</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="00674" HREF="msg00674.html">Re: [MUD-Dev]  Describe Concept</A></strong>
<ul compact><li><em>From:</em> "Jon A. Lambert" &lt;Jon.A.Lambert#ix,netcom.com&gt;</li></ul>
</UL></LI></UL>
<!--X-Follow-Ups-End-->
<!--X-References-->
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00660.html">Re: [MUD-Dev] Net protocols for MUDing (was: Moore's Law sucks)</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00662.html">Re: [MUD-Dev] Net protocols for MUDing (was: Moore's Law sucks)</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00803.html">Re: [MUD-Dev] Net protocols for MUDing</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00674.html">Re: [MUD-Dev]  Describe Concept</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00661"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00661"><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="00671" HREF="msg00671.html">Tutorial: Let's build a Compiler! - Part XII: Miscellany</A></strong>, 
Jon A. Lambert <a href="mailto:jlsysinc#ix,netcom.com">jlsysinc#ix,netcom.com</a>, Mon 02 Mar 1998, 21:38 GMT
<LI><strong><A NAME="00670" HREF="msg00670.html">Tutorial: Let's build a Compiler! - Part XI: Lexical Scan Revisited</A></strong>, 
Jon A. Lambert <a href="mailto:jlsysinc#ix,netcom.com">jlsysinc#ix,netcom.com</a>, Mon 02 Mar 1998, 21:38 GMT
<LI><strong><A NAME="00667" HREF="msg00667.html">Re: [MUD-Dev] Net protocols for MUDing</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Mon 02 Mar 1998, 09:35 GMT
<UL>
<li>&lt;Possible follow-up(s)&gt;<br>
<LI><strong><A NAME="00803" HREF="msg00803.html">Re: [MUD-Dev] Net protocols for MUDing</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Sat 21 Mar 1998, 02:29 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="00661" HREF="msg00661.html">Describe Concept</A></strong>, 
Stephen Zepp <a href="mailto:zoran#enid,com">zoran#enid,com</a>, Sun 01 Mar 1998, 22:05 GMT
<UL>
<LI><strong><A NAME="00674" HREF="msg00674.html">Re: [MUD-Dev]  Describe Concept</A></strong>, 
Jon A. Lambert <a href="mailto:Jon.A.Lambert#ix,netcom.com">Jon.A.Lambert#ix,netcom.com</a>, Tue 03 Mar 1998, 07:01 GMT
<UL>
<LI><strong><A NAME="00794" HREF="msg00794.html">Re: [MUD-Dev] Describe Concept</A></strong>, 
J C Lawrence <a href="mailto:claw#under,engr.sgi.com">claw#under,engr.sgi.com</a>, Fri 20 Mar 1998, 18:40 GMT
<UL>
<LI><strong><A NAME="00832" HREF="msg00832.html">Re: [MUD-Dev] Describe Concept</A></strong>, 
Jon A. Lambert <a href="mailto:jlsysinc#ix,netcom.com">jlsysinc#ix,netcom.com</a>, Mon 23 Mar 1998, 00:07 GMT
<UL>
<LI><strong><A NAME="00842" HREF="msg00842.html">[MUD-Dev] Old code</A></strong>, 
Joel Dillon <a href="mailto:emily#cornholio,new.ox.ac.uk">emily#cornholio,new.ox.ac.uk</a>, Mon 23 Mar 1998, 14:38 GMT
</LI>
</UL>
</LI>
</UL>
</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>