1998Q3/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: [MUD&#45;Dev] Re: DBMS in MU*'s -->
<!--X-From-R13: "dhmnu" <dhmnuNtrbpvgvrf.pbz> -->
<!--X-Date: Mon, 20 Jul 1998 13:37:26 &#45;0700 -->
<!--X-Message-Id: 01bdb41e$7deacb80$2a87ebcd@k6 -->
<!--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: DBMS in MU*'s</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:quzah#geocities,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="msg00271.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00273.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00319.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00312.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00272">Author</A>
&nbsp;|&nbsp;<A HREF="#00272">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00272">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>[MUD-Dev] Re: DBMS in MU*'s</H1>
<HR>
<!--X-Subject-Header-End-->
<!--X-Head-of-Message-->
<UL>
<LI><em>To</em>: &lt;<A HREF="mailto:mud-dev#kanga,nu">mud-dev#kanga,nu</A>&gt;</LI>
<LI><em>Subject</em>: [MUD-Dev] Re: DBMS in MU*'s</LI>
<LI><em>From</em>: "quzah" &lt;<A HREF="mailto:quzah#geocities,com">quzah#geocities,com</A>&gt;</LI>
<LI><em>Date</em>: Mon, 20 Jul 1998 13:39:29 -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>

-----Original Message-----
From: s001gmu#nova,wright.edu &lt;s001gmu#nova,wright.edu&gt;
To: mud-dev#kanga,nu &lt;mud-dev#kanga,nu&gt;
Date: Monday, July 20, 1998 12:51 PM
Subject: [MUD-Dev] Re: DBMS in MU*'s

[Snipped comments from quzah (me) about material types, and objects
 made up of more than one thing]

&gt;I like this idea better.  Instead of making the matieral the parent class,
&gt;make it a property of the class.  This way, it can be changed on the fly,
&gt;and you can get away with smaller code (think static instances).  You can
&gt;also create a linked list and have multiple material properties.  If I'd
&gt;read the Design Patterns book more thuroughly, I do believe I could name
&gt;the pattern this fits, but I have had insufficeint time to absorb it
&gt;(alas).
&gt;
&gt;I don't see how building objects out of component's answers his question..
&gt;what components would you build a crystal goblet of?  How does that
&gt;address breaking it?

That's one of the things I have yet to decide on. I am not sure how to
do something like:

Bubba has a bronze longsword. Bubba hears that werewolves can only be
wounded by silver weapons. Bubba, being the kind who does not want to
be killed by a werewolf, goes to the silversmith.

%hold longsword with tongs
You grasp your longsword with some iron tongs.

%dip longsword into vat
You dip the longsword into a vat of molten silver, thus coating it
with said material.

Now what? Ok, sure I could just let people not silvercoat their items,
but that'd be no fun. (Yeah, it's not something that happens every day
but my *ideal* mud is a place where you can attempt almost anything.)

So, so the longsword now has the characteristic of being silver coated.
Its core is bronze, however the outside (visible portions) are covered
in silver, and you would have no way of seeing the bronze.


As for the goblet. It would just be a "goblet-item", made up of one 
piece, which is composed solely of crystal. Crystal would have a tensil
strength of X, and each action would need to do something like:

/* pretend code :) */
void break( object &amp;o ) {
   ...
   effect o.tensilstrength by some damage formula;
   // if the formula results in a number greater than tensil strength
   // then the object is broken. -- each element needs a break message
   // ie: crystal can melt or shater, wood can burn, splinter, etc
   ...
};

Something like that. You'd need to find some way to determine your noise
factor, ie: if it is made of glas primarily, then you would hear more of
a shattering sound than you would a splintering sound from the wooden part
of whatever.

One piece items would be by far the easiest to deal with, as you wouldn't
have to thread through the linked list of item pieces (or however you had
it set up) to determine the resulting sound/effect of the object breaking.

My idea is to give every action effects, picking up something would have a
a very tiny effect on its tensil strength applied to a do_break type of
thing, it would also have some effect on its contents, [shaken not stirred]
and so on, depending on each action. -- For every action, there is an...

[snip]
&gt;composite objects would simply implement a 'dissasemble' verb, which
&gt;allows you to (with sufficeint means) break a composite into its
&gt;components.  'Normal' verbs would simply be passed onto each component:

