I know this was asked quite a bit on the ROM mailing list years back but I wasnt able to find much help rooting through the old digests other than the tail end of various discussions. Bascially what I want to do is take the skills I list in const.c in the race table *ie elves sneak/hide, giants bash etc* and not just have it class specific. So an elf that is a mage still gets sneak etc. Or a giant mage still gets bash if someone decided to pick such a combo. LOL. I still want them though to have to practice these skills, they just get them free like was intended in stock as far as classes are concerned and still start with 1% proficiency just like anyone else..perhaps 40% like the weapon of choice which was what i tried...
I know from what I read I need to insert something in the nanny in comm.c and add another field or check to the various tables in const.c. Race and/or skills/spells table/s.
But from there on I'm not much having any success.
_______________________________________________
what I have already tried with no success, from what Ive read on the old ROM digest list
in the nanny function under,
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 );
I added,
}
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! You turn into a %s.\n\r", pc_race_table[race].name );
send_to_char( buf, ch );
(i kept the faerie godmother bit just for giggles)
and in skill.c added
void skill_add( CHAR_DATA *ch, const char *name )
{
int sn;
sn = skill_lookup(name);
if (ch->pcdata->learned[sn] == 1)
{
ch->pcdata->learned[sn] = 40;
}
return;
}
and then modified my skill/spell tables with a FALSE, before the SLOT() and replaced this FALSE with a TRUE for those skills I wanted to be given to a certain race regardless of class. using stock, something like
{
"sneak", { 53, 53, 4, 10 }, { 0, 0, 4, 6},
spell_null, TAR_IGNORE, POS_STANDING,
&gsn_sneak, TRUE, SLOT( 0), 0, 12,
"", "You no longer feel stealthy.", "",
"$n no longer looks stealthy."
},
Anyhow be appreciated if someone could steer me in the right direction. Side note it did compile although skills didnt get applied and mana costs were in the 500 plus range now for spells LOL. I'm pretty sure I need the extra entry in the tables, that much i feel Ive done right LOL but definitely willing to go about it any other way as well whichever is easiest. |