Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ SMAUG ➜ SMAUG coding ➜ Character Stats...

Character Stats...

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Messiah0X   (3 posts)  Bio
Date Thu 29 Nov 2001 12:17 AM (UTC)
Message
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
Top

Posted by Nick Gammon   Australia  (23,169 posts)  Bio   Forum Administrator
Date Reply #1 on Thu 29 Nov 2001 10:47 PM (UTC)
Message
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;

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Messiah0X   (3 posts)  Bio
Date Reply #2 on Fri 30 Nov 2001 01:22 AM (UTC)
Message
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
Top

Posted by Nick Gammon   Australia  (23,169 posts)  Bio   Forum Administrator
Date Reply #3 on Fri 30 Nov 2001 10:12 PM (UTC)
Message
Have a look in comm.c, function display_prompt.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


15,720 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.