share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/death01.lua
branchspacecampaign
changeset 9578 16139270448f
parent 9574 da3d39667881
child 9582 bf314b2258b3
equal deleted inserted replaced
9576:8d8bad7d78de 9578:16139270448f
     5 -- who has took hostages H and Dr. Cornelius.
     5 -- who has took hostages H and Dr. Cornelius.
     6 -- Hog Solo has to defeat him and his thugs.
     6 -- Hog Solo has to defeat him and his thugs.
     7 
     7 
     8 HedgewarsScriptLoad("/Scripts/Locale.lua")
     8 HedgewarsScriptLoad("/Scripts/Locale.lua")
     9 HedgewarsScriptLoad("/Scripts/Animate.lua")
     9 HedgewarsScriptLoad("/Scripts/Animate.lua")
       
    10 HedgewarsScriptLoad("/Missions/Campaign/A_Space_Adventure/global_functions.lua")
    10 
    11 
    11 ----------------- VARIABLES --------------------
    12 ----------------- VARIABLES --------------------
    12 -- globals
    13 -- globals
    13 local missionName = loc("The last encounter")
    14 local missionName = loc("The last encounter")
    14 -- dialogs
    15 -- dialogs
   247 	SendStat('siPlayerKills','0',teamA.name)
   248 	SendStat('siPlayerKills','0',teamA.name)
   248 	EndGame()
   249 	EndGame()
   249 end
   250 end
   250 
   251 
   251 function enemiesDeath(gear)
   252 function enemiesDeath(gear)
       
   253 	saveCompletedStatus(6)
   252 	SendStat('siGameResult', loc("Congratulations, you won!")) --1
   254 	SendStat('siGameResult', loc("Congratulations, you won!")) --1
   253 	SendStat('siCustomAchievement', loc("You have successfuly eliminated Professor Hogevil")) --11
   255 	SendStat('siCustomAchievement', loc("You have successfuly eliminated Professor Hogevil")) --11
   254 	SendStat('siCustomAchievement', loc("You have rescued H and Dr.Cornelius")) --11
   256 	SendStat('siCustomAchievement', loc("You have rescued H and Dr.Cornelius")) --11
   255 	SendStat('siCustomAchievement', loc("You have acquired the last part")) --11
   257 	SendStat('siCustomAchievement', loc("You have acquired the last part")) --11
   256 	SendStat('siPlayerKills','1',teamA.name)
   258 	SendStat('siPlayerKills','1',teamA.name)