UnyieldingEffect(effect)
Set the subtype of eEffect to Unyielding and return eEffect.
effect UnyieldingEffect(
effect eEffect
);
Parameters
- eEffect
- The input effect to return an unyielding version of.
Description
Set the subtype of eEffect to SUBTYPE_UNYIELDING and return eEffect.
Unyielding effects are not removed by resting, death or dispel magic, only by RemoveEffect().
Note: effects that modify state, Stunned/Knockdown/Deaf etc, WILL be removed on death. This should be the full list of these effects removed on death regardless: EffectKnockdown, EffectParalyze, EffectSleep, EffectCharmed, EffectConfused, EffectFrightened, EffectTurned, EffectDominated, EffectDazed, EffectStunned, EffectCutsceneParalyze, EffectCutsceneDominated, EffectCutsceneImmobilize, EffectEntangle, EffectPacified, EffectPetrify, EffectDeaf, EffectSilence, EffectEntangle.
Remarks
Effects usually default to magical if the subtype is not set.
Additionally while this allows persistence during death, it will not bypass effects not applying to dead creatures (which is reasonably common across effects in general) so negative effects of dying - for instance - should be applied when a creature is raised from the dead not while they are dead.
Effect Subtype overview:
| Effect Subtype | Duration Type | Dispellable | Removed by Resting if effect on self | Removed by Resting if effect cast by self (on any object) | Removed by Dying if effect on self |
|---|---|---|---|---|---|
| Magical | Any | ✓ | ✓ | ✓ | ✓ |
| Extraordinary | Any | ✖ | ✓ | ✖ | ✓ |
| Supernatural | Temporary | ✖ | ✓ | ✖ | ✓ |
| Supernatural | Permanent | ✖ | ✖ | ✖ | ✓ |
| Unyielding | Any | ✖ | ✖ | ✖ | ✖ |
| Item Properties | Temporary | ✖ | ✖ | ✓ | ✖ |
| Item Properties | Permanent | ✖ | ✖ | ✖ | ✖ |
Version
This function was added in 1.87.8193.35 of NWN:EE.
Example
See Also
| functions: |
MagicalEffect ExtraordinaryEffect() IgnoreEffectImmunity() SupernaturalEffect() |
| constants: |
author: Shadguy, additional contributor(s): Cjreek