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 ➜ Playing with weapon skills?

Playing with weapon skills?

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


Posted by Oblisgr   (123 posts)  Bio
Date Fri 31 Jan 2020 10:59 AM (UTC)
Message
Hello, i want to make changes considering the weapon skills. I have build and regitered my own weapon skills and right now i 'm looking foward to:

1. Find and adjust the learning process of a weapon skill. For example when a player first learn a skill, i want to get 1% and eachtime the % for the skill will increase, i want it to increase by 1%. For example 1%-2%-3% etc.

2. Find and check the formula of the benefits a better % of a skill offers to the player using it.

Just need directions.
What file and witch code i have to check.
Top

Posted by Fiendish   USA  (2,535 posts)  Bio   Global Moderator
Date Reply #1 on Fri 31 Jan 2020 03:11 PM (UTC)
Message
You asked about #2 already. http://mushclient.com/forum/?id=14599&page=999

https://github.com/fiendish/aardwolfclientpackage
Top

Posted by Oblisgr   (123 posts)  Bio
Date Reply #2 on Fri 31 Jan 2020 03:19 PM (UTC)
Message
Yes you are right! what about 1?
Top

Posted by Fiendish   USA  (2,535 posts)  Bio   Global Moderator
Date Reply #3 on Fri 31 Jan 2020 03:39 PM (UTC)

Amended on Fri 31 Jan 2020 03:40 PM (UTC) by Fiendish

Message
Quote:
1. Find and adjust the learning process of a weapon skill.

Increase from combat is in learn_from_failure and learn_from_success in skills.c
Increase from practicing is in do_practice in act_info.c on the line that says

         ch->pcdata->learned[sn] += int_app[get_curr_int( ch )].learn;

https://github.com/fiendish/aardwolfclientpackage
Top

Posted by Oblisgr   (123 posts)  Bio
Date Reply #4 on Sat 01 Feb 2020 06:05 PM (UTC)
Message
thank you
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,279 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.