The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Easy skill gain and exaggerated stats gain
Author Message
AmpereJoule
Journeyman
*

Posts: 59
Likes Given: 7
Likes Received: 0 in 0 posts
Joined: Dec 2012
Reputation: 0



Post: #4
RE: Easy skill gain and exaggerated stats gain
(05-02-2015 06:37 PM)XuN Wrote:  This is how statgain works, I will use str as example however all 3 stats are checked after @SkillGain (even if there is no skillgain):

local.stat=<str>
local.cap=<serv.skill.<action>.bonus_str> //gets max bonus_stat from the succeeding skill.

local.difficulty = <muldiv <local.stat>,1000,<local.cap>>

local.chance =<eval 100000 / <f_Value_GetLinear <local.difficulty>,<local.cap>,<serv.skill.<action>.values>> > // f_Value_GetLinear function is inside sphere_combat, it get's the actual 'point' in which you really are in the ADV_RATE or VALUES, so if you have ADV_RATE=1.0,50.0,90,0 and your skill is at 99.0 you'll get as return something close to 88.7~.
if (<local.chance < 1 )
return 0
endif

local.roll=<r1000>

local.decrease=<stat_decrease> //just internal function checking if any stat must decrease, ex: passed the cap of stat, of total stats, etc. and automatically decrease that stat, its also returns 1 if the stat gain is allowed to happen regardless of the stat's decrease.
if (<local.roll> <= <local.chance> && <local.decrease>)
gained your stat point!
endif


EDIT: Forgot the most important for you: change your BONUS_STATS to 100, this should make you have more gains.


Thank you Xun and Darksun84.

So, can I say that:
"ADV_RATE=1.0,1.0,1.0" in each sphere_skill_*nameOfSkill*.scp will make the players grow/change stats easy and even if the skill is 100.0 ??




------------x---------- (what is writen below may be unecessary)
To Xun:

Thank you Xun, but I thought the most important was "local.chance" and learning about ADV_RATE and VALUES.

What I understood was: If i put ADV_RATE as "Darksun84" said (ADV_RATE=1.0,1.0,1.0) the player will gain stats even if he gets 100.0 of the skill he is using.

Is my tought right? Will it work?

(Notice that I did not use VALUES anywhere)
05-02-2015 11:14 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Easy skill gain and exaggerated stats gain - AmpereJoule - 05-02-2015 11:14 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)