IMMUNITY_TYPE_* Constant Group

From NWN Lexicon
Jump to navigationJump to search

Constants to identify different immunities that creatures could possible have, searchable with GetIsImmune.

You can create scripted ones with EffectImmunity and some of these as an item property with ItemPropertyImmunityMisc (see IP_CONST_IMMUNITYMISC_*).

Several functions also apply these immunities.

Note one major exception in this list is there is no direct immunity to EffectPetrify.

Several immunities have some kind of bypass versions or cases where immunities are limited and should be noted on their effect pages.

Being Plot or Immortal does also make you immune to many/all of these effects, but they're not coded as having the immunities inherently.

Note: IMMUNITY_TYPE_NONE (0) is actually really IMMUNITY_TYPE_ALL and will apply total immunity to all of these immunity types if combined with EffectImmunity.

Constants

Constant Value Description
IMMUNITY_TYPE_ABILITY_DECREASE 19
Specifies immunity to effects that decrease abilities, primarily EffectAbilityDecrease, which affects how some poisons, curses etc. apply ability damage.
IMMUNITY_TYPE_AC_DECREASE 23
Specifies immunity to effects that decrease armor class, EffectACDecrease.
IMMUNITY_TYPE_ATTACK_DECREASE 20
Specifies immunity to effects that decrease attack (to hit bonus), EffectAttackDecrease.
IMMUNITY_TYPE_BLINDNESS 7
Specifies immunity to blindness, EffectBlindness.
IMMUNITY_TYPE_CHARM 14
Specifies immunity to charm, EffectCharmed.
IMMUNITY_TYPE_CONFUSED 16
Specifies immunity to confusion, EffectConfused.
IMMUNITY_TYPE_CRITICAL_HIT 31
Specifies immunity to critical hits.
IMMUNITY_TYPE_CURSED 17
Specifies immunity to curses, EffectCurse.
IMMUNITY_TYPE_DAMAGE_DECREASE 21
Specifies immunity to effects that decrease damage on melee/ranged attacks, EffectDamageDecrease.
IMMUNITY_TYPE_DAMAGE_IMMUNITY_DECREASE 22
Specifies immunity to effects that decrease immunity to damage, EffectDamageImmunityDecrease.
IMMUNITY_TYPE_DAZED 18
Specifies immunity to daze, EffectDazed.
IMMUNITY_TYPE_DEAFNESS 8
Specifies immunity to deafness, EffectDeaf.
IMMUNITY_TYPE_DEATH 32
Specifies immunity to instant death effects, EffectDeath. However it should only be instant magical death effects from spells, but even that has exceptions such as Weird.
IMMUNITY_TYPE_DISEASE 3
Specifies immunity to disease, EffectDisease.
IMMUNITY_TYPE_DOMINATE 15
Specifies immunity to domination, EffectDominated. Note it will not stop the special case of Control Undead, or EffectCutsceneDominated.
IMMUNITY_TYPE_ENTANGLE 10
Specifies immunity to entanglement, EffectEntangle.
IMMUNITY_TYPE_FEAR 4
Specifies immunity to fear, EffectFrightened. Note it won't stop EffectTurned.
IMMUNITY_TYPE_KNOCKDOWN 28
Specifies immunity to knockdown, EffectKnockdown.
IMMUNITY_TYPE_MIND_SPELLS 1
Specifies immunity to mind spells. This should stop Confusion, Charm, Domination, Fear.
IMMUNITY_TYPE_MOVEMENT_SPEED_DECREASE 24
Specifies immunity to effects that decrease movement speed, EffectMovementSpeedDecrease.
IMMUNITY_TYPE_NEGATIVE_LEVEL 29
Specifies immunity to level drains, EffectNegativeLevel.
IMMUNITY_TYPE_NONE 0
This is actually wrong - it really is "IMMUNITY_TYPE_ALL" - if used in EffectImmunity it'll provide all of these immunities!
IMMUNITY_TYPE_PARALYSIS 6
Specifies immunity to paralysis, EffectParalyze.
IMMUNITY_TYPE_POISON 2
Specifies immunity to poison, EffectPoison.
IMMUNITY_TYPE_SAVING_THROW_DECREASE 25
Specifies immunity to effects that decrease saving throws, EffectSavingThrowDecrease.
IMMUNITY_TYPE_SILENCE 11
Specifies immunity to silence, EffectSilence.
IMMUNITY_TYPE_SKILL_DECREASE 27
Specifies immunity to effects that decrease skills, EffectSkillDecrease.
IMMUNITY_TYPE_SLEEP 13
Specifies immunity to sleep, EffectSleep.
IMMUNITY_TYPE_SLOW 9
Specifies immunity to slow, EffectSlow.
IMMUNITY_TYPE_SNEAK_ATTACK 30
Specifies immunity to sneak attacks.
IMMUNITY_TYPE_SPELL_RESISTANCE_DECREASE 26
Specifies immunity to effects that decrease spell resistance, EffectSpellResistanceDecrease.
IMMUNITY_TYPE_STUN 12
Specifies immunity to being stunned, EffectStunned.
IMMUNITY_TYPE_TRAP 5
Specifies immunity to traps. It means you can walk on trapped triggers without it going off and should be able to open trapped placeables and doors, and in save functions like ReflexSave passing SAVING_THROW_TYPE_TRAP returns immunity, but you're not inherently immune to trap damage or effects (from a traps AOE for instance set of by someone else) due to the Bioware default trap coding.


See Also

functions: 

GetIsImmune

EffectImmunity