share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/desert01.lua
branchspacecampaign
changeset 9642 8a691e0f117a
parent 9639 6b2ae2eaf1b2
child 9758 3b8058b251b8
equal deleted inserted replaced
9641:b08c8bde57e3 9642:8a691e0f117a
   346 end
   346 end
   347 
   347 
   348 -------------- ACTIONS ------------------
   348 -------------- ACTIONS ------------------
   349 
   349 
   350 function heroDeath(gear)
   350 function heroDeath(gear)
   351 	SendStat('siGameResult', loc("Hog Solo lost, try again!")) --1
   351 	SendStat(siGameResult, loc("Hog Solo lost, try again!"))
   352 	SendStat('siCustomAchievement', loc("To win the game you have to find the right crate")) --11
   352 	SendStat(siCustomAchievement, loc("To win the game you have to find the right crate"))
   353 	SendStat('siCustomAchievement', loc("You can avoid some battles")) --11
   353 	SendStat(siCustomAchievement, loc("You can avoid some battles"))
   354 	SendStat('siCustomAchievement', loc("Use your ammo wisely")) --11
   354 	SendStat(siCustomAchievement, loc("Use your ammo wisely"))
   355 	SendStat('siPlayerKills','1',teamB.name)
   355 	SendStat(siPlayerKills,'1',teamB.name)
   356 	SendStat('siPlayerKills','0',teamC.name)
   356 	SendStat(siPlayerKills,'0',teamC.name)
   357 	EndGame()
   357 	EndGame()
   358 end
   358 end
   359 
   359 
   360 function heroAtFirstBattle(gear)
   360 function heroAtFirstBattle(gear)
   361 	AnimCaption(hero.gear, loc("A smuggler! Prepare for battle"), 5000)
   361 	AnimCaption(hero.gear, loc("A smuggler! Prepare for battle"), 5000)
   502 		cratesFound = cratesFound + 1
   502 		cratesFound = cratesFound + 1
   503 	elseif cratesFound == 1 then
   503 	elseif cratesFound == 1 then
   504 		-- end game
   504 		-- end game
   505 		saveCompletedStatus(5)
   505 		saveCompletedStatus(5)
   506 		AnimSay(hero.gear, loc("Hoo Ray!!!"), SAY_SHOUT, 5000)
   506 		AnimSay(hero.gear, loc("Hoo Ray!!!"), SAY_SHOUT, 5000)
   507 		SendStat('siGameResult', loc("Congratulations, you won!")) --1
   507 		SendStat(siGameResult, loc("Congratulations, you won!"))
   508 		SendStat('siCustomAchievement', loc("To win the game you had to collect the 2 crates with no specific order")) --11
   508 		SendStat(siCustomAchievement, loc("To win the game you had to collect the 2 crates with no specific order"))
   509 		SendStat('siPlayerKills','1',teamC.name)
   509 		SendStat(siPlayerKills,'1',teamC.name)
   510 		SendStat('siPlayerKills','0',teamB.name)
   510 		SendStat(siPlayerKills,'0',teamB.name)
   511 		EndGame()
   511 		EndGame()
   512 	end
   512 	end
   513 end
   513 end