I had originally posted this in another forum:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
I wanted something along the line of this download:
http://nwvault.ign.c...s.Detail&id=282
but it appears that this is a module only for NWN2. I'm assuming so because I cannot open it.
Is there anything out there for NWN1 that will do this; establish a no magic area by way of the area's OnEnter script?
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
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
So I have two questions: 1) How to properly define the variable, and 2) One of the things that attracted me to the download was not only rendering spells ineffective but also making temporary item attributes not work (Darkfire, etc. etc.). Is this script enough to achieve that (and my hunch is no.....)?
Thanks in advance for your input. I'm a builder, not a scripter Jim!
Modifié par Badwater, 20 janvier 2012 - 10:12 .