Character Stats...

Posted by Messiah0X on Thu 29 Nov 2001 12:17 AM — 4 posts, 16,934 views.

#0
I was wondering if anyone knew what source file the character stats are created in. I need to know where they are first created and where they are set when I new character is creates, thanx.

-Messiah0X
Australia Forum Administrator #1
In comm.c, around line 2333 it amends the stats from the stats for that race:


ch->perm_str += race_table[ch->race]->str_plus;
ch->perm_int += race_table[ch->race]->int_plus;
ch->perm_wis += race_table[ch->race]->wis_plus;
ch->perm_dex += race_table[ch->race]->dex_plus;
ch->perm_con += race_table[ch->race]->con_plus;
ch->perm_cha += race_table[ch->race]->cha_plus;
ch->affected_by = race_table[ch->race]->affected;
ch->perm_lck += race_table[ch->race]->lck_plus;
#2
I found the stats and fixed those, now I have another dilemna where does it define the default prompt because I need to change it to show the new stats I created...thanx


-Messiah0X
Australia Forum Administrator #3
Have a look in comm.c, function display_prompt.