Re: [CODE] Race Attributes

From: Patrick Dughi (
Date: 03/08/99

> >> How do you set it so that races get special skills/spells like:
> >> Dwarf - Infravision, or something like that?
> >> I have tried for a long time, and I'm, stumped.
> >
> >class.c
> >do_start()
> >
> >if (GET_RACE(ch) == RACE_DWARF)
> Two pitfalls with this (though this is how I did it):
> 1. If you have a dispel magic spell, you'll want to
> make sure it doesn't dispel any innate AFF flags.
> 2. The immort unaffect command - same as #1.
> I just wrote a little function that I call after
> a dispel or unaffect that checks all innate abilities
> after a dispel or unaffect, and, if necessary, re-adds
> the AFF.
> I also threw in a check in do_advance to make sure
> they hadn't lost their innate affects at any point,
> and to log it if they had.  Not terribly helpful for
> debugging, but it is just intended to be a first alert
> to a problem.  No problems yet however :)
        Though it's really, incredibly basic code, you can check out a
patch which I remember from a while ago about innate spell/skills.  It
would allow you to make a spell like affectation, and as long as you set
the timer negative, it would be regarded as 'innate', and never removed.
The patch comes with the demonstration functions 'sinnate' and 'rinnate'
to set and remove innates on characters.
        I do not however, have any idea where that code is right now.


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

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