share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/ice01.lua
branchspacecampaign
changeset 9623 d3f7d1b8b46d
parent 9622 db9f6b7955ba
child 9624 51e22761679d
equal deleted inserted replaced
9622:db9f6b7955ba 9623:d3f7d1b8b46d
    26 local dialog01 = {}
    26 local dialog01 = {}
    27 local dialog02 = {}
    27 local dialog02 = {}
    28 -- mission objectives
    28 -- mission objectives
    29 local goals = {
    29 local goals = {
    30 	[dialog01] = {missionName, loc("Getting ready"), loc("Collect the icegun and get the device part from Thanta"), 1, 4500},
    30 	[dialog01] = {missionName, loc("Getting ready"), loc("Collect the icegun and get the device part from Thanta"), 1, 4500},
       
    31 	[dialog02] = {missionName, loc("Win"), loc("Congratulations, you got the part!"), 1, 3500},
    31 }
    32 }
    32 -- crates
    33 -- crates
    33 local icegunY = 1950
    34 local icegunY = 1950
    34 local icegunX = 260
    35 local icegunX = 260
    35 -- hogs
    36 -- hogs
   467 -------------- ANIMATIONS ------------------
   468 -------------- ANIMATIONS ------------------
   468 
   469 
   469 function Skipanim(anim)
   470 function Skipanim(anim)
   470 	if goals[anim] ~= nil then
   471 	if goals[anim] ~= nil then
   471 		ShowMission(unpack(goals[anim]))
   472 		ShowMission(unpack(goals[anim]))
   472     end    
   473     end
   473     if anim == dialog02 then
   474     if anim == dialog02 then
   474 		actionsOnWin()
   475 		actionsOnWin()
   475 	end
   476 	end
   476 end
   477 end
   477 
   478 
   492 	table.insert(dialog01, {func = AnimSay, args = {ally.gear, loc("Be careful, your gadgets won't work in the bandit area. You should get an ice gun"), SAY_SAY, 7000}})
   493 	table.insert(dialog01, {func = AnimSay, args = {ally.gear, loc("Be careful, your gadgets won't work in the bandit area. You should get an ice gun"), SAY_SAY, 7000}})
   493 	table.insert(dialog01, {func = AnimSay, args = {ally.gear, loc("There is one below us!"), SAY_SAY, 4000}})
   494 	table.insert(dialog01, {func = AnimSay, args = {ally.gear, loc("There is one below us!"), SAY_SAY, 4000}})
   494 	table.insert(dialog01, {func = AnimWait, args = {hero.gear, 500}})
   495 	table.insert(dialog01, {func = AnimWait, args = {hero.gear, 500}})
   495 	table.insert(dialog01, {func = AnimSwitchHog, args = {hero.gear}})
   496 	table.insert(dialog01, {func = AnimSwitchHog, args = {hero.gear}})
   496 	-- DIALOG 02 - Hero got to Thant2
   497 	-- DIALOG 02 - Hero got to Thant2
   497 	AddSkipFunction(dialog02, Skipanim, {dialog01})
   498 	AddSkipFunction(dialog02, Skipanim, {dialog02})
   498 	table.insert(dialog02, {func = AnimWait, args = {hero.gear, 3000}})
   499 	table.insert(dialog02, {func = AnimWait, args = {hero.gear, 3000}})
   499 	table.insert(dialog02, {func = AnimCaption, args = {hero.gear, loc("Congratulations, now you can take Thanta's part..."), 5000}})
   500 	table.insert(dialog02, {func = AnimCaption, args = {hero.gear, loc("Congratulations, now you can take Thanta's part..."), 5000}})
   500 	table.insert(dialog02, {func = AnimSay, args = {bandit1.gear, loc("Oh! Please spare me. You can take all my treasures!"), SAY_SAY, 3000}})
   501 	table.insert(dialog02, {func = AnimSay, args = {bandit1.gear, loc("Oh! Please spare me. You can take all my treasures!"), SAY_SAY, 3000}})
   501 	table.insert(dialog02, {func = AnimWait, args = {hero.gear, 5000}})
   502 	table.insert(dialog02, {func = AnimWait, args = {hero.gear, 5000}})
   502 	table.insert(dialog02, {func = AnimSay, args = {hero.gear, loc("I just want the strange device you found!"), SAY_SAY, 3000}})
   503 	table.insert(dialog02, {func = AnimSay, args = {hero.gear, loc("I just want the strange device you found!"), SAY_SAY, 3000}})