beginscript; label Start: // Wait till First Area Done // if (GetGlobalVar(3) == 1) // { // Ammount Var SetVar(0,1); // Control Var SetVar(1,0); SetVar(2,0); SetVar(3,0); SetVar(4,0); SetVar(5,0); SetVar(6,0); SetVar(7,0); // Start Respawn Check EndFrame(); goto CheckDead; // } //EndFrame(); //goto Start; label CheckDead: if (OtherUnitDead(Sld_Gr1_01_Scr) && GetVar(1) != 1) { SpawnOtherUnit(Sld_Gr1_02_Scr); IncVar(0); IncVar(1); } if (OtherUnitDead(Sld_Gr1_02_Scr) && GetVar(1) != 0) { SpawnOtherUnit(Sld_Gr1_01_Scr); IncVar(0); DecVar(1); } if (OtherUnitDead(Sld_Gr1_03_Scr) && GetVar(2) != 1) { SpawnOtherUnit(Sld_Gr1_04_Scr); IncVar(0); IncVar(2); } if (OtherUnitDead(Sld_Gr1_04_Scr) && GetVar(2) != 0) { SpawnOtherUnit(Sld_Gr1_03_Scr); IncVar(0); DecVar(2); } // limmit respawn // if (GetVar(0) >= 100) // { // EndFrame(); // goto End; // } // if (GetGlobalVar(3) == 2) // { // EndFrame(); // goto End; // } EndFrame(); goto CheckDead; label End: EndFrame(); goto End; endscript; $