DoSpellBreach

From NWN Lexicon
Jump to navigationJump to search


DoSpellBreach(object, int, int, int)

Performs a spell breach; up to nTotal spells are removed and nSR spell resistance is lowered.

void DoSpellBreach(
    object oTarget,
    int nTotal,
    int nSR,
    int nSpellId = -1
);

Parameters

oTarget

Spell target.

nTotal

Maximum spell protections that will be stripped.

nSR

Spell resistance decrease value.

nSpellId

Spell origin Id. (Default: -1)


Description

This function is the impact script for all breach spells. Applies visual effect, decreases the spell resistance and strips up to nTotal spell protections from list defined in GetSpellBreachProtection function. The spell resistance decrease is an extraordinary effect and therefore cannot be dispelled.



Remarks

This function is not custom content compatible.


Requirements

#include " nw_i0_spells "


Version

???

See Also

functions: 

RemoveProtections



author: ShaDoOoW, editors: Mistress, Kolyana