void main()
{

object oPC = GetPCSpeaker();
object oSeer = GetObjectByTag("SeerEnd");
object oLord = GetObjectByTag("LordJustinianEnd");
object oGuard1 = GetObjectByTag("LDEnd1");
object oGuard2 = GetObjectByTag("LDEnd2");
object oWP = GetObjectByTag("WP_TargetGuards");

effect eEffect = EffectDeath();

SetCameraMode(oPC, CAMERA_MODE_TOP_DOWN);
SetCameraFacing(350.0, 20.0, 55.0, CAMERA_TRANSITION_TYPE_CRAWL);

DelayCommand(1.0, AssignCommand(OBJECT_SELF, ActionCastFakeSpellAtObject(SPELL_CIRCLE_OF_DOOM, oPC, PROJECTILE_PATH_TYPE_DEFAULT)));

DelayCommand(3.5, ApplyEffectToObject(DURATION_TYPE_TEMPORARY, EffectVisualEffect(VFX_DUR_PARALYZE_HOLD), oLord, 3600.0f));
DelayCommand(3.5, ApplyEffectToObject(DURATION_TYPE_TEMPORARY, EffectVisualEffect(VFX_DUR_PARALYZE_HOLD), oGuard1, 3600.0f));
DelayCommand(3.5, ApplyEffectToObject(DURATION_TYPE_TEMPORARY, EffectVisualEffect(VFX_DUR_PARALYZE_HOLD), oGuard2, 3600.0f));
object oTarget=GetFirstFactionMember(oPC, FALSE);
while (GetIsObjectValid(oTarget))
   {
   DelayCommand(3.5, ApplyEffectToObject(DURATION_TYPE_TEMPORARY, EffectVisualEffect(VFX_DUR_PARALYZE_HOLD), oTarget, 3600.0f));
   oTarget=GetNextFactionMember(oPC, FALSE);
   }

DelayCommand(7.0, AssignCommand(OBJECT_SELF, ActionCastFakeSpellAtObject(SPELL_POWER_WORD_KILL, oWP, PROJECTILE_PATH_TYPE_DEFAULT)));

DelayCommand(10.0, ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_DEATH_L), oGuard1));
DelayCommand(10.0, ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_DEATH_L), oGuard2));

DelayCommand(12.0, ApplyEffectToObject(DURATION_TYPE_PERMANENT, eEffect, oGuard1));
DelayCommand(12.0, ApplyEffectToObject(DURATION_TYPE_PERMANENT, eEffect, oGuard2));

DelayCommand(13.0, AssignCommand(oLord, SpeakString("Traitor!")));

DelayCommand(18.5, AssignCommand(oPC, ActionStartConversation(oLord, "finalsequence")));

}

