1998Q4/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: [MUD&#45;Dev] Re: Spell components, chemistry, and the like... -->
<!--X-From-R13: "dhmnu Mfbgsubzr]" <dhmnuNfbsgubzr.arg> -->
<!--X-Date: Tue, 10 Nov 1998 05:02:04 &#45;0800 -->
<!--X-Message-Id: 001201be0ca9$da370dc0$0a066520@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: Spell components, chemistry, and the like...</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:quzah#softhome,net">
</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="msg00806.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00808.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00806.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00816.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00807">Author</A>
&nbsp;|&nbsp;<A HREF="#00807">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00807">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>[MUD-Dev] Re: Spell components, chemistry, and the like...</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: Spell components, chemistry, and the like...</LI>
<LI><em>From</em>: "quzah [sotfhome]" &lt;<A HREF="mailto:quzah#softhome,net">quzah#softhome,net</A>&gt;</LI>
<LI><em>Date</em>: Tue, 10 Nov 1998 04:56:34 -0800</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>
From: Chris Gray &lt;cg#ami-cg,GraySage.Edmonton.AB.CA&gt;
Monday, November 09, 1998 at 11:37 PM
Subject: [MUD-Dev] Re: Spell components, chemistry, and the like...


&gt;[quzah:]
&gt;
&gt; &gt;{
&gt; &gt;"molten gold", COTYPE_METAL_GOLD, COFORM_LIQUID,
&gt; &gt;COTEMP_HOT_HD, COSIZE_MODERATE, (volume), (weight/volume),
&gt; &gt;(heat_to), (cool_to), (found where), ...
&gt; &gt;},
&gt;
&gt;I'd love to help, but I'm not at all sure where the above is supposed
&gt;to fit in, and what all the fields are for. Is 'CO' a prefix for
&gt;"component", and these are things that can be spell components?


Nod. 'CO' was the prefix for "component", just put there so I can
at a glance tell that all of COxxx_yyy go to "component".

&gt;
&gt;Anyway, even while baffled, I came up with this thought:
&gt;
&gt;In the real world, the connection between one form of an element and
&gt;another is often not at all obvious. For example, diamond shares
&gt;very little with charcoal, yet they are both (mostly) carbon. Gasseous
&gt;carbon would be similarly different. So, if you are expressing things
&gt;which have different physical properties, you probabably have to do
&gt;all forms of any given material. In that sense elements aren't any
&gt;different from compounds. If you want a spell to be able to use any
&gt;kind of carbon, rather than just diamond, for example, then you will
&gt;have to link the diamond and charcoal entries together somehow.
&gt;Note that you can grind up both charcoal and diamond, and then they
&gt;behave much the same at the coarse level.


This is what I am doing now, I have added in a few elements such as
gold, carbon, and so on, mainly for the use of "I need a specific
element for this spell, and it must be pure." That aside, I'm also
tossing in things like below (rose) and whatever else (charcoal).

I think I'm going to skip keeping track of the chemical makeup of
all items (charcoal is x parts carbon, and y parts z, or whatever)
to keep it a tiny bit simple. I am sure some people may say that
"X contains Y so why can't I subsitute Y for this spell", but I
think at the moment I'll take the chance of disapointing someone,
and preserve my sanity.

&gt;Now, that is an extreme example. In the case of solid gold versus
&gt;gold dust, the properties are the same at the fine level, and differ
&gt;only at the gross level. Gold dust is sort-of a fluid and can be
&gt;blown away, but both are untrue for solid gold. However, the difference
&gt;between gold dust and a gold bar is exactly the same difference between
&gt;copper dust and a copper bar. So, I would suggest that gold and copper
&gt;both be examples of metals, which can exist in a variety of states.
&gt;Roses would be an example of a plant, for which those states are only
&gt;vaguely relevant (I suspect you can't have molten roses - heat would
&gt;cause chemical breakdown, and you would then have something other than
&gt;a rose).

&gt;
&gt;Hmm. I bet I haven't helped at all. That's what I get for typing at
&gt;midnight!


No, actually it was a help. I have decided to keep track of it this
way:

{
"solid_name", "liquid_name", "gas_name", (solid_temp), (liquid_temp),
(solid_form),(liquid_form),(gas_form),(solid_form_#),(liquid_form_#),
(gas_form_#)
},


Explained:
You hit the nail right on the head with the "dust form is the same
as bar form" idea. I've decided to toss out the entire "COTYPE_"
which was a very large list of pointless stuff.

First off, the names:
I need to keep track of seperate names because "solid water" is not
called that, it is called ice. Likewise, the gas form of water is not
water any more. So, if the above were water, the solid name would be
"ice", the liquid name would be "water", and the gas name would be ""

Next, temperature:
We only need to keep its freezing/solidifying temperature (which I
*THINK* is always lower than its liquid form, at least that's how
I'm doing it), and its vapor/solid-to-gas temperature. Everything
else is solid. (Yeah, I know that water both freezes and melts at
the same temperature, but we're going to say it freezes at one, and
melts at one higher.)

Thirdly, its form:
I don't like it done this way, but I have to so that I can handle
the case of the "solid" rose going to gas form (burning). This way
I keep track of its form[s], one integer for each of its states
(solid/liquid/gas). I'll set it to 0 if it stays the same (ie:
water stays the same in two forms, (argueably all three) (solid
and liquid are both water), if not, it'll hold the number of the
form it takes on (or, a -1 for a object-&gt;vnum, a -2 for a room-&gt;vnum,
a -3 for a mob-&gt;vnum).

Finally, I have to add the "_form_#" to cope with the switching to
a vnum. If I didn't allow items/mobs/rooms to be "components", I
would not need these last fields; but, they have to be there so I
can plop a vnum in them if it changed to a different object.

I no longer need to store its current temperature, its current size,
or its type. The only thing I may add is if it can be found in the
wild/natural surroundings or not, and in what form it is found in.
(Not much molten gold is found in the wilderness I'll suspect.)


-----------------------------------------------------------------
[In addition, I've squashed two replies into one, so there are
 less messages to be in your mail box.] So, inreply to:
-----------------------------------------------------------------
&gt;From: JavaAl#aol,com &lt;JavaAl#aol,com&gt;
&gt;Date: Monday, November 09, 1998 11:39 PM
&gt;Subject: [MUD-Dev] Re: Spell components, chemistry, and the like...

&gt;Okays... this is how I would go for it.
&gt;
&gt;If spells are going to be used primarily for combat, then I would worry only
&gt;about the main forms that you find things in because you are not going to have
&gt;time in the middle of a fist fight to boil Gold, or vaporise a diamond.
&gt;However.. for more involved spells, I would solve the problem by making the
&gt;spell components actual objects, and (not know about the MERC engine much) if
&gt;you need to 'boil gold' use object swapping, i.e. have a liquid gold object in
&gt;storage that you can swap in when you type 'boil gold' for the sold gold
&gt;object.
&gt;
&gt;Al.

Thanks for your reply also. I think the above mentioned way of setting
it up will take care of the need to swap off objects. The name of the
material will be determined by its current temperature. I plan on storing
the "component" in an object, but I'll just keep reusing the same object
for each phase/form of the component. MERC uses four values, set in an
array to keep track of things like weapon damage and stuff like that.

So, "ITEM_WEAPON" would have four values like so:

value[0] = ( number of dice )
value[1] = ( sides of dice )
value[2] = ( say, unused for this example )
value[3] = ( unused also )

Now, that may not be exactally how those values are set for _WEAPON,
but I didn't feel like looking them up. At any rate, how I'll do it
is to add in "ITEM_COMPONENT", and give it values like so:

value[0] = current_form (solid/liquid/gas*)
value[1] = current_temp (ranges from "cold_high_danger" to
           "hot_high_danger" [ie: don't put your hand in molten gold])
value[2] = current_size (weight_measurement [tiny -&gt; large])
value[3] = (something else, currently forgotten (need sleep))

So, it'll go a bit like that. You'll be able to melt/burn/whatever
your components, and hopefully they'll do a pseudo-realistic form
change and maybe it'll even look neat and work.

Well, I really need sleep, and I'm sure you are all tired of reading
(if you're still reading) so I'll cut it short (cause otherwise I'll
never shut up). Thanks everyone for your input and help, when it's
done, I'll post a link if anyone likes, so you can look at it/have it
if it's anything you're interested in.
-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="00816" HREF="msg00816.html">[MUD-Dev] Re: Spell components, chemistry, and the like...</A></strong>
<ul compact><li><em>From:</em> Ben Greear &lt;greear#cyberhighway,net&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="msg00806.html">[MUD-Dev] Re: Spell components, chemistry, and the like...</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00808.html">[MUD-Dev] Re: Spell components, chemistry, and the like...</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00806.html">[MUD-Dev] Re: Spell components, chemistry, and the like...</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00816.html">[MUD-Dev] Re: Spell components, chemistry, and the like...</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00807"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00807"><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: OO Design Question</STRONG>, <EM>(continued)</EM>
<ul compact>
<LI><strong><A NAME="00815" HREF="msg00815.html">[MUD-Dev] Re: OO Design Question</A></strong>, 
J C Lawrence <a href="mailto:claw#under,engr.sgi.com">claw#under,engr.sgi.com</a>, Wed 11 Nov 1998, 00:57 GMT
</LI>
</ul>
</LI>
<LI><strong><A NAME="00813" HREF="msg00813.html">[MUD-Dev] ADMIN:  Attributions</A></strong>, 
J C Lawrence <a href="mailto:claw#under,engr.sgi.com">claw#under,engr.sgi.com</a>, Wed 11 Nov 1998, 00:21 GMT
<LI><strong><A NAME="00805" HREF="msg00805.html">[MUD-Dev] Re: Spell components, chemistry, and the like...</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Tue 10 Nov 1998, 07:12 GMT
<UL>
<li>&lt;Possible follow-up(s)&gt;<br>
<LI><strong><A NAME="00806" HREF="msg00806.html">[MUD-Dev] Re: Spell components, chemistry, and the like...</A></strong>, 
JavaAl <a href="mailto:JavaAl#aol,com">JavaAl#aol,com</a>, Tue 10 Nov 1998, 07:16 GMT
</LI>
<LI><strong><A NAME="00807" HREF="msg00807.html">[MUD-Dev] Re: Spell components, chemistry, and the like...</A></strong>, 
quzah [sotfhome] <a href="mailto:quzah#softhome,net">quzah#softhome,net</a>, Tue 10 Nov 1998, 13:02 GMT
<UL>
<LI><strong><A NAME="00816" HREF="msg00816.html">[MUD-Dev] Re: Spell components, chemistry, and the like...</A></strong>, 
Ben Greear <a href="mailto:greear#cyberhighway,net">greear#cyberhighway,net</a>, Wed 11 Nov 1998, 02:14 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="00809" HREF="msg00809.html">[MUD-Dev] Re: Spell components, chemistry, and the like...</A></strong>, 
quzah [sotfhome] <a href="mailto:quzah#softhome,net">quzah#softhome,net</a>, Tue 10 Nov 1998, 22:34 GMT
<UL>
<LI><strong><A NAME="00812" HREF="msg00812.html">[MUD-Dev] Re: Spell components, chemistry, and the like...</A></strong>, 
Hal Black <a href="mailto:hal#moos,ml.org">hal#moos,ml.org</a>, Wed 11 Nov 1998, 00:00 GMT
<UL>
<LI><strong><A NAME="00817" HREF="msg00817.html">[MUD-Dev] Re: Spell components, chemistry, and the like...</A></strong>, 
Ling <a href="mailto:K.L.Lo-94#student,lboro.ac.uk">K.L.Lo-94#student,lboro.ac.uk</a>, Wed 11 Nov 1998, 13: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>