Re: [CODE] Race Skills/Spells

From: Patrick J. Dughi (dughi@IMAXX.NET)
Date: 12/06/97


> I have long tried to implement initial skills/spells for
> each of my races (like elves receiving BOW at 90% at level 1).
>
> How do I add this feature?? Anyone who have done it?
> I need answers. Have tried to copy the 'spell_level' function
> but without success.
>
        This is actually pretty easy, all things considered.  When you go
through the initial character generation, after the race is chosen have
something like the  following in the next  con state:

        switch(race) {
            case RACE_ELF:
                GET_SKILL(d->character,SKILL_BOW)=90;
                GET_SKILL(d->character,SKILL_SNEAK)=20;
                break;
            case RACE_DWARF:
                GET_SKILL(d->character,SKILL_AXE)=60;
                break;
                        .
                        .
                        .
        etc..

                                        PjD


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



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