beginscript; label wait: if (GetOtherState(0x7009)!=0) { EndFrame(); goto Start; } EndFrame(); goto wait; label Start: if (GetOtherUnitHealth(0x7009) <= 2 ) { FreezePlayer (); SpawnOtherUnit(0x7013); ChangeCamera (0x80b, 100, 500); DespawnOtherUnit(0x7009); SetVar(7,0); SetButtonJump(); if (HasJumped()) { goto skipcs1; SetVar(7,1); } WaitForTime(15); JumpOnButton(false); label skipcs1: KillOtherUnit(0x7013); if (GetVar(7)) { SetVar(7,0); } else { SetButtonJump(); if (HasJumped()) { goto skipcs2; } WaitForTime(50); JumpOnButton(false); } label skipcs2: //SpawnOtherUnit(0x7832); //SpawnOtherUnit(0x7828); //SpawnOtherUnit(0x7833); //SpawnOtherUnit(0x782e); SpawnOtherUnit(0x7823); TriggerMessage(28,h28,0x7803); ChangeCamera (0x80c, 20, 20); SetButtonJump(); if (HasJumped()) { goto skipcs3; } WaitForTime(50); JumpOnButton(false); label skipcs3: EndLevel(1); goto End; EndFrame(); } EndFrame(); goto Start; label End: EndFrame(); goto End; endscript; $