EFFECT_TYPE_* Constant Group

From NWN Lexicon
Jump to: navigation, search

Constants that reflect the different effects that can be applied to creatures. These are returned by GetEffectType.

Remarks

There are a number of effects which return EFFECT_TYPE_INVALID, as well as those created in the game engine by feats. Examples of temporary/permanent ones are:

  • EffectKnockdown is EFFECT_TYPE_INVALID in all use cases
    • FEAT_KNOCKDOWN applies a (default 4.5 second duration) EffectKnockdown() with effect subtype 0 (not Magic, Supernatural or Extraordinary) which is EFFECT_TYPE_INVALID
  • Taunt applies a (default 30 second duration) medley of effects with effect subtype 0 which is EFFECT_TYPE_INVALID
  • EffectSummonCreature for some reason doesn't have any effect type, even though EffectSwarm does. There are a number of GetEffectX properties that can be used to identify it.
  • EffectModifyAttacks has no type assigned
  • EffectCutsceneDominated - will not return EFFECT_TYPE_DOMINATED and there is no version for it in the effect return list. It's internal state value is 28 for GetEffectInteger.

Some instantly-applied effects should be checkable when constructed (eg; eDaze = EffectDaze(); GetEffectType(eDaze) == EFFECT_TYPE_DAZED) but are returned as invalid:

Note: Permanent item effects - eg Haste, Regenerate, Attack Bonuses can't be retrieved from parsing the creature effects. It only returns temporarily applied ones.

Constants

Orange highlighted cells are unused by the game. See the Description for why.

