equal
deleted
inserted
replaced
22 local dialog01 = {} |
22 local dialog01 = {} |
23 local dialog02 = {} |
23 local dialog02 = {} |
24 -- mission objectives |
24 -- mission objectives |
25 local goToThantaString = loc("Go to Thanta and get the device part!") |
25 local goToThantaString = loc("Go to Thanta and get the device part!") |
26 local goals = { |
26 local goals = { |
27 [dialog01] = {missionName, loc("Getting ready"), loc("Collect the freezer and get the device part from Thanta") .. "|" .. loc("Mines time: 0 seconds"), 1, 4500}, |
27 [dialog01] = {missionName, loc("Getting ready"), loc("Collect the freezer and get the device part from Thanta.") .. "|" .. loc("Mines time: 0 seconds"), 1, 4500}, |
28 ["checkpoint"] = {missionName, loc("Objectives"), goToThantaString .. "|" .. loc("Mines time: 0 seconds"), 1, 4500}, |
28 ["checkpoint"] = {missionName, loc("Objectives"), goToThantaString .. "|" .. loc("Mines time: 0 seconds"), 1, 4500}, |
29 } |
29 } |
30 -- crates |
30 -- crates |
31 local icegunY = 1950 |
31 local icegunY = 1950 |
32 local icegunX = 260 |
32 local icegunX = 260 |
71 bandit5.x = 3280 |
71 bandit5.x = 3280 |
72 bandit5.y = 600 |
72 bandit5.y = 600 |
73 bandit5.frozen = false |
73 bandit5.frozen = false |
74 bandit5.roundsToUnfreeze = 0 |
74 bandit5.roundsToUnfreeze = 0 |
75 teamA.name = loc("Allies") |
75 teamA.name = loc("Allies") |
76 teamA.color = tonumber("FF0000",16) -- red |
76 teamA.color = 0x38D61C -- green |
77 teamB.name = loc("Frozen Bandits") |
77 teamB.name = loc("Frozen Bandits") |
78 teamB.color = tonumber("0072FF",16) -- blues |
78 teamB.color = 0x0072FF -- blue |
79 teamC.name = loc("Hog Solo") |
79 teamC.name = loc("Hog Solo") |
80 teamC.color = tonumber("38D61C",16) -- green |
80 teamC.color = 0x38D61C -- green |
81 |
81 |
82 -------------- LuaAPI EVENT HANDLERS ------------------ |
82 -------------- LuaAPI EVENT HANDLERS ------------------ |
83 |
83 |
84 function onGameInit() |
84 function onGameInit() |
85 Seed = 1 |
85 Seed = 1 |
440 function heroDeath(gear) |
440 function heroDeath(gear) |
441 SendStat(siGameResult, loc("Hog Solo lost, try again!")) |
441 SendStat(siGameResult, loc("Hog Solo lost, try again!")) |
442 SendStat(siCustomAchievement, loc("To win the game you have to stand next to Thanta.")) |
442 SendStat(siCustomAchievement, loc("To win the game you have to stand next to Thanta.")) |
443 SendStat(siCustomAchievement, loc("Most of the time you'll be able to use the freezer only.")) |
443 SendStat(siCustomAchievement, loc("Most of the time you'll be able to use the freezer only.")) |
444 SendStat(siCustomAchievement, loc("Use the bazooka and the flying saucer to get the freezer.")) |
444 SendStat(siCustomAchievement, loc("Use the bazooka and the flying saucer to get the freezer.")) |
445 sendSimpleTeamRankings({teamB.name, teamC.name}) |
445 sendSimpleTeamRankings({teamB.name, teamC.name, teamA.name}) |
446 EndGame() |
446 EndGame() |
447 end |
447 end |
448 |
448 |
449 function heroFinalStep(gear) |
449 function heroFinalStep(gear) |
450 heroAtFinalStep = true |
450 heroAtFinalStep = true |
471 SendStat(siGameResult, loc("Hog Solo lost, try again!")) |
471 SendStat(siGameResult, loc("Hog Solo lost, try again!")) |
472 SendStat(siCustomAchievement, loc("Noo, Thanta has to stay alive!")) |
472 SendStat(siCustomAchievement, loc("Noo, Thanta has to stay alive!")) |
473 SendStat(siCustomAchievement, loc("To win the game you have to go next to Thanta.")) |
473 SendStat(siCustomAchievement, loc("To win the game you have to go next to Thanta.")) |
474 SendStat(siCustomAchievement, loc("Most of the time you'll be able to use the freezer only.")) |
474 SendStat(siCustomAchievement, loc("Most of the time you'll be able to use the freezer only.")) |
475 SendStat(siCustomAchievement, loc("Use the bazooka and the flying saucer to get the freezer.")) |
475 SendStat(siCustomAchievement, loc("Use the bazooka and the flying saucer to get the freezer.")) |
476 sendSimpleTeamRankings({teamB.name, teamC.name}) |
476 sendSimpleTeamRankings({teamB.name, teamC.name, teamA.name}) |
477 EndGame() |
477 EndGame() |
478 end |
478 end |
479 |
479 |
480 function heroWin(gear) |
480 function heroWin(gear) |
481 SetGearMessage(gear, 0) |
481 SetGearMessage(gear, 0) |
540 |
540 |
541 saveCompletedStatus(4) |
541 saveCompletedStatus(4) |
542 SendStat(siGameResult, loc("Congratulations, you acquired the device part!")) |
542 SendStat(siGameResult, loc("Congratulations, you acquired the device part!")) |
543 SendStat(siCustomAchievement, string.format(loc("At the end of the game your health was %d."), GetHealth(hero.gear))) |
543 SendStat(siCustomAchievement, string.format(loc("At the end of the game your health was %d."), GetHealth(hero.gear))) |
544 -- maybe add number of tries for each part? |
544 -- maybe add number of tries for each part? |
545 sendSimpleTeamRankings({teamC.name, teamB.name}) |
545 sendSimpleTeamRankings({teamC.name, teamA.name, teamB.name}) |
546 resetCheckpoint() -- reset this mission |
546 resetCheckpoint() -- reset this mission |
547 EndGame() |
547 EndGame() |
548 end |
548 end |