Is there any way to turn this script into an area effect script?
I would like it to effect multiple creatures at one time.
/* Script generated by
Lilac Soul's NWN Script Generator, v. 2.3
For download info, please visit:
http://nwvault.ign.com/View.php?view=Other.Detail&id=4683&id=625 */
void main()
{
object oPC;
if ((GetObjectType(GetItemActivatedTarget())!=OBJECT_TYPE_CREATURE)
){
SendMessageToPC(GetItemActivator(), "Improper use of item!");
return;}
oPC = GetItemActivator();
object oTarget;
oTarget = GetItemActivatedTarget();
effect eEffect;
eEffect = EffectSpellFailure(100, SPELL_SCHOOL_GENERAL);
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eEffect, oTarget, 60.0f);
eEffect = EffectSpellFailure(100, SPELL_SCHOOL_ABJURATION);
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eEffect, oTarget, 60.0f);
eEffect = EffectSpellFailure(100, SPELL_SCHOOL_CONJURATION);
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eEffect, oTarget, 60.0f);
eEffect = EffectSpellFailure(100, SPELL_SCHOOL_DIVINATION);
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eEffect, oTarget, 60.0f);
eEffect = EffectSpellFailure(100, SPELL_SCHOOL_ENCHANTMENT);
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eEffect, oTarget, 60.0f);
eEffect = EffectSpellFailure(100, SPELL_SCHOOL_EVOCATION);
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eEffect, oTarget, 60.0f);
eEffect = EffectSpellFailure(100, SPELL_SCHOOL_ILLUSION);
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eEffect, oTarget, 60.0f);
eEffect = EffectSpellFailure(100, SPELL_SCHOOL_NECROMANCY);
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eEffect, oTarget, 60.0f);
eEffect = EffectSpellFailure(100, SPELL_SCHOOL_TRANSMUTATION);
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eEffect, oTarget, 60.0f);
ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_HOWL_WAR_CRY), oPC);
}