EffectDispelMagicBest(int)

Create a Dispel Magic Best effect.

effect EffectDispelMagicBest(
    int nCasterLevel
);

Parameters

nCasterLevel

The highest level of spell to Dispel.


Description

Returns a new effect object that when applied to a target will dispel the highest level spell effect on them up to nCasterLevel.

Dispel magic Best checks are meant to be 20 + nCasterLevel, versuseach spell's effects (good or bad) on the target, until one is passed and a spell removed. The DC is 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.

This version of dispel magic is used for Area-of-effect hits.



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.