equal
deleted
inserted
replaced
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 |