FANDOM


The DAMAGE_TYPE_* constants are used in NWScript to indicate the damage type to which certain effects will apply or for which information will be gathered. This is a bit field, which allows constants to be combined with a bitwise-or (|), although in most cases this is not an option due to the nature of the commands accepting these constants.

Damage type constants
constant damage type
DAMAGE_TYPE_ACID acid damage
DAMAGE_TYPE_BASE_WEAPON the damage type of the weapon wielded
DAMAGE_TYPE_BLUDGEONING bludgeoning damage
DAMAGE_TYPE_COLD cold damage
DAMAGE_TYPE_DIVINE divine damage
DAMAGE_TYPE_ELECTRICAL electrical damage
DAMAGE_TYPE_FIRE fire damage
DAMAGE_TYPE_MAGICAL magical damage
DAMAGE_TYPE_NEGATIVE negative energy damage
DAMAGE_TYPE_PIERCING piercing damage
DAMAGE_TYPE_POSITIVE positive energy damage
DAMAGE_TYPE_SLASHING slashing damage
DAMAGE_TYPE_SONIC sonic damage

There is also a special constant called AC_VS_DAMAGE_TYPE_ALL for use with armor class effects. This constant is the (bitwise-or) combination of the bludgeoning, piercing, slashing, and base weapon DAMAGE_TYPE_* constants (so it can be used wherever a combination of DAMAGE_TYPE_* constants is allowed).

See alsoEdit

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.