Skip to main content

Toggle Value By Condition

StatValueAdapter_ToggleValueByCondition turns a condition into a toggle value: 1 when the incoming Stat passes the condition, 0 otherwise.

FieldDescription
Single ConditionThe Single Stat Condition checked against the incoming Stat.

Example​

A Linker that writes IsLowHealth = 1 while Health ≤ 30 %, for UI, animation or other conditions to read:

FieldValue
Target StatIsLowHealth (Int)
LinkerAbsolute Value, Use Value Adapter on
Injector StatHealth
AdapterToggle Value By Condition — Single Condition: Health as Percentage Of Remaining ≤ 0.3
HealthIsLowHealth
80 / 1000
25 / 1001