//:://///////////////////////////////////////////// //:: Custom User Defined Event //:: FileName //:: Copyright (c) 2001 Bioware Corp. //::////////////////////////////////////////////// /* */ //::////////////////////////////////////////////// //:: Created By: //:: Created On: //::////////////////////////////////////////////// void main() { int nUser = GetUserDefinedEventNumber(); effect nBoom = EffectVisualEffect(VFX_FNF_WAIL_O_BANSHEES); effect nBoom2 = EffectVisualEffect(VFX_FNF_STORM); effect nBoom3 = EffectVisualEffect(VFX_FNF_SCREEN_BUMP); if(nUser == 1001) //HEARTBEAT { } else if(nUser == 1002) // PERCEIVE { object oAttacker=GetLastPerceived(); location lLoc=GetLocation(oAttacker); if ((GetLocalInt(OBJECT_SELF,"hench")!=2)&&(GetIsEnemy(GetLastPerceived(),OBJECT_SELF))) { SetFacingPoint(GetPosition(oAttacker)); PlayAnimation(ANIMATION_LOOPING_CONJURE1, 1.0, 2.0); PlayVoiceChat(VOICE_CHAT_BATTLECRY2); ApplyEffectAtLocation(DURATION_TYPE_INSTANT,EffectSummonCreature("tri_pitfiendlord",VFX_FNF_SUMMON_GATE,3.0),lLoc); SetLocalInt(OBJECT_SELF,"hench",2); } } else if(nUser == 1003) // END OF COMBAT { } else if(nUser == 1004) // ON DIALOGUE { } else if(nUser == 1005) // ATTACKED { } else if(nUser == 1006) // DAMAGED { } else if(nUser == 1007) // DEATH { SpeakString("My phylactory shall return me to life... your victory is short lived mortal!"); ApplyEffectToObject(DURATION_TYPE_INSTANT, nBoom3, OBJECT_SELF); ApplyEffectToObject(DURATION_TYPE_INSTANT, nBoom2, OBJECT_SELF); ApplyEffectToObject(DURATION_TYPE_INSTANT, nBoom, OBJECT_SELF); } else if(nUser == 1008) // DISTURBED { } }