In "Racial skills" Big wrote:
> How annoying, now I probably have to add a boolean true false to EVERY SKILL
> to check if it's addable on creation.  Anyone know how to do that the least
> painful way?

I SO knew this was coming, I almost answered it yesterday. :) To put the
Bool in, I did a search/replace on const.c and replaced  "SLOT("  with
 "FALSE,   SLOT(" .  Then I went through and changed the race skills to
TRUE.


// Then, somwhere in the nanny:

    ch->imm_flags           = ch->imm_flags|race_table[race].imm;
    ch->res_flags           = ch->res_flags|race_table[race].res;
    ch->vuln_flags          = ch->vuln_flags|race_table[race].vuln;
    ch->form                        = race_table[race].form;
    ch->parts                       = race_table[race].parts;
    ch->size                        = pc_race_table[race].size;
    ch->coins                       = pc_race_table[race].coins;
    ch->exp                         = 1000;

// You won't need this if you don't let people 'try on' races.

    for (sn = 0; sn < MAX_SKILL; sn++)
    {
            if (skill_table[sn].name == NULL )
            break;

            if (sn != -1)
            {
                    ch->pcdata->learned[sn] = 0;
            }
    }

// Once for the groups,

    for ( i = 0; i < 5; i++ )
    {
            if ( pc_race_table[race].skills[i] == NULL )
            break;
            group_add( ch, pc_race_table[race].skills[i], FALSE );

// again for the skills...

    }
    for ( i = 0; i < 5; i++ )
    {
            if ( pc_race_table[race].skills[i] == NULL )
            break;
            skill_add( ch, pc_race_table[race].skills[i] );
    }
    group_add( ch, "rom basics", FALSE );
    sprintf( buf, "Your Faerie Godmother waves her wand and `BPOOF`x!
    \n\rYou turn into a %s.\n\r", pc_race_table[race].name );
    send_to_char( buf, ch );




Hoping this helps, 
Sandi                            

                  "I have not yet begun to code!"

[EMAIL PROTECTED]                           blades.inetsolve.com 3333


Reply via email to