Constant Value Description
EFFECT_TYPE_ABILITY_DECREASE 39 EffectAbilityDecrease
EFFECT_TYPE_ABILITY_INCREASE 38 EffectAbilityIncrease
EFFECT_TYPE_AC_DECREASE 47 EffectACDecrease
EFFECT_TYPE_AC_INCREASE 46 EffectACIncrease
EFFECT_TYPE_ARCANE_SPELL_FAILURE 18 Not EffectSpellFailure - see EFFECT_TYPE_SPELL_FAILURE below, this is the arcane "armour affects casting only" variant you can apply as an item property: ItemPropertyArcaneSpellFailure. It is valid but you can't create this effect usually, but oddly can appear when Taunt is applied so there is one case you can see it in use.
EFFECT_TYPE_AREA_OF_EFFECT 20 EffectAreaOfEffect although they do tend to create objects.
EFFECT_TYPE_ATTACK_DECREASE 41 EffectAttackDecrease
EFFECT_TYPE_ATTACK_INCREASE 40 EffectAttackIncrease
EFFECT_TYPE_BEAM 21 EffectBeam (visual effect)
EFFECT_TYPE_BLINDNESS 67 EffectBlindness
EFFECT_TYPE_CHARMED 23 EffectCharmed
EFFECT_TYPE_CONCEALMENT 72 EffectConcealment
EFFECT_TYPE_CONFUSED 24 EffectConfused
EFFECT_TYPE_CURSE 33 EffectCurse
EFFECT_TYPE_CUTSCENE_PARALYZE 80 EffectCutsceneParalyze
EFFECT_TYPE_CUTSCENEGHOST 83 EffectCutsceneGhost
EFFECT_TYPE_CUTSCENEIMMOBILIZE 84 EffectCutsceneImmobilize
EFFECT_TYPE_DAMAGE_DECREASE 43 EffectDamageDecrease
EFFECT_TYPE_DAMAGE_IMMUNITY_DECREASE 45 EffectDamageImmunityDecrease
EFFECT_TYPE_DAMAGE_IMMUNITY_INCREASE 44 EffectDamageImmunityIncrease
EFFECT_TYPE_DAMAGE_INCREASE 42 EffectDamageIncrease
EFFECT_TYPE_DAMAGE_REDUCTION 7 EffectDamageReduction
EFFECT_TYPE_DAMAGE_RESISTANCE 1 EffectDamageResistance
EFFECT_TYPE_DARKNESS 58 EffectDarkness
EFFECT_TYPE_DAZED 28 EffectDazed
EFFECT_TYPE_DEAF 13 EffectDeaf
EFFECT_TYPE_DISAPPEARAPPEAR 75 EffectDisappearAppear
EFFECT_TYPE_DISEASE 32 EffectDisease
EFFECT_TYPE_DISPELMAGICALL 59 EffectDispelMagicAll
EFFECT_TYPE_DISPELMAGICBEST 69 EffectDispelMagicBest
EFFECT_TYPE_DOMINATED 26 EffectDominated and probably EffectCutsceneDominated
EFFECT_TYPE_ELEMENTALSHIELD 60 EffectDamageShield
EFFECT_TYPE_ENEMY_ATTACK_BONUS 17 Apparently this effect does exist in the engine but there is no constructor, and the effect is not used by the game as far as we know, so it essentially is not available for use and you won't see it under normal circumstances.
EFFECT_TYPE_ENTANGLE 11 EffectEntangle
EFFECT_TYPE_ETHEREAL 81 An effect constructed with EffectEthereal which is a special kind of EffectSanctuary.
EFFECT_TYPE_FRIGHTENED 25 EffectFrightened
EFFECT_TYPE_HASTE 36 EffectHaste. Note since Boots of Haste won't apply an searchable effect, you must search item properties to find it.
EFFECT_TYPE_IMMUNITY 15 EffectImmunity. Check what specific type with GetEffectInteger.
EFFECT_TYPE_IMPROVEDINVISIBILITY 57 Invalid constant - never returned by GetEffectType. See EffectInvisibility and use GetEffectInteger for the type.
EFFECT_TYPE_INVALIDEFFECT 0 This is returned for several real effects, and shouldn't be trusted to mean "a really invalid effect" (the engine won't usually create those). Some constructors have no equivalent - usually instantly applied ones. See remarks at the top of the page.
EFFECT_TYPE_INVISIBILITY 56 EffectInvisibility - all 3 variants. See the function page and use GetEffectInteger for the type of invisibility.
EFFECT_TYPE_INVULNERABLE 12 Unknown - no constructor - thus invalid. Presumably Bioware used effects to make creatures invulnerable at some stage, but now you can use the plot flag.
EFFECT_TYPE_MISS_CHANCE 71 EffectMissChance
EFFECT_TYPE_MOVEMENT_SPEED_DECREASE 49 EffectMovementSpeedDecrease
EFFECT_TYPE_MOVEMENT_SPEED_INCREASE 48 EffectMovementSpeedIncrease
EFFECT_TYPE_NEGATIVELEVEL 61 EffectNegativeLevel
EFFECT_TYPE_PARALYZE 27 EffectParalyze
EFFECT_TYPE_PETRIFY 79 EffectPetrify
EFFECT_TYPE_POISON 31 EffectPoison
EFFECT_TYPE_POLYMORPH 62 EffectPolymorph
EFFECT_TYPE_REGENERATE 3 EffectRegenerate
EFFECT_TYPE_RESURRECTION 14 EffectResurrection
EFFECT_TYPE_RUNSCRIPT 85 EffectRunScript
EFFECT_TYPE_SANCTUARY 63 EffectSanctuary
EFFECT_TYPE_SAVING_THROW_DECREASE 51 EffectSavingThrowDecrease
EFFECT_TYPE_SAVING_THROW_INCREASE 50 EffectSavingThrowIncrease
EFFECT_TYPE_SEEINVISIBLE 65 EffectSeeInvisible
EFFECT_TYPE_SILENCE 34 EffectSilence
EFFECT_TYPE_SKILL_DECREASE 55 EffectSkillDecrease
EFFECT_TYPE_SKILL_INCREASE 54 EffectSkillIncrease
EFFECT_TYPE_SLEEP 30 EffectSleep
EFFECT_TYPE_SLOW 37 EffectSlow
EFFECT_TYPE_SPELL_FAILURE 82 EffectSpellFailure
EFFECT_TYPE_SPELL_IMMUNITY 73 EffectSpellImmunity
EFFECT_TYPE_SPELL_RESISTANCE_DECREASE 53 EffectSpellResistanceDecrease
EFFECT_TYPE_SPELL_RESISTANCE_INCREASE 52 EffectSpellResistanceIncrease
EFFECT_TYPE_SPELLLEVELABSORPTION 68 EffectSpellLevelAbsorption
EFFECT_TYPE_STUNNED 29 EffectStunned
EFFECT_TYPE_SWARM 76 EffectSwarm
EFFECT_TYPE_TEMPORARY_HITPOINTS 9 EffectTemporaryHitpoints
EFFECT_TYPE_TIMESTOP 66 EffectTimeStop
EFFECT_TYPE_TRUESEEING 64 EffectTrueSeeing
EFFECT_TYPE_TURN_RESISTANCE_DECREASE 77 EffectTurnResistanceDecrease
EFFECT_TYPE_TURN_RESISTANCE_INCREASE 78 EffectTurnResistanceIncrease
EFFECT_TYPE_TURNED 35 EffectTurned
EFFECT_TYPE_ULTRAVISION 70 EffectUltravision
EFFECT_TYPE_VISUALEFFECT 74 EffectVisualEffect


Version

This constants group was updated in 1.84.8193.29 of NWN:EE. It added EFFECT_TYPE_RUNSCRIPT.

See Also

functions:  GetEffectType RemoveSpecificEffect