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
➜ Starting stats
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Metsuro
USA (389 posts) Bio
|
Date
| Thu 20 Jul 2006 12:10 AM (UTC) |
Message
| I am looking for where starting stats are defined. I want all players to start out with all the stats the same. So every stat will be like 5 or 10 for all players no matter, how might I do this? |
Everything turns around in the end | Top |
|
Posted by
| Zeno
USA (2,871 posts) Bio
|
Date
| Reply #1 on Thu 20 Jul 2006 12:16 AM (UTC) |
Message
| I think it's in comm.c, if not something in comm.c calls a function to do it. I know the stats are made by your player name though. |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | Top |
|
Posted by
| Metsuro
USA (389 posts) Bio
|
Date
| Reply #3 on Thu 20 Jul 2006 12:24 AM (UTC) |
Message
| How might i change this to make them all the number i wish them to be? |
Everything turns around in the end | Top |
|
Posted by
| Zeno
USA (2,871 posts) Bio
|
Date
| Reply #4 on Thu 20 Jul 2006 02:03 AM (UTC) |
Message
| Just change where it sets ch->perm_str, etc. Get rid of the function, or just replace it. |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | Top |
|
Posted by
| Mako
(6 posts) Bio
|
Date
| Reply #5 on Thu 20 Jul 2006 09:49 PM (UTC) |
Message
| Code: SmaugFuss 1.4
Compiler: CYGwin
Here is where I get lost I have this code I'm looking at. It is in common.c
ch->pcdata->clan = NULL;
switch ( class_table[ch->Class]->attr_prime )
{
case APPLY_STR:
ch->perm_str = 5;
break;
case APPLY_INT:
ch->perm_int = 5;
break;
case APPLY_WIS:
ch->perm_wis = 5;
break;
case APPLY_DEX:
ch->perm_dex = 5;
break;
case APPLY_CON:
ch->perm_con = 5;
break;
case APPLY_CHA:
ch->perm_cha = 5;
break;
case APPLY_LCK:
ch->perm_lck = 5;
break;
}
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;
I still get values that are not equal to the values I've placed in the switch (not 5) so part of my question is should I just berid of the code after the switch to solve this problem? | Top |
|
Posted by
| Zeno
USA (2,871 posts) Bio
|
Date
| Reply #6 on Thu 20 Jul 2006 10:50 PM (UTC) |
Message
| What is common.c?
You could get rid of the below code, or change all races bonuses to 0. |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | Top |
|
Posted by
| Metsuro
USA (389 posts) Bio
|
Date
| Reply #7 on Thu 20 Jul 2006 10:53 PM (UTC) |
Message
| switch ( class_table[ch->Class]->attr_prime )
{
case APPLY_STR:
ch->perm_str = 5;
break;
case APPLY_INT:
ch->perm_int = 5;
break;
case APPLY_WIS:
ch->perm_wis = 5;
break;
case APPLY_DEX:
ch->perm_dex = 5;
break;
case APPLY_CON:
ch->perm_con = 5;
break;
case APPLY_CHA:
ch->perm_cha = 5;
break;
case APPLY_LCK:
ch->perm_lck = 5;
break;
}
this is only called if the main stat is one of them... so what you'll have to do is replace everything in the function with ch->perm_(stat) = 5;
|
Everything turns around in the end | Top |
|
Posted by
| Mako
(6 posts) Bio
|
Date
| Reply #8 on Fri 21 Jul 2006 12:13 AM (UTC) |
Message
| Nice, thank you Saito! | 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.
26,316 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top