share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/dragon.lua
changeset 12933 e65aa3c3d4e6
parent 12901 bdf8e80a97b8
child 13097 03d065fc60dc
equal deleted inserted replaced
12932:e0da398805b6 12933:e65aa3c3d4e6
   344   AddFunction({func = HideHedge, args = {cyborg}})
   344   AddFunction({func = HideHedge, args = {cyborg}})
   345 end
   345 end
   346 
   346 
   347 function SpawnCrateByID(id)
   347 function SpawnCrateByID(id)
   348     if cratePos[id][2] == true then
   348     if cratePos[id][2] == true then
   349        crates[id] = SpawnUtilityCrate(unpack(cratePos[id][1]))
   349        crates[id] = SpawnSupplyCrate(unpack(cratePos[id][1]))
   350     else
   350     else
   351        crates[id] = SpawnAmmoCrate(unpack(cratePos[id][1]))
   351        crates[id] = SpawnSupplyCrate(unpack(cratePos[id][1]))
   352     end
   352     end
   353     return crates[id]
   353     return crates[id]
   354 end
   354 end
   355 
   355 
   356 function AfterStartAnim()
   356 function AfterStartAnim()
   396 function AfterKilledAnim()
   396 function AfterKilledAnim()
   397   -- Final mission segment with the portal gun
   397   -- Final mission segment with the portal gun
   398   HideHedge(cyborg)
   398   HideHedge(cyborg)
   399   TurnTimeLeft = TurnTime
   399   TurnTimeLeft = TurnTime
   400   SetGearMessage(native, 0)
   400   SetGearMessage(native, 0)
   401   SpawnUtilityCrate(1184, 399, amPortalGun, 100)
   401   SpawnSupplyCrate(1184, 399, amPortalGun, 100)
   402   SpawnUtilityCrate(2259, 755, amTeleport, 2)
   402   SpawnSupplyCrate(2259, 755, amTeleport, 2)
   403   SpawnHealthCrate(secondPos[1][1] + 50, secondPos[1][2] - 20)
   403   SpawnHealthCrate(secondPos[1][1] + 50, secondPos[1][2] - 20)
   404   ShowMission(loc("Dragon's Lair"), loc("The what?!"), loc("Use the portal gun to get to the next crate, then use the new gun to get to the final destination!|")..
   404   ShowMission(loc("Dragon's Lair"), loc("The what?!"), loc("Use the portal gun to get to the next crate, then use the new gun to get to the final destination!|")..
   405                                              loc("Portal hint: One goes to the destination, the other one is the entrance.|")..
   405                                              loc("Portal hint: One goes to the destination, the other one is the entrance.|")..
   406                                              loc("Teleport hint: Just use the mouse to select the destination!").."|"..
   406                                              loc("Teleport hint: Just use the mouse to select the destination!").."|"..
   407                                              loc("Mines time: 5 seconds"), 1, 8000)
   407                                              loc("Mines time: 5 seconds"), 1, 8000)
   561     else
   561     else
   562       native = natives[i]
   562       native = natives[i]
   563     end
   563     end
   564   end
   564   end
   565   HideHedge(cyborg)
   565   HideHedge(cyborg)
   566   jetCrate = SpawnUtilityCrate(3915, 1723, amJetpack)
   566   jetCrate = SpawnSupplyCrate(3915, 1723, amJetpack)
   567 
   567 
   568   --[[ Block the left entrance.
   568   --[[ Block the left entrance.
   569        Otherwise the player could rope out of the map and
   569        Otherwise the player could rope out of the map and
   570        go all the way around to the final crate. ]]
   570        go all the way around to the final crate. ]]
   571   PlaceGirder(90, 1709, 6)
   571   PlaceGirder(90, 1709, 6)