StatusEffectData

Description

StatusEffectDatas contains all of the necessary data to describe a StatusEffect.

Properties

group

The Status Effect group. Multiple groups can be selected.

comparableName

The ComparableName that groups similar effects together.

baseValue

The base value is used mainly when calculating how effects should be stacked. An Effect can use this value over its own.

allowEffectStacking

True if multiple StatusEffects of the same StatusEffectData can exist on the same MonoBehaviour.

nonStackingBehaviour

When stacking is not allowed, the behaviour determines how to resolve a situation when the same StatusEffect is added. See below for more information.

maxStack

The maximum stack that can be added to a MonoBehaviour.

effects

The list of Effects.

conditions

The list of Conditionals.

customEffect

The CustomEffect reference. This is optional.

Non-Stacking Behaviour

The non-stacking behavior determines how a duplicate status effect should resolve.

MatchHighestValue

Match Highest Value will take the value of the effect and recalculate the duration to the equivalent final value over the time. This is the recommended option for non-stacking behaviour.

TakeHighestValue

Regardless of the durations, use the effect with the highest value.

TakeHighestDuration

Regardless of the value, use the effect with the highest duration.

TakeNewest

Use the newest effect.

TakeOldest

Use the oldest effect.