<!-- MHonArc v2.4.4 --> <!--X-Subject: [MUD-Dev] Re: Equipment Fit --> <!--X-From-R13: Quevf Uenl <ptNnzv-pt.UenlEntr.Sqzbagba.OP.QO> --> <!--X-Date: Sun, 6 Sep 1998 09:28:31 -0700 --> <!--X-Message-Id: 199809061628.KAA03929@ami-cg.GraySage.Edmonton.AB.CA --> <!--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: Equipment Fit</title> <!-- meta name="robots" content="noindex,nofollow" --> <link rev="made" href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA"> </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> [ <a href="../">Other Periods</a> | <a href="../../">Other mailing lists</a> | <a href="/search.php3">Search</a> ] <br clear=all><hr> <!--X-Body-Begin--> <!--X-User-Header--> <!--X-User-Header-End--> <!--X-TopPNI--> Date: [ <a href="msg00968.html">Previous</a> | <a href="msg00970.html">Next</a> ] Thread: [ <a href="msg00975.html">Previous</a> | <a href="msg00962.html">Next</a> ] Index: [ <A HREF="author.html#00969">Author</A> | <A HREF="#00969">Date</A> | <A HREF="thread.html#00969">Thread</A> ] <!--X-TopPNI-End--> <!--X-MsgBody--> <!--X-Subject-Header-Begin--> <H1>[MUD-Dev] Re: Equipment Fit</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: Equipment Fit</LI> <LI><em>From</em>: Chris Gray <<A HREF="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</A>></LI> <LI><em>Date</em>: Sun, 6 Sep 1998 10:28:04 -0600</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> [Hans-Henrik Staerfeldt:] > B) The fit is -30 for 30 days, until BOS->fit is 0, and > thus BOS->owner is set to 'Ackbar'. That assumes > that the "BOS->fit += 1" in reality meant "BOS->fit -= 1" :-) > .. decrasing the fit from 30 to 0 over a month. > >In any event, you'd need some _more parameters_ to implement this >nice idea the way it was originally described. That was what i was >commenting. BOS->fit and BOS->owner isn't enough. Allow me to jump in with some pseudocode: initialization: BOS->fit = 0; BOS->owner = NULL; while wearing: if (BOS->owner == NULL) { BOS->owner = currentWearer; } if (BOS->owner == currentWearer) { BOS->fit += 1; } else { BOS->fit -= 1; if (BOS->fit == 0) { BOS->owner = NULL; } } to get the "fit" value: if (BOS->owner == currentWearer) { return BOS->fit; } else { return - BOS->fit; } When Ackbar starts wearing the boots, he is not set as the owner of them. "fit"-ness values can be negative, indicating a very poor fit. This is what I deduced that Holly was suggesting. -- Chris Gray cg#ami-cg,GraySage.Edmonton.AB.CA </PRE> <!--X-Body-of-Message-End--> <!--X-MsgBody-End--> <!--X-Follow-Ups--> <HR> <!--X-Follow-Ups-End--> <!--X-References--> <!--X-References-End--> <!--X-BotPNI--> <UL> <LI>Prev by Date: <STRONG><A HREF="msg00968.html">[MUD-Dev] Re: Equipment Fit</A></STRONG> </LI> <LI>Next by Date: <STRONG><A HREF="msg00970.html">[MUD-Dev] Re: Equipment Fit</A></STRONG> </LI> <LI>Prev by thread: <STRONG><A HREF="msg00975.html">[MUD-Dev] (fwd) CODE RELEASE: [server] SlashMUD (MacOS mud server)</A></STRONG> </LI> <LI>Next by thread: <STRONG><A HREF="msg00962.html">[MUD-Dev] npc memory and reactions</A></STRONG> </LI> <LI>Index(es): <UL> <LI><A HREF="index.html#00969"><STRONG>Date</STRONG></A></LI> <LI><A HREF="thread.html#00969"><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: [CODE QUESTION] How to encode floats into bytes?</STRONG>, <EM>(continued)</EM> <ul compact> <LI><strong><A NAME="00994" HREF="msg00994.html">[MUD-Dev] Re: [CODE QUESTION] How to encode floats into bytes?</A></strong>, J C Lawrence <a href="mailto:claw#under,engr.sgi.com">claw#under,engr.sgi.com</a>, Wed 09 Sep 1998, 17:33 GMT <UL> <LI><strong><A NAME="00997" HREF="msg00997.html">[MUD-Dev] Re: [CODE QUESTION] How to encode floats into bytes?</A></strong>, Adam J. Thornton <a href="mailto:adam#phoenix,Princeton.EDU">adam#phoenix,Princeton.EDU</a>, Wed 09 Sep 1998, 22:30 GMT <UL> <LI><strong><A NAME="01000" HREF="msg01000.html">[MUD-Dev] Re: [CODE QUESTION] How to encode floats into bytes?</A></strong>, Ben Greear <a href="mailto:greear#cyberhighway,net">greear#cyberhighway,net</a>, Thu 10 Sep 1998, 01:31 GMT </LI> </UL> </LI> </UL> </LI> </ul> </LI> <LI><strong><A NAME="00975" HREF="msg00975.html">[MUD-Dev] (fwd) CODE RELEASE: [server] SlashMUD (MacOS mud server)</A></strong>, J C Lawrence <a href="mailto:claw#greek,kanga.nu">claw#greek,kanga.nu</a>, Sun 06 Sep 1998, 22:04 GMT <LI><strong><A NAME="00969" HREF="msg00969.html">[MUD-Dev] Re: Equipment Fit</A></strong>, Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Sun 06 Sep 1998, 16:28 GMT <LI><strong><A NAME="00962" HREF="msg00962.html">[MUD-Dev] npc memory and reactions</A></strong>, James Wilson <a href="mailto:jwilson#rochester,rr.com">jwilson#rochester,rr.com</a>, Sat 05 Sep 1998, 14:02 GMT <UL> <LI><strong><A NAME="00963" HREF="msg00963.html">[MUD-Dev] Re: npc memory and reactions</A></strong>, Caliban Tiresias Darklock <a href="mailto:caliban#darklock,com">caliban#darklock,com</a>, Sat 05 Sep 1998, 14:41 GMT <UL> <LI><strong><A NAME="00964" HREF="msg00964.html">[MUD-Dev] Re: npc memory and reactions</A></strong>, James Wilson <a href="mailto:jwilson#rochester,rr.com">jwilson#rochester,rr.com</a>, Sat 05 Sep 1998, 16:29 GMT </LI> <LI><strong><A NAME="00972" HREF="msg00972.html">[MUD-Dev] Re: npc memory and reactions</A></strong>, T. Alexander Popiel <a href="mailto:popiel#snugharbor,com">popiel#snugharbor,com</a>, Sun 06 Sep 1998, 18:26 GMT </LI> </UL> </LI> </UL> </LI> </UL></BLOCKQUOTE> </ul> <hr> <center> [ <a href="../">Other Periods</a> | <a href="../../">Other mailing lists</a> | <a href="/search.php3">Search</a> ] </center> <hr> </body> </html>