share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/death01.lua
changeset 12534 34a91e2b927e
parent 12515 2df340544f25
child 12535 baee67bfa5c2
equal deleted inserted replaced
12533:f8801c72a6c8 12534:34a91e2b927e
   293     end
   293     end
   294     startBattle()
   294     startBattle()
   295 end
   295 end
   296 
   296 
   297 function AnimationSetup()
   297 function AnimationSetup()
       
   298 	local profDiedOnMoon = GetCampaignVar("ProfDiedOnMoon") == "1"
   298 	-- DIALOG01, GAME START, INTRODUCTION
   299 	-- DIALOG01, GAME START, INTRODUCTION
   299 	AddSkipFunction(dialog01, Skipanim, {dialog01})
   300 	AddSkipFunction(dialog01, Skipanim, {dialog01})
   300 	table.insert(dialog01, {func = AnimWait, args = {hero.gear, 3000}})
   301 	table.insert(dialog01, {func = AnimWait, args = {hero.gear, 3000}})
   301 	table.insert(dialog01, {func = AnimCaption, args = {hero.gear, loc("Somewhere on the uninhabitable Death Planet ..."), 5000}})
   302 	table.insert(dialog01, {func = AnimCaption, args = {hero.gear, loc("Somewhere on the uninhabitable Death Planet ..."), 5000}})
   302 	table.insert(dialog01, {func = AnimSay, args = {professor.human, loc("Welcome Hog Solo, surprised to see me?"), SAY_SAY, 4000}})
   303 	table.insert(dialog01, {func = AnimSay, args = {professor.human, loc("Welcome Hog Solo, surprised to see me?"), SAY_SAY, 4000}})
   303 	table.insert(dialog01, {func = AnimSay, args = {professor.human, loc("As you can see I have survived our last encounter and I had time to plot my master plan!"), SAY_SAY, 4000}})
   304 	if profDiedOnMoon then
       
   305 		table.insert(dialog01, {func = AnimSay, args = {professor.human, loc("After you left the moon, my other loyal minions came and resurrected me so I could complete my master plan."), SAY_SAY, 6000}})
       
   306 	else
       
   307 		table.insert(dialog01, {func = AnimSay, args = {professor.human, loc("As you can see I have survived our last encounter and I had time to plot my master plan!"), SAY_SAY, 4000}})
       
   308 	end
   304 	table.insert(dialog01, {func = AnimSay, args = {professor.human, loc("I've thought that the best way to get the device is to let you collect most of the parts for me!"), SAY_SAY, 4000}})
   309 	table.insert(dialog01, {func = AnimSay, args = {professor.human, loc("I've thought that the best way to get the device is to let you collect most of the parts for me!"), SAY_SAY, 4000}})
   305 	table.insert(dialog01, {func = AnimSay, args = {professor.human, loc("So, now I got the last part and I have your friends captured."), SAY_SAY, 4000}})
   310 	table.insert(dialog01, {func = AnimSay, args = {professor.human, loc("So, now I got the last part and I have your friends captured."), SAY_SAY, 4000}})
   306 	table.insert(dialog01, {func = AnimSay, args = {professor.human, loc("Will you give me the other parts?"), SAY_SAY, 4000}})
   311 	table.insert(dialog01, {func = AnimSay, args = {professor.human, loc("Will you give me the other parts?"), SAY_SAY, 4000}})
   307 	table.insert(dialog01, {func = AnimWait, args = {hero.gear, 3000}})
   312 	table.insert(dialog01, {func = AnimWait, args = {hero.gear, 3000}})
   308 	table.insert(dialog01, {func = AnimSay, args = {hero.gear, loc("I will never hand you the parts!"), SAY_SAY, 4000}})
   313 	table.insert(dialog01, {func = AnimSay, args = {hero.gear, loc("I will never hand you the parts!"), SAY_SAY, 4000}})
   309 	table.insert(dialog01, {func = AnimWait, args = {professor.human, 3000}})
   314 	table.insert(dialog01, {func = AnimWait, args = {professor.human, 3000}})
   310 	table.insert(dialog01, {func = AnimSay, args = {professor.human, loc("Then prepare for battle!"), SAY_SAY, 4000}})
   315 	if profDiedOnMoon then
       
   316 		table.insert(dialog01, {func = AnimSay, args = {professor.human, loc("Then prepare for battle!"), SAY_SHOUT, 4000}})
       
   317 	else
       
   318 		table.insert(dialog01, {func = AnimSay, args = {professor.human, loc("Then prepare for battle!"), SAY_SAY, 4000}})
       
   319 	end
   311 	table.insert(dialog01, {func = startBattle, args = {}})
   320 	table.insert(dialog01, {func = startBattle, args = {}})
   312 end
   321 end
   313 
   322 
   314 -------------- OTHER FUNCTIONS -----------------
   323 -------------- OTHER FUNCTIONS -----------------
   315 
   324