beginscript; SetVar (0,0); SetVar (1,0); label checkinarea: if (OtherUnitDead(0x7830)) { if (OtherUnitInArea(0x7830, 5033, 3627, 100)) { IncVar(0); } else { IncVar(1); } } if (OtherUnitDead(0x782f)) { if (OtherUnitInArea(0x782f, 5033, 3627, 100)) { IncVar(0); } else { IncVar(1); } } if (OtherUnitDead(0x7831)) { if (OtherUnitInArea(0x7831, 5033, 3627, 100)) { IncVar(0); } else { IncVar(1); } } if (OtherUnitDead(0x7832)) { if (OtherUnitInArea(0x7832, 5033, 3627, 100)) { IncVar(0); } else { IncVar(1); } } if (OtherUnitDead(0x7833)) { if (OtherUnitInArea(0x7833, 5033, 3627, 100)) { IncVar(0); } else { IncVar(1); } } if (GetVar(0) == 1 && (GetGlobalVar(4)== 1)) { goto next; } if (GetVar(0) == 1) { TriggerMessage(9,0xffff,0xffff); SetGlobalVar(4,1); } label next: if (GetVar(0) == 2 && (GetGlobalVar(5)== 1)) { goto next1; } if (GetVar(0) == 2) { TriggerMessage(10,0xffff,0xffff); SetGlobalVar(5,1); } label next1: if (GetVar(0) >= 3) { FreezePlayer(); ChangeCamera (0x80d, 20, 20); DestroyObject(0x40f); SetVar(7,0); SetButtonJump(); if (HasJumped()) { SetVar(7,1); goto skipcs1; } WaitForTime(5); JumpOnButton(false); label skipcs1: ShakeCamera(0x806,3000); if (GetVar(7)) { SetVar(7,0); } else { SetButtonJump(); if (HasJumped()) goto skipcs2; WaitForTime(60); JumpOnButton(false); } label skipcs2: EndLevel(1); EndFrame(); goto End; } else { if (GetVar(1) >= 3) { SpawnOtherUnit(0x7828); SpawnOtherUnit(0x7827); SpawnOtherUnit(0x782a); SpawnOtherUnit(0x7829); TriggerMessage(11,0xffff,0xffff); ChangeCamera (0x80e, 20, 20); SetButtonJump(); if (HasJumped()) goto skipcs3; WaitForTime(20); JumpOnButton(false); label skipcs3: EndLevel(0); EndFrame(); goto End; } } SetVar (0,0); SetVar (1,0); EndFrame(); goto checkinarea; label End: EndFrame(); goto End; endscript; $