# StatusEffectData

### Description

StatusEffectDatas contains all of the necessary data to describe a [StatusEffect](https://maraudical.gitbook.io/status-effect-framework/1.6.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>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://maraudical.gitbook.io/status-effect-framework/1.6.0/type-specifics/scriptable-objects/statuseffectdata.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
