beginscript; SetVar (0,0); label DeadCount: if (OtherUnitDead(0x7833)) { IncVar(0); } if (OtherUnitDead(0x7831)) { IncVar(0); } if (OtherUnitDead(0x782f)) { IncVar(0); } if (OtherUnitDead(0x7830)) { IncVar(0); } if (OtherUnitDead(0x7832)) { IncVar(0); } if (GetVar(0) == 5) { SetGlobalVar(3,1); EndFrame(); goto next; } label next: if (GetGlobalVar(3) == 1) { // EndLevel(0); // EndFrame(); // goto End; } SetVar (0,0); EndFrame(); goto DeadCount; label End: EndFrame(); goto End; endscript; $