msg00721.html

1999Q4/msg00721.html · 7.7 KB

From the archive 1999Q4.zip

Download the archive   « Back to the archive contents

<!-- MHonArc v2.4.4 -->
<!--X-Subject: Re: [MUD&#45;Dev] The grass is always greener in the other field -->
<!--X-From-R13: Ayn Tbfurvz =?vfb&#45;8859&#45;1?C?Ue=T8fgnq?= <byntNvsv.hvb.ab> -->
<!--X-Date: Wed, 22 Dec 1999 09:53:32 &#45;0800 -->
<!--X-Message-Id: 385FE930.656988AF#ifi,uio.no -->
<!--X-Content-Type: text/plain -->
<!--X-Reference: E11z7GP&#45;0007qh&#45;00#under,eng.cp.net -->
<!--X-Reference: 5899.991220#io,com -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, Re: [MUD-Dev] The grass is always greener in the other field</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:olag#ifi,uio.no">
</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="msg00722.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00723.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00707.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00656.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00721">Author</A>
&nbsp;|&nbsp;<A HREF="#00721">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00721">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>Re: [MUD-Dev] The grass is always greener in the other field</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>: Re: [MUD-Dev] The grass is always greener in the other field</LI>
<LI><em>From</em>: Ola Fosheim Grøstad &lt;<A HREF="mailto:olag#ifi,uio.no">olag#ifi,uio.no</A>&gt;</LI>
<LI><em>Date</em>: Tue, 21 Dec 1999 21:55:12 +0100</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>
Travis Casey wrote:
&gt; &gt; Sellers, Michael &lt;MSellers#maxis,com&gt; wrote:
&gt; 
&gt; &gt;&gt; seed = location seed + (obj ID | activity ID) + your skill level
&gt; &gt;&gt; randNum = rand(seed)
&gt; &gt;&gt; if (your skill &gt; randNum) success = TRUE;
&gt; 
&gt; &gt;&gt; Is that essentially what you were talking about?

&gt; It should be noted, though, that making the skill value be used as
&gt; part of the random number seed can lead to an undesirable result --
&gt; namely, that a character who is currently able to pick a certain lock
&gt; may go up in skill and find that he/she is no longer able to pick that
&gt; lock, even though nothing else has changed!

You're not the only person in the pedantic mood! The same thing goes for the
location. Move the lock one picometer and it has become impossible to pick!
:*)

You strictly don't need a pseudo random generator either, because you don't
need the "one large cycle" property, or rather, it is acceptable with many
disjoint cycles. So a silly hash is sufficient, but use xor to avoid
saturation of yer bits. 

My suggestion:

 hash(ulong LockID,ulong UserID) =
    ( (LockID&lt;&lt;(ULONG_BITS-MAX_OBJ_ID_BITS)) ^ UserID ) % SOME_PRIME


K.I.S.S.

--  
Ola Fosheim Groestad,Norway      <A  HREF="http://www.notam.uio.no/~olagr/">http://www.notam.uio.no/~olagr/</A>





_______________________________________________
MUD-Dev maillist  -  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="00653" HREF="msg00653.html">Re: [MUD-Dev] The grass is always greener in the other field</A></STRONG>
<UL><LI><EM>From:</EM> J C Lawrence &lt;claw#cp,net&gt;</LI></UL></LI>
<LI><STRONG><A NAME="00707" HREF="msg00707.html">Re[2]: [MUD-Dev] The grass is always greener in the other field</A></STRONG>
<UL><LI><EM>From:</EM> Travis Casey &lt;efindel#io,com&gt;</LI></UL></LI>
</UL></LI></UL>
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00722.html">Re: [MUD-Dev] Proper liscense for MUD source? Perhaps not GPL... (fwd)</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00723.html">[MUD-Dev] re: Originality/Points of Reference</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00707.html">Re[2]: [MUD-Dev] The grass is always greener in the other field</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00656.html">RE: [MUD-Dev] The grass is always greener in the other field</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00721"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00721"><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] The grass is always greener in the other field</STRONG>, <EM>(continued)</EM>
<ul compact>
<ul compact>
<ul compact>
<LI><strong><A NAME="00671" HREF="msg00671.html">Re: [MUD-Dev] The grass is always greener in the other field</A></strong>, 
Raph &amp; Kristen Koster <a href="mailto:koster#eden,com">koster#eden,com</a>, Sat 18 Dec 1999, 17:52 GMT
</LI>
</ul>
</ul>
<LI><strong><A NAME="00648" HREF="msg00648.html">RE: [MUD-Dev] The grass is always greener in the other field</A></strong>, 
Sellers, Michael <a href="mailto:MSellers#maxis,com">MSellers#maxis,com</a>, Fri 17 Dec 1999, 23:00 GMT
<UL>
<LI><strong><A NAME="00653" HREF="msg00653.html">Re: [MUD-Dev] The grass is always greener in the other field</A></strong>, 
J C Lawrence <a href="mailto:claw#cp,net">claw#cp,net</a>, Fri 17 Dec 1999, 23:58 GMT
<UL>
<LI><strong><A NAME="00707" HREF="msg00707.html">Re[2]: [MUD-Dev] The grass is always greener in the other field</A></strong>, 
Travis Casey <a href="mailto:efindel#io,com">efindel#io,com</a>, Tue 21 Dec 1999, 17:38 GMT
<UL>
<LI><strong><A NAME="00721" HREF="msg00721.html">Re: [MUD-Dev] The grass is always greener in the other field</A></strong>, 
Ola Fosheim Grøstad <a href="mailto:olag#ifi,uio.no">olag#ifi,uio.no</a>, Wed 22 Dec 1999, 17:53 GMT
</LI>
</UL>
</LI>
</UL>
</LI>
<LI><strong><A NAME="00656" HREF="msg00656.html">RE: [MUD-Dev] The grass is always greener in the other field</A></strong>, 
Adam Wiggins <a href="mailto:adam#angel,com">adam#angel,com</a>, Sat 18 Dec 1999, 00:01 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="00661" HREF="msg00661.html">RE: [MUD-Dev] The grass is always greener in the other field</A></strong>, 
Sellers, Michael <a href="mailto:MSellers#maxis,com">MSellers#maxis,com</a>, Sat 18 Dec 1999, 04:26 GMT
<UL>
<LI><strong><A NAME="00663" HREF="msg00663.html">Re: [MUD-Dev] The grass is always greener in the other field</A></strong>, 
J C Lawrence <a href="mailto:claw#kanga,nu">claw#kanga,nu</a>, Sat 18 Dec 1999, 05:36 GMT
</LI>
</UL>
</LI>
</ul>
</LI>
<LI><strong><A NAME="00510" HREF="msg00510.html">[MUD-Dev] (fwd) Re: Artificial Language for MUD programmers</A></strong>, 
claw <a href="mailto:claw#kanga,nu">claw#kanga,nu</a>, Fri 26 Nov 1999, 19:06 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>

Site Stats

Snippets: 1791
Codebases: 571