void DoMindDrain (object oTarget); void main() { int nEvent = GetUserDefinedEventNumber(); if (nEvent == 50) { SpeakString("*The fungus reacts to your presence*"); // Do the spell effect //Declare major variables object oCaster = OBJECT_SELF; effect eExplode = EffectVisualEffect(VFX_FNF_GAS_EXPLOSION_GREASE); effect eAoe=EffectAreaOfEffect(AOE_PER_STONEHOLD,"jw_parmold_ent","jw_parmold_hb","jw_empty_script"); float fDelay; float fDist; int nSave; float fDuration; ///Get the spell target location as opposed to the spell target. location lTarget = GetLocation(OBJECT_SELF); ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eExplode, lTarget); ApplyEffectAtLocation(DURATION_TYPE_TEMPORARY, eAoe, lTarget,90.0); } }