GetEpicSpellSaveDC

From NWN Lexicon
Jump to navigationJump to search


GetEpicSpellSaveDC(object)

Determines the DC needed to save against any epic spell.

int GetEpicSpellSaveDC(
    object oCaster
);

Parameters

oCaster

Caster of an epic spell.


Description

Returns a number that represents the DC needed to save against for an epic spell (20 + relevant ability bonus).

If the oCaster is a placeable, then the Will save field is used as a relevant ability bonus.



Remarks

Note that relevant ability is there count as the highest one so this function is not hundred percent reliable. It will match almost always though.

Only ABILITY_CHARISMA, ABILITY_INTELLIGENCE and ABILITY_WISDOM are tested against.


Requirements

#include " x2_i0_spells "


Version

???

See Also

functions: 

GetSpellSaveDC



author: ShaDoOoW, editor: Mistress