DAMAGE_TYPE_* Constant Group

The type of damage that can be inflicted.



Constants

ConstantValueDescription
DAMAGE_TYPE_ACID16
Damage inflicted by acid.
DAMAGE_TYPE_BASE_WEAPON4096
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_BLUDGEONING1
Damage inflicted by bludgeoning (eg. club).
DAMAGE_TYPE_COLD32
Damage inflicted by cold and cold based attacks.
DAMAGE_TYPE_DIVINE64
Damage inflicted by divine based attacks.
DAMAGE_TYPE_ELECTRICAL128
Damage inflicted by electrical based attacks.
DAMAGE_TYPE_FIRE256
Damage inflicted by fire and fire based attacks.
DAMAGE_TYPE_MAGICAL8
Damage inflicted by magical effects.
DAMAGE_TYPE_NEGATIVE512
Damage inflicted by negative attacks.
DAMAGE_TYPE_PIERCING2
Damage inflicted by piercing attacks. Value = 2.
DAMAGE_TYPE_POSITIVE1024
Damage inflicted by positive attacks.
DAMAGE_TYPE_SLASHING4
Damage dealt from a slashing weapon, such as a sword or hand axe.
DAMAGE_TYPE_SONIC2048
Damage inflicted by sonic attacks.

See Also

functions: EffectACDecrease | EffectACIncrease | EffectDamage | EffectDamageDecrease | EffectDamageImmunityDecrease | EffectDamageImmunityIncrease | EffectDamageIncrease | EffectDamageResistance | EffectDamageShield | GetDamageDealtByType