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 ➜ Smaug Exp Syatem

Smaug Exp Syatem

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


Posted by Robert Powell   Australia  (367 posts)  Bio
Date Thu 16 Jun 2005 10:41 AM (UTC)
Message
I was wondering where in the code gaining exp for using skills, is handled, i dont mind being given 100K for killing the mobile, its the other 400K gained that im objecting too and would like to tone it down some what.

Just a guy having a bit of fun. Nothing more, nothing less, I do not need I WIN to feel validated.
Top

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #1 on Thu 16 Jun 2005 10:46 AM (UTC)
Message
The codebase I'm running has a considerable xp gain given out in the learn_from_success function in skills.c. Notably, when you successfully use a skill, you gain 20*skillLevel xp, where skillLEvel is the level at which you get that skill, or, if 0, the level of the character. Learn from failure does not seem to give out any xp.

Also, there is this strange 'feature' in this code base where you get xp during a fight for the fight itself, in addition to a final chunk of xp at the end of the fight. The xp during the fight is according to % of damage done, but accumulates and is only awarded at the end of the fight. (Skill xp is awarded as you use the skill, it seems.)

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
Top

Posted by Robert Powell   Australia  (367 posts)  Bio
Date Reply #2 on Thu 16 Jun 2005 11:13 AM (UTC)
Message
I did find that lovely get experience based on % dam, and it seems that it is respocible for giving all that extra exp that i had found, a simple ajustment to the math was all i required to bring exp gained back to a reasonable level.

Just a guy having a bit of fun. Nothing more, nothing less, I do not need I WIN to feel validated.
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,317 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.