//:://///////////////////////////////////////////// //:: Custom User Defined Event //:: FileName //:: Copyright (c) 2001 Bioware Corp. //::////////////////////////////////////////////// /* */ //::////////////////////////////////////////////// //:: Created By: //:: Created On: //::////////////////////////////////////////////// void main() { ExecuteScript("prc_npc_userdef", OBJECT_SELF); int nUser = GetUserDefinedEventNumber(); int nRandom; int nEffect; effect eVis = EffectVisualEffect(VFX_FNF_SUMMON_MONSTER_3); effect eSummon = EffectSummonCreature("jw_barren"); location lLoc; if(nUser == 1001) //HEARTBEAT { } else if(nUser == 1002) // PERCEIVE { if ((GetLocalInt(OBJECT_SELF,"hench")!=2)&&(GetIsEnemy(GetLastPerceived()))) { object oAttacker=GetLastPerceived(); lLoc=GetLocation(oAttacker); SetFacingPoint(GetPosition(oAttacker)); PlayAnimation(ANIMATION_FIREFORGET_TAUNT); PlayVoiceChat(VOICE_CHAT_BATTLECRY3); ApplyEffectAtLocation(DURATION_TYPE_PERMANENT,EffectSummonCreature("jw_barren",VFX_FNF_SUMMON_MONSTER_2,0.5),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 { } else if(nUser == 1008) // DISTURBED { } }