[Home] [Downloads] [Search] [Help/forum]


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  SMAUG
. -> [Folder]  SMAUG coding
. . -> [Subject]  Playing with weapon skills?

Playing with weapon skills?

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


Posted by Oblisgr   (123 posts)  [Biography] 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.
[Go to top] top

Posted by Fiendish   USA  (2,514 posts)  [Biography] 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
[Go to top] top

Posted by Oblisgr   (123 posts)  [Biography] bio
Date Reply #2 on Fri 31 Jan 2020 03:19 PM (UTC)
Message
Yes you are right! what about 1?
[Go to top] top

Posted by Fiendish   USA  (2,514 posts)  [Biography] 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
[Go to top] top

Posted by Oblisgr   (123 posts)  [Biography] bio
Date Reply #4 on Sat 01 Feb 2020 06:05 PM (UTC)
Message
thank you
[Go to top] 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.


12,460 views.

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

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

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

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at HostDash]