EffectDamageImmunityIncrease(int, int)

Creates a Damage Immunity Increase effect

effect EffectDamageImmunityIncrease(
    int nDamageType,
    int nPercentImmunity
);

Parameters

nDamageType

DAMAGE_TYPE_*

nPercentImmunity

The percent amount to raise the targets immunity by.


Description

Returns a new effect object that when applied to a target will raise 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: EffectDamageImmunityDecrease
categories: Effects Functions
constants: DAMAGE_TYPE_* Constants


 author: John Shuell
 Send comments on this topic.