This shows you the differences between two versions of the page.
| ds1-refmat:param:calccorrectgraph [2025/02/26 03:03] – created admin | ds1-refmat:param:calccorrectgraph [2025/02/27 16:06] (current) – admin | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== CalcCorrectGraph ====== | ====== CalcCorrectGraph ====== | ||
| + | Outputs a value based on input value run through calculations. Used for things like weapon stat scaling, | ||
| + | soul level cost, max HP, resistances, | ||
| + | |||
| + | Calculations can be simplified by using [[https:// | ||
| + | |||
| + | ==== Example ==== | ||
| + | |||
| + | **Relevant values for example** | ||
| + | |||
| + | calcCorrectGraph is being used for 200 strength scaling, 0 dexterity scaling weapon. | ||
| + | |||
| + | Players strength stat (input) is 10 | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | |||
| + | Since the player' | ||
| + | |||
| + | < | ||
| + | |||
| + | **Calculate ratio of input value and maximum output stage value** | ||
| + | |||
| + | Max output stage value for stage 0 to 1: '' | ||
| + | |||
| + | < | ||
| + | |||
| + | < | ||
| + | |||
| + | This means that the final output value will be 50% of the output value potential. | ||
| + | |||
| + | (note: this part is affected by adjPt_maxGrowVal0-5 when present, which adds an additional calculation making ratio growth non-linear) | ||
| + | |||
| + | **Calculate output value potential for stage 0 to 1** | ||
| + | |||
| + | Min output stage value for stage 0 to 1: '' | ||
| + | |||
| + | Max output stage value for stage 0 to 1: '' | ||
| + | |||
| + | Output value potential for stage 0 to 1: '' | ||
| + | |||
| + | **Calculate Output** | ||
| + | |||
| + | Calculate input value ratio (.5 aka 50%) with output value potential, then add output stage value minimum for final output value | ||
| + | |||
| + | < | ||
| + | |||
| + | The final output value is 31, which in the case of weapon stat calculations will be applied as a multiplier to stat scaling. Meaning the weapon will effectively use 31% of the maximum stat scaling. '' | ||
| + | |||
| + | |||
| ===== Fields ===== | ===== Fields ===== | ||
| ^ Field ^ Type ^ Offset ^ Description ^ Notes ^ | ^ Field ^ Type ^ Offset ^ Description ^ Notes ^ | ||