share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/desert01.lua
branchspacecampaign
changeset 9474 c255f6c46e33
parent 9453 c9c25089ab22
child 9476 3ca7160dc6d2
equal deleted inserted replaced
9471:867f020b0621 9474:c255f6c46e33
   239 		AnimSwitchHog(hero.gear)
   239 		AnimSwitchHog(hero.gear)
   240 		TurnTimeLeft = 0
   240 		TurnTimeLeft = 0
   241 	elseif CurrentHedgehog == ally.gear then
   241 	elseif CurrentHedgehog == ally.gear then
   242 		TurnTimeLeft = 0
   242 		TurnTimeLeft = 0
   243 	end
   243 	end
   244 	WriteLnToConsole("CURRENT HEDGEHOG IS "..CurrentHedgehog)
       
   245 end
   244 end
   246 
   245 
   247 function onGameTick()
   246 function onGameTick()
   248 	AnimUnWait()
   247 	AnimUnWait()
   249 	if ShowAnimation() == false then
   248 	if ShowAnimation() == false then
   440 	table.insert(dialog01, {func = AnimSay, args = {hero.gear, loc("OK, I'll be extra careful!"), SAY_SAY, 4000}})
   439 	table.insert(dialog01, {func = AnimSay, args = {hero.gear, loc("OK, I'll be extra careful!"), SAY_SAY, 4000}})
   441 	table.insert(dialog01, {func = AnimWait, args = {ally.gear, 2000}})
   440 	table.insert(dialog01, {func = AnimWait, args = {ally.gear, 2000}})
   442 	table.insert(dialog01, {func = AnimSay, args = {ally.gear, loc("There is the tunnel entrance"), SAY_SAY, 3000}})
   441 	table.insert(dialog01, {func = AnimSay, args = {ally.gear, loc("There is the tunnel entrance"), SAY_SAY, 3000}})
   443 	table.insert(dialog01, {func = AnimSay, args = {ally.gear, loc("Good luck!"), SAY_SAY, 3000}})
   442 	table.insert(dialog01, {func = AnimSay, args = {ally.gear, loc("Good luck!"), SAY_SAY, 3000}})
   444 	table.insert(dialog01, {func = AnimWait, args = {hero.gear, 500}})
   443 	table.insert(dialog01, {func = AnimWait, args = {hero.gear, 500}})
   445 	table.insert(dialog01, {func = AnimSwitchHog, args = {hero.gear}})	
   444 	table.insert(dialog01, {func = startMission, args = {hero.gear}})	
   446 end
   445 end
   447 
   446 
   448 --------------- OTHER FUNCTIONS ------------------
   447 --------------- OTHER FUNCTIONS ------------------
       
   448 
       
   449 function startMission()
       
   450 	AnimSwitchHog(bandit1.gear)
       
   451 	TurnTimeLeft = 0
       
   452 end
   449 
   453 
   450 function secondBattle()
   454 function secondBattle()
   451 	-- second battle
   455 	-- second battle
   452 	heroIsInBattle = true
   456 	heroIsInBattle = true
   453 	ongoingBattle = 2
   457 	ongoingBattle = 2