void main()
{
    object oTarget = GetPCSpeaker();
    object oDragon = GetObjectByTag("Haspaar");
    int i = 0;

    // Shut off music
    object oArea = GetArea(OBJECT_SELF);
    MusicBackgroundStop(oArea);
    MusicBackgroundChangeDay(oArea, 0);
    MusicBackgroundChangeNight(oArea, 0);

    //everyone run to target
    AssignCommand(GetObjectByTag("Triel"), ActionForceMoveToObject(oTarget, TRUE, 2.2f));
    AssignCommand(GetObjectByTag("Wilinda"), ActionForceMoveToObject(oTarget, TRUE, 2.2f));
    AssignCommand(GetObjectByTag("JHR_WOODSMAN_BATTLE"), ActionForceMoveToObject(oTarget, TRUE, 2.2f));
    AssignCommand(GetObjectByTag("jhr_ragan_battle"), ActionForceMoveToObject(oTarget, TRUE, 2.2f));
    AssignCommand(GetObjectByTag("jhr_zhendril_battle"), ActionForceMoveToObject(oTarget, TRUE, 2.2f));
    for(i=1; i<=6; i++){
        AssignCommand(GetObjectByTag("JHR_CITIZEN" + IntToString(i)), ActionForceMoveToObject(oTarget, TRUE, 2.2f));
    }
    AssignCommand(GetObjectByTag("Triel"), SetFacingPoint(GetPosition(oDragon)));
    AssignCommand(GetObjectByTag("Wilinda"), SetFacingPoint(GetPosition(oDragon)));
    AssignCommand(GetObjectByTag("JHR_WOODSMAN_BATTLE"), SetFacingPoint(GetPosition(oDragon)));
    AssignCommand(GetObjectByTag("jhr_ragan_battle"), SetFacingPoint(GetPosition(oDragon)));
    AssignCommand(GetObjectByTag("jhr_zhendril_battle"), SetFacingPoint(GetPosition(oDragon)));
    for(i=1; i<=6; i++){
        AssignCommand(GetObjectByTag("JHR_CITIZEN" + IntToString(i)), SetFacingPoint(GetPosition(oDragon)));

    }

    // Destroy invader encounters in case player walks back over a missed one

    SetEncounterActive(FALSE, GetObjectByTag("GoblinInvaders", 0));
    SetEncounterActive(FALSE, GetObjectByTag("GoblinInvaders", 1));
    SetEncounterActive(FALSE, GetObjectByTag("GoblinInvaders", 2));
    SetEncounterActive(FALSE, GetObjectByTag("GoblinInvaders", 3));
}
