EffectDamageImmunityDecrease(int, int)

Create a Damage Immunity Decrease effect.

effect EffectDamageImmunityDecrease(
    int nDamageType,
    int nPercentImmunity
);

Parameters

nDamageType

DAMAGE_TYPE_*

nPercentImmunity

The percent amount to lower the targets immunity by.


Description

Returns a new effect object that when applied to a target will lower the amount of immunity the target has against damage when it is done to them by a certain type defined in the DAMAGE_TYPE constants group.



Remarks

Constructors are special methods that return a new instance of an object. In NWN Script each effect that you can place on an object has it’s own constructor that creates a new instance of the specified effect. This effect object can then be used in an ApplyEffectToObject() Command. See Effect Constructor for more details.


Version

1.22

See Also

functions: EffectDamageImmunityIncrease
categories: Effects Functions
constants: DAMAGE_TYPE_* Constants


 author: John Shuell
 Send comments on this topic.