share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/journey.lua
changeset 12385 1eaef4b1b3c1
parent 12384 eb11e1bc7547
child 12386 6af2b5406419
equal deleted inserted replaced
12384:eb11e1bc7547 12385:1eaef4b1b3c1
    96   AddEvent(CheckTookSniper, {}, DoTookSniper, {}, 0)
    96   AddEvent(CheckTookSniper, {}, DoTookSniper, {}, 0)
    97   AddEvent(CheckFailedCourse, {}, DoFailedCourse, {}, 0)
    97   AddEvent(CheckFailedCourse, {}, DoFailedCourse, {}, 0)
    98   SetGearMessage(leaks, 0)
    98   SetGearMessage(leaks, 0)
    99   TurnsLeft = 12
    99   TurnsLeft = 12
   100   TurnTimeLeft = TurnTime
   100   TurnTimeLeft = TurnTime
   101   ShowMission(loc("The Journey Back"), loc("Collateral Damage"), loc("Save the princess by collecting the crate in under 12 turns!"), 0, 6000)
   101   ShowMission(loc("The Journey Back"), loc("Collateral Damage"),
       
   102     loc("Save the princess by collecting the crate in under 12 turns!") .. "|" ..
       
   103     loc("Mines time: 3 seconds"), 0, 6000)
   102   -----------------------///////////////------------
   104   -----------------------///////////////------------
   103 end
   105 end
   104 
   106 
   105 function SkipEndAnimAlone()
   107 function SkipEndAnimAlone()
   106   RestoreHedge(cyborg)
   108   RestoreHedge(cyborg)
   180   SpawnUtilityCrate(3157, 1009, amLowGravity)
   182   SpawnUtilityCrate(3157, 1009, amLowGravity)
   181   sniperCrate = SpawnAmmoCrate(784, 1715, amSniperRifle)
   183   sniperCrate = SpawnAmmoCrate(784, 1715, amSniperRifle)
   182 end
   184 end
   183 
   185 
   184 function PlaceMinesDuo()
   186 function PlaceMinesDuo()
   185   SetTimer(AddGear(2920, 1448, gtMine, 0, 0, 0, 0), 5000)
   187   AddGear(2920, 1448, gtMine, 0, 0, 0, 0)
   186   SetTimer(AddGear(2985, 1338, gtMine, 0, 0, 0, 0), 5000)
   188   AddGear(2985, 1338, gtMine, 0, 0, 0, 0)
   187   SetTimer(AddGear(3005, 1302, gtMine, 0, 0, 0, 0), 5000)
   189   AddGear(3005, 1302, gtMine, 0, 0, 0, 0)
   188   SetTimer(AddGear(3030, 1270, gtMine, 0, 0, 0, 0), 5000)
   190   AddGear(3030, 1270, gtMine, 0, 0, 0, 0)
   189   SetTimer(AddGear(3046, 1257, gtMine, 0, 0, 0, 0), 5000)
   191   AddGear(3046, 1257, gtMine, 0, 0, 0, 0)
   190   SetTimer(AddGear(2954, 1400, gtMine, 0, 0, 0, 0), 5000)
   192   AddGear(2954, 1400, gtMine, 0, 0, 0, 0)
   191   SetTimer(AddGear(2967, 1385, gtMine, 0, 0, 0, 0), 5000)
   193   AddGear(2967, 1385, gtMine, 0, 0, 0, 0)
   192   SetTimer(AddGear(2849, 1449, gtMine, 0, 0, 0, 0), 5000)
   194   AddGear(2849, 1449, gtMine, 0, 0, 0, 0)
   193   SetTimer(AddGear(2811, 1436, gtMine, 0, 0, 0, 0), 5000)
   195   AddGear(2811, 1436, gtMine, 0, 0, 0, 0)
   194   SetTimer(AddGear(2773, 1411, gtMine, 0, 0, 0, 0), 5000)
   196   AddGear(2773, 1411, gtMine, 0, 0, 0, 0)
   195   SetTimer(AddGear(2732, 1390, gtMine, 0, 0, 0, 0), 5000)
   197   AddGear(2732, 1390, gtMine, 0, 0, 0, 0)
   196   SetTimer(AddGear(2700, 1362, gtMine, 0, 0, 0, 0), 5000)
   198   AddGear(2700, 1362, gtMine, 0, 0, 0, 0)
   197   SetTimer(AddGear(2642, 1321, gtMine, 0, 0, 0, 0), 5000)
   199   AddGear(2642, 1321, gtMine, 0, 0, 0, 0)
   198   SetTimer(AddGear(2172, 1417, gtMine, 0, 0, 0, 0), 5000)
   200   AddGear(2172, 1417, gtMine, 0, 0, 0, 0)
   199   SetTimer(AddGear(2190, 1363, gtMine, 0, 0, 0, 0), 5000)
   201   AddGear(2190, 1363, gtMine, 0, 0, 0, 0)
   200   SetTimer(AddGear(2219, 1332, gtMine, 0, 0, 0, 0), 5000)
   202   AddGear(2219, 1332, gtMine, 0, 0, 0, 0)
   201   SetTimer(AddGear(1201, 1207, gtMine, 0, 0, 0, 0), 5000)
   203   AddGear(1201, 1207, gtMine, 0, 0, 0, 0)
   202   SetTimer(AddGear(1247, 1205, gtMine, 0, 0, 0, 0), 5000)
   204   AddGear(1247, 1205, gtMine, 0, 0, 0, 0)
   203   SetTimer(AddGear(1295, 1212, gtMine, 0, 0, 0, 0), 5000)
   205   AddGear(1295, 1212, gtMine, 0, 0, 0, 0)
   204   SetTimer(AddGear(1356, 1209, gtMine, 0, 0, 0, 0), 5000)
   206   AddGear(1356, 1209, gtMine, 0, 0, 0, 0)
   205   SetTimer(AddGear(1416, 1201, gtMine, 0, 0, 0, 0), 5000)
   207   AddGear(1416, 1201, gtMine, 0, 0, 0, 0)
   206   SetTimer(AddGear(1466, 1201, gtMine, 0, 0, 0, 0), 5000)
   208   AddGear(1466, 1201, gtMine, 0, 0, 0, 0)
   207   SetTimer(AddGear(1678, 1198, gtMine, 0, 0, 0, 0), 5000)
   209   AddGear(1678, 1198, gtMine, 0, 0, 0, 0)
   208   SetTimer(AddGear(1738, 1198, gtMine, 0, 0, 0, 0), 5000)
   210   AddGear(1738, 1198, gtMine, 0, 0, 0, 0)
   209   SetTimer(AddGear(1796, 1198, gtMine, 0, 0, 0, 0), 5000)
   211   AddGear(1796, 1198, gtMine, 0, 0, 0, 0)
   210   SetTimer(AddGear(1637, 1217, gtMine, 0, 0, 0, 0), 5000)
   212   AddGear(1637, 1217, gtMine, 0, 0, 0, 0)
   211   SetTimer(AddGear(1519, 1213, gtMine, 0, 0, 0, 0), 5000)
   213   AddGear(1519, 1213, gtMine, 0, 0, 0, 0)
   212 end
   214 end
   213 
   215 
   214 function AfterPastFlowerAnim()
   216 function AfterPastFlowerAnim()
   215   PlaceMinesDuo()
   217   PlaceMinesDuo()
   216   AddEvent(CheckDensePit, {}, DoDensePit, {}, 0)
   218   AddEvent(CheckDensePit, {}, DoDensePit, {}, 0)
   217   AddEvent(CheckTookGirder1, {}, DoTookGirder1, {}, 0)
   219   AddEvent(CheckTookGirder1, {}, DoTookGirder1, {}, 0)
   218   AddEvent(CheckTookGirder2, {}, DoTookGirder2, {}, 0)
   220   AddEvent(CheckTookGirder2, {}, DoTookGirder2, {}, 0)
   219   SetGearMessage(leaks, 0)
   221   SetGearMessage(leaks, 0)
   220   SetGearMessage(dense, 0)
   222   SetGearMessage(dense, 0)
   221   EndTurn(0)
   223   EndTurn(0)
   222   ShowMission(loc("The Journey Back"), loc("The Savior"), loc("Get Dense Cloud out of the pit!"), 1, 5000)
   224   ShowMission(loc("The Journey Back"), loc("The Savior"), 
       
   225     loc("Get Dense Cloud out of the pit!") .. "|" ..
       
   226     loc("Beware of mines: They explode after 5 seconds."), 1, 5000)
   223 end
   227 end
   224 
   228 
   225 function SkipPastFlowerAnim()
   229 function SkipPastFlowerAnim()
   226   AnimSetGearPosition(dense, 2656, 1842)
   230   AnimSetGearPosition(dense, 2656, 1842)
   227   AnimSwitchHog(dense)
   231   AnimSwitchHog(dense)
   236   HideHedge(cannibals[5])
   240   HideHedge(cannibals[5])
   237   AddEvent(CheckTookFire, {}, DoTookFire, {}, 0)
   241   AddEvent(CheckTookFire, {}, DoTookFire, {}, 0)
   238   SetGearMessage(leaks, 0)
   242   SetGearMessage(leaks, 0)
   239   SetGearMessage(dense, 0)
   243   SetGearMessage(dense, 0)
   240   EndTurn(true)
   244   EndTurn(true)
   241   ShowMission(loc("The Journey Back"), loc("They never learn"), loc("Free Dense Cloud and continue the mission!"), 1, 5000)
   245   ShowMission(loc("The Journey Back"), loc("They never learn"),
       
   246     loc("Free Dense Cloud and continue the mission!") .. "|" ..
       
   247     loc("Mines time: 5 seconds"), 1, 5000)
   242 end
   248 end
   243 
   249 
   244 function SkipOutPitAnim()
   250 function SkipOutPitAnim()
   245   AnimSetGearPosition(dense, unpack(midDensePosDuo))
   251   AnimSetGearPosition(dense, unpack(midDensePosDuo))
   246   AnimSwitchHog(dense)
   252   AnimSwitchHog(dense)
   308   SpawnUtilityCrate(994, 825, amRope)
   314   SpawnUtilityCrate(994, 825, amRope)
   309   SpawnUtilityCrate(570, 1357, amLowGravity)
   315   SpawnUtilityCrate(570, 1357, amLowGravity)
   310 end
   316 end
   311 
   317 
   312 function DumpMines()
   318 function DumpMines()
   313   SetTimer(AddGear(2261, 1835, gtMine, 0, 0, 0, 0), 5000)
   319   AddGear(2261, 1835, gtMine, 0, 0, 0, 0)
   314   SetTimer(AddGear(2280, 1831, gtMine, 0, 0, 0, 0), 5000)
   320   AddGear(2280, 1831, gtMine, 0, 0, 0, 0)
   315   SetTimer(AddGear(2272, 1809, gtMine, 0, 0, 0, 0), 5000)
   321   AddGear(2272, 1809, gtMine, 0, 0, 0, 0)
   316   SetTimer(AddGear(2290, 1815, gtMine, 0, 0, 0, 0), 5000)
   322   AddGear(2290, 1815, gtMine, 0, 0, 0, 0)
   317   SetTimer(AddGear(2278, 1815, gtMine, 0, 0, 0, 0), 5000)
   323   AddGear(2278, 1815, gtMine, 0, 0, 0, 0)
   318   SetTimer(AddGear(2307, 1811, gtMine, 0, 0, 0, 0), 5000)
   324   AddGear(2307, 1811, gtMine, 0, 0, 0, 0)
   319   SetTimer(AddGear(2286, 1820, gtMine, 0, 0, 0, 0), 5000)
   325   AddGear(2286, 1820, gtMine, 0, 0, 0, 0)
   320   SetTimer(AddGear(2309, 1813, gtMine, 0, 0, 0, 0), 5000)
   326   AddGear(2309, 1813, gtMine, 0, 0, 0, 0)
   321   SetTimer(AddGear(2303, 1822, gtMine, 0, 0, 0, 0), 5000)
   327   AddGear(2303, 1822, gtMine, 0, 0, 0, 0)
   322   SetTimer(AddGear(2317, 1827, gtMine, 0, 0, 0, 0), 5000)
   328   AddGear(2317, 1827, gtMine, 0, 0, 0, 0)
   323   SetTimer(AddGear(2312, 1816, gtMine, 0, 0, 0, 0), 5000)
   329   AddGear(2312, 1816, gtMine, 0, 0, 0, 0)
   324   SetTimer(AddGear(2316, 1812, gtMine, 0, 0, 0, 0), 5000)
   330   AddGear(2316, 1812, gtMine, 0, 0, 0, 0)
   325   SetTimer(AddGear(2307, 1802, gtMine, 0, 0, 0, 0), 5000)
   331   AddGear(2307, 1802, gtMine, 0, 0, 0, 0)
   326   SetTimer(AddGear(2276, 1818, gtMine, 0, 0, 0, 0), 5000)
   332   AddGear(2276, 1818, gtMine, 0, 0, 0, 0)
   327   SetTimer(AddGear(2284, 1816, gtMine, 0, 0, 0, 0), 5000)
   333   AddGear(2284, 1816, gtMine, 0, 0, 0, 0)
   328   SetTimer(AddGear(2292, 1811, gtMine, 0, 0, 0, 0), 5000)
   334   AddGear(2292, 1811, gtMine, 0, 0, 0, 0)
   329   SetTimer(AddGear(2295, 1814, gtMine, 0, 0, 0, 0), 5000)
   335   AddGear(2295, 1814, gtMine, 0, 0, 0, 0)
   330   SetTimer(AddGear(2306, 1811, gtMine, 0, 0, 0, 0), 5000)
   336   AddGear(2306, 1811, gtMine, 0, 0, 0, 0)
   331   SetTimer(AddGear(2292, 1815, gtMine, 0, 0, 0, 0), 5000)
   337   AddGear(2292, 1815, gtMine, 0, 0, 0, 0)
   332   SetTimer(AddGear(2314, 1815, gtMine, 0, 0, 0, 0), 5000)
   338   AddGear(2314, 1815, gtMine, 0, 0, 0, 0)
   333   SetTimer(AddGear(2286, 1813, gtMine, 0, 0, 0, 0), 5000)
   339   AddGear(2286, 1813, gtMine, 0, 0, 0, 0)
   334   SetTimer(AddGear(2275, 1813, gtMine, 0, 0, 0, 0), 5000)
   340   AddGear(2275, 1813, gtMine, 0, 0, 0, 0)
   335   SetTimer(AddGear(2269, 1814, gtMine, 0, 0, 0, 0), 5000)
   341   AddGear(2269, 1814, gtMine, 0, 0, 0, 0)
   336   SetTimer(AddGear(2273, 1812, gtMine, 0, 0, 0, 0), 5000)
   342   AddGear(2273, 1812, gtMine, 0, 0, 0, 0)
   337   SetTimer(AddGear(2300, 1808, gtMine, 0, 0, 0, 0), 5000)
   343   AddGear(2300, 1808, gtMine, 0, 0, 0, 0)
   338   SetTimer(AddGear(2322, 1812, gtMine, 0, 0, 0, 0), 5000)
   344   AddGear(2322, 1812, gtMine, 0, 0, 0, 0)
   339   SetTimer(AddGear(2323, 1813, gtMine, 0, 0, 0, 0), 5000)
   345   AddGear(2323, 1813, gtMine, 0, 0, 0, 0)
   340   SetTimer(AddGear(2311, 1811, gtMine, 0, 0, 0, 0), 5000)
   346   AddGear(2311, 1811, gtMine, 0, 0, 0, 0)
   341   SetTimer(AddGear(2303, 1809, gtMine, 0, 0, 0, 0), 5000)
   347   AddGear(2303, 1809, gtMine, 0, 0, 0, 0)
   342   SetTimer(AddGear(2287, 1808, gtMine, 0, 0, 0, 0), 5000)
   348   AddGear(2287, 1808, gtMine, 0, 0, 0, 0)
   343   SetTimer(AddGear(2282, 1808, gtMine, 0, 0, 0, 0), 5000)
   349   AddGear(2282, 1808, gtMine, 0, 0, 0, 0)
   344   SetTimer(AddGear(2277, 1809, gtMine, 0, 0, 0, 0), 5000)
   350   AddGear(2277, 1809, gtMine, 0, 0, 0, 0)
   345   SetTimer(AddGear(2296, 1809, gtMine, 0, 0, 0, 0), 5000)
   351   AddGear(2296, 1809, gtMine, 0, 0, 0, 0)
   346   SetTimer(AddGear(2314, 1818, gtMine, 0, 0, 0, 0), 5000)
   352   AddGear(2314, 1818, gtMine, 0, 0, 0, 0)
   347 end
   353 end
   348 
   354 
   349 function SetupAnimRefusedDied()
   355 function SetupAnimRefusedDied()
   350   SetupAnimAcceptedDied()
   356   SetupAnimAcceptedDied()
   351   table.insert(startAnim, {func = AnimSay, args = {leaks, loc("I just wonder where Ramon and Spiky disappeared..."), SAY_THINK, 6000}})
   357   table.insert(startAnim, {func = AnimSay, args = {leaks, loc("I just wonder where Ramon and Spiky disappeared..."), SAY_THINK, 6000}})
   603   gravityCrate = SpawnUtilityCrate(3448, 1349, amLowGravity)
   609   gravityCrate = SpawnUtilityCrate(3448, 1349, amLowGravity)
   604   SpawnUtilityCrate(3212, 1256, amGirder)
   610   SpawnUtilityCrate(3212, 1256, amGirder)
   605   SpawnUtilityCrate(3113, 911, amParachute)
   611   SpawnUtilityCrate(3113, 911, amParachute)
   606   sniperCrate = SpawnAmmoCrate(784, 1715, amSniperRifle)
   612   sniperCrate = SpawnAmmoCrate(784, 1715, amSniperRifle)
   607   ------ MINE LIST ------
   613   ------ MINE LIST ------
   608   SetTimer(AddGear(3328, 1399, gtMine, 0, 0, 0, 0), 3000)
   614   AddGear(3328, 1399, gtMine, 0, 0, 0, 0)
   609   SetTimer(AddGear(3028, 1262, gtMine, 0, 0, 0, 0), 3000)
   615   AddGear(3028, 1262, gtMine, 0, 0, 0, 0)
   610   SetTimer(AddGear(2994, 1274, gtMine, 0, 0, 0, 0), 3000)
   616   AddGear(2994, 1274, gtMine, 0, 0, 0, 0)
   611   SetTimer(AddGear(2956, 1277, gtMine, 0, 0, 0, 0), 3000)
   617   AddGear(2956, 1277, gtMine, 0, 0, 0, 0)
   612   SetTimer(AddGear(2925, 1282, gtMine, 0, 0, 0, 0), 3000)
   618   AddGear(2925, 1282, gtMine, 0, 0, 0, 0)
   613   SetTimer(AddGear(2838, 1276, gtMine, 0, 0, 0, 0), 3000)
   619   AddGear(2838, 1276, gtMine, 0, 0, 0, 0)
   614   SetTimer(AddGear(2822, 1278, gtMine, 0, 0, 0, 0), 3000)
   620   AddGear(2822, 1278, gtMine, 0, 0, 0, 0)
   615   SetTimer(AddGear(2786, 1283, gtMine, 0, 0, 0, 0), 3000)
   621   AddGear(2786, 1283, gtMine, 0, 0, 0, 0)
   616   SetTimer(AddGear(2766, 1270, gtMine, 0, 0, 0, 0), 3000)
   622   AddGear(2766, 1270, gtMine, 0, 0, 0, 0)
   617   SetTimer(AddGear(2749, 1231, gtMine, 0, 0, 0, 0), 3000)
   623   AddGear(2749, 1231, gtMine, 0, 0, 0, 0)
   618   SetTimer(AddGear(2717, 1354, gtMine, 0, 0, 0, 0), 3000)
   624   AddGear(2717, 1354, gtMine, 0, 0, 0, 0)
   619   SetTimer(AddGear(2167, 1330, gtMine, 0, 0, 0, 0), 3000)
   625   AddGear(2167, 1330, gtMine, 0, 0, 0, 0)
   620   SetTimer(AddGear(2201, 1321, gtMine, 0, 0, 0, 0), 3000)
   626   AddGear(2201, 1321, gtMine, 0, 0, 0, 0)
   621   SetTimer(AddGear(2239, 1295, gtMine, 0, 0, 0, 0), 3000)
   627   AddGear(2239, 1295, gtMine, 0, 0, 0, 0)
   622 
   628 
   623   AnimSetGearPosition(leaks, 3781, 1583)
   629   AnimSetGearPosition(leaks, 3781, 1583)
   624   AddAmmo(cannibals[1], amShotgun, 100)
   630   AddAmmo(cannibals[1], amShotgun, 100)
   625   AddAmmo(leaks, amSwitch, 0)
   631   AddAmmo(leaks, amSwitch, 0)
   626 end
   632 end
   722   SetHealth(AddGear(1148, 736, gtExplosives, 0, 0, 0, 0), 20)
   728   SetHealth(AddGear(1148, 736, gtExplosives, 0, 0, 0, 0), 20)
   723 
   729 
   724 end
   730 end
   725 
   731 
   726 function PlaceCourseMines()
   732 function PlaceCourseMines()
   727   SetTimer(AddGear(1215, 1193, gtMine, 0, 0, 0, 0), 5000)
   733   AddGear(1215, 1193, gtMine, 0, 0, 0, 0)
   728   SetTimer(AddGear(1259, 1199, gtMine, 0, 0, 0, 0), 5000)
   734   AddGear(1259, 1199, gtMine, 0, 0, 0, 0)
   729   SetTimer(AddGear(1310, 1198, gtMine, 0, 0, 0, 0), 5000)
   735   AddGear(1310, 1198, gtMine, 0, 0, 0, 0)
   730   SetTimer(AddGear(1346, 1196, gtMine, 0, 0, 0, 0), 5000)
   736   AddGear(1346, 1196, gtMine, 0, 0, 0, 0)
   731   SetTimer(AddGear(1383, 1192, gtMine, 0, 0, 0, 0), 5000)
   737   AddGear(1383, 1192, gtMine, 0, 0, 0, 0)
   732   SetTimer(AddGear(1436, 1196, gtMine, 0, 0, 0, 0), 5000)
   738   AddGear(1436, 1196, gtMine, 0, 0, 0, 0)
   733   SetTimer(AddGear(1487, 1199, gtMine, 0, 0, 0, 0), 5000)
   739   AddGear(1487, 1199, gtMine, 0, 0, 0, 0)
   734   SetTimer(AddGear(1651, 1209, gtMine, 0, 0, 0, 0), 5000)
   740   AddGear(1651, 1209, gtMine, 0, 0, 0, 0)
   735   SetTimer(AddGear(1708, 1209, gtMine, 0, 0, 0, 0), 5000)
   741   AddGear(1708, 1209, gtMine, 0, 0, 0, 0)
   736   SetTimer(AddGear(1759, 1190, gtMine, 0, 0, 0, 0), 5000)
   742   AddGear(1759, 1190, gtMine, 0, 0, 0, 0)
   737   SetTimer(AddGear(1815, 1184, gtMine, 0, 0, 0, 0), 5000)
   743   AddGear(1815, 1184, gtMine, 0, 0, 0, 0)
   738 end
   744 end
   739 
   745 
   740 
   746 
   741 --////////////////////////////Event Functions////////////////////////
   747 --////////////////////////////Event Functions////////////////////////
   742 function CheckTookFire()
   748 function CheckTookFire()
   831 function CheckTookLowGravity()
   837 function CheckTookLowGravity()
   832   return gravityTaken
   838   return gravityTaken
   833 end
   839 end
   834 
   840 
   835 function DoTookLowGravity()
   841 function DoTookLowGravity()
   836   ShowMission(loc("The Journey Back"), loc("The Moonwalk"), loc("Hint: Select the low gravity and press [Fire]."), 0, 6000)
   842   ShowMission(loc("The Journey Back"), loc("The Moonwalk"),
       
   843     loc("Hint: Select the low gravity and press [Fire].") .. "|" ..
       
   844     loc("Beware of mines: They explode after 3 seconds."), 0, 6000)
   837 end
   845 end
   838 
   846 
   839 function CheckOnBridge()
   847 function CheckOnBridge()
   840   return leaksDead == false and GetX(leaks) < 1651 and StoppedGear(leaks)
   848   return leaksDead == false and GetX(leaks) < 1651 and StoppedGear(leaks)
   841 end
   849 end
   940 end
   948 end
   941 
   949 
   942 --////////////////////////////Main Functions/////////////////////////
   950 --////////////////////////////Main Functions/////////////////////////
   943 
   951 
   944 function onGameInit()
   952 function onGameInit()
       
   953   progress = tonumber(GetCampaignVar("Progress"))
       
   954   m2Choice = tonumber(GetCampaignVar("M2Choice"))
       
   955   m2DenseDead = tonumber(GetCampaignVar("M2DenseDead"))
       
   956   m2RamonDead = tonumber(GetCampaignVar("M2RamonDead"))
       
   957   m2SpikyDead = tonumber(GetCampaignVar("M2SpikyDead"))
       
   958 
   945 	Seed = 0
   959 	Seed = 0
   946 	GameFlags = gfSolidLand + gfDisableWind
   960 	GameFlags = gfSolidLand + gfDisableWind
   947 	TurnTime = 40000 
   961 	TurnTime = 40000 
   948 	CaseFreq = 0
   962 	CaseFreq = 0
   949 	MinesNum = 0
   963 	MinesNum = 0
   950 	MinesTime = 3000
   964 
       
   965 	if m2DenseDead == 1 then
       
   966 		MinesTime = 3000
       
   967 	else
       
   968 		MinesTime = 5000
       
   969 	end
   951 	Explosives = 0
   970 	Explosives = 0
   952 	Delay = 5
   971 	Delay = 5
   953     Map = "A_Classic_Fairytale_journey"
   972     Map = "A_Classic_Fairytale_journey"
   954     Theme = "Nature"
   973     Theme = "Nature"
   955 
   974 
   984   
  1003   
   985   AnimInit()
  1004   AnimInit()
   986 end
  1005 end
   987 
  1006 
   988 function onGameStart()
  1007 function onGameStart()
   989   progress = tonumber(GetCampaignVar("Progress"))
       
   990   m2Choice = tonumber(GetCampaignVar("M2Choice"))
       
   991   m2DenseDead = tonumber(GetCampaignVar("M2DenseDead"))
       
   992   m2RamonDead = tonumber(GetCampaignVar("M2RamonDead"))
       
   993   m2SpikyDead = tonumber(GetCampaignVar("M2SpikyDead"))
       
   994   StartMission()
  1008   StartMission()
   995 end
  1009 end
   996 
  1010 
   997 function onGameTick()
  1011 function onGameTick()
   998   AnimUnWait()
  1012   AnimUnWait()