share/hedgewars/Data/Missions/Challenge/User_Mission_-_That_Sinking_Feeling.lua
changeset 13496 cbda0f842364
parent 12933 e65aa3c3d4e6
child 13583 141cdfe0f3ca
equal deleted inserted replaced
13495:b5f8864a38d3 13496:cbda0f842364
     1 
     1 
     2 
     2 
     3 HedgewarsScriptLoad("/Scripts/Locale.lua")
     3 HedgewarsScriptLoad("/Scripts/Locale.lua")
       
     4 HedgewarsScriptLoad("/Scripts/Achievements.lua")
     4 
     5 
     5 local player
     6 local player
     6 local hh = {}
     7 local hh = {}
     7 local hhCount = 8
     8 local hhCount = 8
     8 local GameOver = false
     9 local GameOver = false
   239 				end
   240 				end
   240 
   241 
   241 				SendStat(siCustomAchievement, string.format(loc("You saved %d of 8 Hapless Hogs."), hhLeft))
   242 				SendStat(siCustomAchievement, string.format(loc("You saved %d of 8 Hapless Hogs."), hhLeft))
   242 
   243 
   243 				if hhLeft == 8 then
   244 				if hhLeft == 8 then
   244 					AddCaption(string.format(loc("Achievement gotten: %s"), loc("Lively Lifeguard")) ,0xffba00ff,capgrpMessage2)
   245 					awardAchievement(loc("Lively Lifeguard"))
   245 					SendStat(siCustomAchievement, loc("You have obtained an achievement: Lively Lifeguard"))
       
   246 				end
   246 				end
   247 				EndGame()
   247 				EndGame()
   248 
   248 
   249 			end
   249 			end
   250 
   250