[snip]

Yes, and above, the silver coating on the bronze longsword would not
be able to be disasembled -- So I guess you would need to decide at
what point in creating/modifying an object, the object no longer is
able to be disassembled. Also, some commands such as:

%pry gem from goblet
You pry a small gem from the silver gem encrusted goblet.

%look goblet
The silver goblet is ..blah blah.. however, it seems to be missing one
of its gems.

I haven't quite decided on how to work with broken objects either.
Perhaps I'd just create X number of "pieces" from the object. So, an
axe handle broken in two pieces would produce two small pieces. shrug.
-Q-




</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="00312" HREF="msg00312.html">[MUD-Dev] Objects (was Re: DBMS in MU*'s)</A></strong>
<ul compact><li><em>From:</em> s001gmu#nova,wright.edu</li></ul>
</UL></LI></UL>
<!--X-Follow-Ups-End-->
<!--X-References-->
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00271.html">[MUD-Dev] Re: DBMS in MU*'s</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00273.html">[MUD-Dev] Re: [CODE] [LANGUAGE/PLATFORM SPECIFIC] My Event Engine</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00319.html">[MUD-Dev] Re: DBMS in MU*'s</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00312.html">[MUD-Dev] Objects (was Re: DBMS in MU*'s)</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00272"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00272"><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: DBMS in MU*'s</STRONG>, <EM>(continued)</EM>
<ul compact>
<ul compact>
<LI><strong><A NAME="00271" HREF="msg00271.html">[MUD-Dev] Re: DBMS in MU*'s</A></strong>, 
s001gmu <a href="mailto:s001gmu#nova,wright.edu">s001gmu#nova,wright.edu</a>, Mon 20 Jul 1998, 19:52 GMT
<UL>
<LI><strong><A NAME="00670" HREF="msg00670.html">[MUD-Dev] Re: DBMS in MU*'s</A></strong>, 
J C Lawrence <a href="mailto:claw#under,engr.sgi.com">claw#under,engr.sgi.com</a>, Tue 11 Aug 1998, 23:33 GMT
<UL>
<LI><strong><A NAME="00679" HREF="msg00679.html">[MUD-Dev] Re: DBMS in MU*'s</A></strong>, 
s001gmu <a href="mailto:s001gmu#nova,wright.edu">s001gmu#nova,wright.edu</a>, Wed 12 Aug 1998, 12:52 GMT
</LI>
</UL>
</LI>
</UL>
</LI>
<LI><strong><A NAME="00319" HREF="msg00319.html">[MUD-Dev] Re: DBMS in MU*'s</A></strong>, 
Adam J. Thornton <a href="mailto:adam#phoenix,Princeton.EDU">adam#phoenix,Princeton.EDU</a>, Thu 23 Jul 1998, 20:21 GMT
</LI>
</ul>
<LI><strong><A NAME="00272" HREF="msg00272.html">[MUD-Dev] Re: DBMS in MU*'s</A></strong>, 
quzah <a href="mailto:quzah#geocities,com">quzah#geocities,com</a>, Mon 20 Jul 1998, 20:37 GMT
<UL>
<LI><strong><A NAME="00312" HREF="msg00312.html">[MUD-Dev] Objects (was Re: DBMS in MU*'s)</A></strong>, 
s001gmu <a href="mailto:s001gmu#nova,wright.edu">s001gmu#nova,wright.edu</a>, Wed 22 Jul 1998, 18:26 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="00274" HREF="msg00274.html">[MUD-Dev] Re: DBMS in MU*'s</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Tue 21 Jul 1998, 01:36 GMT
<UL>
<LI><strong><A NAME="00282" HREF="msg00282.html">[MUD-Dev] Re: DBMS in MU*'s</A></strong>, 
s001gmu <a href="mailto:s001gmu#nova,wright.edu">s001gmu#nova,wright.edu</a>, Tue 21 Jul 1998, 20:26 GMT
<UL>
<LI><strong><A NAME="00289" HREF="msg00289.html">[MUD-Dev] Re: DBMS in MU*'s</A></strong>, 
Adam Wiggins <a href="mailto:adam#angel,com">adam#angel,com</a>, Tue 21 Jul 1998, 22:27 GMT
</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>