share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/journey.lua
changeset 15068 6f51c75994a4
parent 15050 ce3efc9cc6d3
child 15167 9d4a6ab60dec
equal deleted inserted replaced
15067:d59da429d22c 15068:6f51c75994a4
   199   SetGearMessage(leaks, band(GetGearMessage(leaks), bnot(gmAllStoppable)))
   199   SetGearMessage(leaks, band(GetGearMessage(leaks), bnot(gmAllStoppable)))
   200   TurnsLeft = 12
   200   TurnsLeft = 12
   201   SetTurnTimeLeft(TurnTime)
   201   SetTurnTimeLeft(TurnTime)
   202   ShowMission(loc("The Journey Back"), loc("Collateral Damage"),
   202   ShowMission(loc("The Journey Back"), loc("Collateral Damage"),
   203     loc("Save the princess by collecting the crate in under 12 turns!") .. "|" ..
   203     loc("Save the princess by collecting the crate in under 12 turns!") .. "|" ..
   204     loc("Mines time: 3 seconds"), 0, 6000)
   204     loc("Mines time: 3 seconds"), 7, 6000)
   205   -----------------------///////////////------------
   205   -----------------------///////////////------------
   206 end
   206 end
   207 
   207 
   208 function SkipEndAnimAlone()
   208 function SkipEndAnimAlone()
   209   RestoreHedge(cyborg)
   209   RestoreHedge(cyborg)
   264   local stuck = loc("If you get stuck, use your Desert Eagle or restart the mission!")
   264   local stuck = loc("If you get stuck, use your Desert Eagle or restart the mission!")
   265   local conds = loc("Leaks A Lot must survive!")
   265   local conds = loc("Leaks A Lot must survive!")
   266   if m2DenseDead == 0 then
   266   if m2DenseDead == 0 then
   267     conds = loc("Your hogs must survive!")
   267     conds = loc("Your hogs must survive!")
   268   end
   268   end
   269   ShowMission(loc("The Journey Back"), loc("Adventurous"), goal .. "|" .. hint .. "|" .. stuck .. "|" .. conds, 0, 7000)
   269   ShowMission(loc("The Journey Back"), loc("Adventurous"), goal .. "|" .. hint .. "|" .. stuck .. "|" .. conds, 1, 7000)
   270 end
   270 end
   271 
   271 
   272 function SkipStartAnim()
   272 function SkipStartAnim()
   273   AnimTurn(leaks, "Left")
   273   AnimTurn(leaks, "Left")
   274   AnimSwitchHog(leaks)
   274   AnimSwitchHog(leaks)
   320   SetGearMessage(leaks, band(GetGearMessage(leaks), bnot(gmAllStoppable)))
   320   SetGearMessage(leaks, band(GetGearMessage(leaks), bnot(gmAllStoppable)))
   321   EndTurn(true)
   321   EndTurn(true)
   322   ShowMission(loc("The Journey Back"), loc("The Savior"), 
   322   ShowMission(loc("The Journey Back"), loc("The Savior"), 
   323     loc("Get Dense Cloud out of the pit!") .. "|" ..
   323     loc("Get Dense Cloud out of the pit!") .. "|" ..
   324     loc("Your hogs must survive!") .. "|" ..
   324     loc("Your hogs must survive!") .. "|" ..
   325     loc("Beware of mines: They explode after 5 seconds."), 1, 5000)
   325     loc("Beware of mines: They explode after 5 seconds."), 10, 5000)
   326 end
   326 end
   327 
   327 
   328 function SkipPastFlowerAnim()
   328 function SkipPastFlowerAnim()
   329   AnimSetGearPosition(dense, 2656, 1845)
   329   AnimSetGearPosition(dense, 2656, 1845)
   330   AnimTurn(dense, "Left")
   330   AnimTurn(dense, "Left")
   942 
   942 
   943 function DoTookBlowTorch()
   943 function DoTookBlowTorch()
   944   ShowMission(loc("The Journey Back"), loc("The Tunnel Maker"), 
   944   ShowMission(loc("The Journey Back"), loc("The Tunnel Maker"), 
   945     loc("Get past the flower.").."|"..
   945     loc("Get past the flower.").."|"..
   946     loc("Hint: Select the blow torch, aim and press [Fire]. Press [Fire] again to stop.").."|"..
   946     loc("Hint: Select the blow torch, aim and press [Fire]. Press [Fire] again to stop.").."|"..
   947     loc("Don't blow up the crate."), 0, 6000)
   947     loc("Don't blow up the crate."), 2, 6000)
   948 end
   948 end
   949 
   949 
   950 function CheckTookLowGravity()
   950 function CheckTookLowGravity()
   951   return gravityTaken
   951   return gravityTaken
   952 end
   952 end
   953 
   953 
   954 function DoTookLowGravity()
   954 function DoTookLowGravity()
   955   ShowMission(loc("The Journey Back"), loc("The Moonwalk"),
   955   ShowMission(loc("The Journey Back"), loc("The Moonwalk"),
   956     loc("Hop on top of the next flower and advance to the left coast.").."|"..
   956     loc("Hop on top of the next flower and advance to the left coast.").."|"..
   957     loc("Hint: Select the low gravity and press [Fire].") .. "|" ..
   957     loc("Hint: Select the low gravity and press [Fire].") .. "|" ..
   958     loc("Beware of mines: They explode after 3 seconds."), 0, 6000)
   958     loc("Beware of mines: They explode after 3 seconds."), 2, 6000)
   959 end
   959 end
   960 
   960 
   961 function CheckOnBridge()
   961 function CheckOnBridge()
   962   return leaksDead == false and GetX(leaks) < 1651 and StoppedGear(leaks)
   962   return leaksDead == false and GetX(leaks) < 1651 and StoppedGear(leaks)
   963 end
   963 end
   978 function DoOnFirstGirder()
   978 function DoOnFirstGirder()
   979   PlaceCourseMines()
   979   PlaceCourseMines()
   980   ShowMission(loc("The Journey Back"), loc("Slippery"), 
   980   ShowMission(loc("The Journey Back"), loc("Slippery"), 
   981     loc("Collect the weapon crate at the left coast!") .. "|" ..
   981     loc("Collect the weapon crate at the left coast!") .. "|" ..
   982     loc("You'd better watch your steps...") .. "|" ..
   982     loc("You'd better watch your steps...") .. "|" ..
   983     loc("Mines time: 3 seconds"), 0, 4000)
   983     loc("Mines time: 3 seconds"), 7, 4000)
   984 end
   984 end
   985 
   985 
   986 function CheckTookSniper()
   986 function CheckTookSniper()
   987   return sniperTaken and StoppedGear(leaks)
   987   return sniperTaken and StoppedGear(leaks)
   988 end
   988 end