EffectAttackDecrease(int, int)

Create an Attack Decrease effect.

effect EffectAttackDecrease(
    int nPenalty,
    int nModifierType = ATTACK_BONUS_MISC
);

Parameters

nPenalty

nModifierType

ATTACK_BONUS_* (Default: ATTACK_BONUS_MISC)


Description

Returns a new effect object that when applied to a creature, will decrease their attack bonus in their main hand, off hand or both hands by a certain amount.



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: EffectAbilityDecrease | EffectAbilityIncrease | EffectACDecrease | EffectACIncrease | EffectAppear | EffectAttackIncrease | EffectDamageDecrease | EffectDamageIncrease | EffectLinkEffects
categories: Effects Functions
constants: ATTACK_BONUS_* Constants


 author: John Shuell
 Send comments on this topic.