EffectModifyAttacks(int)

Create a Modify Attacks effect that adds attacks to the target.

effect EffectModifyAttacks(
    int nAttacks
);

Parameters

nAttacks

maximum is 5, even with the effect stacked


Description

Returns a new effect object that when applied to a target will add attacks.

Returns an effect of type EFFECT_TYPE_INVALIDEFFECT if nAttacks > 5.

As the limit to nAttacks is 5, it is wise to think that multiple effects will limit bonus attacks to 5, even if 2 EffectModifyAttacks(3); are applied to the same creature.

An extra attack doesn't change spellcasting times (as haste does) but just adds 1 or more full-base-attack-bonus attack, which is visible on the character sheet.



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

categories: Combat Actions Functions | Effects Functions
constants: EFFECT_TYPE_* Constants


 author: John Shuell, editor: Jasperre
 Send comments on this topic.