share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/ice02.lua
changeset 12582 e2b5c6e805e8
parent 12580 0c5ce463949b
child 12591 7510fe66bfbb
equal deleted inserted replaced
12581:1fb961480b3c 12582:e2b5c6e805e8
    25 	loc("Use the attack key twice to change the flying saucer while floating in mid-air.")
    25 	loc("Use the attack key twice to change the flying saucer while floating in mid-air.")
    26 -- dialogs
    26 -- dialogs
    27 local dialog01 = {}
    27 local dialog01 = {}
    28 -- mission objectives
    28 -- mission objectives
    29 local goals = {
    29 local goals = {
    30 	["init"] = {missionName, loc("Getting ready"), challengeObjectives, 1, 30000},
    30 	["init"] = {missionName, loc("Getting ready"), challengeObjectives, 1, 25000},
    31 }
    31 }
    32 -- hogs
    32 -- hogs
    33 local hero = {}
    33 local hero = {}
    34 local ally = {}
    34 local ally = {}
    35 -- teams
    35 -- teams
    71 
    71 
    72 function onGameInit()
    72 function onGameInit()
    73 	GameFlags = gfInvulnerable + gfOneClanMode
    73 	GameFlags = gfInvulnerable + gfOneClanMode
    74 	Seed = 1
    74 	Seed = 1
    75 	TurnTime = 15000
    75 	TurnTime = 15000
       
    76 	Ready = 25000
    76 	CaseFreq = 0
    77 	CaseFreq = 0
    77 	MinesNum = 0
    78 	MinesNum = 0
    78 	MinesTime = 1
    79 	MinesTime = 1
    79 	Explosives = 0
    80 	Explosives = 0
    80 	Map = "ice02_map"
    81 	Map = "ice02_map"
   101 
   102 
   102 function onGameStart()
   103 function onGameStart()
   103 	AnimWait(hero.gear, 3000)
   104 	AnimWait(hero.gear, 3000)
   104 	FollowGear(hero.gear)
   105 	FollowGear(hero.gear)
   105 	ShowMission(unpack(goals["init"]))
   106 	ShowMission(unpack(goals["init"]))
       
   107 	HideMission()
   106 
   108 
   107 	AddEvent(onHeroDeath, {hero.gear}, heroDeath, {hero.gear}, 0)
   109 	AddEvent(onHeroDeath, {hero.gear}, heroDeath, {hero.gear}, 0)
   108 
   110 
   109 	AddAmmo(hero.gear, amJetpack, 3)
   111 	AddAmmo(hero.gear, amJetpack, 3)
   110 
   112 
   203 end
   205 end
   204 
   206 
   205 -------------- ANIMATIONS ------------------
   207 -------------- ANIMATIONS ------------------
   206 
   208 
   207 function Skipanim(anim)
   209 function Skipanim(anim)
       
   210 	ShowMission(unpack(goals["init"]))
   208 	startFlying()
   211 	startFlying()
   209 end
   212 end
   210 
   213 
   211 function AnimationSetup()
   214 function AnimationSetup()
   212 	-- DIALOG 01 - Start, some story telling
   215 	-- DIALOG 01 - Start, some story telling
   214 	table.insert(dialog01, {func = AnimWait, args = {hero.gear, 3000}})
   217 	table.insert(dialog01, {func = AnimWait, args = {hero.gear, 3000}})
   215 	table.insert(dialog01, {func = AnimCaption, args = {hero.gear, loc("In the Ice Planet Flying Saucer Stadium ..."), 5000}})
   218 	table.insert(dialog01, {func = AnimCaption, args = {hero.gear, loc("In the Ice Planet Flying Saucer Stadium ..."), 5000}})
   216 	table.insert(dialog01, {func = AnimSay, args = {ally.gear, loc("This is the Olympic stadium of saucer flying."), SAY_SAY, 4000}})
   219 	table.insert(dialog01, {func = AnimSay, args = {ally.gear, loc("This is the Olympic stadium of saucer flying."), SAY_SAY, 4000}})
   217 	table.insert(dialog01, {func = AnimSay, args = {ally.gear, loc("All the saucer pilots dream to come here one day in order to compete with the best!"), SAY_SAY, 5000}})
   220 	table.insert(dialog01, {func = AnimSay, args = {ally.gear, loc("All the saucer pilots dream to come here one day in order to compete with the best!"), SAY_SAY, 5000}})
   218 	table.insert(dialog01, {func = AnimSay, args = {ally.gear, loc("Now you have the chance to try and claim the place that you deserve among the best."), SAY_SAY, 6000}})
   221 	table.insert(dialog01, {func = AnimSay, args = {ally.gear, loc("Now you have the chance to try and claim the place that you deserve among the best."), SAY_SAY, 6000}})
   219 	table.insert(dialog01, {func = AnimCaption, args = {hero.gear, loc("Use the saucer and pass through the rings."), 5000}})
       
   220 	table.insert(dialog01, {func = AnimCaption, args = {hero.gear, loc("Pause the game by pressing the pause key (default \"P\") for more details"), 5000}})
       
   221 	table.insert(dialog01, {func = AnimSay, args = {ally.gear, loc("Can you do it?"), SAY_SAY, 2000}})
   222 	table.insert(dialog01, {func = AnimSay, args = {ally.gear, loc("Can you do it?"), SAY_SAY, 2000}})
   222 	table.insert(dialog01, {func = AnimWait, args = {hero.gear, 500}})
   223 	table.insert(dialog01, {func = AnimWait, args = {hero.gear, 500}})
       
   224 	table.insert(dialog01, {func = ShowMission, args = goals["init"]})
   223 	table.insert(dialog01, {func = startFlying, args = {hero.gear}})
   225 	table.insert(dialog01, {func = startFlying, args = {hero.gear}})
   224 end
   226 end
   225 
   227 
   226 ------------------ Other Functions -------------------
   228 ------------------ Other Functions -------------------
   227 
   229