beginscript; SetVar(0,0); label Start: if (Triggered()) { SetVar(4,1); } if (PlayerInRange(800) || GetVar(4) == 1) { if (GetVar(0) == 0) { SpawnOtherUnit (Jkl_Gr2_01_Scr); SpawnOtherUnit (Jkl_Gr2_02_Scr); SpawnOtherUnit (Jkl_Gr2_03_Scr); SpawnOtherUnit (Jkl_Gr2_04_Scr); SetVar(0,1); } } if (PlayerInRange(1000) || OtherUnitInRange(Jep_Gr1_02_Scr,1000)) { if (GetVar(0) == 1) { SpawnOtherUnit (Sld_Gr0_01_Scr); SpawnOtherUnit (Sld_Gr0_02_Scr); SpawnOtherUnit (Sld_Gr0_03_Scr); SpawnOtherUnit (Sld_Gr0_04_Scr); SetVar(0,2); } } if (PlayerInRange(500) || GetVar(4) == 1) { if (OtherUnitDead(Jkl_Gr2_01_Scr) != 1) { SetHUDTarget (Jkl_Gr2_01_Scr); } if (OtherUnitDead(Jkl_Gr2_02_Scr) != 1) { SetHUDTarget (Jkl_Gr2_02_Scr); } if (OtherUnitDead(Jkl_Gr2_03_Scr) != 1) { SetHUDTarget (Jkl_Gr2_03_Scr); } if (OtherUnitDead(Jkl_Gr2_04_Scr) != 1) { SetHUDTarget (Jkl_Gr2_04_Scr); } if (GetVar(2) != 1 && GetVar(4) != 1) { RadioChatter(0); TriggerMessage(34,h34,0x783b); WaitForTime(30); TriggerMessage(42,h42,0x783b); RadioChatter(1); SetVar(2,1); } } if(OtherUnitDead(Jkl_Gr2_01_Scr) && OtherUnitDead(Jkl_Gr2_02_Scr) && OtherUnitDead(Jkl_Gr2_03_Scr) && OtherUnitDead(Jkl_Gr2_04_Scr)) { SpawnOtherUnit (Jkl_Gr3_01_Scr); SpawnOtherUnit (Jkl_Gr3_02_Scr); SpawnOtherUnit (Jkl_Gr3_03_Scr); SpawnOtherUnit (Jkl_Gr3_04_Scr); KillOtherUnit (Jkl_Gr3_01_Scr); KillOtherUnit (Jkl_Gr3_02_Scr); KillOtherUnit (Jkl_Gr3_03_Scr); KillOtherUnit (Jkl_Gr3_04_Scr); WaitForTime(40); if (GetVar(4) != 1) TriggerMessage(28,h28,0x783b); //TriggerMessage(34,0xffff,0xffff); EndFrame(); goto Start2; } if (OtherUnitInArea(Jep_Gr1_02_Scr, -3790, -485, 100) && GetVar(5) != 1) { SetVar(6, GetTime() + 100); SetVar(5,1); } if(((OtherUnitDead(Jkl_Gr1_01_Scr) && OtherUnitDead(Jkl_Gr1_01_Scr) && OtherUnitDead(Jkl_Gr1_03_Scr)) || GetVar(6) < GetTime()) && GetVar(3) != 1 && OtherUnitInArea(Jep_Gr1_02_Scr, -3790, -485, 100)) { TriggerUnit(Jep_Gr1_02_Scr); SetVar(3,1); } EndFrame(); goto Start; label Start2: if (OtherUnitDead(Jkl_Gr3_01_Scr) != 1) { SetHUDTarget (Jkl_Gr3_01_Scr); } if (OtherUnitDead(Jkl_Gr3_02_Scr) != 1) { SetHUDTarget (Jkl_Gr3_02_Scr); } if (OtherUnitDead(Jkl_Gr3_03_Scr) != 1) { SetHUDTarget (Jkl_Gr3_03_Scr); } if (OtherUnitDead(Jkl_Gr3_04_Scr) != 1) { SetHUDTarget (Jkl_Gr3_04_Scr); } if(OtherUnitDead(Jkl_Gr3_01_Scr) && OtherUnitDead(Jkl_Gr3_02_Scr) && OtherUnitDead(Jkl_Gr3_03_Scr) && OtherUnitDead(Jkl_Gr3_04_Scr)) { label WaitForTrigger: if (Triggered()) { //WaitForTime(60); SpawnOtherUnit (Jkl_Gr2_01_Scr); SpawnOtherUnit (Jkl_Gr2_02_Scr); SpawnOtherUnit (Jkl_Gr2_03_Scr); SpawnOtherUnit (Jkl_Gr2_04_Scr); WaitForTime(80); //TriggerMessage(35,0xffff,0xffff); SetVar (1, GetTime()+150); EndFrame(); goto Start3; } EndFrame(); goto WaitForTrigger; } EndFrame(); goto Start2; label Start3: if (OtherUnitDead(Jkl_Gr2_01_Scr) != 1) { SetHUDTarget (Jkl_Gr2_01_Scr); } if (OtherUnitDead(Jkl_Gr2_02_Scr) != 1) { SetHUDTarget (Jkl_Gr2_02_Scr); } if (OtherUnitDead(Jkl_Gr2_03_Scr) != 1) { SetHUDTarget (Jkl_Gr2_03_Scr); } if (OtherUnitDead(Jkl_Gr2_04_Scr) != 1) { SetHUDTarget (Jkl_Gr2_04_Scr); } if((OtherUnitDead(Jkl_Gr2_01_Scr) && OtherUnitDead(Jkl_Gr2_02_Scr) && OtherUnitDead(Jkl_Gr2_03_Scr) && OtherUnitDead(Jkl_Gr2_04_Scr)) || GetVar(1) < GetTime()) { SpawnOtherUnit (Drg_Gr3_02_Scr); SpawnOtherUnit (Drg_Gr3_03_Scr); SetOtherTargetHag (Drg_Gr3_02_Scr, 200); SetOtherTargetHag (Drg_Gr3_03_Scr, 300); WaitForTime(40); TriggerMessage(36,h36,0x783b); WaitForTime(60); SpawnOtherUnit (Drg_Gr3_01_Scr); TriggerUnit(Drg_Gr3_01_Scr); TeleportOtherUnit(Jkl_Gr3_01_Scr,AiTele3,0,0); TeleportOtherUnit(Jkl_Gr3_02_Scr,AiTele3,0,0); TeleportOtherUnit(Jkl_Gr3_03_Scr,AiTele3,0,0); TeleportOtherUnit(Jkl_Gr3_04_Scr,AiTele3,0,0); //SpawnOtherUnit (Jkl_Gr3_03_Scr); //SpawnOtherUnit (Jkl_Gr3_04_Scr); //SpawnOtherUnit (Jkl_Gr3_01_Scr); //SpawnOtherUnit (Jkl_Gr3_02_Scr); SetVar (1, GetTime()+60); EndFrame(); goto Start4; } EndFrame(); goto Start3; label Start4: if (OtherUnitDead(Drg_Gr3_01_Scr) != 1) { SetHUDTarget (Drg_Gr3_01_Scr); } if (OtherUnitDead(Drg_Gr3_02_Scr) != 1) { SetHUDTarget (Drg_Gr3_02_Scr); } if (OtherUnitDead(Drg_Gr3_03_Scr) != 1) { SetHUDTarget (Drg_Gr3_03_Scr); } if(GetVar(1) < GetTime()) { //WaitForTime(40); SetGlobalVar(1, 1); // init timer2 SetHUDTarget (timer1_Scr); WaitForTime(40); if (OtherUnitDead(Drg_Gr3_01_Scr) != 1) { KillOtherUnit (Drg_Gr3_01_Scr); } if (OtherUnitDead(Drg_Gr3_02_Scr) != 1) { KillOtherUnit (Drg_Gr3_02_Scr); } if (OtherUnitDead(Drg_Gr3_03_Scr) != 1) { KillOtherUnit (Drg_Gr3_03_Scr); } //SpawnOtherUnit (Jkl_Gr3_01_Scr); //SpawnOtherUnit (Jkl_Gr3_02_Scr); EndFrame(); goto End; } EndFrame(); goto Start4; label End: EndFrame(); goto End; endscript; $