# StatusEffectData

<figure><picture><source srcset="https://709100392-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGGK3nONLuzPS3DMb5SFp%2Fuploads%2FHvCKqm7erdfCOo6bmuCf%2Fd_StatusEffectData%20Icon.png?alt=media&#x26;token=e6957f52-4729-42e1-a5ce-c8961e6d28fe" media="(prefers-color-scheme: dark)"><img src="https://709100392-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGGK3nONLuzPS3DMb5SFp%2Fuploads%2FZHgWZRCQ8Hj435YCK2GY%2FStatusEffectData%20Icon.png?alt=media&#x26;token=a4eef082-7837-459b-983a-71ae6ee832f4" alt=""></picture><figcaption></figcaption></figure>

### Description

StatusEffectDatas contains all of the necessary data to describe a [StatusEffect](https://maraudical.gitbook.io/status-effect-framework/1.7.0/type-specifics/classes/statuseffect).

### 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 Status Effect group. Multiple groups can be selected.</td></tr><tr><td>comparableName</td><td>The <a href="comparablename">ComparableName</a> that groups similar effects together.</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="../classes/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="../classes/statuseffect">StatusEffect</a> is added. See below for more information.</td></tr><tr><td>maxStack</td><td>The maximum stack that can be added to a <a href="https://docs.unity3d.com/ScriptReference/MonoBehaviour.html">MonoBehaviour</a>.</td></tr><tr><td>effects</td><td>The list of <a href="statuseffectdata/effect">Effects</a>.</td></tr><tr><td>conditions</td><td>The list of <a href="../classes/conditional">Conditionals</a>.</td></tr><tr><td>customEffect</td><td>The <a href="module">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>
