Damage type

From NWN Lexicon

[edit] DAMAGE_TYPE_* Constant Group

The type of damage that can be inflicted.



[edit] Constants

Constant Value Description
DAMAGE_TYPE_ACID 16
Damage inflicted by acid.
DAMAGE_TYPE_BASE_WEAPON 4096
In the words of "nwscript.nss", although it is not mentioned in the 1.64 patch notes: The base weapon damage is the base damage delivered by the weapon before any additional types of damage (e.g. fire) have been added. This is to be used only with GetDamageDealtByType(), and is not valid for EffectDamage().
DAMAGE_TYPE_BLUDGEONING 1
Damage inflicted by bludgeoning (eg. club).
DAMAGE_TYPE_COLD 32
Damage inflicted by cold and cold based attacks.
DAMAGE_TYPE_DIVINE 64
Damage inflicted by divine based attacks.
DAMAGE_TYPE_ELECTRICAL 128
Damage inflicted by electrical based attacks.
DAMAGE_TYPE_FIRE 256
Damage inflicted by fire and fire based attacks.
DAMAGE_TYPE_MAGICAL 8
Damage inflicted by magical effects.
DAMAGE_TYPE_NEGATIVE 512
Damage inflicted by negative attacks.
DAMAGE_TYPE_PIERCING 2
Damage inflicted by piercing attacks. Value = 2.
DAMAGE_TYPE_POSITIVE 1024
Damage inflicted by positive attacks.
DAMAGE_TYPE_SLASHING 4
Damage dealt from a slashing weapon, such as a sword or hand axe.
DAMAGE_TYPE_SONIC 2048
Damage inflicted by sonic attacks.


[edit] See Also

functions: 

GetDamageDealtByType


Personal tools
Categories