EffectDispelMagicAll(int)

Create a Dispel Magic All effect.

effect EffectDispelMagicAll(
    int nCasterLevel
);

Parameters

nCasterLevel

The highest level spell to dispel.


Description

Returns a new effect object that when applied to the target, dispels all spells of equal or lesser level than nCasterLevel.

Dispel magic All checks are meant to be 20 + nCasterLevel, versus every and each spell's effects (good or bad) on the target, against a DC of 11 + the spell’s caster level. Therefore, lesser dispel with a maximum caster bonus of +5, could never dispel anything cast by a level 14 mage.



Remarks

Constructors are special methods that return a new instance of an object. In NWN Script each effect that you can place on an object has it’s own constructor that creates a new instance of the specified effect. This effect object can then be used in an ApplyEffectToObject() Command. See Effect Constructor for more details.


Known Bugs

Dispel Magic seems to be partly broken, as lesser dispel can seemingly dispel stoneskin cast by a level 40 caster, when the highest roll could be 25 (20 on dice + 5 max caster level).


Version

1.22

See Also

categories: Effects Functions | Spells Functions


 author: John Shuell, editor: Jasperre, additional contributor(s): Jasperre
 Send comments on this topic.