Battledale_PRC8/_module/nss/jw_parmold_usd.nss

35 lines
787 B
Plaintext
Raw Permalink Normal View History

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);
}
}