Badwater wrote...
I got a reply that offered the following script:
#include "x2_inc_switches"
#include "nw_i0_plot"
void main()
{
if (GetLocalInt(GetArea(oCaster), "NULL_MAGIC_ZONE") == 1) //Magic Nullification Area
{
SetModuleOverrideSpellScriptFinished();
SendMessageToPC(oCaster, "Your spell disipates before the magical energies conjured forth can manifest any effect.");
}
}
But on the if stamement line I get an ERROR: VARIABLE DEFINED WITHOUT TYPE
My bad - I forgot to define the variable (what's above is a very small snippet from a spellhook script). Should have looked like this:
#include "x2_inc_switches"
#include "nw_i0_plot"
void main()
{
object oCaster = OBJECT_SELF;
if (GetLocalInt(GetArea(oCaster), "NULL_MAGIC_ZONE") == 1) //Magic Nullification Area
{
SetModuleOverrideSpellScriptFinished();
SendMessageToPC(oCaster, "Your spell disipates before the magical energies conjured forth can manifest any effect.");
}
}