I've been looking over the class files, and I've noticed that the languages you can practice are based on your class. I'm looking to change that, so certain races will be able to speak different langauges right from the start. I peeked in comm.c and noticed that nanny handles giving the common language to all characters in this bit:
Can anyone give me some help on how to go about this?
-Toy
if ( (iLang = skill_lookup( "common" )) < 0 )
bug( "Nanny: cannot find common language." );
else
ch->pcdata->learned[iLang] = 100;
for ( iLang = 0; lang_array[iLang] != LANG_UNKNOWN; iLang++ )
if ( lang_array[iLang] == race_table[ch->race]->language )
break;
if ( lang_array[iLang] == LANG_UNKNOWN )
bug( "Nanny: invalid racial language." );
else
{
if ( (iLang = skill_lookup( lang_names[iLang] )) < 0 )
bug( "Nanny: cannot find racial language." );
else
ch->pcdata->learned[iLang] = 100;
}Can anyone give me some help on how to go about this?
-Toy