485 |
485 |
486 function AnimationSetup() |
486 function AnimationSetup() |
487 -- DIALOG 01 - Start, welcome to moon |
487 -- DIALOG 01 - Start, welcome to moon |
488 AddSkipFunction(dialog01, Skipanim, {dialog01}) |
488 AddSkipFunction(dialog01, Skipanim, {dialog01}) |
489 table.insert(dialog01, {func = AnimWait, args = {hero.gear, 3000}}) |
489 table.insert(dialog01, {func = AnimWait, args = {hero.gear, 3000}}) |
490 table.insert(dialog01, {func = AnimCaption, args = {hero.gear, loc("In the Ice Planet, where ice rules..."), 5000}}) |
490 table.insert(dialog01, {func = AnimCaption, args = {hero.gear, loc("On the Ice Planet, where ice rules..."), 5000}}) |
491 table.insert(dialog01, {func = AnimSay, args = {ally.gear, loc("Finaly you are here..."), SAY_SAY, 2000}}) |
491 table.insert(dialog01, {func = AnimSay, args = {ally.gear, loc("Finally you are here..."), SAY_SAY, 2000}}) |
492 table.insert(dialog01, {func = AnimWait, args = {hero.gear, 2000}}) |
492 table.insert(dialog01, {func = AnimWait, args = {hero.gear, 2000}}) |
493 table.insert(dialog01, {func = AnimSay, args = {hero.gear, loc("Hi! Nice to meet you"), SAY_SAY, 3000}}) |
493 table.insert(dialog01, {func = AnimSay, args = {hero.gear, loc("Hi! Nice to meet you"), SAY_SAY, 3000}}) |
494 table.insert(dialog01, {func = AnimWait, args = {ally.gear, 2000}}) |
494 table.insert(dialog01, {func = AnimWait, args = {ally.gear, 2000}}) |
495 table.insert(dialog01, {func = AnimSay, args = {ally.gear, loc("Listen carefuly! The bandit leader, Thanta, has recently found a very strange device"), SAY_SAY, 4000}}) |
495 table.insert(dialog01, {func = AnimSay, args = {ally.gear, loc("Listen carefully! The bandit leader, Thanta, has recently found a very strange device"), SAY_SAY, 4000}}) |
496 table.insert(dialog01, {func = AnimSay, args = {ally.gear, loc("He doesn't know it but this device is a part of the anti-gravity device"), SAY_SAY, 2500}}) |
496 table.insert(dialog01, {func = AnimSay, args = {ally.gear, loc("He doesn't know it but this device is a part of the anti-gravity device"), SAY_SAY, 2500}}) |
497 table.insert(dialog01, {func = AnimWait, args = {hero.gear, 8000}}) |
497 table.insert(dialog01, {func = AnimWait, args = {hero.gear, 8000}}) |
498 table.insert(dialog01, {func = AnimSay, args = {hero.gear, loc("Nice, then I should get the part as soon as possible!"), SAY_SAY, 4000}}) |
498 table.insert(dialog01, {func = AnimSay, args = {hero.gear, loc("Nice, then I should get the part as soon as possible!"), SAY_SAY, 4000}}) |
499 table.insert(dialog01, {func = AnimWait, args = {ally.gear, 4000}}) |
499 table.insert(dialog01, {func = AnimWait, args = {ally.gear, 4000}}) |
500 table.insert(dialog01, {func = AnimSay, args = {ally.gear, loc("Be careful, your gadgets won't work in the bandit area. You should get an ice gun"), SAY_SAY, 7000}}) |
500 table.insert(dialog01, {func = AnimSay, args = {ally.gear, loc("Be careful, your gadgets won't work in the bandit area. You should get an ice gun"), SAY_SAY, 7000}}) |
502 table.insert(dialog01, {func = AnimWait, args = {hero.gear, 500}}) |
502 table.insert(dialog01, {func = AnimWait, args = {hero.gear, 500}}) |
503 table.insert(dialog01, {func = AnimSwitchHog, args = {hero.gear}}) |
503 table.insert(dialog01, {func = AnimSwitchHog, args = {hero.gear}}) |
504 -- DIALOG 02 - Hero got to Thant2 |
504 -- DIALOG 02 - Hero got to Thant2 |
505 AddSkipFunction(dialog02, Skipanim, {dialog02}) |
505 AddSkipFunction(dialog02, Skipanim, {dialog02}) |
506 table.insert(dialog02, {func = AnimWait, args = {hero.gear, 3000}}) |
506 table.insert(dialog02, {func = AnimWait, args = {hero.gear, 3000}}) |
507 table.insert(dialog02, {func = AnimCaption, args = {hero.gear, loc("Congratulations, now you can take Thanta's part..."), 5000}}) |
507 table.insert(dialog02, {func = AnimCaption, args = {hero.gear, loc("Congratulations, now you can take Thanta's device part..."), 5000}}) |
508 table.insert(dialog02, {func = AnimSay, args = {bandit1.gear, loc("Oh! Please spare me. You can take all my treasures!"), SAY_SAY, 3000}}) |
508 table.insert(dialog02, {func = AnimSay, args = {bandit1.gear, loc("Oh! Please spare me. You can take all my treasures!"), SAY_SAY, 3000}}) |
509 table.insert(dialog02, {func = AnimWait, args = {hero.gear, 5000}}) |
509 table.insert(dialog02, {func = AnimWait, args = {hero.gear, 5000}}) |
510 table.insert(dialog02, {func = AnimSay, args = {hero.gear, loc("I just want the strange device you found!"), SAY_SAY, 3000}}) |
510 table.insert(dialog02, {func = AnimSay, args = {hero.gear, loc("I just want the strange device you found!"), SAY_SAY, 3000}}) |
511 table.insert(dialog02, {func = AnimWait, args = {bandit1.gear, 4000}}) |
511 table.insert(dialog02, {func = AnimWait, args = {bandit1.gear, 4000}}) |
512 table.insert(dialog02, {func = AnimSay, args = {bandit1.gear, loc("Here! Take it..."), SAY_SAY, 3000}}) |
512 table.insert(dialog02, {func = AnimSay, args = {bandit1.gear, loc("Here! Take it..."), SAY_SAY, 3000}}) |
515 |
515 |
516 -------------- Other Functions ------------------- |
516 -------------- Other Functions ------------------- |
517 |
517 |
518 function actionsOnWin() |
518 function actionsOnWin() |
519 saveCompletedStatus(4) |
519 saveCompletedStatus(4) |
520 SendStat(siGameResult, loc("Congratulations, you got the part!")) |
520 SendStat(siGameResult, loc("Congratulations, you acquired the device part!")) |
521 SendStat(siCustomAchievement, loc("At the end of the game your health was ")..GetHealth(hero.gear)) |
521 SendStat(siCustomAchievement, loc("At the end of the game your health was ")..GetHealth(hero.gear)) |
522 -- maybe add number of tries for each part? |
522 -- maybe add number of tries for each part? |
523 SendStat(siPlayerKills,'1',teamC.name) |
523 SendStat(siPlayerKills,'1',teamC.name) |
524 SendStat(siPlayerKills,'0',teamB.name) |
524 SendStat(siPlayerKills,'0',teamB.name) |
525 EndGame() |
525 EndGame() |