share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/journey.lua
changeset 12381 6af2b5406419
parent 12380 1eaef4b1b3c1
child 12512 b1c2b0a8a43e
equal deleted inserted replaced
12380:1eaef4b1b3c1 12381:6af2b5406419
   221   SetGearMessage(leaks, 0)
   221   SetGearMessage(leaks, 0)
   222   SetGearMessage(dense, 0)
   222   SetGearMessage(dense, 0)
   223   EndTurn(0)
   223   EndTurn(0)
   224   ShowMission(loc("The Journey Back"), loc("The Savior"), 
   224   ShowMission(loc("The Journey Back"), loc("The Savior"), 
   225     loc("Get Dense Cloud out of the pit!") .. "|" ..
   225     loc("Get Dense Cloud out of the pit!") .. "|" ..
       
   226     loc("Your hogs must survive!") .. "|" ..
   226     loc("Beware of mines: They explode after 5 seconds."), 1, 5000)
   227     loc("Beware of mines: They explode after 5 seconds."), 1, 5000)
   227 end
   228 end
   228 
   229 
   229 function SkipPastFlowerAnim()
   230 function SkipPastFlowerAnim()
   230   AnimSetGearPosition(dense, 2656, 1842)
   231   AnimSetGearPosition(dense, 2656, 1842)
   242   SetGearMessage(leaks, 0)
   243   SetGearMessage(leaks, 0)
   243   SetGearMessage(dense, 0)
   244   SetGearMessage(dense, 0)
   244   EndTurn(true)
   245   EndTurn(true)
   245   ShowMission(loc("The Journey Back"), loc("They never learn"),
   246   ShowMission(loc("The Journey Back"), loc("They never learn"),
   246     loc("Free Dense Cloud and continue the mission!") .. "|" ..
   247     loc("Free Dense Cloud and continue the mission!") .. "|" ..
       
   248     loc("Collect the weapon crate at the left coast!") .. "|" ..
       
   249     loc("Your hogs must survive!") .. "|" ..
   247     loc("Mines time: 5 seconds"), 1, 5000)
   250     loc("Mines time: 5 seconds"), 1, 5000)
   248 end
   251 end
   249 
   252 
   250 function SkipOutPitAnim()
   253 function SkipOutPitAnim()
   251   AnimSetGearPosition(dense, unpack(midDensePosDuo))
   254   AnimSetGearPosition(dense, unpack(midDensePosDuo))
   829 function CheckTookBlowTorch()
   832 function CheckTookBlowTorch()
   830   return blowTaken
   833   return blowTaken
   831 end
   834 end
   832 
   835 
   833 function DoTookBlowTorch()
   836 function DoTookBlowTorch()
   834   ShowMission(loc("The Journey Back"), loc("The Tunnel Maker"), loc("Hint: Select the blowtorch, aim and press [Fire]. Press [Fire] again to stop.").."|"..loc("Don't blow up the crate."), 0, 6000)
   837   ShowMission(loc("The Journey Back"), loc("The Tunnel Maker"), 
       
   838     loc("Get past the flower.").."|"..
       
   839     loc("Hint: Select the blow torch, aim and press [Fire]. Press [Fire] again to stop.").."|"..
       
   840     loc("Don't blow up the crate."), 0, 6000)
   835 end
   841 end
   836 
   842 
   837 function CheckTookLowGravity()
   843 function CheckTookLowGravity()
   838   return gravityTaken
   844   return gravityTaken
   839 end
   845 end
   840 
   846 
   841 function DoTookLowGravity()
   847 function DoTookLowGravity()
   842   ShowMission(loc("The Journey Back"), loc("The Moonwalk"),
   848   ShowMission(loc("The Journey Back"), loc("The Moonwalk"),
       
   849     loc("Hop on top of the next flower and advance to the left coast.").."|"..
   843     loc("Hint: Select the low gravity and press [Fire].") .. "|" ..
   850     loc("Hint: Select the low gravity and press [Fire].") .. "|" ..
   844     loc("Beware of mines: They explode after 3 seconds."), 0, 6000)
   851     loc("Beware of mines: They explode after 3 seconds."), 0, 6000)
   845 end
   852 end
   846 
   853 
   847 function CheckOnBridge()
   854 function CheckOnBridge()
   870   return leaksDead == false and GetX(leaks) < 1160 and StoppedGear(leaks)
   877   return leaksDead == false and GetX(leaks) < 1160 and StoppedGear(leaks)
   871 end
   878 end
   872 
   879 
   873 function DoOnFirstGirder()
   880 function DoOnFirstGirder()
   874   PlaceCourseMines()
   881   PlaceCourseMines()
   875   ShowMission(loc("The Journey Back"), loc("Slippery"), loc("You'd better watch your steps..."), 0, 4000)
   882   ShowMission(loc("The Journey Back"), loc("Slippery"), 
       
   883     loc("Collect the weapon crate at the left coast!") .. "|" ..
       
   884     loc("You'd better watch your steps..."), 0, 4000)
   876 end
   885 end
   877 
   886 
   878 function CheckTookSniper()
   887 function CheckTookSniper()
   879   return sniperTaken and StoppedGear(leaks)
   888   return sniperTaken and StoppedGear(leaks)
   880 end
   889 end