Skip to main content

Value As

StatValueAdapter_ValueAs converts a Stat's current value into a different representation before it is used.

Value AsDescription
ConstantReturns the Stat's current value directly.
Percentage Of RemainingReturns the proportion of the Stat's current value within its minimum and maximum range as a percentage (0–1). Calculated as (Current Value - Min Value) / (Max Value - Min Value).
Percentage Of MissingReturns the proportion of the Stat's missing value within its minimum and maximum range as a percentage (0–1). Calculated as (Max Value - Current Value) / (Max Value - Min Value).
info

Percentage Of Remaining and Percentage Of Missing require the target Stat to be a Clamped Stat, since these calculations use its Min Value and Max Value.

Example​

A Clamped Health Stat with Min Value 0, Max Value 100 and a current value of 75:

Value AsResult
Constant75
Percentage Of Remaining0.75
Percentage Of Missing0.25

Damage Boost To Undamaged uses Percentage Of Remaining in Condition_PercentIs100(Float) to boost damage only against targets at 1 (full health), and Execute Health Below Threshold uses it to compare health with a fraction.