1999Q1/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: [MUD&#45;Dev] Re: Levels versus Skills, who uses them and when. -->
<!--X-From-R13: X Q Znjerapr <pynjNhaqre.rate.ftv.pbz> -->
<!--X-Date: Fri, 15 Jan 1999 19:53:10 &#45;0800 -->
<!--X-Message-Id: 199901152201.OAA45321#under,engr.sgi.com -->
<!--X-Content-Type: text/plain -->
<!--X-Reference: Pine.LNX.3.96.990114203522.4232B&#45;100000#dragon,ender.com -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, [MUD-Dev] Re: Levels versus Skills, who uses them and when.</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:claw#under,engr.sgi.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="msg00201.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00203.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00182.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00189.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00202">Author</A>
&nbsp;|&nbsp;<A HREF="#00202">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00202">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>[MUD-Dev] Re: Levels versus Skills, who uses them and when.</H1>
<HR>
<!--X-Subject-Header-End-->
<!--X-Head-of-Message-->
<UL>
<LI><em>To</em>: <A HREF="mailto:mud-dev#kanga,nu">mud-dev#kanga,nu</A></LI>
<LI><em>Subject</em>: [MUD-Dev] Re: Levels versus Skills, who uses them and when. </LI>
<LI><em>From</em>: J C Lawrence &lt;<A HREF="mailto:claw#under,engr.sgi.com">claw#under,engr.sgi.com</A>&gt;</LI>
<LI><em>Date</em>: Fri, 15 Jan 1999 14:01:51 -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>
On Thu, 14 Jan 1999 20:36:54 -0800 (PST) 
Matt Wallace&lt;matt#ender,com&gt; wrote:

&gt; Incidentally, we also use this for a great deal of permanent
&gt; memory features, allowing our builders to (as part of builder
&gt; defined mob/obj progs) set, clear, and check bits from another 8k
&gt; (they get those bits matching their vnums), which is "remembered"
&gt; between sessions, they can use for various purposes. Quest
&gt; results, whether a player has assaulted a certain race of mobiles,
&gt; perhaps -- whatever strikes their fancy.

I have a concept I call "probability fields".  In essence these are
arbitrary collections of weights attached to objects or areas
(bounded volumes of space) which are applied to probability
computations.

  Translation: An object, or an area (part of the game) can change
the balance of "luck" for anything relating to it.  There are many
flavours of "luck" (eg combat strike, combat defend, injury,
lottery, etc), each of which can be affected by this "change" in a
positive or negative manner.  Additionally such luck may be tied
very specifically to particular forms of actions or those involving
particular objects ("You will be lucky with XXX.").

Thus, for instance a "lucky sword" could increase the players chance 
of getting good strikes, etc.  

The intended use of this is to create "lucky areas" and "lucky days"
for players.  On some days it would seem that nothing could go wrong
for a given character.  On other days it might seem that nothing
could go right.  The underlieing intention was to track player
behaviour against an "desirable play style" scale, and thus move
their luck modifiers about accordingly.  Further, the underlieing
base field monitors practiced limited positive feedback -- good luck
(positive returns from probability computations) tended to feed back
into higher luck field weights, with bad luck similarly feeding on
itself (the positive feedback is needed to make sure the pendulum
swings and never really rests; other factors are used to damp the
rate of swing (mainly trigger values)).

  Player does something an admin really doesn't like, but the admin
can't be seen to be intervening?  No problem: Just touch the guy's
probability fields and give him a hard time in such areas in future.

It doesn't handle the problem, it just influences the default.  The
other big part of the intention was to make luck, and the perception
of luck, something that players could be indirectly aware of,
influence, and attempt to (poorly) control, thus adding a silent
third handl to most interactions:

  &gt; i
  You are wearing impenetrable ultimate armour and are wielding 
  the sword of insta-kill.
  &gt; stats
  You are feeling pretty unlucky.
  &gt; l 
  Bubba is here.
  &gt; l at bubba
  Bubba looks like an utter wimp and is carring a rutsy butter
  knife.
  &gt; look at bubba's luck
  Bubba looks incredibly lucky.
  &gt; say, "Oh shit!
  &gt; flee!

Anyway, to get back to the point, the problem of course is storage.
There are several dozen different probability fields.  Additionally
some affects on probability fields are temporary (eg a player can
cast a luck spell on himself or another, giving the target an extra
dose of good/bad luck of a particular type for a defined period), or
are subject to or otherwise affected by external influences ("You
are lucky with women as long as they don't have red hair.").  The
result is that I need dozens of values stored, each of which is
supported by a database of potentially active calculations (ie
volatile values which need to be re-computed on every query) etc etc
etc.  Ugly.  Expensive.

Final implementation:

  Probability fields are stored in the following structures which
are attached to objects or bounded spaces:

    1) A tuple which contains two lists and a timestamp as to the
last time the list in #1b was updated:

      a) A list of records, each containing a list of tuples each of
