/* 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 */ //Goes OnPerceived of a creature void main() { object oPC = GetLastPerceived(); if (!GetIsPC(oPC)) return; if (!GetLastPerceptionSeen()) return; ActionSpeakString("Leave us alone. Have we not suffered enough at the hands of mortals?"); object oTarget; oTarget = OBJECT_SELF; //Visual effects can't be applied to waypoints, so if it is a WP //the VFX will be applied to the WP's location instead int nInt; nInt = GetObjectType(oTarget); effect eEffect; eEffect = EffectVisualEffect(VFX_FNF_HOWL_MIND); if (nInt != OBJECT_TYPE_WAYPOINT) DelayCommand(1.0, ApplyEffectToObject(DURATION_TYPE_INSTANT, eEffect, oTarget)); else DelayCommand(1.0, ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eEffect, GetLocation(oTarget))); DelayCommand(1.0, DestroyObject(oTarget, 3.0)); }