beginscript; label Start: // Wait till First Area Done // Ammount Var SetVar(0,1); // Control Var SetVar(1,0); SetVar(2,0); SetVar(3,0); // Start Respawn Check label CheckDead: // Check if First Jakyl is dead and The fourth hasn't been spawned if (OtherUnitDead(JACJ01) && GetVar(1) != 1) { // Spawn fourth Jakyl SpawnOtherUnit(JACJ04); // Inc Ammount Var IncVar(0); // Inc Control Var so this only happens once per death IncVar(1); } if (OtherUnitDead(JACJ02) && GetVar(2) != 1) { SpawnOtherUnit(JACJ05); IncVar(0); IncVar(2); } if (OtherUnitDead(JACJ03) && GetVar(3) != 1) { SpawnOtherUnit(JACJ06); IncVar(0); IncVar(3); } // Check if Fourth Jakyl is dead and The first hasn't been spawned if (OtherUnitDead(JACJ04) && GetVar(1) != 0) { // Spawn First Jakyl SpawnOtherUnit(JACJ01); // Inc Ammount Var IncVar(0); // Dec Control Var so so this only happens once per death DecVar(1); } if (OtherUnitDead(JACJ05) && GetVar(2) != 0) { SpawnOtherUnit(JACJ02); IncVar(0); DecVar(2); } if (OtherUnitDead(JACJ06) && GetVar(3) != 0) { SpawnOtherUnit(JACJ03); IncVar(0); DecVar(3); } // limmit respawn if (GetVar(0) >= 5) { EndFrame(); goto End; } EndFrame(); goto CheckDead; label End: EndFrame(); goto End; endscript; $