//--- OBJECT WRITE BEGIN ---
new SimGroup(MissionGroup) {
   new ScriptObject(MissionInfo) {
      name = "Battlements";
      time = "100000";
      type = "advanced";
      artist = "Alex Swanson";
      difficulty = "9";
      level = "11";
      game = "Ultra";
useUltraMarble = "1";
      music = "Tim Trance.ogg";
	  goldTime = "45000";
      ultimateTime = "15000";
      startHelpText = "Have fun storming the castle!";
      easterEgg = "1";
   };
   new Sky(Sky) {
      sphereFront = "platinum/data/shapes/skies/wintry/front.png";
      sphereBack = "platinum/data/shapes/skies/wintry/back.png";
      position = "336 136 0";
      rotation = "1 0 0 0";
      scale = "1 1 1";
      materialList = "~/data/skies_mbu/advanced/sky_advanced.dml";
      cloudHeightPer[0] = "0";
      cloudHeightPer[1] = "0";
      cloudHeightPer[2] = "0";
      cloudSpeed1 = "0.0001";
      cloudSpeed2 = "0.0002";
      cloudSpeed3 = "0.0003";
      visibleDistance = "10000";
      fogDistance = "1000";
      fogColor = "0.600000 0.600000 0.600000 1.000000";
      fogVolume1 = "-1 2.8026e-045 1.91698e-042";
      fogVolume2 = "-1 2.8026e-045 1.89175e-042";
      fogVolume3 = "-1 2.8026e-045 1.85392e-042";
      windVelocity = "1 0 0";
      windEffectPrecipitation = "0";
      SkySolidColor = "0.600000 0.600000 0.600000 1.000000";
      useSkyTextures = "1";
      renderBottomTexture = "1";
      noRenderBans = "1";
      fogVolumeColor2 = "128.000000 128.000000 128.000000 0.000000";
      fogVolumeColor3 = "128.000000 128.000000 128.000000 0.000000";
      fogVolumeColor1 = "128.000000 128.000000 128.000000 0.000000";
   };
   new StaticShape() {
      position = "0 0 -600";
      rotation = "1 0 0 0";
      scale = "1 1 1";
      dataBlock = "astrolabe";
   };
   new Sun() {
      direction = "0.573201 0.275357 -0.771764";
      color = "1.080000 1.030000 0.900000 1.000000";
      ambient = "0.400000 0.400000 0.500000 1.000000";
      shadowColor = "0.000000 0.000000 0.150000 0.350000";
   };
   new InteriorInstance() {
      position = "0 0 0";
      rotation = "1 0 0 0";
      scale = "1 1 1";
      interiorFile = "~/data/interiors_mbu/advanced/battlements.dif";
      showTerrainInside = "0";
   };
   new StaticShape() {
      position = "-15 0 -20";
      rotation = "1 0 0 0";
      scale = "1 1 1";
      dataBlock = "Trapdoor_MBU";
      isTemperable = "1";
      resetTime = "Default";
      open = "0";
      timeout = "200";
   };
   new StaticShape() {
      position = "-13 0 -20";
      rotation = "1 0 0 0";
      scale = "1 1 1";
      dataBlock = "Trapdoor_MBU";
      isTemperable = "1";
      resetTime = "Default";
      open = "0";
      timeout = "200";
   };
   new StaticShape() {
      position = "-17 0 -20";
      rotation = "1 0 0 0";
      scale = "1 1 1";
      dataBlock = "Trapdoor_MBU";
      isTemperable = "1";
      resetTime = "Default";
      open = "0";
      timeout = "200";
   };
   new StaticShape() {
      position = "-15 -2 -20";
      rotation = "1 0 0 0";
      scale = "1 1 1";
      dataBlock = "Trapdoor_MBU";
      isTemperable = "1";
      resetTime = "Default";
      open = "0";
      timeout = "200";
   };
   new StaticShape() {
      position = "-15 -4 -20";
      rotation = "1 0 0 0";
      scale = "1 1 1";
      dataBlock = "Trapdoor_MBU";
      isTemperable = "1";
      resetTime = "Default";
      open = "0";
      timeout = "200";
   };
   new StaticShape() {
      position = "-15 -6 -20";
      rotation = "1 0 0 0";
      scale = "1 1 1";
      dataBlock = "Trapdoor_MBU";
      isTemperable = "1";
      resetTime = "Default";
      open = "0";
      timeout = "200";
   };
   new StaticShape() {
      position = "-13 -6 -20";
      rotation = "1 0 0 0";
      scale = "1 1 1";
      dataBlock = "Trapdoor_MBU";
      isTemperable = "1";
      resetTime = "Default";
      open = "0";
      timeout = "200";
   };
   new StaticShape() {
      position = "-17 -6 -20";
      rotation = "1 0 0 0";
      scale = "1 1 1";
      dataBlock = "Trapdoor_MBU";
      isTemperable = "1";
      resetTime = "Default";
      open = "0";
      timeout = "200";
   };
   new StaticShape() {
      position = "-15 -8 -20";
      rotation = "1 0 0 0";
      scale = "1 1 1";
      dataBlock = "Trapdoor_MBU";
      isTemperable = "1";
      resetTime = "Default";
      open = "0";
      timeout = "200";
   };
   new StaticShape() {
      position = "-13 -8 -20";
      rotation = "1 0 0 0";
      scale = "1 1 1";
      dataBlock = "Trapdoor_MBU";
      isTemperable = "1";
      resetTime = "Default";
      open = "0";
      timeout = "200";
   };
   new StaticShape() {
      position = "-17 -8 -20";
      rotation = "1 0 0 0";
      scale = "1 1 1";
      dataBlock = "Trapdoor_MBU";
      isTemperable = "1";
      resetTime = "Default";
      open = "0";
      timeout = "200";
   };
   new StaticShape() {
      position = "-13 -4 -20";
      rotation = "1 0 0 0";
      scale = "1 1 1";
      dataBlock = "Trapdoor_MBU";
      isTemperable = "1";
      resetTime = "Default";
      open = "0";
      timeout = "200";
   };
   new StaticShape() {
      position = "-17 -4 -20";
      rotation = "1 0 0 0";
      scale = "1 1 1";
      dataBlock = "Trapdoor_MBU";
      isTemperable = "1";
      resetTime = "Default";
      open = "0";
      timeout = "200";
   };
   new StaticShape() {
      position = "-13 -2 -20";
      rotation = "1 0 0 0";
      scale = "1 1 1";
      dataBlock = "Trapdoor_MBU";
      isTemperable = "1";
      resetTime = "Default";
      open = "0";
      timeout = "200";
   };
   new StaticShape() {
      position = "-17 -2 -20";
      rotation = "1 0 0 0";
      scale = "1 1 1";
      dataBlock = "Trapdoor_MBU";
      isTemperable = "1";
      resetTime = "Default";
      open = "0";
      timeout = "200";
   };
   new StaticShape() {
      position = "-15 -10 -20";
      rotation = "1 0 0 0";
      scale = "1 1 1";
      dataBlock = "Trapdoor_MBU";
      isTemperable = "1";
      resetTime = "Default";
      open = "0";
      timeout = "200";
   };
   new StaticShape() {
      position = "-15 -12 -20";
      rotation = "1 0 0 0";
      scale = "1 1 1";
      dataBlock = "Trapdoor_MBU";
      isTemperable = "1";
      resetTime = "Default";
      open = "0";
      timeout = "200";
   };
   new StaticShape() {
      position = "-15 -14 -20";
      rotation = "1 0 0 0";
      scale = "1 1 1";
      dataBlock = "Trapdoor_MBU";
      isTemperable = "1";
      resetTime = "Default";
      open = "0";
      timeout = "200";
   };
   new StaticShape() {
      position = "-13 -14 -20";
      rotation = "1 0 0 0";
      scale = "1 1 1";
      dataBlock = "Trapdoor_MBU";
      isTemperable = "1";
      resetTime = "Default";
      open = "0";
      timeout = "200";
   };
   new StaticShape() {
      position = "-17 -14 -20";
      rotation = "1 0 0 0";
      scale = "1 1 1";
      dataBlock = "Trapdoor_MBU";
      isTemperable = "1";
      resetTime = "Default";
      open = "0";
      timeout = "200";
   };
   new StaticShape() {
      position = "-15 -16 -20";
      rotation = "1 0 0 0";
      scale = "1 1 1";
      dataBlock = "Trapdoor_MBU";
      isTemperable = "1";
      resetTime = "Default";
      open = "0";
      timeout = "200";
   };
   new StaticShape() {
      position = "-13 -16 -20";
      rotation = "1 0 0 0";
      scale = "1 1 1";
      dataBlock = "Trapdoor_MBU";
      isTemperable = "1";
      resetTime = "Default";
      open = "0";
      timeout = "200";
   };
   new StaticShape() {
      position = "-17 -16 -20";
      rotation = "1 0 0 0";
      scale = "1 1 1";
      dataBlock = "Trapdoor_MBU";
      isTemperable = "1";
      resetTime = "Default";
      open = "0";
      timeout = "200";
   };
   new StaticShape() {
      position = "-13 -12 -20";
      rotation = "1 0 0 0";
      scale = "1 1 1";
      dataBlock = "Trapdoor_MBU";
      isTemperable = "1";
      resetTime = "Default";
      open = "0";
      timeout = "200";
   };
   new StaticShape() {
      position = "-17 -12 -20";
      rotation = "1 0 0 0";
      scale = "1 1 1";
      dataBlock = "Trapdoor_MBU";
      isTemperable = "1";
      resetTime = "Default";
      open = "0";
      timeout = "200";
   };
   new StaticShape() {
      position = "-13 -10 -20";
      rotation = "1 0 0 0";
      scale = "1 1 1";
      dataBlock = "Trapdoor_MBU";
      isTemperable = "1";
      resetTime = "Default";
      open = "0";
      timeout = "200";
   };
   new StaticShape() {
      position = "-17 -10 -20";
      rotation = "1 0 0 0";
      scale = "1 1 1";
      dataBlock = "Trapdoor_MBU";
      isTemperable = "1";
      resetTime = "Default";
      open = "0";
      timeout = "200";
   };
   new StaticShape() {
      position = "-7.49492 7.49659 -18.9257";
      rotation = "1 0 0 90";
      scale = "1 1 1";
      dataBlock = "Ductfan_MBM";
      isTemperable = "1";
   };
   new StaticShape() {
      position = "-5.51589 5.50857 -18.9257";
      rotation = "0 -1 0 90";
      scale = "1 1 1";
      dataBlock = "Ductfan_MBM";
      isTemperable = "1";
   };
   new StaticShape() {
      position = "-22.0371 20.0062 6.57429";
      rotation = "-1 0 0 90";
      scale = "1 1 1";
      dataBlock = "Ductfan_MBM";
      isTemperable = "1";
   };
   new StaticShape() {
      position = "-20.0076 21.9869 6.57282";
      rotation = "0 -1 0 90";
      scale = "1 1 1";
      dataBlock = "Ductfan_MBM";
      isTemperable = "1";
   };
   new SimGroup(SpawnPoints) {
      new StaticShape(StartPoint) {
         position = "-15 -20 -20";
         rotation = "1 0 0 0";
         scale = "1 1 1";
         dataBlock = "StartPad_MBM";
         isTemperable = "1";
      };
   };
   new StaticShape(EndPoint) {
      position = "-16 31.25 8";
      rotation = "1 0 0 0";
      scale = "1 1 1";
      dataBlock = "EndPad_MBM";
      isTemperable = "1";
   };
   new SimGroup(MustChange_g) {
      new Path() {
         isLooping = "1";
         new Marker() {
            position = "-15 0.75 -20";
            rotation = "1 0 0 0";
            scale = "1 1 1";
            seqNum = "1";
            msToNext = "4000";
            smoothingType = "Linear";
         };
         new Marker() {
            position = "-15 0.75 -20";
            rotation = "1 0 0 0";
            scale = "1 1 1";
            seqNum = "2";
            msToNext = "1500";
            smoothingType = "Linear";
         };
         new Marker() {
            position = "-15 0.75 -12.5";
            rotation = "1 0 0 0";
            scale = "1 1 1";
            seqNum = "3";
            msToNext = "1500";
            smoothingType = "Linear";
         };
         new Marker() {
            position = "-15 0.75 -20";
            rotation = "1 0 0 0";
            scale = "1 1 1";
            seqNum = "4";
            msToNext = "0";
            smoothingType = "Linear";
         };
      };
      new PathedInterior(MustChange) {
         position = "0 0 0";
         rotation = "1 0 0 0";
         scale = "1 1 1";
         dataBlock = "PathedDefault";
         interiorResource = $usermods @ "/data/interiors_mbu/advanced/battlements.dif";
         interiorIndex = "0";
         basePosition = "0 0 0";
         baseRotation = "1 0 0 0";
         baseScale = "1 1 1";
         initialTargetPosition = "-1";
      };
   };
   new SimGroup(MustChange_g) {
      new Path() {
         isLooping = "1";
         new Marker() {
            position = "2 2.75 -20";
            rotation = "1 0 0 0";
            scale = "1 1 1";
            seqNum = "1";
            msToNext = "3000";
            smoothingType = "Accelerate";
         };
         new Marker() {
            position = "2 2.75 -1";
            rotation = "1 0 0 0";
            scale = "1 1 1";
            seqNum = "2";
            msToNext = "3000";
            smoothingType = "Accelerate";
         };
         new Marker() {
            position = "2 2.75 -20";
            rotation = "1 0 0 0";
            scale = "1 1 1";
            seqNum = "3";
            msToNext = "0";
            smoothingType = "Accelerate";
         };
      };
      new Trigger(MustChange) {
         position = "2 0.375 -19";
         rotation = "1 0 0 0";
         scale = "1 1 1";
         dataBlock = "TriggerGotoTarget";
         polyhedron = "-1.0000000 1.6250000 2.0000000 0.0000000 -3.2500000 0.0000000 0.0000000 0.0000000 -4.0000000 2.0000000 0.0000000 0.0000000";
         targetTime = "3000";
      };
      new Trigger(MustChange) {
         position = "-1.5 -0.25 0";
         rotation = "1 0 0 0";
         scale = "1 1 1";
         dataBlock = "TriggerGotoTarget";
         polyhedron = "-1.5000000 3.0000000 1.0000000 0.0000000 -6.0000000 0.0000000 0.0000000 0.0000000 -2.0000000 3.0000000 0.0000000 0.0000000";
         targetTime = "0";
      };
      new PathedInterior(MustChange) {
         position = "0 0 0";
         rotation = "1 0 0 0";
         scale = "1 1 1";
         dataBlock = "PathedDefault";
         interiorResource = $usermods @ "/data/interiors_mbu/advanced/battlements.dif";
         interiorIndex = "1";
         basePosition = "0 0 0";
         baseRotation = "1 0 0 0";
         baseScale = "1 1 1";
      };
   };
   new SimGroup(MustChange_g) {
      new Path() {
         isLooping = "1";
         new Marker() {
            position = "-11 -10 -19";
            rotation = "1 0 0 0";
            scale = "1 1 1";
            seqNum = "1";
            msToNext = "1200";
            smoothingType = "Accelerate";
         };
         new Marker() {
            position = "-25 -10 -19";
            rotation = "1 0 0 0";
            scale = "1 1 1";
            seqNum = "2";
            msToNext = "1200";
            smoothingType = "Linear";
         };
         new Marker() {
            position = "-25 -10 -19";
            rotation = "1 0 0 0";
            scale = "1 1 1";
            seqNum = "3";
            msToNext = "1000";
            smoothingType = "Accelerate";
         };
         new Marker() {
            position = "-11 -10 -19";
            rotation = "1 0 0 0";
            scale = "1 1 1";
            seqNum = "4";
            msToNext = "1200";
            smoothingType = "Linear";
         };
         new Marker() {
            position = "-11 -10 -19";
            rotation = "1 0 0 0";
            scale = "1 1 1";
            seqNum = "5";
            msToNext = "0";
            smoothingType = "Linear";
         };
      };
      new PathedInterior(MustChange) {
         position = "-14 0 0";
         rotation = "1 0 0 0";
         scale = "1 1 1";
         dataBlock = "PathedDefault";
         interiorResource = $usermods @ "/data/interiors_mbu/advanced/battlements.dif";
         interiorIndex = "2";
         basePosition = "0 0 0";
         baseRotation = "1 0 0 0";
         baseScale = "1 1 1";
         initialTargetPosition = "-1";
         initialPosition = "600";
      };
   };
   new SimGroup(MustChange_g) {
      new Path() {
         isLooping = "1";
         new Marker() {
            position = "-19 -6 -19";
            rotation = "1 0 0 0";
            scale = "1 1 1";
            seqNum = "1";
            msToNext = "1200";
            smoothingType = "Accelerate";
         };
         new Marker() {
            position = "-5 -6 -19";
            rotation = "1 0 0 0";
            scale = "1 1 1";
            seqNum = "2";
            msToNext = "1200";
            smoothingType = "Linear";
         };
         new Marker() {
            position = "-5 -6 -19";
            rotation = "1 0 0 0";
            scale = "1 1 1";
            seqNum = "3";
            msToNext = "1200";
            smoothingType = "Accelerate";
         };
         new Marker() {
            position = "-19 -6 -19";
            rotation = "1 0 0 0";
            scale = "1 1 1";
            seqNum = "4";
            msToNext = "1200";
            smoothingType = "Linear";
         };
         new Marker() {
            position = "-19 -6 -19";
            rotation = "1 0 0 0";
            scale = "1 1 1";
            seqNum = "5";
            msToNext = "0";
            smoothingType = "Linear";
         };
      };
      new PathedInterior(MustChange) {
         position = "7.58574 0 0";
         rotation = "1 0 0 0";
         scale = "1 1 1";
         dataBlock = "PathedDefault";
         interiorResource = $usermods @ "/data/interiors_mbu/advanced/battlements.dif";
         interiorIndex = "3";
         basePosition = "0 0 0";
         baseRotation = "1 0 0 0";
         baseScale = "1 1 1";
         initialTargetPosition = "-1";
         initialPosition = "600";
      };
   };
   new SimGroup(MustChange_g) {
      new Path() {
         isLooping = "1";
         new Marker() {
            position = "-19 -14 -19";
            rotation = "1 0 0 0";
            scale = "1 1 1";
            seqNum = "1";
            msToNext = "1200";
            smoothingType = "Accelerate";
         };
         new Marker() {
            position = "-5 -14 -19";
            rotation = "1 0 0 0";
            scale = "1 1 1";
            seqNum = "2";
            msToNext = "1200";
            smoothingType = "Linear";
         };
         new Marker() {
            position = "-5 -14 -19";
            rotation = "1 0 0 0";
            scale = "1 1 1";
            seqNum = "3";
            msToNext = "1200";
            smoothingType = "Accelerate";
         };
         new Marker() {
            position = "-19 -14 -19";
            rotation = "1 0 0 0";
            scale = "1 1 1";
            seqNum = "4";
            msToNext = "1200";
            smoothingType = "Linear";
         };
         new Marker() {
            position = "-19 -14 -19";
            rotation = "1 0 0 0";
            scale = "1 1 1";
            seqNum = "5";
            msToNext = "0";
            smoothingType = "Linear";
         };
      };
      new PathedInterior(MustChange) {
         position = "0.0245495 0 0";
         rotation = "1 0 0 0";
         scale = "1 1 1";
         dataBlock = "PathedDefault";
         interiorResource = $usermods @ "/data/interiors_mbu/advanced/battlements.dif";
         interiorIndex = "4";
         basePosition = "0 0 0";
         baseRotation = "1 0 0 0";
         baseScale = "1 1 1";
         initialTargetPosition = "-1";
         initialPosition = "0";
      };
   };
   new Trigger(Bounds) {
      position = "-38 38.25 -49";
      rotation = "1 0 0 0";
      scale = "46 64.25 5000";
      dataBlock = "InBoundsTrigger";
      polyhedron = "0.0000000 0.0000000 0.0000000 1.0000000 0.0000000 0.0000000 0.0000000 -1.0000000 0.0000000 0.0000000 0.0000000 1.0000000";
   };
   new Item() {
      position = "-19.3528 30.3085 5.29689";
      rotation = "1 0 0 0";
      scale = "1 1 1.2";
      dataBlock = "EasterEgg_MBU";
      collideable = "0";
      static = "1";
      rotate = "1";
   };
   new SimGroup() {
      new StaticShape(one) {
         position = "-14.9819 3.88523 -19.9734";
         rotation = "1 0 0 0";
         scale = "0.5 0.5 0.5";
         dataBlock = "checkPoint";
         isTemperable = "1";
chkcollide = "0";
      };
      new Trigger() {
         position = "-17.3058 6.77644 -20.7024";
         rotation = "1 0 0 0";
         scale = "5 5 5";
         dataBlock = "CheckPointTrigger";
         polyhedron = "0.0000000 0.0000000 0.0000000 1.0000000 0.0000000 0.0000000 0.0000000 -1.0000000 0.0000000 0.0000000 0.0000000 1.0000000";
         respawnPoint = "one";
      };
   };
   new SimGroup() {
      new StaticShape(two) {
         position = "-0.0190922 -0.264602 -0.984733";
         rotation = "0 0 -1 90";
         scale = "0.5 0.5 0.5";
         dataBlock = "checkPoint";
         isTemperable = "1";
chkcollide = "0";
      };
      new Trigger() {
         position = "0.638405 3.15992 -1.07663";
         rotation = "0 0 1 90";
         scale = "6.65046 3.71617 1.5";
         dataBlock = "CheckPointTrigger";
         polyhedron = "0.0000000 0.0000000 0.0000000 1.0000000 0.0000000 0.0000000 0.0000000 -1.0000000 0.0000000 0.0000000 0.0000000 1.0000000";
         respawnPoint = "two";
      };
   };
   new SimGroup() {
      new StaticShape(three) {
         position = "-26.0225 3.79563 0.287851";
         rotation = "0 0 1 180";
         scale = "0.5 0.5 0.5";
         dataBlock = "checkPoint";
         isTemperable = "1";
chkcollide = "0";
      };
      new Trigger() {
         position = "-25.0533 2.65006 0.284851";
         rotation = "0 0 1 182.201";
         scale = "2.00617 2.08945 1.5";
         dataBlock = "CheckPointTrigger";
         polyhedron = "0.0000000 0.0000000 0.0000000 1.0000000 0.0000000 0.0000000 0.0000000 -1.0000000 0.0000000 0.0000000 0.0000000 1.0000000";
         respawnPoint = "three";
      };
   };
   new SimGroup(PathNodeGroup) {

      new StaticShape(CameraPath1) {
         position = "5.97041 26.9622 15.6691";
         rotation = "-0.146577 -0.325603 0.934076 225.613";
         scale = "1 1 1";
         dataBlock = "PathNode";
            placed = "1";
            reverseRotation = "0";
            useScale = "0";
            useRotation = "1";
            timeToNext = "4000";
            usePosition = "1";
      };
   };
};
//--- OBJECT WRITE END ---
