214 TurnTimeLeft = 0 |
214 TurnTimeLeft = 0 |
215 end |
215 end |
216 end |
216 end |
217 |
217 |
218 function lose() |
218 function lose() |
219 SendStat('siGameResult', loc("Too slow! Try again...")) --1 |
219 SendStat(siGameResult, loc("Too slow! Try again...")) |
220 SendStat('siCustomAchievement', loc("You have to caught the other hog 3 times")) --11 |
220 SendStat(siCustomAchievement, loc("You have to caught the other hog 3 times")) |
221 SendStat('siCustomAchievement', loc("The time that you'll have left when you reach the hog will be added to the next turn")) --11 |
221 SendStat(siCustomAchievement, loc("The time that you'll have left when you reach the hog will be added to the next turn")) |
222 SendStat('siCustomAchievement', loc("Each turn you'll have only one rope to use")) --11 |
222 SendStat(siCustomAchievement, loc("Each turn you'll have only one rope to use")) |
223 SendStat('siCustomAchievement', loc("You'll lose if you die or if your time is up")) --11 |
223 SendStat(siCustomAchievement, loc("You'll lose if you die or if your time is up")) |
224 SendStat('siPlayerKills','0',teamA.name) |
224 SendStat(siPlayerKills,'0',teamA.name) |
225 EndGame() |
225 EndGame() |
226 end |
226 end |
227 |
227 |
228 function win() |
228 function win() |
229 SendStat('siGameResult', loc("Congratulations, you are the fastest!")) --1 |
229 SendStat(siGameResult, loc("Congratulations, you are the fastest!")) |
230 SendStat('siCustomAchievement', loc("You have managed to caught the other hog in time")) --11 |
230 SendStat(siCustomAchievement, loc("You have managed to caught the other hog in time")) |
231 SendStat('siPlayerKills','1',teamA.name) |
231 SendStat(siPlayerKills,'1',teamA.name) |
232 EndGame() |
232 EndGame() |
233 end |
233 end |