Hi all
I'm new to scripting in nwn2, but a long time user, and so far can only modify somewhat apparent effects and numeric modifiers in spell scripts. I was wanting to improve the darkness spell as it is a great spell that used to be so much fun in NWN1 as it really did make you undetectable to foes and made you see as you were blind when not using ultravision.
As it now just creates an area in which all creatures gain 20% concealment, it's just not so useful or fun, so I was thinking instead of changing behavior scripts for all creatures to have reduced detection ranges to make the spell also give regular invisibility upon entering the effect area, much like the spell invisibility globe.
Creatures in the effect are should all become invisible and so if non have see invisibility or a different effect on them it would simulate the blind like behavior.
I attempted to add effect eInvis = EffectInvisibility(INVISI BILITY_TYPE_NORMAL); in the effects description part and ApplyEffectToObject(DURAT ION_TYPE_INSTANT, eInvis, oTarget); in the apply effects part of the script , it compiles but just refuses to give the invisibility effect but still stripes off invisibility, if one steps in enchanted with it, upon exiting the effect area.
I would really like to relive the fun I had with it in NWN2 and think others might as well

, so any help in this is appreciated.