PRC8/nwn/nwnprc/trunk/newspellbook/shd_noct_vortex.nss
Jaysyn904 6ec137a24e Updated AMS marker feats
Updated AMS marker feats.  Removed arcane & divine marker feats.  Updated Dread Necromancer for epic progression. Updated weapon baseitem models.  Updated new weapons for crafting & npc equip.
 Updated prefix.  Updated release archive.
2024-02-11 14:01:05 -05:00

36 lines
1.3 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
01/03/19 by Stratovarius
Eldritch Vortex
At 10th level, you can emit mystic energies in a 20-foot-radius burst around yourself. Any creature other than you within that area takes a 4 penalty to caster level for any
mysteries, spells, or spell-like abilities it casts or uses. The vortex lasts 1 minute and can be used once per day.
*/
#include "shd_inc_shdfunc"
#include "shd_mysthook"
void main()
{
object oShadow = OBJECT_SELF;
object oTarget = PRCGetSpellTargetObject();
location lTarget = GetLocation(oShadow);
effect eImplode= EffectVisualEffect(VFX_DUR_ANTILIFE_SHELL);
effect eVis = EffectVisualEffect(VFX_IMP_NEGBLAST_ENERGY);
//Apply the implode effect
ApplyEffectAtLocation(DURATION_TYPE_TEMPORARY, eImplode, lTarget, 3.0);
//Get the first target in the shape
oTarget = MyFirstObjectInShape(SHAPE_SPHERE, FeetToMeters(20.0), lTarget);
while (GetIsObjectValid(oTarget))
{
if (oTarget != oShadow)
{
ApplyEffectToObject(DURATION_TYPE_INSTANT, eVis, oTarget);
SetLocalInt(oTarget, "EldritchVortex", TRUE);
DelayCommand(60.0, DeleteLocalInt(oTarget, "EldritchVortex"));
}
//Get next target in the shape
oTarget = MyNextObjectInShape(SHAPE_SPHERE, FeetToMeters(20.0), lTarget);
}
}