142 |
142 |
143 -------------- ACTIONS ------------------ |
143 -------------- ACTIONS ------------------ |
144 |
144 |
145 function heroDeath(gear) |
145 function heroDeath(gear) |
146 SendStat(siGameResult, loc("Hog Solo lost, try again!")) |
146 SendStat(siGameResult, loc("Hog Solo lost, try again!")) |
147 SendStat(siCustomAchievement, loc("To win the game you have to go to the surface")) |
147 SendStat(siCustomAchievement, loc("To win the game you have to go to the surface.")) |
148 SendStat(siCustomAchievement, loc("Most mines are not active")) |
148 SendStat(siCustomAchievement, loc("Most mines are not active.")) |
149 SendStat(siCustomAchievement, loc("From the second turn and beyond the water rises")) |
149 SendStat(siCustomAchievement, loc("From the second turn and beyond the water rises.")) |
150 SendStat(siPlayerKills,'0',teamA.name) |
150 SendStat(siPlayerKills,'0',teamA.name) |
151 EndGame() |
151 EndGame() |
152 end |
152 end |
153 |
153 |
154 function heroSafe(gear) |
154 function heroSafe(gear) |
155 SendStat(siGameResult, loc("Congratulations, you won!")) |
155 SendStat(siGameResult, loc("Congratulations, you won!")) |
156 SendStat(siCustomAchievement, loc("You have escaped successfully")) |
156 SendStat(siCustomAchievement, loc("You have escaped successfully.")) |
157 SendStat(siCustomAchievement, loc("Your escape took you "..TotalRounds.." turns")) |
157 SendStat(siCustomAchievement, string.format(loc("Your escape took you %d turns."), TotalRounds)) |
158 SendStat(siPlayerKills,'1',teamA.name) |
158 SendStat(siPlayerKills,'1',teamA.name) |
159 EndGame() |
159 EndGame() |
160 end |
160 end |
161 |
161 |
162 -------------- ANIMATIONS ------------------ |
162 -------------- ANIMATIONS ------------------ |
170 |
170 |
171 function AnimationSetup() |
171 function AnimationSetup() |
172 -- DIALOG 01 - Start |
172 -- DIALOG 01 - Start |
173 AddSkipFunction(dialog01, Skipanim, {dialog01}) |
173 AddSkipFunction(dialog01, Skipanim, {dialog01}) |
174 table.insert(dialog01, {func = AnimWait, args = {hero.gear, 3000}}) |
174 table.insert(dialog01, {func = AnimWait, args = {hero.gear, 3000}}) |
175 table.insert(dialog01, {func = AnimCaption, args = {hero.gear, loc("Many meters below the surface..."), 5000}}) |
175 table.insert(dialog01, {func = AnimCaption, args = {hero.gear, loc("Many meters below the surface ..."), 5000}}) |
176 table.insert(dialog01, {func = AnimSay, args = {hero.gear, loc("The tunnel is about to get flooded..."), SAY_THINK, 4000}}) |
176 table.insert(dialog01, {func = AnimSay, args = {hero.gear, loc("The tunnel is about to get flooded!"), SAY_THINK, 4000}}) |
177 table.insert(dialog01, {func = AnimSay, args = {hero.gear, loc("I have to reach the surface as quickly as I can..."), SAY_THINK, 4000}}) |
177 table.insert(dialog01, {func = AnimSay, args = {hero.gear, loc("I have to reach the surface as quickly as I can."), SAY_THINK, 4000}}) |
178 table.insert(dialog01, {func = AnimWait, args = {hero.gear, 500}}) |
178 table.insert(dialog01, {func = AnimWait, args = {hero.gear, 500}}) |
179 table.insert(dialog01, {func = challengeStart, args = {hero.gear}}) |
179 table.insert(dialog01, {func = challengeStart, args = {hero.gear}}) |
180 end |
180 end |
181 |
181 |
182 ------------------ Other Functions ------------------- |
182 ------------------ Other Functions ------------------- |