share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/fruit02.lua
branchspacecampaign
changeset 9642 8a691e0f117a
parent 9630 df942cfac4e6
child 9746 64abf9862562
equal deleted inserted replaced
9641:b08c8bde57e3 9642:8a691e0f117a
   373 end
   373 end
   374 
   374 
   375 -------------- ACTIONS ------------------
   375 -------------- ACTIONS ------------------
   376 
   376 
   377 function heroDeath(gear)
   377 function heroDeath(gear)
   378 	SendStat('siGameResult', loc("Hog Solo lost, try again!")) --1
   378 	SendStat(siGameResult, loc("Hog Solo lost, try again!"))
   379 	SendStat('siCustomAchievement', loc("To win the game Hog Solo has to get the bottom crates and come back to the surface")) --11
   379 	SendStat(siCustomAchievement, loc("To win the game Hog Solo has to get the bottom crates and come back to the surface"))
   380 	SendStat('siCustomAchievement', loc("You can use the other 2 hogs to assist you")) --11
   380 	SendStat(siCustomAchievement, loc("You can use the other 2 hogs to assist you"))
   381 	if tookPartInBattle then
   381 	if tookPartInBattle then
   382 		SendStat('siCustomAchievement', loc("You'll have to eliminate the Strawberry Assasins at the end")) --11
   382 		SendStat(siCustomAchievement, loc("You'll have to eliminate the Strawberry Assasins at the end"))
   383 	else
   383 	else
   384 		SendStat('siCustomAchievement', loc("You'll have to eliminate Captain Lime at the end")) --11	
   384 		SendStat(siCustomAchievement, loc("You'll have to eliminate Captain Lime at the end"))	
   385 	end
   385 	end
   386 	SendStat('siPlayerKills','0',teamA.name)
   386 	SendStat(siPlayerKills,'0',teamA.name)
   387 	EndGame()
   387 	EndGame()
   388 end
   388 end
   389 
   389 
   390 function deviceCrates(gear)
   390 function deviceCrates(gear)
   391 	TurnTimeLeft = 0
   391 	TurnTimeLeft = 0
   424 end
   424 end
   425 
   425 
   426 function captainLimeDeath(gear)
   426 function captainLimeDeath(gear)
   427 	-- hero win in scenario of escape in 1st part
   427 	-- hero win in scenario of escape in 1st part
   428 	saveCompletedStatus(3)
   428 	saveCompletedStatus(3)
   429 	SendStat('siGameResult', loc("Congratulations, you won!")) --1
   429 	SendStat(siGameResult, loc("Congratulations, you won!"))
   430 	SendStat('siCustomAchievement', loc("You retrieved the lost part")) --11
   430 	SendStat(siCustomAchievement, loc("You retrieved the lost part"))
   431 	SendStat('siCustomAchievement', loc("You defended yourself against Captain Lime")) --11
   431 	SendStat(siCustomAchievement, loc("You defended yourself against Captain Lime"))
   432 	SendStat('siPlayerKills','1',teamA.name)
   432 	SendStat(siPlayerKills,'1',teamA.name)
   433 	SendStat('siPlayerKills','0',teamB.name)
   433 	SendStat(siPlayerKills,'0',teamB.name)
   434 	EndGame()
   434 	EndGame()
   435 end
   435 end
   436 
   436 
   437 function redTeamDeath(gear)
   437 function redTeamDeath(gear)
   438 	-- hero win in battle scenario
   438 	-- hero win in battle scenario
   439 	saveCompletedStatus(3)
   439 	saveCompletedStatus(3)
   440 	SendStat('siGameResult', loc("Congratulations, you won!")) --1
   440 	SendStat(siGameResult, loc("Congratulations, you won!"))
   441 	SendStat('siCustomAchievement', loc("You retrieved the lost part")) --11
   441 	SendStat(siCustomAchievement, loc("You retrieved the lost part"))
   442 	SendStat('siCustomAchievement', loc("You defended yourself against Strawberry Assasins")) --11
   442 	SendStat(siCustomAchievement, loc("You defended yourself against Strawberry Assasins"))
   443 	SendStat('siPlayerKills','1',teamA.name)
   443 	SendStat(siPlayerKills,'1',teamA.name)
   444 	SendStat('siPlayerKills','0',teamC.name)
   444 	SendStat(siPlayerKills,'0',teamC.name)
   445 	EndGame()
   445 	EndGame()
   446 end
   446 end
   447 
   447 
   448 function checkPoint1(gear)
   448 function checkPoint1(gear)
   449 	saveCheckPointLocal(2)
   449 	saveCheckPointLocal(2)