Re: [coding] Method of tracking skill usage.

From: Chaotic (
Date: 01/29/97

On Wed, 29 Jan 1997, Walter Goodwin wrote:

> Been a while since I've been on this list :)   In my drive
> to push my mud towards a skill based system, I came up with
> the idea (okay, I saw someone talking about it :) about skills
> degrading with disuse.  My problem is, I can't seem to come up
> with a memory efficient way to do this.  Also, I'm not sure
> how often this should be checked, I was thinking of adding
> a "PULSE_SKILL_DISUSE" that cycled through the online characters,
> and incremented and checked a counter for each skill, of course,
> this would increase the overhead on characters quite a bit,
> (I'm dreading adding yet another 300 element array.)   I more
> or less wanted to hear from anyone else who has done something like
> this, and came up with something better.  I don't need any actual
> code, just a general idea :) 

how about adding an int to hold the time it was last used?  when it is
next used check the last_time_used against the current time and make any
adjustments needed at that point?  that way you're not eating pulse time,
only doing it as required.  granted, it eats an int for each skill, but...

| Ensure that you have read the CircleMUD Mailing List FAQ: |
|   |

This archive was generated by hypermail 2b30 : 12/18/00 PST