500 |
500 |
501 function AnimationSetup() |
501 function AnimationSetup() |
502 -- DIALOG 01 - Start, Captain Lime helps Hog Solo because he took part in the battle |
502 -- DIALOG 01 - Start, Captain Lime helps Hog Solo because he took part in the battle |
503 AddSkipFunction(dialog01, Skipanim, {dialog01}) |
503 AddSkipFunction(dialog01, Skipanim, {dialog01}) |
504 table.insert(dialog01, {func = AnimWait, args = {hero.gear, 3000}}) |
504 table.insert(dialog01, {func = AnimWait, args = {hero.gear, 3000}}) |
505 table.insert(dialog01, {func = AnimCaption, args = {hero.gear, loc("Somewhere else on the planet of fruits Captain Lime helps Hog Solo..."), 5000}}) |
505 table.insert(dialog01, {func = AnimCaption, args = {hero.gear, loc("Somewhere else on the planet of fruits, Captain Lime helps Hog Solo"), 5000}}) |
506 table.insert(dialog01, {func = AnimSay, args = {green1.gear, loc("You fought bravely and you helped us win this battle!"), SAY_SAY, 5000}}) |
506 table.insert(dialog01, {func = AnimSay, args = {green1.gear, loc("You fought bravely and you helped us win this battle!"), SAY_SAY, 5000}}) |
507 table.insert(dialog01, {func = AnimSay, args = {green1.gear, loc("So, as promised I have brought you where I think that the device you are looking for is hidden."), SAY_SAY, 7000}}) |
507 table.insert(dialog01, {func = AnimSay, args = {green1.gear, loc("So, as promised I have brought you where I think that the device you are looking for is hidden."), SAY_SAY, 7000}}) |
508 table.insert(dialog01, {func = AnimSay, args = {green1.gear, loc("I know that your resources are low due to the battle but I'll send two of my best hogs to assist you."), SAY_SAY, 7000}}) |
508 table.insert(dialog01, {func = AnimSay, args = {green1.gear, loc("I know that your resources are low due to the battle but I'll send two of my best hogs to assist you."), SAY_SAY, 7000}}) |
509 table.insert(dialog01, {func = AnimSay, args = {green1.gear, loc("Good luck!"), SAY_SAY, 2000}}) |
509 table.insert(dialog01, {func = AnimSay, args = {green1.gear, loc("Good luck!"), SAY_SAY, 2000}}) |
510 table.insert(dialog01, {func = AnimWait, args = {hero.gear, 500}}) |
510 table.insert(dialog01, {func = AnimWait, args = {hero.gear, 500}}) |
511 table.insert(dialog01, {func = AnimSwitchHog, args = {hero.gear}}) |
511 table.insert(dialog01, {func = AnimSwitchHog, args = {hero.gear}}) |
512 -- DIALOG02 - Start, Hog Solo escaped from the previous battle |
512 -- DIALOG02 - Start, Hog Solo escaped from the previous battle |
513 AddSkipFunction(dialog02, Skipanim, {dialog02}) |
513 AddSkipFunction(dialog02, Skipanim, {dialog02}) |
514 table.insert(dialog02, {func = AnimWait, args = {hero.gear, 3000}}) |
514 table.insert(dialog02, {func = AnimWait, args = {hero.gear, 3000}}) |
515 table.insert(dialog02, {func = AnimCaption, args = {hero.gear, loc("Somewhere else on the planet of fruits Hog Solo gets closer to the device..."), 5000}}) |
515 table.insert(dialog02, {func = AnimCaption, args = {hero.gear, loc("Somewhere else on the planet of fruits Hog Solo gets closer to the device"), 5000}}) |
516 table.insert(dialog02, {func = AnimSay, args = {green1.gear, loc("You are the one who fled! So, you are alive..."), SAY_SAY, 4000}}) |
516 table.insert(dialog02, {func = AnimSay, args = {green1.gear, loc("You are the one who fled! So, you are alive."), SAY_SAY, 4000}}) |
517 table.insert(dialog02, {func = AnimSay, args = {green1.gear, loc("I'm still low on hogs. If you are not afraid I could use a set of extra hands"), SAY_SAY, 4000}}) |
517 table.insert(dialog02, {func = AnimSay, args = {green1.gear, loc("I'm still low on hogs. If you are not afraid I could use a set of extra hands."), SAY_SAY, 4000}}) |
518 table.insert(dialog02, {func = AnimWait, args = {hero.gear, 8000}}) |
518 table.insert(dialog02, {func = AnimWait, args = {hero.gear, 8000}}) |
519 table.insert(dialog02, {func = AnimSay, args = {hero.gear, loc("I am sorry but I was looking for a device that may be hidden somewhere around here"), SAY_SAY, 4500}}) |
519 table.insert(dialog02, {func = AnimSay, args = {hero.gear, loc("I am sorry but I was looking for a device that may be hidden somewhere around here."), SAY_SAY, 4500}}) |
520 table.insert(dialog02, {func = AnimWait, args = {green1.gear, 12500}}) |
520 table.insert(dialog02, {func = AnimWait, args = {green1.gear, 12500}}) |
521 table.insert(dialog02, {func = AnimSay, args = {green1.gear, loc("Many long forgotten things can be found in the same tunnels that we are about to explore!"), SAY_SAY, 7000}}) |
521 table.insert(dialog02, {func = AnimSay, args = {green1.gear, loc("Many long forgotten things can be found in the same tunnels that we are about to explore!"), SAY_SAY, 7000}}) |
522 table.insert(dialog02, {func = AnimSay, args = {green1.gear, loc("If you help us you can keep the device if you find it but we'll keep everything else"), SAY_SAY, 7000}}) |
522 table.insert(dialog02, {func = AnimSay, args = {green1.gear, loc("If you help us you can keep the device if you find it but we'll keep everything else."), SAY_SAY, 7000}}) |
523 table.insert(dialog02, {func = AnimSay, args = {green1.gear, loc("What do you say? Are you in?"), SAY_SAY, 3000}}) |
523 table.insert(dialog02, {func = AnimSay, args = {green1.gear, loc("What do you say? Are you in?"), SAY_SAY, 3000}}) |
524 table.insert(dialog02, {func = AnimWait, args = {hero.gear, 1800}}) |
524 table.insert(dialog02, {func = AnimWait, args = {hero.gear, 1800}}) |
525 table.insert(dialog02, {func = AnimSay, args = {hero.gear, loc("Ok then!"), SAY_SAY, 2000}}) |
525 table.insert(dialog02, {func = AnimSay, args = {hero.gear, loc("Okay then!"), SAY_SAY, 2000}}) |
526 table.insert(dialog02, {func = AnimSwitchHog, args = {hero.gear}}) |
526 table.insert(dialog02, {func = AnimSwitchHog, args = {hero.gear}}) |
527 -- DIALOG03 - At crates, hero learns that Captain Lime is bad |
527 -- DIALOG03 - At crates, hero learns that Captain Lime is bad |
528 AddSkipFunction(dialog03, Skipanim, {dialog03}) |
528 AddSkipFunction(dialog03, Skipanim, {dialog03}) |
529 table.insert(dialog03, {func = AnimWait, args = {hero.gear, 4000}}) |
529 table.insert(dialog03, {func = AnimWait, args = {hero.gear, 4000}}) |
530 table.insert(dialog03, {func = FollowGear, args = {hero.gear}}) |
530 table.insert(dialog03, {func = FollowGear, args = {hero.gear}}) |
531 table.insert(dialog03, {func = AnimSay, args = {hero.gear, loc("Hoorah! I've found it, now I have to get back to Captain Lime!"), SAY_SAY, 4000}}) |
531 table.insert(dialog03, {func = AnimSay, args = {hero.gear, loc("Hooray! I've found it, now I have to get back to Captain Lime!"), SAY_SAY, 4000}}) |
532 table.insert(dialog03, {func = AnimWait, args = {green1.gear, 4000}}) |
532 table.insert(dialog03, {func = AnimWait, args = {green1.gear, 4000}}) |
533 table.insert(dialog03, {func = AnimSay, args = {green1.gear, loc("This Hog Solo is so naive! When he returns I'll shoot him and keep that device for myself!"), SAY_THINK, 4000}}) |
533 table.insert(dialog03, {func = AnimSay, args = {green1.gear, loc("This Hog Solo is so naive! When he returns I'll shoot him and keep that device for myself!"), SAY_THINK, 4000}}) |
534 table.insert(dialog03, {func = goToThesurface, args = {hero.gear}}) |
534 table.insert(dialog03, {func = goToThesurface, args = {hero.gear}}) |
535 -- DIALOG04 - At crates, hero learns about the Assassins ambush |
535 -- DIALOG04 - At crates, hero learns about the Assassins ambush |
536 AddSkipFunction(dialog04, Skipanim, {dialog04}) |
536 AddSkipFunction(dialog04, Skipanim, {dialog04}) |
537 table.insert(dialog04, {func = AnimWait, args = {hero.gear, 4000}}) |
537 table.insert(dialog04, {func = AnimWait, args = {hero.gear, 4000}}) |
538 table.insert(dialog04, {func = FollowGear, args = {hero.gear}}) |
538 table.insert(dialog04, {func = FollowGear, args = {hero.gear}}) |
539 table.insert(dialog04, {func = AnimSay, args = {hero.gear, loc("Hoorah! I've found it, now I have to get back to Captain Lime!"), SAY_SAY, 4000}}) |
539 table.insert(dialog04, {func = AnimSay, args = {hero.gear, loc("Hooray! I've found it, now I have to get back to Captain Lime!"), SAY_SAY, 4000}}) |
540 table.insert(dialog04, {func = AnimWait, args = {redHedgehogs[1].gear, 4000}}) |
540 table.insert(dialog04, {func = AnimWait, args = {redHedgehogs[1].gear, 4000}}) |
541 table.insert(dialog04, {func = AnimSay, args = {redHedgehogs[1].gear, loc("We have spotted the enemy! We'll attack when the enemies start gathering!"), SAY_THINK, 4000}}) |
541 table.insert(dialog04, {func = AnimSay, args = {redHedgehogs[1].gear, loc("We have spotted the enemy! We'll attack when the enemies start gathering!"), SAY_THINK, 4000}}) |
542 table.insert(dialog04, {func = goToThesurface, args = {hero.gear}}) |
542 table.insert(dialog04, {func = goToThesurface, args = {hero.gear}}) |
543 end |
543 end |
544 |
544 |