ATTACK_BONUS_* Constant Group
From NWN Lexicon
Jump to navigationJump to searchConstants used to specify which attacks are modified by an EffectAttackIncrease() or EffectAttackDecrease() effect.
Additional Possible Constant Values
As per EffectAttackIncrease there are additional values available to use which are not defined in nwscript.nss but can be added as custom constants:
- ATTACK_BONUS_MISC (0) - Included in nwscript.nss, see below
- ATTACK_BONUS_ONHAND (1) - Included in nwscript.nss, see below
- ATTACK_BONUS_OFFHAND (2) - Included in nwscript.nss, see below
- ATTACK_BONUS_CWEAPON1 (3) - Creature weapon slot 1, equivalent to the claws/whatever item in the slot having the given attack bonus item property for instance.
- ATTACK_BONUS_CWEAPON2 (4) - Creature weapon slot 2, equivalent to the claws/whatever item in the slot having the given attack bonus item property for instance.
- ATTACK_BONUS_CWEAPON3 (5) - Creature weapon slot 3, equivalent to the claws/whatever item in the slot having the given attack bonus item property for instance.
- ATTACK_BONUS_UNARMED (7) - Unarmed bonus, ie; as if it was a gloves or bracers item attack bonus item property for instance.
These are fully functional in all versions of the game.
Constants
Constant | Value | Description |
---|---|---|
ATTACK_BONUS_MISC | 0 | The default attack bonus type for EffectAttackIncrease() and EffectAttackDecrease(), applied to all attacks, regardless of hand used. It stacks up to the attack bonus limit. |
ATTACK_BONUS_OFFHAND | 2 | When used in EffectAttackIncrease() and EffectAttackDecrease(), specifies that the effect applies only to off-hand attacks. This doesn't stack - ie; it acts like a weapons +3 Longsword bonus. Only the highest (between all the effects and the item properties) applies, and the amount will affect damage penetration. |
ATTACK_BONUS_ONHAND | 1 | When used in EffectAttackIncrease() and EffectAttackDecrease(), specifies that the effect applies only to on-hand attacks (i.e., not off-hand attacks). This doesn't stack - ie; it acts like a weapons +3 Longsword bonus. Only the highest (between all the effects and the item properties) applies, and the amount will affect damage penetration. |
See Also
functions: | EffectAttackIncrease, EffectAttackDecrease |