2000Q1/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: Re: [MUD&#45;Dev] [CODE] unique items -->
<!--X-From-R13: "Zbeq Ofuba" <nfubaNjfhavk.jfh.rqh> -->
<!--X-Date: Mon, 20 Mar 2000 09:35:42 &#45;0800 -->
<!--X-Message-Id: 008401bf9251$c01b8ae0$97947986#resnet,wsu.edu -->
<!--X-Content-Type: text/plain -->
<!--X-Reference: Marcel&#45;1.46&#45;0316215352&#45;0b0Ky&#38;5#catling,demon.nl -->
<!--X-Reference: 00bd01bf903c$b28d37a0$0d00a8c0#wombatgames,com -->
<!--X-Reference: 38D51245.6ADC#alltel,net -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, Re: [MUD-Dev] [CODE] unique items</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:ashon#wsunix,wsu.edu">
</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="msg00670.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00671.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00661.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00674.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00669">Author</A>
&nbsp;|&nbsp;<A HREF="#00669">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00669">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>Re: [MUD-Dev] [CODE] unique items</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>: Re: [MUD-Dev] [CODE] unique items</LI>
<LI><em>From</em>: "Lord Ashon" &lt;<A HREF="mailto:ashon#wsunix,wsu.edu">ashon#wsunix,wsu.edu</A>&gt;</LI>
<LI><em>Date</em>: Mon, 20 Mar 2000 01:50:39 -0800</LI>
<LI><em>Reply-To</em>: <A HREF="mailto:mud-dev#kanga,nu">mud-dev#kanga,nu</A></LI>
<LI><em>Sender</em>: <A HREF="mailto:mud-dev-admin#kanga,nu">mud-dev-admin#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>
Having just written the way objects are handled in my mud I feel like
finally de-lurking.

I've spent a lot of time working with objects.  One of the things that I
wanted to accomplish with the way objects were made and used was to make it
easy for players to customize/make weapons while at the same time making it
possible for the elusive ur-object.

Our objects is just a 13 digit number.  We then parse it down to these sets:
11-2-333-44-55-66-7.  Once we have these sets we compare them to the
appropriate hash tables.  This then defines the long names, short names,
damage (it can sustain), damage (it can deal).
The sets:
1 - Material type
2 - Basic Tool Type
3 - Advanced Tool Type
4 - Preferred Wear Location
5 - Magic Affects
6 - Skill Affects
7 - Recognized.

Material Type:
  The material type designates the strength, weight, and endurance of the
object.  The tougher the material the more damage it sustains/deals.  The
material also limits the skill/magic affects that can be applied (number
of).

Basic Tool Type:
  There are four Basic tool classifications:  Weapons, Clothes(Armor),
Containers, and Accessories.  This inherits certain functions etc...

Advanced Tool Type:
  This includes the specific tool, sword, long sword.  or whatever

Preferred Wear Location:
  Unless noted by the Advanced tool type an object can be equipped anywhere.
A sword can only be equipped to hand, belt.  A hat can be worn feet, hands,
rings, or even wielded as a weapon.

Magic Affects:
  For those magic spells that can occur on items.

Skill Affects:
  This allows the players with certain skills to modify an item.  This
searches the hash table and applies the appropriate bonus/negatives.  It
also automatically switches the Recognized bit on.

Recognized:
  Unless an object is made by a player it is unrecognized.  If it is made
by/modified by a player it is automatically set to recognized.  It does not
take of the fact that at one date it wasn't an object but at a current date
it is scenario.

So now what we do is we simply save this string to the pfile.  And when a
player loads they load the weapon.  The mud on the other hand can generate
objects on the fly.  There is no need for the builder to create an object
unless it is a recoginized object.

Just my two cents worth.
(Guess this means I have to write an introduction huh?)
--Lord Ashon




_______________________________________________
MUD-Dev mailing list
MUD-Dev#kanga,nu
<A  HREF="http://www.kanga.nu/lists/listinfo/mud-dev">http://www.kanga.nu/lists/listinfo/mud-dev</A>

</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="00637" HREF="msg00637.html">[MUD-Dev] MudDev FAQ part 1</A></STRONG>
<UL><LI><EM>From:</EM> Marian Griffith &lt;gryphon#iaehv,nl&gt;</LI></UL></LI>
<LI><STRONG><A NAME="00651" HREF="msg00651.html">Re: [MUD-Dev] MudDev FAQ part 1</A></STRONG>
<UL><LI><EM>From:</EM> "Todd McKimmey" &lt;rufus#wombatgames,com&gt;</LI></UL></LI>
<LI><STRONG><A NAME="00659" HREF="msg00659.html">[MUD-Dev] [CODE] unique items</A></STRONG>
<UL><LI><EM>From:</EM> "J. Coleman" &lt;stormknight#alltel,net&gt;</LI></UL></LI>
</UL></LI></UL>
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00670.html">Re: [MUD-Dev] [CODE] unique items</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00671.html">[MUD-Dev] Licensing and Clauses</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00661.html">Re: [MUD-Dev] [CODE] unique items</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00674.html">Re: [MUD-Dev] [CODE] unique items</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00669"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00669"><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] [CODE] unique items</STRONG>, <EM>(continued)</EM>
<ul compact>
<ul compact>
<ul compact>
<ul compact>
<LI><strong><A NAME="00666" HREF="msg00666.html">Re: [MUD-Dev] [CODE] unique items</A></strong>, 
Kevin Scott London <a href="mailto:london#cs,utk.edu">london#cs,utk.edu</a>, Mon 20 Mar 2000, 05:26 GMT
</LI>
</ul>
<LI><strong><A NAME="00662" HREF="msg00662.html">Re: [MUD-Dev] [CODE] unique items</A></strong>, 
Quzah <a href="mailto:quzah#hotmail,com">quzah#hotmail,com</a>, Mon 20 Mar 2000, 01:42 GMT
<UL>
<LI><strong><A NAME="00665" HREF="msg00665.html">Re: [MUD-Dev] [CODE] unique items</A></strong>, 
J. Coleman <a href="mailto:stormknight#alltel,net">stormknight#alltel,net</a>, Mon 20 Mar 2000, 05:26 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="00661" HREF="msg00661.html">Re: [MUD-Dev] [CODE] unique items</A></strong>, 
Matthew Mihaly <a href="mailto:diablo#best,com">diablo#best,com</a>, Mon 20 Mar 2000, 01:42 GMT
</LI>
<LI><strong><A NAME="00669" HREF="msg00669.html">Re: [MUD-Dev] [CODE] unique items</A></strong>, 
Lord Ashon <a href="mailto:ashon#wsunix,wsu.edu">ashon#wsunix,wsu.edu</a>, Mon 20 Mar 2000, 17:35 GMT
</LI>
<LI><strong><A NAME="00674" HREF="msg00674.html">Re: [MUD-Dev] [CODE] unique items</A></strong>, 
J C Lawrence <a href="mailto:claw#cp,net">claw#cp,net</a>, Tue 21 Mar 2000, 20:24 GMT
</LI>
</ul>
</ul>
</ul>
</LI>
<LI><strong><A NAME="00638" HREF="msg00638.html">[MUD-Dev] Dynamic Load Balancing</A></strong>, 
Kevin Scott London <a href="mailto:london#cs,utk.edu">london#cs,utk.edu</a>, Thu 16 Mar 2000, 22:27 GMT
<LI><strong><A NAME="00634" HREF="msg00634.html">[MUD-Dev] Questions about the MudDev FAQ</A></strong>, 
Marian Griffith <a href="mailto:gryphon#iaehv,nl">gryphon#iaehv,nl</a>, Thu 16 Mar 2000, 22:27 GMT
<LI><strong><A NAME="00635" HREF="msg00635.html">[MUD-Dev] MudDev FAQ part II</A></strong>, 
Marian Griffith <a href="mailto:gryphon#iaehv,nl">gryphon#iaehv,nl</a>, Thu 16 Mar 2000, 22:26 GMT
</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>