share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/desert01.lua
changeset 12575 0c5ce463949b
parent 12571 903a30fb49e6
child 12586 7510fe66bfbb
equal deleted inserted replaced
12574:2a7cc304c8be 12575:0c5ce463949b
    23 -- dialogs
    23 -- dialogs
    24 local dialog01 = {}
    24 local dialog01 = {}
    25 -- mission objectives
    25 -- mission objectives
    26 local goals = {
    26 local goals = {
    27 	[dialog01] = {missionName, loc("Getting ready"), loc("The device part is hidden in one of the crates! Go and get it!").."|"..
    27 	[dialog01] = {missionName, loc("Getting ready"), loc("The device part is hidden in one of the crates! Go and get it!").."|"..
    28 			loc("Most of the destructible terrain in marked with blue color").."|"..loc("Mines time: 0 seconds"), 1, 4500},
    28 			loc("Most of the destructible terrain in marked with blue color").."|"..loc("Mines time: 0 seconds"), 1, 6000},
    29 }
    29 }
    30 -- crates
    30 -- crates
    31 local btorch1Y = 60
    31 local btorch1Y = 60
    32 local btorch1X = 2700
    32 local btorch1X = 2700
    33 local btorch2Y = 1900
    33 local btorch2Y = 1900
   419 -------------- ANIMATIONS ------------------
   419 -------------- ANIMATIONS ------------------
   420 
   420 
   421 function Skipanim(anim)
   421 function Skipanim(anim)
   422 	if goals[anim] ~= nil then
   422 	if goals[anim] ~= nil then
   423 		ShowMission(unpack(goals[anim]))
   423 		ShowMission(unpack(goals[anim]))
   424     end
   424 	end
   425     AnimSwitchHog(hero.gear)
   425 	AnimSwitchHog(hero.gear)
   426 	if anim == dialog01 then
   426 	if anim == dialog01 then
   427 		startMission()
   427 		startMission()
   428 	end
   428 	end
   429 end
   429 end
   430 
   430 
   448 	table.insert(dialog01, {func = AnimSay, args = {hero.gear, loc("Okay, I'll be extra careful!"), SAY_SAY, 4000}})
   448 	table.insert(dialog01, {func = AnimSay, args = {hero.gear, loc("Okay, I'll be extra careful!"), SAY_SAY, 4000}})
   449 	table.insert(dialog01, {func = AnimWait, args = {ally.gear, 2000}})
   449 	table.insert(dialog01, {func = AnimWait, args = {ally.gear, 2000}})
   450 	table.insert(dialog01, {func = AnimSay, args = {ally.gear, loc("The tunnel entrance is over there."), SAY_SAY, 3000}})
   450 	table.insert(dialog01, {func = AnimSay, args = {ally.gear, loc("The tunnel entrance is over there."), SAY_SAY, 3000}})
   451 	table.insert(dialog01, {func = AnimSay, args = {ally.gear, loc("Good luck!"), SAY_SAY, 3000}})
   451 	table.insert(dialog01, {func = AnimSay, args = {ally.gear, loc("Good luck!"), SAY_SAY, 3000}})
   452 	table.insert(dialog01, {func = AnimWait, args = {hero.gear, 500}})
   452 	table.insert(dialog01, {func = AnimWait, args = {hero.gear, 500}})
       
   453 	table.insert(dialog01, {func = ShowMission, args = goals[dialog01]})
   453 	table.insert(dialog01, {func = startMission, args = {hero.gear}})
   454 	table.insert(dialog01, {func = startMission, args = {hero.gear}})
   454 end
   455 end
   455 
   456 
   456 --------------- OTHER FUNCTIONS ------------------
   457 --------------- OTHER FUNCTIONS ------------------
   457 
   458