Re: Limiting Exp Gain?

From: Thomas Arp (t_arp@stofanet.dk)
Date: 08/20/02


From: "Mathew Earle Reuther" <graymere@zipcon.net>
> I'm having difficulty in determining where I should put checks in to stop
> the gaining of experience.  Through experiementing with gain_exp, I've
> noted that if I put in checks to limit the exp gain there, it also has the
> benefit of working to limit exp loss through death if the limiting
> conditions are satisfied.  Thus, peopole can have no fear of death (or at
> least losing exp) once they manage to put themselves in a state where exp
> needs to be limited.  (This is not good, obviously.)
>
I figure that by 'limit exp gain' you mean nullify any exp loss/gain. To
counter that, I'd suggest something along these lines:

in gain_exp():

if (exp_gain>0 && limit is reached)
    return
else
  do normal exp calcs.

> Just looking for suggestions here since it's the end of my coding day and
> I'll be picking this up again tomorrow.

Best I could do before I turn in, too.

Welcor

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   | Newbie List:  http://groups.yahoo.com/group/circle-newbies/   |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 06/25/03 PDT