![]() |
STAT_STR STAT_DEX STAT_INT ? - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Expired/Outdated Versions (/Forum-Expired-Outdated-Versions) +--- Forum: Sphere 51a Help (/Forum-Sphere-51a-Help) +--- Thread: STAT_STR STAT_DEX STAT_INT ? (/Thread-STAT-STR-STAT-DEX-STAT-INT) |
STAT_STR STAT_DEX STAT_INT ? - x77x - 11-19-2016 04:23 AM what do these actually do? Code: [SKILL 30] STAT_STR=15 STAT_INT=40 STAT_DEX=40 BONUS_STR=0 BONUS_DEX=20 BONUS_INT=80 SKILL_STAT=80 some top secret hardcoded formula? RE: STAT_STR STAT_DEX STAT_INT ? - Anarch Cassius - 02-05-2017 08:49 AM Not secret. It's based on one of the oldest mechanics in UO: tying stats to skills. Quote:STAT_STR=80 // You will tend toward these stat vals if you use this skill a lot. So STAT_* values are the rate at which using the skill increases the relevant stat. BONUS_ values are the bonus to the skill you get from the relevant stat. Despite the text saying 'percent' these seem to be weights that just happened to use a 100 scale. "SKILL_STAT" does not appear in later versions of Sphere. BONUS_STAT does and is the total bonus from all stats put together. Code: BONUS_STR=40 This means the skill gets up to 5.0% bonus**, derived more from Dex than Str. When you click "Show Real Values" the client GUI hides the bonus from stats described here. Now the one problem with the whole system, you might have noticed there is no function for a scripter to pull the current 'unreal' value including bonuses from stats. I wrote this to do so, now it was written around 55i or something so you may need to alter it but it shows you the basic formula. Code: [FUNCTION SKILLMOD] **Rather if 100 were the actual maximum for each stat you would get up to a 5.0% bonus. If a stat can go higher the maximum will increase proportionately. |