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
➜ Help with wisdom
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Rob Harper
(108 posts) Bio
|
Date
| Mon 22 Sep 2003 05:06 PM (UTC) |
Message
| Ahh looking for a start, how would I go about making the amount of a skill you gain dependent on the amount of wis you have there for making wis a skill needed to be trained, ie everyone starts out with skills only able to go up to 55 maby and to raise the precentage they can attain they need to train more wis.
Thanks | Top |
|
Posted by
| Greven
Canada (835 posts) Bio
|
Date
| Reply #1 on Mon 22 Sep 2003 06:10 PM (UTC) Amended on Tue 23 Sep 2003 02:55 PM (UTC) by Greven
|
Message
| Couple things you could do, there is a training snippet available that allows mobs flagged as such to train people stats, this could easily be modified to be more skill like. When you say:
Quote: amount of a skill you gain dependent on the amount of wis you have Do you mean the Maximum that they can get to? If so, then in learn_from_success, add a check dependant on their wisdom to see how high it can go, something like: adept = ( ch->skill_level[skill_table[sn]->guild] - (get_curr_wis(ch)*2) + 50;
. That bit would assume that they can get their wis to 25. If you meant that they gain more than normal the higher their wisom is, then again, in learn_from_success, add it as a multiplier, maybe like if ( percent >= chance )
learn = 2 + (get_curr_wis(ch)/5);
else
if ( chance - percent > 25 )
return;
else
learn = 1 + (get_curr_wis(ch)/10);
If you meant both, then both should be applicable. Hope that helps. |
Nobody ever expects the spanish inquisition!
darkwarriors.net:4848
http://darkwarriors.net | Top |
|
Posted by
| Rob Harper
(108 posts) Bio
|
Date
| Reply #2 on Mon 22 Sep 2003 08:18 PM (UTC) |
Message
| Thanks man that helps alot, didnt even think to change the gain from success code I was looking at the stat attribute effects. | 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.
10,497 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top