The type of damage - that can or was inflicted, or to be versus for the purposes of AC.
In some cases these values can be combined together - they're essentially bitwise values - such as with EffectACIncrease, however in other cases only one value should be used, such as with EffectDamage.
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() (note: If used in EffectDamage() it defaults back to DAMAGE_TYPE_MAGICAL).
This value however is valid for EffectACIncrease and EffectACDecrease and makes up a special AC_* constant for use in the parameters of the function.
|
|
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.
|
|
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.
|
|
DAMAGE_TYPE_CUSTOM1
|
8192
|
|
DAMAGE_TYPE_CUSTOM2
|
16384
|
|
DAMAGE_TYPE_CUSTOM3
|
32768
|
|
DAMAGE_TYPE_CUSTOM4
|
65536
|
|
DAMAGE_TYPE_CUSTOM5
|
131072
|
|
DAMAGE_TYPE_CUSTOM6
|
262144
|
|
DAMAGE_TYPE_CUSTOM7
|
524288
|
|
DAMAGE_TYPE_CUSTOM8
|
1048576
|
|
DAMAGE_TYPE_CUSTOM9
|
2097152
|
|
DAMAGE_TYPE_CUSTOM10
|
4194304
|
|
DAMAGE_TYPE_CUSTOM11
|
8388608
|
|
DAMAGE_TYPE_CUSTOM12
|
16777216
|
|
DAMAGE_TYPE_CUSTOM13
|
33554432
|
|
DAMAGE_TYPE_CUSTOM14
|
67108864
|
|
DAMAGE_TYPE_CUSTOM15
|
134217728
|
|
DAMAGE_TYPE_CUSTOM16
|
268435456
|
|
DAMAGE_TYPE_CUSTOM17
|
536870912
|
|
DAMAGE_TYPE_CUSTOM18
|
1073741824
|
|
DAMAGE_TYPE_CUSTOM19
|
2147483648
|
|
See Also
Version
This constants group was updated in 1.87.8193.35 of NWN:EE. Added DAMAGE_TYPE_CUSTOM_*.