Re: Needful things?

From: Patrick J. Dughi (dughi@IMAXX.NET)
Date: 04/02/98

> choose to work in an open-ended environment like circle.  Even a feature
> as sublime as PC or NPC races can turn into a problem, for instance if I
> want to set my mud in the future (sci-fi) or I wanted to use a different
> type of game as my base (Rifts over AD&D or whatever), I'd have to alter
> or remove the race code.  This might not seem like a big deal (it really

        Not exactly what I had envisioned.. let me take races as a case.
Right now, on stock circlemud, we have one race.  Every single mob or pc
is a member of that race, sharing the same max/mins for stats, as well as
resistances and the like.  Great.
        Lets encapsulate that into something like a structure with all
relevant values.
        Now, lets make it so that instead of using this automatic
'built-in' race, you have it use the afforementioned encapsulated
structure.  All the cases where 'race' is/willbe/hasbeen/couldbe a factor
simply point to this encapsulation. (GET_MAX_STRENGTH/MANA-REGEN/etc).

        Make life easier on the coder, yet some more, and throw this race
into an array.  Leave the rest of the array empty.

        What do you have then? You have no functional change - you still
have the same 'race' that you started with, that stock circle provides.
But you have the ability to _easily_ add to that array and define new
races - if you have the wish, the time, and the talent to do so.  It
dosen't matter whether you're sci-fi or fantasy, you still have to create
the races - this just makes it easier to make unique developments.
        Since they're all standardized, you can now make new features,
like race-specific weapons/armor, or race-specific spells/skills, and
everyone can use them.

        I see alot in circle that can be added in this way - make it
easier on the coder, and standardize the base code, without changing the
actual functionality.

        Let me sit down and write a module-type race patch one of these
days and I'll show you what I mean.


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

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