423 |
423 |
424 function AnimationSetup() |
424 function AnimationSetup() |
425 -- DIALOG 01 - Start, getting info about the device |
425 -- DIALOG 01 - Start, getting info about the device |
426 AddSkipFunction(dialog01, Skipanim, {dialog01}) |
426 AddSkipFunction(dialog01, Skipanim, {dialog01}) |
427 table.insert(dialog01, {func = AnimWait, args = {hero.gear, 3000}}) |
427 table.insert(dialog01, {func = AnimWait, args = {hero.gear, 3000}}) |
428 table.insert(dialog01, {func = AnimCaption, args = {hero.gear, loc("In the planet of sand, you have to double check your moves..."), 5000}}) |
428 table.insert(dialog01, {func = AnimCaption, args = {hero.gear, loc("In the Planet of Sand, you have to double check your moves..."), 5000}}) |
429 table.insert(dialog01, {func = AnimSay, args = {ally.gear, loc("Finaly you are here..."), SAY_SAY, 2000}}) |
429 table.insert(dialog01, {func = AnimSay, args = {ally.gear, loc("Finaly you are here..."), SAY_SAY, 2000}}) |
430 table.insert(dialog01, {func = AnimWait, args = {hero.gear, 2000}}) |
430 table.insert(dialog01, {func = AnimWait, args = {hero.gear, 2000}}) |
431 table.insert(dialog01, {func = AnimSay, args = {hero.gear, loc("Thank you for meeting me in such a short notice!"), SAY_SAY, 3000}}) |
431 table.insert(dialog01, {func = AnimSay, args = {hero.gear, loc("Thank you for meeting me in such a short notice!"), SAY_SAY, 3000}}) |
432 table.insert(dialog01, {func = AnimWait, args = {ally.gear, 4000}}) |
432 table.insert(dialog01, {func = AnimWait, args = {ally.gear, 4000}}) |
433 table.insert(dialog01, {func = AnimSay, args = {ally.gear, loc("No problem, I would do anything for M!"), SAY_SAY, 4000}}) |
433 table.insert(dialog01, {func = AnimSay, args = {ally.gear, loc("No problem, I would do anything for H!"), SAY_SAY, 4000}}) |
434 table.insert(dialog01, {func = AnimSay, args = {ally.gear, loc("Now listen carefully! Below us there are tunnels that have been created naturally over the years"), SAY_SAY, 4000}}) |
434 table.insert(dialog01, {func = AnimSay, args = {ally.gear, loc("Now listen carefully! Below us there are tunnels that have been created naturally over the years"), SAY_SAY, 4000}}) |
435 table.insert(dialog01, {func = AnimSay, args = {ally.gear, loc("I have heared the local tribes saying that many years ago some PAotH scientists were dumping their waste here"), SAY_SAY, 5000}}) |
435 table.insert(dialog01, {func = AnimSay, args = {ally.gear, loc("I have heared the local tribes saying that many years ago some PAotH scientists were dumping their waste here"), SAY_SAY, 5000}}) |
436 table.insert(dialog01, {func = AnimSay, args = {ally.gear, loc("M confimed that there isn't such a PAotH activity logged"), SAY_SAY, 4000}}) |
436 table.insert(dialog01, {func = AnimSay, args = {ally.gear, loc("H confimed that there isn't such a PAotH activity logged"), SAY_SAY, 4000}}) |
437 table.insert(dialog01, {func = AnimSay, args = {ally.gear, loc("So, I believe that it's a good place to start"), SAY_SAY, 3000}}) |
437 table.insert(dialog01, {func = AnimSay, args = {ally.gear, loc("So, I believe that it's a good place to start"), SAY_SAY, 3000}}) |
438 table.insert(dialog01, {func = AnimSay, args = {ally.gear, loc("Beware though! Many smugglers come often to explore these tunnels and scavage whatever valuable item they can find"), SAY_SAY, 5000}}) |
438 table.insert(dialog01, {func = AnimSay, args = {ally.gear, loc("Beware though! Many smugglers come often to explore these tunnels and scavage whatever valuable items they can find"), SAY_SAY, 5000}}) |
439 table.insert(dialog01, {func = AnimSay, args = {ally.gear, loc("They won't hesitate to attack you in order to take your valuables!"), SAY_SAY, 4000}}) |
439 table.insert(dialog01, {func = AnimSay, args = {ally.gear, loc("They won't hesitate to attack you in order to rob you!"), SAY_SAY, 4000}}) |
440 table.insert(dialog01, {func = AnimWait, args = {hero.gear, 6000}}) |
440 table.insert(dialog01, {func = AnimWait, args = {hero.gear, 6000}}) |
441 table.insert(dialog01, {func = AnimSay, args = {hero.gear, loc("OK, I'll be extra careful!"), SAY_SAY, 4000}}) |
441 table.insert(dialog01, {func = AnimSay, args = {hero.gear, loc("OK, I'll be extra careful!"), SAY_SAY, 4000}}) |
442 table.insert(dialog01, {func = AnimWait, args = {ally.gear, 2000}}) |
442 table.insert(dialog01, {func = AnimWait, args = {ally.gear, 2000}}) |
443 table.insert(dialog01, {func = AnimSay, args = {ally.gear, loc("There is the tunnel entrance"), SAY_SAY, 3000}}) |
443 table.insert(dialog01, {func = AnimSay, args = {ally.gear, loc("There is the tunnel entrance"), SAY_SAY, 3000}}) |
444 table.insert(dialog01, {func = AnimSay, args = {ally.gear, loc("Good luck!"), SAY_SAY, 3000}}) |
444 table.insert(dialog01, {func = AnimSay, args = {ally.gear, loc("Good luck!"), SAY_SAY, 3000}}) |
495 AnimSay(hero.gear, loc("Haven't found it yet..."), SAY_THINK, 5000) |
495 AnimSay(hero.gear, loc("Haven't found it yet..."), SAY_THINK, 5000) |
496 cratesFound = cratesFound + 1 |
496 cratesFound = cratesFound + 1 |
497 elseif cratesFound == 1 then |
497 elseif cratesFound == 1 then |
498 -- end game |
498 -- end game |
499 AnimSay(hero.gear, loc("Hoo Ray!!!"), SAY_SHOUT, 5000) |
499 AnimSay(hero.gear, loc("Hoo Ray!!!"), SAY_SHOUT, 5000) |
500 SendStat('siGameResult', loc("Congratulations, you got the part!")) --1 |
500 SendStat('siGameResult', loc("Congratulations, you won!")) --1 |
501 SendStat('siCustomAchievement', loc("To win the game you had to collect 2 crates with no specific order")) --11 |
501 SendStat('siCustomAchievement', loc("To win the game you had to collect the 2 crates with no specific order")) --11 |
502 SendStat('siPlayerKills','1',teamC.name) |
502 SendStat('siPlayerKills','1',teamC.name) |
503 SendStat('siPlayerKills','0',teamB.name) |
503 SendStat('siPlayerKills','0',teamB.name) |
504 EndGame() |
504 EndGame() |
505 end |
505 end |
506 end |
506 end |