beginscript; SetVar(0,0); label DeadCount: if (OtherUnitDead(Jkl_G01_01_Scr)) { IncVar(0); } if (OtherUnitDead(Jkl_G01_02_Scr)) { IncVar(0); } if (OtherUnitDead(Jkl_G01_03_Scr)) { IncVar(0); } if (OtherUnitDead(Jkl_G01_04_Scr)) { IncVar(0); } if (OtherUnitDead(Jkl_G01_05_Scr)) { IncVar(0); } if (OtherUnitDead(Jkl_G01_06_Scr)) { IncVar(0); } if (OtherUnitDead(Jkl_G01_07_Scr)) { IncVar(0); } if (OtherUnitDead(Jkl_G01_08_Scr)) { IncVar(0); } if (OtherUnitDead(Jkl_G01_09_Scr)) { IncVar(0); } if (OtherUnitDead(Jkl_G01_10_Scr)) { IncVar(0); } if (GetVar(0) > GetVar(1) && PlayerInRange(6000) != 1 && GetVar(3) < GetTime() && GetGlobalVar(5) == 0) { //SetGlobalVar(5,1); SetVar (3, GetTime()+300); //ChangeCamera(0x812,20,20); //WaitForTime(40); //ChangeCamera(0x801,20,20); //SetGlobalVar(5,0); TriggerMessage(10,0xffff,0xffff); } if (GetVar(0) >= 4 && GetVar(4) != 1) { TriggerMessage(12,0xffff,0xffff); SetVar(4,1); WaitForTime(240); } if (GetVar(0) >= 6) { TriggerMessage(13,0xffff,0xffff); WaitForTime(240); EndLevel(0); EndFrame(); goto End; } SetVar(1,GetVar(0)); SetVar(0,0); EndFrame(); goto DeadCount; label End: EndFrame(); goto End; endscript; $