520 |
520 |
521 function AnimationSetup() |
521 function AnimationSetup() |
522 -- DIALOG 01 - Start |
522 -- DIALOG 01 - Start |
523 AddSkipFunction(dialog01, Skipanim, {dialog01}) |
523 AddSkipFunction(dialog01, Skipanim, {dialog01}) |
524 table.insert(dialog01, {func = AnimWait, args = {doctor.gear, 3000}}) |
524 table.insert(dialog01, {func = AnimWait, args = {doctor.gear, 3000}}) |
525 table.insert(dialog01, {func = AnimCaption, args = {hero.gear, loc("Near secret base 17 of PAotH in the rural Hogland..."), 4000}}) |
525 table.insert(dialog01, {func = AnimCaption, args = {hero.gear, loc("Near Secret Base 17 of PAotH in the rural Hogland ..."), 4000}}) |
526 table.insert(dialog01, {func = AnimSay, args = {director.gear, loc("So Hog Solo, here we are..."), SAY_SAY, 2000}}) |
526 table.insert(dialog01, {func = AnimSay, args = {director.gear, loc("So Hog Solo, here we are ..."), SAY_SAY, 2000}}) |
527 table.insert(dialog01, {func = AnimSay, args = {director.gear, loc("Behind these trees on the east side there is secret base 17"), SAY_SAY, 4000}}) |
527 table.insert(dialog01, {func = AnimSay, args = {director.gear, loc("Behind these trees on the east side there is Secret Base 17."), SAY_SAY, 4000}}) |
528 table.insert(dialog01, {func = AnimSay, args = {director.gear, loc("You have to continue alone from now on."), SAY_SAY, 3000}}) |
528 table.insert(dialog01, {func = AnimSay, args = {director.gear, loc("You have to continue alone from now on."), SAY_SAY, 3000}}) |
529 table.insert(dialog01, {func = AnimSay, args = {director.gear, loc("Be careful, the future of Hogera is in your hands!"), SAY_SAY, 7200}}) |
529 table.insert(dialog01, {func = AnimSay, args = {director.gear, loc("Be careful, the future of Hogera is in your hands!"), SAY_SAY, 7200}}) |
530 table.insert(dialog01, {func = AnimSay, args = {doctor.gear, loc("We'll use our communicators to contact you"), SAY_SAY, 2600}}) |
530 table.insert(dialog01, {func = AnimSay, args = {doctor.gear, loc("We'll use our communicators to contact you."), SAY_SAY, 2600}}) |
531 table.insert(dialog01, {func = AnimSay, args = {doctor.gear, loc("In am also entrusting you with some rope"), SAY_SAY, 5000}}) |
531 table.insert(dialog01, {func = AnimSay, args = {doctor.gear, loc("In am also entrusting you with some rope."), SAY_SAY, 5000}}) |
532 table.insert(dialog01, {func = AnimSay, args = {doctor.gear, loc("You may find it handy"), SAY_SAY, 2300}}) |
532 table.insert(dialog01, {func = AnimSay, args = {doctor.gear, loc("You may find it handy."), SAY_SAY, 2300}}) |
533 table.insert(dialog01, {func = AnimSay, args = {hero.gear, loc("Thank you Dr.Cornelius"), SAY_SAY, 1600}}) |
533 table.insert(dialog01, {func = AnimSay, args = {hero.gear, loc("Thank you, Dr. Cornelius."), SAY_SAY, 1600}}) |
534 table.insert(dialog01, {func = AnimSay, args = {hero.gear, loc("I'll make good use of it"), SAY_SAY, 4500}}) |
534 table.insert(dialog01, {func = AnimSay, args = {hero.gear, loc("I'll make good use of it."), SAY_SAY, 4500}}) |
535 table.insert(dialog01, {func = AnimSay, args = {director.gear, loc("It would be wiser to steal the space ship while PAotH guards are taking a brake!"), SAY_SAY, 7000}}) |
535 table.insert(dialog01, {func = AnimSay, args = {director.gear, loc("It would be wiser to steal the space ship while the PAotH guards are taking a brake!"), SAY_SAY, 7000}}) |
536 table.insert(dialog01, {func = AnimSay, args = {director.gear, loc("Remember! Many will seek the anti-gravity device! Now go, hurry up!"), SAY_SAY, 4000}}) |
536 table.insert(dialog01, {func = AnimSay, args = {director.gear, loc("Remember! Many will seek the anti-gravity device! Now go, hurry up!"), SAY_SAY, 4000}}) |
537 table.insert(dialog01, {func = AnimSwitchHog, args = {hero.gear}}) |
537 table.insert(dialog01, {func = AnimSwitchHog, args = {hero.gear}}) |
538 -- DIALOG 02 - Hero got the saucer |
538 -- DIALOG 02 - Hero got the saucer |
539 AddSkipFunction(dialog02, Skipanim, {dialog02}) |
539 AddSkipFunction(dialog02, Skipanim, {dialog02}) |
540 table.insert(dialog02, {func = AnimWait, args = {hero.gear, 500}}) |
540 table.insert(dialog02, {func = AnimWait, args = {hero.gear, 500}}) |
541 table.insert(dialog02, {func = AnimCaption, args = {hero.gear, loc("CheckPoint reached!"), 4000}}) |
541 table.insert(dialog02, {func = AnimCaption, args = {hero.gear, loc("Checkpoint reached!"), 4000}}) |
542 table.insert(dialog02, {func = AnimSay, args = {hero.gear, loc("Got the saucer!"), SAY_SHOUT, 2000}}) |
542 table.insert(dialog02, {func = AnimSay, args = {hero.gear, loc("Got the saucer!"), SAY_SHOUT, 2000}}) |
543 table.insert(dialog02, {func = AnimSay, args = {director.gear, loc("Nice!"), SAY_SHOUT, 1000}}) |
543 table.insert(dialog02, {func = AnimSay, args = {director.gear, loc("Nice!"), SAY_SHOUT, 1000}}) |
544 table.insert(dialog02, {func = AnimSay, args = {director.gear, loc("Now use it and go to the moon PAotH station to get more fuel!"), SAY_SHOUT, 5000}}) |
544 table.insert(dialog02, {func = AnimSay, args = {director.gear, loc("Now use it and go to the moon PAotH station to get more fuel!"), SAY_SHOUT, 5000}}) |
545 table.insert(dialog02, {func = AnimGearWait, args = {hero.gear, 500}}) |
545 table.insert(dialog02, {func = AnimGearWait, args = {hero.gear, 500}}) |
546 -- DIALOG 03 - Hero got spotted by guard |
546 -- DIALOG 03 - Hero got spotted by guard |
547 AddSkipFunction(dialog03, Skipanim, {dialog03}) |
547 AddSkipFunction(dialog03, Skipanim, {dialog03}) |
548 table.insert(dialog03, {func = AnimWait, args = {guard1.gear, 4000}}) |
548 table.insert(dialog03, {func = AnimWait, args = {guard1.gear, 4000}}) |
549 table.insert(dialog03, {func = AnimCaption, args = {guard1.gear, loc("Prepare to flee!"), 4000}}) |
549 table.insert(dialog03, {func = AnimCaption, args = {guard1.gear, loc("Prepare to flee!"), 4000}}) |
550 table.insert(dialog03, {func = AnimSay, args = {guard1.gear, loc("Hey").." "..guard2.name.."! "..loc("Look, someone is stealing the saucer!"), SAY_SHOUT, 4000}}) |
550 table.insert(dialog03, {func = AnimSay, args = {guard1.gear, string.format(loc("Hey, %s! Look, someone is stealing the saucer!"), guard2.name), SAY_SHOUT, 4000}}) |
551 table.insert(dialog03, {func = AnimSay, args = {guard2.gear, loc("I'll get him!"), SAY_SAY, 4000}}) |
551 table.insert(dialog03, {func = AnimSay, args = {guard2.gear, loc("I'll get him!"), SAY_SAY, 4000}}) |
552 table.insert(dialog03, {func = startCombat, args = {guard1.gear}}) |
552 table.insert(dialog03, {func = startCombat, args = {guard1.gear}}) |
553 -- DIALOG 04 - Hero out of sight |
553 -- DIALOG 04 - Hero out of sight |
554 AddSkipFunction(dialog04, Skipanim, {dialog04}) |
554 AddSkipFunction(dialog04, Skipanim, {dialog04}) |
555 table.insert(dialog04, {func = AnimCaption, args = {guard1.gear, loc("You are out of danger, time to go to the moon!"), 4000}}) |
555 table.insert(dialog04, {func = AnimCaption, args = {guard1.gear, loc("You are out of danger, time to go to the moon!"), 4000}}) |
556 table.insert(dialog04, {func = AnimSay, args = {guard1.gear, loc("I guess we lost him!"), SAY_SAY, 3000}}) |
556 table.insert(dialog04, {func = AnimSay, args = {guard1.gear, loc("I guess we lost him!"), SAY_SAY, 3000}}) |
557 table.insert(dialog04, {func = AnimSay, args = {guard2.gear, loc("We should better report this and continue our watch!"), SAY_SAY, 5000}}) |
557 table.insert(dialog04, {func = AnimSay, args = {guard2.gear, loc("We should better report this and continue our watch!"), SAY_SAY, 5000}}) |
558 table.insert(dialog04, {func = AnimSwitchHog, args = {hero.gear}}) |
558 table.insert(dialog04, {func = AnimSwitchHog, args = {hero.gear}}) |
559 -- DIALOG 05 - Hero returned from moon without fuels |
559 -- DIALOG 05 - Hero returned from moon without fuels |
560 AddSkipFunction(dialog05, Skipanim, {dialog05}) |
560 AddSkipFunction(dialog05, Skipanim, {dialog05}) |
561 table.insert(dialog05, {func = AnimSay, args = {hero.gear, loc("I guess I can't go far without fuels!"), SAY_THINK, 6000}}) |
561 table.insert(dialog05, {func = AnimSay, args = {hero.gear, loc("I guess I can't go far without fuel!"), SAY_THINK, 6000}}) |
562 table.insert(dialog05, {func = AnimSay, args = {hero.gear, loc("Go to go back"), SAY_THINK, 2000}}) |
562 table.insert(dialog05, {func = AnimSay, args = {hero.gear, loc("Got to go back."), SAY_THINK, 2000}}) |
563 table.insert(dialog05, {func = sendStatsOnRetry, args = {hero.gear}}) |
563 table.insert(dialog05, {func = sendStatsOnRetry, args = {hero.gear}}) |
564 -- DIALOG 06 - Landing on wrong planet or on earth if not enough fuels |
564 -- DIALOG 06 - Landing on wrong planet or on earth if not enough fuels |
565 AddSkipFunction(dialog06, Skipanim, {dialog06}) |
565 AddSkipFunction(dialog06, Skipanim, {dialog06}) |
566 table.insert(dialog06, {func = AnimCaption, args = {hero.gear, loc("You have to try again!"), 5000}}) |
566 table.insert(dialog06, {func = AnimCaption, args = {hero.gear, loc("You have to try again!"), 5000}}) |
567 table.insert(dialog06, {func = AnimSay, args = {hero.gear, loc("Hm... Now I ran out of fuel..."), SAY_THINK, 3000}}) |
567 table.insert(dialog06, {func = AnimSay, args = {hero.gear, loc("Hm ... Now I ran out of fuel."), SAY_THINK, 3000}}) |
568 table.insert(dialog06, {func = sendStatsOnRetry, args = {hero.gear}}) |
568 table.insert(dialog06, {func = sendStatsOnRetry, args = {hero.gear}}) |
569 -- DIALOG 07 - Hero lands on Death Planet but isn't allowed yet to play this map |
569 -- DIALOG 07 - Hero lands on Death Planet but isn't allowed yet to play this map |
570 AddSkipFunction(dialog07, Skipanim, {dialog07}) |
570 AddSkipFunction(dialog07, Skipanim, {dialog07}) |
571 table.insert(dialog07, {func = AnimCaption, args = {hero.gear, loc("This planet seems dangerous!"), 5000}}) |
571 table.insert(dialog07, {func = AnimCaption, args = {hero.gear, loc("This planet seems dangerous!"), 5000}}) |
572 table.insert(dialog07, {func = AnimSay, args = {hero.gear, loc("I am not ready for this planet yet. I should visit it when I have found all the other device parts"), SAY_THINK, 4000}}) |
572 table.insert(dialog07, {func = AnimSay, args = {hero.gear, loc("I am not ready for this planet yet. I should visit it when I have found all the other device parts."), SAY_THINK, 4000}}) |
573 -- DIALOG 08 - Hero wins death01 |
573 -- DIALOG 08 - Hero wins death01 |
574 AddSkipFunction(dialog08, Skipanim, {dialog08}) |
574 AddSkipFunction(dialog08, Skipanim, {dialog08}) |
575 table.insert(dialog08, {func = AnimCaption, args = {hero.gear, loc("Under the meteorite shadow..."), 4000}}) |
575 table.insert(dialog08, {func = AnimCaption, args = {hero.gear, loc("Under the meteorites shadow ..."), 4000}}) |
576 table.insert(dialog08, {func = AnimSay, args = {doctor.gear, loc("You did great Hog Solo! However we aren't out of danger yet!"), SAY_SHOUT, 4500}}) |
576 table.insert(dialog08, {func = AnimSay, args = {doctor.gear, loc("You did great, Hog Solo! However, we aren't out of danger yet!"), SAY_SHOUT, 4500}}) |
577 table.insert(dialog08, {func = AnimSay, args = {doctor.gear, loc("The meteorite has come too close and the anti-gravity device isn't powerful enough to stop it now"), SAY_SHOUT, 5000}}) |
577 table.insert(dialog08, {func = AnimSay, args = {doctor.gear, loc("The meteorite has come too close and the anti-gravity device isn't powerful enough to stop it now."), SAY_SHOUT, 5000}}) |
578 table.insert(dialog08, {func = AnimSay, args = {doctor.gear, loc("We need it to get split into at least two parts"), SAY_SHOUT, 3000}}) |
578 table.insert(dialog08, {func = AnimSay, args = {doctor.gear, loc("We need it to get split into at least two parts."), SAY_SHOUT, 3000}}) |
579 table.insert(dialog08, {func = AnimSay, args = {doctor.gear, loc("PAotH has sent explosives but unfortunately the trigger mechanism seems to be faulty!"), SAY_SHOUT, 5000}}) |
579 table.insert(dialog08, {func = AnimSay, args = {doctor.gear, loc("PAotH has sent explosives but unfortunately the trigger mechanism seems to be faulty!"), SAY_SHOUT, 5000}}) |
580 table.insert(dialog08, {func = AnimSay, args = {doctor.gear, loc("We need you to go there and detonate them yourself! Good luck!"), SAY_SHOUT, 500}}) |
580 table.insert(dialog08, {func = AnimSay, args = {doctor.gear, loc("We need you to go there and detonate them yourself! Good luck!"), SAY_SHOUT, 500}}) |
581 table.insert(dialog08, {func = AnimWait, args = {doctor.gear, 3000}}) |
581 table.insert(dialog08, {func = AnimWait, args = {doctor.gear, 3000}}) |
582 table.insert(dialog08, {func = AnimSwitchHog, args = {hero.gear}}) |
582 table.insert(dialog08, {func = AnimSwitchHog, args = {hero.gear}}) |
583 end |
583 end |