# StatusEffectData

### Description

StatusEffectData contains all of the necessary data to describe an effect.

### Properties

<table data-header-hidden data-full-width="false"><thead><tr><th width="224"></th><th></th></tr></thead><tbody><tr><td>group</td><td>The string group name.</td></tr><tr><td>name</td><td>The string name.</td></tr><tr><td>baseValue</td><td>The base value is used mainly when calculating how effects should be stacked. An <a href="statuseffectdata/effect">Effect</a> can use this value over its own.</td></tr><tr><td>allowEffectStacking</td><td>True if multiple <a href="statuseffect">StatusEffects</a> of the same StatusEffectData can exist on the same <a href="https://docs.unity3d.com/ScriptReference/MonoBehaviour.html">MonoBehaviour</a>.</td></tr><tr><td>nonStackingBehaviour</td><td>When stacking is not allowed, the behaviour determines how to resolve a situation when the same <a href="statuseffect">StatusEffect</a> is added. See below for more information.</td></tr><tr><td>effects</td><td>The list of <a href="statuseffectdata/effect">Effects</a>.</td></tr><tr><td>customEffect</td><td>The <a href="customeffect">CustomEffect</a> reference. This is optional.</td></tr></tbody></table>

### Non-Stacking Behaviour

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

<table data-header-hidden><thead><tr><th width="227"></th><th></th></tr></thead><tbody><tr><td>MatchHighestValue</td><td>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 <strong>recommended</strong> option for non-stacking behaviour.</td></tr><tr><td>TakeHighestValue</td><td>Regardless of the durations, use the effect with the highest value.</td></tr><tr><td>TakeHighestDuration</td><td>Regardless of the value, use the effect with the highest duration.</td></tr><tr><td>TakeNewest</td><td>Use the newest effect.</td></tr><tr><td>TakeOldest</td><td>Use the oldest effect.</td></tr></tbody></table>