which contains a probability field name, a qualifying call, and
either an absolute weight or a call that reutrns a weight.

      b) A list of tuples, hashed by probability field name.

        i) Each tuple stores its name, the current summated weight
for that field (last query), and a list of references to entries in
the #1a list.

Originally this was all accomplished via spoofs and having the
spoofs mutate the probability calculations on the way thru to the
base object.  That proved extremely expensive at runtime as well as
exposing horrible potential leaks in spoofs which failed to clean up
after themselves when they fell out of scope/validity.

Using the above dynamic database approach is more complex and far
less generic, but also works.  Further, as repeated and rapid
probability calculations can be expensive due to the many qualifying
and/or weight calls (#1a), the timestamp in #1 is used to have #1a
and its supported #1bi only recalculated periodically (I think I'm
using 50 seconds as my current cap) or upon significant state change
in the object the whole mess is hung off (currently not
implemented).  The result is that most probability chekcs of course
only reference #1bi, which is pretty cheap.

-- 
J C Lawrence                              Internet: claw#kanga,nu
(Contractor)                             Internet: coder#kanga,nu
---------(*)                    Internet: claw#under,engr.sgi.com
...Honorary Member of Clan McFud -- Teamer's Avenging Monolith...


</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="00182" HREF="msg00182.html">[MUD-Dev] Re: Levels versus Skills, who uses them and when.</A></STRONG>
<UL><LI><EM>From:</EM> Matt Wallace &lt;matt#ender,com&gt;</LI></UL></LI>
</UL></LI></UL>
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00201.html">[MUD-Dev] Re: Levels versus Skills, who uses them and when.</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00203.html">[MUD-Dev] Re: Mules (was something different)</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00182.html">[MUD-Dev] Re: Levels versus Skills, who uses them and when.</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00189.html">[MUD-Dev] Re: Levels versus Skills, who uses them and when.</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00202"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00202"><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: Levels versus Skills, who uses them and when.</STRONG>, <EM>(continued)</EM>
<ul compact>
<ul compact>
<LI><strong><A NAME="00178" HREF="msg00178.html">[MUD-Dev] Re: Levels versus Skills, who uses them and when.</A></strong>, 
Andy Cink <a href="mailto:ranthor#earthlink,net">ranthor#earthlink,net</a>, Thu 14 Jan 1999, 23:55 GMT
</LI>
</ul>
<LI><strong><A NAME="00169" HREF="msg00169.html">[MUD-Dev] Re: Levels versus Skills, who uses them and when.</A></strong>, 
Caliban Tiresias Darklock <a href="mailto:caliban#darklock,com">caliban#darklock,com</a>, Thu 14 Jan 1999, 20:58 GMT
<UL>
<LI><strong><A NAME="00185" HREF="msg00185.html">[MUD-Dev] Re: Levels versus Skills, who uses them and when.</A></strong>, 
J C Lawrence <a href="mailto:claw#under,engr.sgi.com">claw#under,engr.sgi.com</a>, Fri 15 Jan 1999, 04:43 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="00182" HREF="msg00182.html">[MUD-Dev] Re: Levels versus Skills, who uses them and when.</A></strong>, 
Matt Wallace <a href="mailto:matt#ender,com">matt#ender,com</a>, Fri 15 Jan 1999, 04:29 GMT
<UL>
<LI><strong><A NAME="00202" HREF="msg00202.html">[MUD-Dev] Re: Levels versus Skills, who uses them and when.</A></strong>, 
J C Lawrence <a href="mailto:claw#under,engr.sgi.com">claw#under,engr.sgi.com</a>, Sat 16 Jan 1999, 03:53 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="00189" HREF="msg00189.html">[MUD-Dev] Re: Levels versus Skills, who uses them and when.</A></strong>, 
Koster, Raph <a href="mailto:rkoster#origin,ea.com">rkoster#origin,ea.com</a>, Fri 15 Jan 1999, 15:54 GMT
</LI>
<LI><strong><A NAME="00190" HREF="msg00190.html">[MUD-Dev] Re: Levels versus Skills, who uses them and when.</A></strong>, 
Koster, Raph <a href="mailto:rkoster#origin,ea.com">rkoster#origin,ea.com</a>, Fri 15 Jan 1999, 16:03 GMT
</LI>
<LI><strong><A NAME="00191" HREF="msg00191.html">[MUD-Dev] Re: Levels versus Skills, who uses them and when.</A></strong>, 
Koster, Raph <a href="mailto:rkoster#origin,ea.com">rkoster#origin,ea.com</a>, Fri 15 Jan 1999, 16:11 GMT
</LI>
<LI><strong><A NAME="00217" HREF="msg00217.html">[MUD-Dev] Re: Levels versus Skills, who uses them and when.</A></strong>, 
Adam Wiggins <a href="mailto:adam#angel,com">adam#angel,com</a>, Mon 18 Jan 1999, 19:58 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>