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
XuN
Sphere Developer
*****

Posts: 852
Likes Given: 102
Likes Received: 156 in 119 posts
Joined: Jul 2013
Reputation: 30



Post: #3
RE: Easy skill gain and exaggerated stats gain
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.
(This post was last modified: 05-02-2015 06:39 PM by XuN.)
05-02-2015 06:37 PM
Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes XuN's post
Post Reply 


Messages In This Thread
RE: Easy skill gain and exaggerated stats gain - XuN - 05-02-2015 06:37 PM

Forum Jump:


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