Skip to main content

Add Attribute Value By Condition

Two Linkers that add a flag value to an Int target Stat while a condition on the Injector Stat holds:

LinkerAdds
LinkerModel_AddEffectAttributeValueByConditionthe selected Effect Attributes
LinkerModel_AddResultAttributeValueByConditionthe selected Effect Result Attributes

The target is an Int Stat used as a set of flags — e.g. the value an Effect Attribute Eliminater or a Block By Result Attribute Processor reads. The flags are added with +=, so give each Linker distinct flags.

FieldDescription
Condition ComparerA Single Stat Condition checked against the Injector Stat.
Attribute(s)The flags added while the condition passes.

See Effect Attributes.

Example​

Bosses can't be crit while their shield is up.

FieldValue
Target Statthe boss's EliminatedAttributes (read by the Effect Attribute Eliminater)
LinkerLinkerModel_AddEffectAttributeValueByCondition
Attribute(s)Critable
Injector StatShield
Condition Comparer> 0

While Shield > 0, incoming Effects lose Critable and can't crit; when the shield breaks, EliminatedAttributes drops back and crits work again.