SUBTYPE_* Constant Group

From NWN Lexicon
Jump to navigationJump to search

Effect subtypes returned by GetEffectSubType and changed before applying with ExtraordinaryEffect, MagicalEffect (or default if left alone), SupernaturalEffect and UnyieldingEffect.



Constants

Constant Value Description
Engine-only 0
This value is used for a few effects applied by the engine - notably SKILL_TAUNT, FEAT_KNOCKDOWN, FEAT_CALLED_SHOT (both variants), FEAT_CRIPPLING_STRIKE and Wounding from the item property.

It's also the default subtype of EffectSpellFailure (a known bug).

This subtype cannot be used in nwscript however, since effects usually will start as magical.

SUBTYPE_EXTRAORDINARY 24
"Extraordinary abilities are non-magical. They are, however, not something that just anyone can do or even learn to do without extensive training (Which, in game terms, means to take a new character class). A monk's ability to evade attacks and a barbarian's uncanny dodge are extraordinary abilities. Effects or areas that negate or disrupt magic have no effect on extraordinary abilities." Dungeon Master's Guide v3.5 - page 289. ExtraordinaryEffect versions of effects are removed by resting regardless of the duration, but not by EffectDispelMagicAll or EffectDispelMagicBest.

Some engine-applied effects use this - On Hit: EffectAbilityDecrease (if a normal weapon ability), On Hit: EffectNegativeLevel (if a normal weapon ability).

SUBTYPE_MAGICAL 8
Default subtype for effects. MagicalEffect versions of effects are removed by resting regardless of the duration, and can be dispelled as normal by EffectDispelMagicAll or EffectDispelMagicBest.

Most effects default to this type.

SUBTYPE_SUPERNATURAL 16
"Supernatural abilites are magical but not spell-like. This far-reaching category includes the basilisk's petrifying stare, the monk's ki strike, and the shoul's paralytic touch. Supernatural abilities are not subject to spell resistance and do not function in areas were magic is suppressed or negated (such as an antimagic field). A supernatural ability's effect cannot be dispelled and is not subject to counterspells." Dungeon Master's Guide v3.5 - page 289.

SupernaturalEffect versions of effects are removed by resting if temporary, but not if permanent, and cannot be dispelled by EffectDispelMagicAll or EffectDispelMagicBest.

Some engine-applied effects use this - FEAT_STUNNING_FIST, SKILL_ANIMAL_EMPATHY, On Hit: EffectAbilityDecrease (if a monster hit ability), On Hit: EffectDisease and On Hit: EffectNegativeLevel.

EffectTurned and EffectDisease also always default to this.

SUBTYPE_UNYIELDING 32
New subtype for effects in Enhanced Edition. UnyieldingEffect versions of 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.


See Also

functions: 

GetEffectSubType ExtraordinaryEffect MagicalEffect SupernaturalEffect UnyieldingEffect


Version

This constants group was updated in 1.87.8193.35 of NWN:EE. Added SUBTYPE_UNYIELDING.