Gaming
 

EffectDamage

From NWNWiki

EffectDamage() is a NWScript function that creates an effect that will damage whatever it is applied to. This effect can be applied to anything with hit pointscreatures, placeables, and doors. It must be applied instantly (not temporarily or permanently).

[edit] Definition

effect EffectDamage (int nDamageAmount, int nDamageType,
int nDamagePower=DAMAGE_POWER_NORMAL)

int nDamageAmount 
The amount of damage to be dealt.
int nDamageType 
A DAMAGE_TYPE_* constant indicating the damage type.
int nDamagePower 
A DAMAGE_POWER_* constant indicating the damage reduction this damage can pierce. This is ignored for non-physical damage.

[edit] Known bugs

  • The third parameter is ignored in all cases. Any physical damage inflicted by this effect will be reduced by any degree of damage reduction.

[edit] See also