GetReflexAdjustedDamage

From NWN Lexicon

Contents

[edit] GetReflexAdjustedDamage(int, object, int, int, object)

Determines the damage to be applied after saving throws are applied.

int GetReflexAdjustedDamage(
    int nDamage,
    object oTarget,
    int nDC,
    SAVING_THROW_TYPE_NONE,
    object oSaveVersus = OBJECT_SELF
);

[edit] Parameters

nDamage

The full damage that would be applied if no adjustments were made.

oTarget

The target of the damage.

nDC

The DC needed to avoid (or reduce) the damage. The function GetSpellSaveDC could be used for this value.

nSaveType

SAVING_THROW_TYPE_NONE )

oSaveVersus

The source of the potential damage (Default: OBJECT_SELF)


[edit] Description

Returns how much of nDamage that oTarget should receive after nDamage has been adjusted for reflex and evasion saving throws.



[edit] Remarks

This function can be used in scripts that simulate new effect like custom traps or special abilites by taking the reflex and evasion saves into consideration as is prescribed by D&D rules.


[edit] Version

1.22

[edit] See Also

functions: 

GetSpellSaveDC

constants: 

SAVING_THROW_TYPE_* Constants



 author: Tom Cassiotis
 

Personal tools
Categories