share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/ice01.lua
branchspacecampaign
changeset 9574 da3d39667881
parent 9490 b93448b75fa4
child 9578 16139270448f
equal deleted inserted replaced
9572:278cff2a965f 9574:da3d39667881
    12 HedgewarsScriptLoad("/Scripts/Locale.lua")
    12 HedgewarsScriptLoad("/Scripts/Locale.lua")
    13 HedgewarsScriptLoad("/Scripts/Animate.lua")
    13 HedgewarsScriptLoad("/Scripts/Animate.lua")
    14 
    14 
    15 ----------------- VARIABLES --------------------
    15 ----------------- VARIABLES --------------------
    16 -- globals
    16 -- globals
    17 local campaignName = loc("A Space Adventure")
    17 local missionName = loc("A frozen adventure")
    18 local missionName = loc("Ice planet, a frozen adventure!")
       
    19 local heroAtAntiFlyArea = false
    18 local heroAtAntiFlyArea = false
    20 local heroVisitedAntiFlyArea = false
    19 local heroVisitedAntiFlyArea = false
    21 local heroAtFinalStep = false
    20 local heroAtFinalStep = false
    22 local iceGunTaken = false
    21 local iceGunTaken = false
    23 local checkPointReached = 1 -- 1 is normal spawn
    22 local checkPointReached = 1 -- 1 is normal spawn
    42 -- teams
    41 -- teams
    43 local teamA = {}
    42 local teamA = {}
    44 local teamB = {}
    43 local teamB = {}
    45 local teamC = {}
    44 local teamC = {}
    46 -- hedgehogs values
    45 -- hedgehogs values
    47 hero.name = "Hog Solo"
    46 hero.name = loc("Hog Solo")
    48 hero.x = 340
    47 hero.x = 340
    49 hero.y = 1840
    48 hero.y = 1840
    50 hero.dead = false
    49 hero.dead = false
    51 ally.name = "Paul McHoggy"
    50 ally.name = loc("Paul McHoggy")
    52 ally.x = 300
    51 ally.x = 300
    53 ally.y = 1840
    52 ally.y = 1840
    54 bandit1.name = "Thanta"
    53 bandit1.name = loc("Thanta")
    55 bandit1.x = 3240
    54 bandit1.x = 3240
    56 bandit1.y = 1280
    55 bandit1.y = 1280
    57 bandit1.dead = false
    56 bandit1.dead = false
    58 bandit1.frozen = false
    57 bandit1.frozen = false
    59 bandit1.roundsToUnfreeze = 0
    58 bandit1.roundsToUnfreeze = 0
    60 bandit2.name = "Billy Frost"
    59 bandit2.name = loc("Billy Frost")
    61 bandit2.x = 1480
    60 bandit2.x = 1480
    62 bandit2.y = 1990
    61 bandit2.y = 1990
    63 bandit3.name = "Ice Jake"
    62 bandit3.name = loc("Ice Jake")
    64 bandit3.x = 1860
    63 bandit3.x = 1860
    65 bandit3.y = 1150
    64 bandit3.y = 1150
    66 bandit4.name = "John Snow"
    65 bandit4.name = loc("John Snow")
    67 bandit4.x = 3200
    66 bandit4.x = 3200
    68 bandit4.y = 970
    67 bandit4.y = 970
    69 bandit4.frozen = false
    68 bandit4.frozen = false
    70 bandit4.roundsToUnfreeze = 0
    69 bandit4.roundsToUnfreeze = 0
    71 bandit5.name = "White Tee"
    70 bandit5.name = loc("White Tee")
    72 bandit5.x = 3280
    71 bandit5.x = 3280
    73 bandit5.y = 600
    72 bandit5.y = 600
    74 bandit5.frozen = false
    73 bandit5.frozen = false
    75 bandit5.roundsToUnfreeze = 0
    74 bandit5.roundsToUnfreeze = 0
    76 teamA.name = loc("Allies")
    75 teamA.name = loc("Allies")
   470 
   469 
   471 function AnimationSetup()
   470 function AnimationSetup()
   472 	-- DIALOG 01 - Start, welcome to moon
   471 	-- DIALOG 01 - Start, welcome to moon
   473 	AddSkipFunction(dialog01, Skipanim, {dialog01})
   472 	AddSkipFunction(dialog01, Skipanim, {dialog01})
   474 	table.insert(dialog01, {func = AnimWait, args = {hero.gear, 3000}})
   473 	table.insert(dialog01, {func = AnimWait, args = {hero.gear, 3000}})
   475 	table.insert(dialog01, {func = AnimCaption, args = {hero.gear, loc("In the ice planet, where ice rules..."), 5000}})
   474 	table.insert(dialog01, {func = AnimCaption, args = {hero.gear, loc("In the Ice Planet, where ice rules..."), 5000}})
   476 	table.insert(dialog01, {func = AnimSay, args = {ally.gear, loc("Finaly you are here..."), SAY_SAY, 2000}})
   475 	table.insert(dialog01, {func = AnimSay, args = {ally.gear, loc("Finaly you are here..."), SAY_SAY, 2000}})
   477 	table.insert(dialog01, {func = AnimWait, args = {hero.gear, 2000}})
   476 	table.insert(dialog01, {func = AnimWait, args = {hero.gear, 2000}})
   478 	table.insert(dialog01, {func = AnimSay, args = {hero.gear, loc("Hi! Nice to meet you"), SAY_SAY, 3000}})
   477 	table.insert(dialog01, {func = AnimSay, args = {hero.gear, loc("Hi! Nice to meet you"), SAY_SAY, 3000}})
   479 	table.insert(dialog01, {func = AnimWait, args = {ally.gear, 2000}})
   478 	table.insert(dialog01, {func = AnimWait, args = {ally.gear, 2000}})
   480 	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}})
   479 	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}})
   481 	table.insert(dialog01, {func = AnimSay, args = {ally.gear, loc("He doesn't know it but this device is a part of the antigravity device"), SAY_SAY, 2500}})
   480 	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}})
   482 	table.insert(dialog01, {func = AnimWait, args = {hero.gear, 8000}})
   481 	table.insert(dialog01, {func = AnimWait, args = {hero.gear, 8000}})
   483 	table.insert(dialog01, {func = AnimSay, args = {hero.gear, loc("Nice, then I should get the part as soon as possible!"), SAY_SAY, 4000}})
   482 	table.insert(dialog01, {func = AnimSay, args = {hero.gear, loc("Nice, then I should get the part as soon as possible!"), SAY_SAY, 4000}})
   484 	table.insert(dialog01, {func = AnimWait, args = {ally.gear, 4000}})
   483 	table.insert(dialog01, {func = AnimWait, args = {ally.gear, 4000}})
   485 	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}})
   484 	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}})
   486 	table.insert(dialog01, {func = AnimSay, args = {ally.gear, loc("There is one below us!"), SAY_SAY, 4000}})
   485 	table.insert(dialog01, {func = AnimSay, args = {ally.gear, loc("There is one below us!"), SAY_SAY, 4000}})