EffectDamageReduction(int, int, int)
Create a Damage Reduction effect.
effect EffectDamageReduction( int nAmount, int nDamagePower, int nLimit = 0 );
Parameters
nAmount
The amount of damage reduction
nDamagePower
The amount of damage to reduce by as defined in the DAMAGE_POWER_* constants group.
nLimit
How much damage the effect can absorb before disappearing. Set to zero for infinite (Default: 0)
Description
Returns a new effect object that when applied to the target will lower the amount of damage they take. This effect can be dispersed after a set amount of damage has been soaked or it can be infinite.
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: | EffectDamageResistance |
categories: | Combat Functions | Effects Functions |
constants: | DAMAGE_POWER_* Constants |
author: John Shuell
Send comments on this topic.