EffectDamageResistance(int, int, int)
Returns a new effect object that makes the target more resistant to certain types of damage.
effect EffectDamageResistance( int nDamageType, int nAmount, int nLimit = 0 );
Parameters
nDamageType
The type of damage to resist as defined in the DAMAGE_TYPE_* constants group.
nAmount
The amount of damage to soak each time the target is damaged.
nLimit
The maximum amount of damage that can ever be soaked by the effect before being dispersed. If set to 0, the effect will be infinite. (Default: 0)
Description
Returns a Damage Resistance effect that removes the first nAmount points of damage of type nDamageType, up to nLimit (or infinite if nLimit is 0).
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: | EffectDamageDecrease | EffectDamageReduction | EffectDamageShield |
categories: | Combat Functions | Effects Functions |
constants: | DAMAGE_TYPE_* Constants |
author: John Shuell
Send comments on this topic.