share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/ice01.lua
changeset 9757 9be28be004d4
parent 9734 da2cb993fd61
child 9758 3b8058b251b8
equal deleted inserted replaced
9756:736abcc1915f 9757:9be28be004d4
    22 local dialog01 = {}
    22 local dialog01 = {}
    23 local dialog02 = {}
    23 local dialog02 = {}
    24 -- mission objectives
    24 -- mission objectives
    25 local goals = {
    25 local goals = {
    26 	[dialog01] = {missionName, loc("Getting ready"), loc("Collect the icegun and get the device part from Thanta"), 1, 4500},
    26 	[dialog01] = {missionName, loc("Getting ready"), loc("Collect the icegun and get the device part from Thanta"), 1, 4500},
    27 	[dialog02] = {missionName, loc("Win"), loc("Congratulations, you got the part!"), 1, 3500},
    27 	[dialog02] = {missionName, loc("Win"), loc("Congratulations, you collected the device part!"), 1, 3500},
    28 }
    28 }
    29 -- crates
    29 -- crates
    30 local icegunY = 1950
    30 local icegunY = 1950
    31 local icegunX = 260
    31 local icegunX = 260
    32 -- hogs
    32 -- hogs
   485 
   485 
   486 function AnimationSetup()
   486 function AnimationSetup()
   487 	-- DIALOG 01 - Start, welcome to moon
   487 	-- DIALOG 01 - Start, welcome to moon
   488 	AddSkipFunction(dialog01, Skipanim, {dialog01})
   488 	AddSkipFunction(dialog01, Skipanim, {dialog01})
   489 	table.insert(dialog01, {func = AnimWait, args = {hero.gear, 3000}})
   489 	table.insert(dialog01, {func = AnimWait, args = {hero.gear, 3000}})
   490 	table.insert(dialog01, {func = AnimCaption, args = {hero.gear, loc("In the Ice Planet, where ice rules..."), 5000}})
   490 	table.insert(dialog01, {func = AnimCaption, args = {hero.gear, loc("On the Ice Planet, where ice rules..."), 5000}})
   491 	table.insert(dialog01, {func = AnimSay, args = {ally.gear, loc("Finaly you are here..."), SAY_SAY, 2000}})
   491 	table.insert(dialog01, {func = AnimSay, args = {ally.gear, loc("Finally you are here..."), SAY_SAY, 2000}})
   492 	table.insert(dialog01, {func = AnimWait, args = {hero.gear, 2000}})
   492 	table.insert(dialog01, {func = AnimWait, args = {hero.gear, 2000}})
   493 	table.insert(dialog01, {func = AnimSay, args = {hero.gear, loc("Hi! Nice to meet you"), SAY_SAY, 3000}})
   493 	table.insert(dialog01, {func = AnimSay, args = {hero.gear, loc("Hi! Nice to meet you"), SAY_SAY, 3000}})
   494 	table.insert(dialog01, {func = AnimWait, args = {ally.gear, 2000}})
   494 	table.insert(dialog01, {func = AnimWait, args = {ally.gear, 2000}})
   495 	table.insert(dialog01, {func = AnimSay, args = {ally.gear, loc("Listen carefuly! The bandit leader, Thanta, has recently found a very strange device"), SAY_SAY, 4000}})
   495 	table.insert(dialog01, {func = AnimSay, args = {ally.gear, loc("Listen carefully! The bandit leader, Thanta, has recently found a very strange device"), SAY_SAY, 4000}})
   496 	table.insert(dialog01, {func = AnimSay, args = {ally.gear, loc("He doesn't know it but this device is a part of the anti-gravity device"), SAY_SAY, 2500}})
   496 	table.insert(dialog01, {func = AnimSay, args = {ally.gear, loc("He doesn't know it but this device is a part of the anti-gravity device"), SAY_SAY, 2500}})
   497 	table.insert(dialog01, {func = AnimWait, args = {hero.gear, 8000}})
   497 	table.insert(dialog01, {func = AnimWait, args = {hero.gear, 8000}})
   498 	table.insert(dialog01, {func = AnimSay, args = {hero.gear, loc("Nice, then I should get the part as soon as possible!"), SAY_SAY, 4000}})
   498 	table.insert(dialog01, {func = AnimSay, args = {hero.gear, loc("Nice, then I should get the part as soon as possible!"), SAY_SAY, 4000}})
   499 	table.insert(dialog01, {func = AnimWait, args = {ally.gear, 4000}})
   499 	table.insert(dialog01, {func = AnimWait, args = {ally.gear, 4000}})
   500 	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}})
   500 	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}})
   502 	table.insert(dialog01, {func = AnimWait, args = {hero.gear, 500}})
   502 	table.insert(dialog01, {func = AnimWait, args = {hero.gear, 500}})
   503 	table.insert(dialog01, {func = AnimSwitchHog, args = {hero.gear}})
   503 	table.insert(dialog01, {func = AnimSwitchHog, args = {hero.gear}})
   504 	-- DIALOG 02 - Hero got to Thant2
   504 	-- DIALOG 02 - Hero got to Thant2
   505 	AddSkipFunction(dialog02, Skipanim, {dialog02})
   505 	AddSkipFunction(dialog02, Skipanim, {dialog02})
   506 	table.insert(dialog02, {func = AnimWait, args = {hero.gear, 3000}})
   506 	table.insert(dialog02, {func = AnimWait, args = {hero.gear, 3000}})
   507 	table.insert(dialog02, {func = AnimCaption, args = {hero.gear, loc("Congratulations, now you can take Thanta's part..."), 5000}})
   507 	table.insert(dialog02, {func = AnimCaption, args = {hero.gear, loc("Congratulations, now you can take Thanta's device part..."), 5000}})
   508 	table.insert(dialog02, {func = AnimSay, args = {bandit1.gear, loc("Oh! Please spare me. You can take all my treasures!"), SAY_SAY, 3000}})
   508 	table.insert(dialog02, {func = AnimSay, args = {bandit1.gear, loc("Oh! Please spare me. You can take all my treasures!"), SAY_SAY, 3000}})
   509 	table.insert(dialog02, {func = AnimWait, args = {hero.gear, 5000}})
   509 	table.insert(dialog02, {func = AnimWait, args = {hero.gear, 5000}})
   510 	table.insert(dialog02, {func = AnimSay, args = {hero.gear, loc("I just want the strange device you found!"), SAY_SAY, 3000}})
   510 	table.insert(dialog02, {func = AnimSay, args = {hero.gear, loc("I just want the strange device you found!"), SAY_SAY, 3000}})
   511 	table.insert(dialog02, {func = AnimWait, args = {bandit1.gear, 4000}})
   511 	table.insert(dialog02, {func = AnimWait, args = {bandit1.gear, 4000}})
   512 	table.insert(dialog02, {func = AnimSay, args = {bandit1.gear, loc("Here! Take it..."), SAY_SAY, 3000}})
   512 	table.insert(dialog02, {func = AnimSay, args = {bandit1.gear, loc("Here! Take it..."), SAY_SAY, 3000}})
   515 
   515 
   516 -------------- Other Functions -------------------
   516 -------------- Other Functions -------------------
   517 
   517 
   518 function actionsOnWin()
   518 function actionsOnWin()
   519 	saveCompletedStatus(4)	
   519 	saveCompletedStatus(4)	
   520 	SendStat(siGameResult, loc("Congratulations, you got the part!"))
   520 	SendStat(siGameResult, loc("Congratulations, you acquired the device part!"))
   521 	SendStat(siCustomAchievement, loc("At the end of the game your health was ")..GetHealth(hero.gear))
   521 	SendStat(siCustomAchievement, loc("At the end of the game your health was ")..GetHealth(hero.gear))
   522 	-- maybe add number of tries for each part?
   522 	-- maybe add number of tries for each part?
   523 	SendStat(siPlayerKills,'1',teamC.name)
   523 	SendStat(siPlayerKills,'1',teamC.name)
   524 	SendStat(siPlayerKills,'0',teamB.name)
   524 	SendStat(siPlayerKills,'0',teamB.name)
   525 	EndGame()
   525 	EndGame()