1997Q3/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: Re: [MUD&#45;Dev]  Virtual Chemistry -->
<!--X-From-R13: "Xba O. Znzoreg" <wyflfvapNvk.argpbz.pbz> -->
<!--X-Date: from scipio.globecomm.net [207.51.48.12] by in11.ibm.net id 868853645.42036&#45;1 Mon Jul 14 04:14:05 1997 CUT -->
<!--X-Message-Id: 199707140413.XAA03153@dfw&#45;ix14.ix.netcom.com -->
<!--X-Content-Type: text/plain -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, Re: [MUD-Dev]  Virtual Chemistry</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:jlsysinc#ix,netcom.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="msg00123.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00125.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00114.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00127.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00124">Author</A>
&nbsp;|&nbsp;<A HREF="#00124">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00124">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>Re: [MUD-Dev]  Virtual Chemistry</H1>
<HR>
<!--X-Subject-Header-End-->
<!--X-Head-of-Message-->
<UL>
<LI><em>To</em>: &lt;<A HREF="mailto:mud-dev#null,net">mud-dev#null,net</A>&gt;</LI>
<LI><em>Subject</em>: Re: [MUD-Dev]  Virtual Chemistry</LI>
<LI><em>From</em>: "Jon A. Lambert" &lt;<A HREF="mailto:jlsysinc#ix,netcom.com">jlsysinc#ix,netcom.com</A>&gt;</LI>
<LI><em>Date</em>: Mon, 14 Jul 1997 00:14:21 -0400</LI>
</UL>
<!--X-Head-of-Message-End-->
<!--X-Head-Body-Sep-Begin-->
<HR>
<!--X-Head-Body-Sep-End-->
<!--X-Body-of-Message-->
<PRE>
&gt; From: Matt Chatterley &lt;root#mpc,dyn.ml.org&gt;
&gt; Subject: [MUD-Dev]  Virtual Chemistry
&gt; On Sat, 12 Jul 1997, Jon A. Lambert wrote:
&gt; 
&gt; [Snip my original post]
&gt; 
&gt; &gt; An excellent idea.  I think we may have peripherally touched on this
&gt; &gt; concept in a thread on "assemblies" of objects.  It was my thought that
&gt; &gt; these assemblies would have there own predefined attributes and methods
&gt; &gt; that hide unassembled objects attributes and methods.  The assembly class
&gt; &gt; might have an assemble method and a disassemble method.  The assemble
&gt; &gt; method checking that all components are present and the disassemble 
&gt; &gt; creates the aggregated objects upon disassembly.
&gt; &gt; I think some rudimentary chemistry/alchemy could be implemented using 
&gt; &gt; this technique.  
&gt; 
&gt; I think so. Perhaps basic checking on assemble, ie 'are they mixable?'
&gt; (ie, you can't really mix a liquid and a gas), and then a causitive result
&gt; (just what *will* happen if you mix ground up dragons tooth and wolves
&gt; blood?). A central information storage could record that 'elements' X Y
&gt; and Z have certain reactions with each other, and mixtures could report
&gt; the quantities of each the contain to get the appropriate return, even.
&gt;
My assumptions were that the results of the combination/assembly were 
known in advance (created by builders).  I see from some of the other
posts and yours here that you could in fact create new assemblys on the fly 
given enough rudimentary (al)chemistry.  Perhaps this is a more interesting 
way to proceed?  
  
&gt; &gt; Perhaps some attributes of an assembly class could be:
&gt; &gt; 
&gt; &gt; components list
&gt; &gt; spells list
&gt; &gt; energy/mana consumer
&gt; &gt; energy/mana producer
&gt; &gt; components list destroyed upon assembly
&gt; &gt; components list released upon disassembly
&gt; 

Another mundane example of alchemy using some odd mud language:

class bread implements assembly {
 list components = ((wheat , 2 cups),(salt, 1 tsp),(yeast,1 tsp));
 list skills = ("bake");
 list spells = ();
 int energy = 5000; // Cal
 int time = 40; // min
 list released = (crumbs);
 list destroyed = (wheat ,salt, yeast);

 class method assemble() {
   if (components.present() and skills.check() and energy &gt; 5000) {
     components.destroy();	
     consume(energy);
     return create(time); // instance bread in time
   }
 }

 class method disassemble() {
   released.create();
   destroyed.delete();
   return energy;
 }

 instance method eat() { 
   return disassemble();
 }

 class method bake() { 
   return assemble();
 }

}

Just a start, full of holes. :)


JL

-
I am the Dragon of Grindly Grund, but my lunches aren't very much fun,
For I like my damsels medium rare, And they always come out well done.

----------

 

</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="00132" HREF="msg00132.html">Re: [MUD-Dev]  Virtual Chemistry</A></strong>
<ul compact><li><em>From:</em> Matt Chatterley &lt;root#mpc,dyn.ml.org&gt;</li></ul>
<li><strong><A NAME="00127" HREF="msg00127.html">Re: [MUD-Dev]  Virtual Chemistry</A></strong>
<ul compact><li><em>From:</em> Adam Wiggins &lt;nightfall#user1,inficad.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="msg00123.html">What about drugs?</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00125.html">Re: [MUD-Dev]  What about drugs?</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00114.html">Re: [MUD-Dev]  Virtual Chemistry</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00127.html">Re: [MUD-Dev]  Virtual Chemistry</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00124"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00124"><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]  Virtual Chemistry</STRONG>, <EM>(continued)</EM>
<ul compact>
<LI><strong><A NAME="00113" HREF="msg00113.html">Re: [MUD-Dev]  Virtual Chemistry</A></strong>, 
Matt Chatterley <a href="mailto:root#mpc,dyn.ml.org">root#mpc,dyn.ml.org</a>, Sun 13 Jul 1997, 15:24 GMT
<UL>
<LI><strong><A NAME="00133" HREF="msg00133.html">Re: [MUD-Dev]  Virtual Chemistry</A></strong>, 
Michael Hohensee <a href="mailto:michael#sparta,mainstream.net">michael#sparta,mainstream.net</a>, Mon 14 Jul 1997, 23:10 GMT
<UL>
<LI><strong><A NAME="00134" HREF="msg00134.html">Re: [MUD-Dev]  Virtual Chemistry</A></strong>, 
Matt Chatterley <a href="mailto:root#mpc,dyn.ml.org">root#mpc,dyn.ml.org</a>, Tue 15 Jul 1997, 00:49 GMT
</LI>
</UL>
</LI>
</UL>
</LI>
<LI><strong><A NAME="00114" HREF="msg00114.html">Re: [MUD-Dev]  Virtual Chemistry</A></strong>, 
Marian Griffith <a href="mailto:gryphon#iaehv,nl">gryphon#iaehv,nl</a>, Sun 13 Jul 1997, 19:17 GMT
</LI>
<LI><strong><A NAME="00124" HREF="msg00124.html">Re: [MUD-Dev]  Virtual Chemistry</A></strong>, 
Jon A. Lambert <a href="mailto:jlsysinc#ix,netcom.com">jlsysinc#ix,netcom.com</a>, Mon 14 Jul 1997, 11:14 GMT
<UL>
<LI><strong><A NAME="00127" HREF="msg00127.html">Re: [MUD-Dev]  Virtual Chemistry</A></strong>, 
Adam Wiggins <a href="mailto:nightfall#user1,inficad.com">nightfall#user1,inficad.com</a>, Mon 14 Jul 1997, 12:09 GMT
</LI>
<LI><strong><A NAME="00132" HREF="msg00132.html">Re: [MUD-Dev]  Virtual Chemistry</A></strong>, 
Matt Chatterley <a href="mailto:root#mpc,dyn.ml.org">root#mpc,dyn.ml.org</a>, Mon 14 Jul 1997, 22:44 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="00131" HREF="msg00131.html">Re: [MUD-Dev]  Virtual Chemistry</A></strong>, 
Jon A. Lambert <a href="mailto:jlsysinc#ix,netcom.com">jlsysinc#ix,netcom.com</a>, Mon 14 Jul 1997, 13:55 GMT
</LI>
<LI><strong><A NAME="00310" HREF="msg00310.html">Re: [MUD-Dev]  Virtual Chemistry</A></strong>, 
Huibai <a href="mailto:ashen#pixi,com">ashen#pixi,com</a>, Thu 31 Jul 1997, 14:22 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>