beginscript; //ToggleArmor (Jep_Gr2_05_Scr); ToggleArmor (Jep_Gr2_01_Scr); ToggleArmor (Jep_Gr1_02_Scr); NewMissionArea(); AddMissionAreaPoint(GetObjectXPos(MisE1), GetObjectZPos(MisE1)); AddMissionAreaPoint(GetObjectXPos(MisE2), GetObjectZPos(MisE2)); AddMissionAreaPoint(GetObjectXPos(MisE3), GetObjectZPos(MisE3)); AddMissionAreaPoint(GetObjectXPos(MisE4), GetObjectZPos(MisE4)); AddMissionAreaPoint(GetObjectXPos(MisE5), GetObjectZPos(MisE5)); AddMissionAreaPoint(GetObjectXPos(MisE6), GetObjectZPos(MisE6)); AddMissionAreaPoint(GetObjectXPos(MisE7), GetObjectZPos(MisE7)); AddMissionAreaPoint(GetObjectXPos(MisE8), GetObjectZPos(MisE8)); AddMissionAreaPoint(GetObjectXPos(MisE9), GetObjectZPos(MisE9)); AddMissionAreaPoint(GetObjectXPos(MisE10), GetObjectZPos(MisE10)); AddMissionAreaPoint(GetObjectXPos(MisE11), GetObjectZPos(MisE11)); AddMissionAreaPoint(GetObjectXPos(MisE12), GetObjectZPos(MisE12)); AddMissionAreaPoint(GetObjectXPos(MisE13), GetObjectZPos(MisE13)); AddMissionAreaPoint(GetObjectXPos(MisE14), GetObjectZPos(MisE14)); AddMissionAreaPoint(GetObjectXPos(MisE15), GetObjectZPos(MisE15)); AddMissionAreaPoint(GetObjectXPos(MisE16), GetObjectZPos(MisE16)); AddWarningAreaPoint(GetObjectXPos(Mis1), GetObjectZPos(Mis1)); AddWarningAreaPoint(GetObjectXPos(Mis2), GetObjectZPos(Mis2)); AddWarningAreaPoint(GetObjectXPos(Mis3), GetObjectZPos(Mis3)); AddWarningAreaPoint(GetObjectXPos(Mis4), GetObjectZPos(Mis4)); AddWarningAreaPoint(GetObjectXPos(Mis5), GetObjectZPos(Mis5)); AddWarningAreaPoint(GetObjectXPos(Mis6), GetObjectZPos(Mis6)); AddWarningAreaPoint(GetObjectXPos(Mis7), GetObjectZPos(Mis7)); AddWarningAreaPoint(GetObjectXPos(Mis8), GetObjectZPos(Mis8)); AddWarningAreaPoint(GetObjectXPos(Mis9), GetObjectZPos(Mis9)); AddWarningAreaPoint(GetObjectXPos(Mis10), GetObjectZPos(Mis10)); AddWarningAreaPoint(GetObjectXPos(Mis11), GetObjectZPos(Mis11)); AddWarningAreaPoint(GetObjectXPos(Mis12), GetObjectZPos(Mis12)); AddWarningAreaPoint(GetObjectXPos(Mis13), GetObjectZPos(Mis13)); AddWarningAreaPoint(GetObjectXPos(Mis14), GetObjectZPos(Mis14)); AddWarningAreaPoint(GetObjectXPos(Mis15), GetObjectZPos(Mis15)); AddWarningAreaPoint(GetObjectXPos(Mis16), GetObjectZPos(Mis16)); SetWarningMsgID(60, h60); SetTerminateMsgID(61, h61); // SpawnOtherUnit(Jkl_Trg_01_Scr); // KillOtherUnit (Jkl_Trg_01_Scr); // SpawnOtherUnit(Jkl_Trg_02_Scr); // KillOtherUnit (Jkl_Trg_02_Scr); // SpawnOtherUnit(Jkl_Trg_03_Scr); // KillOtherUnit (Jkl_Trg_03_Scr); // SpawnOtherUnit(Jkl_Trg_04_Scr); // KillOtherUnit (Jkl_Trg_04_Scr); // SpawnOtherUnit(Jkl_Trg_05_Scr); // KillOtherUnit (Jkl_Trg_05_Scr); // SpawnOtherUnit(Jkl_Trg_06_Scr); // KillOtherUnit (Jkl_Trg_06_Scr); SetVar(0, 0); SetVar(1, 0); label CheckConds: if (OtherUnitDead(Jep_Gr1_02_Scr) && GetVar(2) != 1) { PausePlayer(); SetVar(2, 1); ChangeCamera(0x815,50,50); TriggerMessage(8,h8,0x783b); SetButtonJump(); if (HasJumped()) { goto skipcs1; } WaitForTime(80); JumpOnButton(false); label skipcs1: EndLevel(0); } if (PlayerInArea(-3109,-220,200) && GetVar(1) == 0) { SetVar(1, 1); // Functionality not used.... SetHUDTarget (Jep_Gr1_02_Scr); } if (PlayerInRange(4000) != 1 && GetVar(5) < GetTime()) { //TriggerMessage(11,h1vzfaraway,0xffff); //PlaySound(0x7401, h1vzfaraway,0); // Set timer //SetVar (5, GetTime()+600); } if (GetGlobalVar(6) >= 10 && GetVar(2) != 1) { PausePlayer(); SetVar(2, 1); ChangeCamera(0x80a,30,50); TriggerMessage(8,h8,0x783b); //PlaySound(0x7401, h1vzlevellost,0); SetButtonJump(); if (HasJumped()) { goto skipcs2; } WaitForTime(80); JumpOnButton(false); label skipcs2: EndLevel(0); } else if (GetGlobalVar(6) >= 5 && GetVar(7) != 1) { TriggerMessage(59,h59,0x783b); SetVar(7, 1); } if (GetGlobalVar(3) == 10) { SetGlobalVar(4, 2); //SpawnOtherUnit (EndJak1_Scr); //SpawnOtherUnit (EndJak2_Scr); //SpawnOtherUnit (EndSld1_Scr); //SpawnOtherUnit (EndSld2_Scr); // Set timer for next group WaitForTime(30); PausePlayer(); ChangeCamera(0x80b,30,70); SetGlobalVar(7, 11); SetButtonJump(); if (HasJumped()) { goto skipcs3; } WaitForTime(20); TriggerMessage(7,h7,0x783b); WaitForTime(60); JumpOnButton(false); label skipcs3: EndLevel(1); EndFrame(); goto End; } if (GetGlobalVar(1) == 0 && OtherUnitDead(Ftk_Gr1_01_scr) && GetVar(3) != 1) { WaitForTime(30); PausePlayer(); ChangeCamera(0x810,50,50); TriggerMessage(8,h8,0x783b); SetButtonJump(); if (HasJumped()) { goto skipcs4; } WaitForTime(50); JumpOnButton(false); label skipcs4: SetVar(3, 1); EndLevel(0); } if (GetGlobalVar(5) == 0) { if (OtherUnitDead(Bfg_Grp2_01_Scr) && OtherUnitDead(Bfg_Grp2_02_Scr) && OtherUnitDead(Bfg_Grp2_03_Scr) && GetVar(2) != 1) { PausePlayer(); ChangeCamera(0x811,50,50); gosub LoseLevel; SetVar(2, 1); EndFrame(); goto End; } } if (GetGlobalVar(5) == 1) { if (OtherUnitDead(BFG6_Scr) && OtherUnitDead(BFG5_Scr) && OtherUnitDead(BFG4_Scr) && GetVar(2) != 1) { PausePlayer(); ChangeCamera(0x812,50,50); gosub LoseLevel; SetVar(2, 1); EndFrame(); goto End; } } if (GetGlobalVar(5) == 2) { if (OtherUnitDead(Bfg_Gr1_01_Scr) && OtherUnitDead(Bfg_Gr1_02_Scr) && OtherUnitDead(Bfg_Gr1_03_Scr) && GetVar(2) != 1) { PausePlayer(); ChangeCamera(0x813,50,50); gosub LoseLevel; SetVar(2, 1); EndFrame(); goto End; } } EndFrame(); goto CheckConds; label End: EndFrame(); goto End; endscript; beginsub LoseLevel; TriggerMessage(8,h8,0x783b); SetButtonJump(); if (HasJumped()) { goto skipcs5; } WaitForTime(80); JumpOnButton(false); label skipcs5: EndLevel(0); endsub; $