EffectSpellFailure(int, int)

Creates an effect that inhibits spells.

effect EffectSpellFailure(
    int nPercent = 100,
    int nSpellSchool = SPELL_SCHOOL_GENERAL
);

Parameters

nPercent

Percent chance of spell failing (0 to 100). (Default: 100)

nSpellSchool

Spell school that is affected (SPELL_SCHOOL_*). (Default: SPELL_SCHOOL_GENERAL)


Description

Returns an effect that has a chance of causing a spell to fail. Spells that are cast and fail are lost. Specific schools of spells may be affected (SPELL_SCHOOL_*) or all schools may be affected (SPELL_SCHOOL_GENERAL). To gurantee that no spell can be successfully cast in an area with this effect, apply the effect with its default parameters.



Remarks

This can be used to create a "magic dead-zone" as per the Time of Troubles (TSR modules FR1 through FR3).


Version

1.30

See Also

categories: Effects Functions
constants: SPELL_SCHOOL_* Constants


 author: Charles Feduke
 Send comments on this topic.