90 end |
91 end |
91 |
92 |
92 function AnimationSetup() |
93 function AnimationSetup() |
93 AddSkipFunction(damageAnim, SkipDamageAnim, {damageAnim}) |
94 AddSkipFunction(damageAnim, SkipDamageAnim, {damageAnim}) |
94 table.insert(damageAnim, {func = AnimWait, args = {youngh, 500}, skipFunc = Skipanim, skipArgs = damageAnim}) |
95 table.insert(damageAnim, {func = AnimWait, args = {youngh, 500}, skipFunc = Skipanim, skipArgs = damageAnim}) |
95 table.insert(damageAnim, {func = AnimSay, args = {elderh, "Watch your steps, young one!", SAY_SAY, 2000}}) |
96 table.insert(damageAnim, {func = AnimSay, args = {elderh, loc("Watch your steps, young one!"), SAY_SAY, 2000}}) |
96 table.insert(damageAnim, {func = AnimGearWait, args = {youngh, 500}}) |
97 table.insert(damageAnim, {func = AnimGearWait, args = {youngh, 500}}) |
97 |
98 |
98 AddSkipFunction(princessDamagedAnim, SkipDamageAnim, {princessDamagedAnim}) |
99 AddSkipFunction(princessDamagedAnim, SkipDamageAnim, {princessDamagedAnim}) |
99 table.insert(princessDamagedAnim, {func = AnimWait, args = {princess, 500}, skipFunc = Skipanim, skipArgs = princessDamagedAnim}) |
100 table.insert(princessDamagedAnim, {func = AnimWait, args = {princess, 500}, skipFunc = Skipanim, skipArgs = princessDamagedAnim}) |
100 table.insert(princessDamagedAnim, {func = AnimSay, args = {princess, "Why do men keep hurting me?", SAY_THINK, 3000}}) |
101 table.insert(princessDamagedAnim, {func = AnimSay, args = {princess, loc("Why do men keep hurting me?"), SAY_THINK, 3000}}) |
101 table.insert(princessDamagedAnim, {func = AnimGearWait, args = {youngh, 500}}) |
102 table.insert(princessDamagedAnim, {func = AnimGearWait, args = {youngh, 500}}) |
102 |
103 |
103 AddSkipFunction(elderDamagedAnim, SkipDamageAnim, {elderDamagedAnim}) |
104 AddSkipFunction(elderDamagedAnim, SkipDamageAnim, {elderDamagedAnim}) |
104 table.insert(elderDamagedAnim, {func = AnimWait, args = {elderh, 500}, skipFunc = Skipanim, skipArgs = elderDamagedAnim}) |
105 table.insert(elderDamagedAnim, {func = AnimWait, args = {elderh, 500}, skipFunc = Skipanim, skipArgs = elderDamagedAnim}) |
105 table.insert(elderDamagedAnim, {func = AnimSay, args = {elderh, "Violence is not the answer to your problems!", SAY_SAY, 3000}}) |
106 table.insert(elderDamagedAnim, {func = AnimSay, args = {elderh, loc("Violence is not the answer to your problems!"), SAY_SAY, 3000}}) |
106 table.insert(elderDamagedAnim, {func = AnimGearWait, args = {youngh, 500}}) |
107 table.insert(elderDamagedAnim, {func = AnimGearWait, args = {youngh, 500}}) |
107 |
108 |
108 AddSkipFunction(startDialogue, Skipanim, {startDialogue}) |
109 AddSkipFunction(startDialogue, Skipanim, {startDialogue}) |
109 table.insert(startDialogue, {func = AnimWait, args = {youngh, 3500}, skipFunc = Skipanim, skipArgs = startDialogue}) |
110 table.insert(startDialogue, {func = AnimWait, args = {youngh, 3500}, skipFunc = Skipanim, skipArgs = startDialogue}) |
110 table.insert(startDialogue, {func = AnimCaption, args = {youngh, "Once upon a time, on an island with great natural resources, lived two tribes in heated conflict...", 5000}}) |
111 table.insert(startDialogue, {func = AnimCaption, args = {youngh, loc("Once upon a time, on an island with great natural resources, lived two tribes in heated conflict..."), 5000}}) |
111 table.insert(startDialogue, {func = AnimCaption, args = {youngh, "One tribe was peaceful, spending their time hunting and training, enjoying the small pleasures of life...", 5000}}) |
112 table.insert(startDialogue, {func = AnimCaption, args = {youngh, loc("One tribe was peaceful, spending their time hunting and training, enjoying the small pleasures of life..."), 5000}}) |
112 table.insert(startDialogue, {func = AnimCaption, args = {youngh, "The other one were all cannibals, spending their time eating the organs of fellow hedgehogs...", 5000}}) |
113 table.insert(startDialogue, {func = AnimCaption, args = {youngh, loc("The other one were all cannibals, spending their time eating the organs of fellow hedgehogs..."), 5000}}) |
113 table.insert(startDialogue, {func = AnimCaption, args = {youngh, "And so it began...", 1000}}) |
114 table.insert(startDialogue, {func = AnimCaption, args = {youngh, loc("And so it began..."), 1000}}) |
114 table.insert(startDialogue, {func = AnimSay, args = {elderh, "What are you doing at a distance so great, young one?", SAY_SHOUT, 4000}}) |
115 table.insert(startDialogue, {func = AnimSay, args = {elderh, loc("What are you doing at a distance so great, young one?"), SAY_SHOUT, 4000}}) |
115 table.insert(startDialogue, {func = AnimSay, args = {elderh, "Come closer, so that your training may continue!", SAY_SHOUT, 6000}}) |
116 table.insert(startDialogue, {func = AnimSay, args = {elderh, loc("Come closer, so that your training may continue!"), SAY_SHOUT, 6000}}) |
116 table.insert(startDialogue, {func = AnimSay, args = {youngh, "This is it! It's time to make Fell From Heaven fall for me...", SAY_THINK, 6000}}) |
117 table.insert(startDialogue, {func = AnimSay, args = {youngh, loc("This is it! It's time to make Fell From Heaven fall for me..."), SAY_THINK, 6000}}) |
117 table.insert(startDialogue, {func = AnimJump, args = {youngh, "long"}}) |
118 table.insert(startDialogue, {func = AnimJump, args = {youngh, "long"}}) |
118 table.insert(startDialogue, {func = AnimTurn, args = {princess, "Right"}}) |
119 table.insert(startDialogue, {func = AnimTurn, args = {princess, "Right"}}) |
119 table.insert(startDialogue, {func = AnimSwitchHog, args = {youngh}}) |
120 table.insert(startDialogue, {func = AnimSwitchHog, args = {youngh}}) |
120 table.insert(startDialogue, {func = AnimShowMission, args = {youngh, "First Blood", "First Steps", "Press [Left] or [Right] to move around, [Enter] to jump", 1, 4000}}) |
121 table.insert(startDialogue, {func = AnimShowMission, args = {youngh, loc("First Blood"), loc("First Steps"), loc("Press [Left] or [Right] to move around, [Enter] to jump"), 1, 4000}}) |
121 |
122 |
122 AddSkipFunction(onShroomAnim, SkipOnShroom, {onShroomAnim}) |
123 AddSkipFunction(onShroomAnim, SkipOnShroom, {onShroomAnim}) |
123 table.insert(onShroomAnim, {func = AnimSay, args = {elderh, "I can see you have been training diligently.", SAY_SAY, 4000}, skipFunc = Skipanim, skipArgs = onShroomAnim}) |
124 table.insert(onShroomAnim, {func = AnimSay, args = {elderh, loc("I can see you have been training diligently."), SAY_SAY, 4000}, skipFunc = Skipanim, skipArgs = onShroomAnim}) |
124 table.insert(onShroomAnim, {func = AnimSay, args = {elderh, "The wind whispers that you are ready to become familiar with tools, now...", SAY_SAY, 4000}}) |
125 table.insert(onShroomAnim, {func = AnimSay, args = {elderh, loc("The wind whispers that you are ready to become familiar with tools, now..."), SAY_SAY, 4000}}) |
125 table.insert(onShroomAnim, {func = AnimSay, args = {elderh, "Open that crate and we will continue!", SAY_SAY, 5000}}) |
126 table.insert(onShroomAnim, {func = AnimSay, args = {elderh, loc("Open that crate and we will continue!"), SAY_SAY, 5000}}) |
126 table.insert(onShroomAnim, {func = AnimMove, args = {elderh, "right", 2700, 0}}) |
127 table.insert(onShroomAnim, {func = AnimMove, args = {elderh, "right", 2700, 0}}) |
127 table.insert(onShroomAnim, {func = AnimTurn, args = {elderh, "Left"}}) |
128 table.insert(onShroomAnim, {func = AnimTurn, args = {elderh, "Left"}}) |
128 table.insert(onShroomAnim, {func = AnimSay, args = {princess, "He moves like an eagle in the sky.", SAY_THINK, 4000}}) |
129 table.insert(onShroomAnim, {func = AnimSay, args = {princess, loc("He moves like an eagle in the sky."), SAY_THINK, 4000}}) |
129 table.insert(onShroomAnim, {func = AnimSwitchHog, args = {youngh}}) |
130 table.insert(onShroomAnim, {func = AnimSwitchHog, args = {youngh}}) |
130 table.insert(onShroomAnim, {func = AnimShowMission, args = {youngh, "First Blood", "A leap in a leap", "Go on top of the flower", 1, 4000}}) |
131 table.insert(onShroomAnim, {func = AnimShowMission, args = {youngh, loc("First Blood"), loc("A leap in a leap"), loc("Go on top of the flower"), 1, 4000}}) |
131 |
132 |
132 AddSkipFunction(onFlowerAnim, Skipanim, {onFlowerAnim}) |
133 AddSkipFunction(onFlowerAnim, Skipanim, {onFlowerAnim}) |
133 table.insert(onFlowerAnim, {func = AnimTurn, args = {elderh, "Right"}, skipFunc = Skipanim, skipArgs = onFlowerAnim}) |
134 table.insert(onFlowerAnim, {func = AnimTurn, args = {elderh, "Right"}, skipFunc = Skipanim, skipArgs = onFlowerAnim}) |
134 table.insert(onFlowerAnim, {func = AnimSay, args = {elderh, "See that crate farther on the right?", SAY_SAY, 4000}}) |
135 table.insert(onFlowerAnim, {func = AnimSay, args = {elderh, loc("See that crate farther on the right?"), SAY_SAY, 4000}}) |
135 table.insert(onFlowerAnim, {func = AnimSay, args = {elderh, "Swing, Leaks A Lot, on the wings of the wind!", SAY_SAY, 6000}}) |
136 table.insert(onFlowerAnim, {func = AnimSay, args = {elderh, loc("Swing, Leaks A Lot, on the wings of the wind!"), SAY_SAY, 6000}}) |
136 table.insert(onFlowerAnim, {func = AnimSay, args = {princess, "His arms are so strong!", SAY_THINK, 4000}}) |
137 table.insert(onFlowerAnim, {func = AnimSay, args = {princess, loc("His arms are so strong!"), SAY_THINK, 4000}}) |
137 table.insert(onFlowerAnim, {func = AnimSwitchHog, args = {youngh}}) |
138 table.insert(onFlowerAnim, {func = AnimSwitchHog, args = {youngh}}) |
138 table.insert(onFlowerAnim, {func = AnimShowMission, args = {youngh, "First Blood", "Hightime", "Collect the crate on the right.|Hint: Select the rope, [Up] or [Down] to aim, [Space] to fire, directional keys to move.|Ropes can be fired again in the air!", 1, 7000}}) |
139 table.insert(onFlowerAnim, {func = AnimShowMission, args = {youngh, loc("First Blood"), loc("Hightime"), loc("Collect the crate on the right.|Hint: Select the rope, [Up] or [Down] to aim, [Space] to fire, directional keys to move.|Ropes can be fired again in the air!"), 1, 7000}}) |
139 |
140 |
140 AddSkipFunction(tookParaAnim, Skipanim, {tookParaAnim}) |
141 AddSkipFunction(tookParaAnim, Skipanim, {tookParaAnim}) |
141 table.insert(tookParaAnim, {func = AnimGearWait, args = {youngh, 1000}, skipFunc = Skipanim, skipArgs = tookParaAnim}) |
142 table.insert(tookParaAnim, {func = AnimGearWait, args = {youngh, 1000}, skipFunc = Skipanim, skipArgs = tookParaAnim}) |
142 table.insert(tookParaAnim, {func = AnimSay, args = {elderh, "Use the rope to get on the head of the mole, young one!", SAY_SHOUT, 4000}}) |
143 table.insert(tookParaAnim, {func = AnimSay, args = {elderh, loc("Use the rope to get on the head of the mole, young one!"), SAY_SHOUT, 4000}}) |
143 table.insert(tookParaAnim, {func = AnimSay, args = {elderh, "Worry not, for it is a peaceful animal! There is no reason to be afraid...", SAY_SHOUT, 5000}}) |
144 table.insert(tookParaAnim, {func = AnimSay, args = {elderh, loc("Worry not, for it is a peaceful animal! There is no reason to be afraid..."), SAY_SHOUT, 5000}}) |
144 table.insert(tookParaAnim, {func = AnimSay, args = {elderh, "We all know what happens when you get frightened...", SAY_SAY, 4000}}) |
145 table.insert(tookParaAnim, {func = AnimSay, args = {elderh, loc("We all know what happens when you get frightened..."), SAY_SAY, 4000}}) |
145 table.insert(tookParaAnim, {func = AnimSay, args = {youngh, "So humiliating...", SAY_SAY, 4000}}) |
146 table.insert(tookParaAnim, {func = AnimSay, args = {youngh, loc("So humiliating..."), SAY_SAY, 4000}}) |
146 table.insert(tookParaAnim, {func = AnimShowMission, args = {youngh, "First Blood", "Omnivore", "Get on the head of the mole", 1, 4000}}) |
147 table.insert(tookParaAnim, {func = AnimShowMission, args = {youngh, loc("First Blood"), loc("Omnivore"), loc("Get on the head of the mole"), 1, 4000}}) |
147 table.insert(tookParaAnim, {func = AnimSwitchHog, args = {youngh}}) |
148 table.insert(tookParaAnim, {func = AnimSwitchHog, args = {youngh}}) |
148 |
149 |
149 AddSkipFunction(onMoleHeadAnim, Skipanim, {onMoleHeadAnim}) |
150 AddSkipFunction(onMoleHeadAnim, Skipanim, {onMoleHeadAnim}) |
150 table.insert(onMoleHeadAnim, {func = AnimSay, args = {elderh, "Perfect! Now try to get the next crate without hurting yourself!", SAY_SAY, 4000}, skipFunc = Skipanim, skipArgs = onMoleHeadAnim}) |
151 table.insert(onMoleHeadAnim, {func = AnimSay, args = {elderh, loc("Perfect! Now try to get the next crate without hurting yourself!"), SAY_SAY, 4000}, skipFunc = Skipanim, skipArgs = onMoleHeadAnim}) |
151 table.insert(onMoleHeadAnim, {func = AnimSay, args = {elderh, "The giant umbrella from the last crate should help break the fall.", SAY_SAY, 4000}}) |
152 table.insert(onMoleHeadAnim, {func = AnimSay, args = {elderh, loc("The giant umbrella from the last crate should help break the fall."), SAY_SAY, 4000}}) |
152 table.insert(onMoleHeadAnim, {func = AnimSay, args = {princess, "He's so brave...", SAY_THINK, 4000}}) |
153 table.insert(onMoleHeadAnim, {func = AnimSay, args = {princess, loc("He's so brave..."), SAY_THINK, 4000}}) |
153 table.insert(onMoleHeadAnim, {func = AnimShowMission, args = {youngh, "First Blood", "The Leap of Faith", "Use the parachute ([Space] while in air) to get the next crate", 1, 4000}}) |
154 table.insert(onMoleHeadAnim, {func = AnimShowMission, args = {youngh, loc("First Blood"), loc("The Leap of Faith"), loc("Use the parachute ([Space] while in air) to get the next crate"), 1, 4000}}) |
154 table.insert(onMoleHeadAnim, {func = AnimSwitchHog, args = {youngh}}) |
155 table.insert(onMoleHeadAnim, {func = AnimSwitchHog, args = {youngh}}) |
155 |
156 |
156 AddSkipFunction(pastMoleHeadAnim, Skipanim, {pastMoleHeadAnim}) |
157 AddSkipFunction(pastMoleHeadAnim, Skipanim, {pastMoleHeadAnim}) |
157 table.insert(pastMoleHeadAnim, {func = AnimSay, args = {elderh, "I see you have already taken the leap of faith.", SAY_SAY, 4000}, skipFunc = Skipanim, skipArgs = pastMoleHeadAnim}) |
158 table.insert(pastMoleHeadAnim, {func = AnimSay, args = {elderh, loc("I see you have already taken the leap of faith."), SAY_SAY, 4000}, skipFunc = Skipanim, skipArgs = pastMoleHeadAnim}) |
158 table.insert(pastMoleHeadAnim, {func = AnimSay, args = {elderh, "Get that crate!", SAY_SAY, 4000}}) |
159 table.insert(pastMoleHeadAnim, {func = AnimSay, args = {elderh, loc("Get that crate!"), SAY_SAY, 4000}}) |
159 table.insert(pastMoleHeadAnim, {func = AnimSwitchHog, args = {youngh}}) |
160 table.insert(pastMoleHeadAnim, {func = AnimSwitchHog, args = {youngh}}) |
160 |
161 |
161 AddSkipFunction(tookRope2Anim, Skipanim, {tookRope2Anim}) |
162 AddSkipFunction(tookRope2Anim, Skipanim, {tookRope2Anim}) |
162 table.insert(tookRope2Anim, {func = AnimSay, args = {elderh, "Impressive...you are still dry as the corpse of a hawk after a week in the desert...", SAY_SAY, 5000}, skipFunc = Skipanim, skipArgs = tookRope2Anim}) |
163 table.insert(tookRope2Anim, {func = AnimSay, args = {elderh, loc("Impressive...you are still dry as the corpse of a hawk after a week in the desert..."), SAY_SAY, 5000}, skipFunc = Skipanim, skipArgs = tookRope2Anim}) |
163 table.insert(tookRope2Anim, {func = AnimSay, args = {elderh, "You probably know what to do next...", SAY_SAY, 4000}}) |
164 table.insert(tookRope2Anim, {func = AnimSay, args = {elderh, loc("You probably know what to do next..."), SAY_SAY, 4000}}) |
164 table.insert(tookRope2Anim, {func = AnimShowMission, args = {youngh, "First Blood", "The Rising", "Do the deed", 1, 4000}}) |
165 table.insert(tookRope2Anim, {func = AnimShowMission, args = {youngh, loc("First Blood"), loc("The Rising"), loc("Do the deed"), 1, 4000}}) |
165 table.insert(tookRope2Anim, {func = AnimSwitchHog, args = {youngh}}) |
166 table.insert(tookRope2Anim, {func = AnimSwitchHog, args = {youngh}}) |
166 |
167 |
167 AddSkipFunction(tookPunchAnim, Skipanim, {tookPunchAnim}) |
168 AddSkipFunction(tookPunchAnim, Skipanim, {tookPunchAnim}) |
168 table.insert(tookPunchAnim, {func = AnimTurn, args = {elderh, "Left"}, skipFunc = Skipanim, skipArgs = tookPunchAnim}) |
169 table.insert(tookPunchAnim, {func = AnimTurn, args = {elderh, "Left"}, skipFunc = Skipanim, skipArgs = tookPunchAnim}) |
169 table.insert(tookPunchAnim, {func = AnimSay, args = {elderh, "It is time to practice your fighting skills.", SAY_SAY, 4000}}) |
170 table.insert(tookPunchAnim, {func = AnimSay, args = {elderh, loc("It is time to practice your fighting skills."), SAY_SAY, 4000}}) |
170 table.insert(tookPunchAnim, {func = AnimSay, args = {elderh, "Imagine those targets are the wolves that killed your parents! Take your anger out on them!", SAY_SAY, 5000}}) |
171 table.insert(tookPunchAnim, {func = AnimSay, args = {elderh, loc("Imagine those targets are the wolves that killed your parents! Take your anger out on them!"), SAY_SAY, 5000}}) |
171 table.insert(tookPunchAnim, {func = AnimShowMission, args = {youngh, "First Blood", "The Slaughter", "Destroy the targets!|Hint: Select the Shoryuken and hit [Space]|P.S. You can use it mid-air.", 1, 5000}}) |
172 table.insert(tookPunchAnim, {func = AnimShowMission, args = {youngh, loc("First Blood"), loc("The Slaughter"), loc("Destroy the targets!|Hint: Select the Shoryuken and hit [Space]|P.S. You can use it mid-air."), 1, 5000}}) |
172 table.insert(tookPunchAnim, {func = AnimSwitchHog, args = {youngh}}) |
173 table.insert(tookPunchAnim, {func = AnimSwitchHog, args = {youngh}}) |
173 |
174 |
174 AddSkipFunction(challengeAnim, Skipanim, {challengeAnim}) |
175 AddSkipFunction(challengeAnim, Skipanim, {challengeAnim}) |
175 table.insert(challengeAnim, {func = AnimSay, args = {elderh, "I hope you are prepared for a small challenge, young one.", SAY_SAY, 4000}, skipFunc = Skipanim, skipArgs = challengeAnim}) |
176 table.insert(challengeAnim, {func = AnimSay, args = {elderh, loc("I hope you are prepared for a small challenge, young one."), SAY_SAY, 4000}, skipFunc = Skipanim, skipArgs = challengeAnim}) |
176 table.insert(challengeAnim, {func = AnimSay, args = {elderh, "Your movement skills will be evaluated now.", SAY_SAY, 4000}}) |
177 table.insert(challengeAnim, {func = AnimSay, args = {elderh, loc("Your movement skills will be evaluated now."), SAY_SAY, 4000}}) |
177 table.insert(challengeAnim, {func = AnimSay, args = {elderh, "Collect all the crates, but remember, our time in this life is limited!", SAY_SAY, 4000}}) |
178 table.insert(challengeAnim, {func = AnimSay, args = {elderh, loc("Collect all the crates, but remember, our time in this life is limited!"), SAY_SAY, 4000}}) |
178 table.insert(challengeAnim, {func = AnimSay, args = {elderh, "How difficult would you like it to be?"}}) |
179 table.insert(challengeAnim, {func = AnimSay, args = {elderh, loc("How difficult would you like it to be?")}}) |
179 table.insert(challengeAnim, {func = AnimSwitchHog, args = {youngh}}) |
180 table.insert(challengeAnim, {func = AnimSwitchHog, args = {youngh}}) |
180 table.insert(challengeAnim, {func = AnimWait, args = {youngh, 500}}) |
181 table.insert(challengeAnim, {func = AnimWait, args = {youngh, 500}}) |
181 |
182 |
182 AddSkipFunction(challengeFailedAnim, Skipanim, {challengeFailedAnim}) |
183 AddSkipFunction(challengeFailedAnim, Skipanim, {challengeFailedAnim}) |
183 table.insert(challengeFailedAnim, {func = AnimSay, args = {elderh, "Hmmm...perhaps a little more time will help.", SAY_SAY, 4000}, skipFunc = Skipanim, skipArgs = challengeFailedAnim}) |
184 table.insert(challengeFailedAnim, {func = AnimSay, args = {elderh, loc("Hmmm...perhaps a little more time will help."), SAY_SAY, 4000}, skipFunc = Skipanim, skipArgs = challengeFailedAnim}) |
184 table.insert(challengeFailedAnim, {func = AnimShowMission, args = {youngh, "First Blood", "The Crate Frenzy", "Collect the crates within the time limit!|If you fail, you'll have to try again.", 1, 5000}}) |
185 table.insert(challengeFailedAnim, {func = AnimShowMission, args = {youngh, loc("First Blood"), loc("The Crate Frenzy"), loc("Collect the crates within the time limit!|If you fail, you'll have to try again."), 1, 5000}}) |
185 table.insert(challengeFailedAnim, {func = AnimSwitchHog, args = {youngh}}) |
186 table.insert(challengeFailedAnim, {func = AnimSwitchHog, args = {youngh}}) |
186 |
187 |
187 AddSkipFunction(challengeCompletedAnim, Skipanim, {challengeCompletedAnim}) |
188 AddSkipFunction(challengeCompletedAnim, Skipanim, {challengeCompletedAnim}) |
188 table.insert(challengeCompletedAnim, {func = AnimSay, args = {elderh, "The spirits of the ancerstors are surely pleased, Leaks A Lot.", SAY_SAY, 4000}, skipFunc = Skipanim, skipArgs = challengeCompletedAnim}) |
189 table.insert(challengeCompletedAnim, {func = AnimSay, args = {elderh, loc("The spirits of the ancerstors are surely pleased, Leaks A Lot."), SAY_SAY, 4000}, skipFunc = Skipanim, skipArgs = challengeCompletedAnim}) |
189 table.insert(challengeCompletedAnim, {func = AnimSay, args = {elderh, "You have proven yourself worthy to see our most ancient secret!", SAY_SAY, 4000}}) |
190 table.insert(challengeCompletedAnim, {func = AnimSay, args = {elderh, loc("You have proven yourself worthy to see our most ancient secret!"), SAY_SAY, 4000}}) |
190 table.insert(challengeCompletedAnim, {func = AnimSay, args = {elderh, "The weapon in that last crate was bestowed upon us by the ancients!", SAY_SAY, 4000}}) |
191 table.insert(challengeCompletedAnim, {func = AnimSay, args = {elderh, loc("The weapon in that last crate was bestowed upon us by the ancients!"), SAY_SAY, 4000}}) |
191 table.insert(challengeCompletedAnim, {func = AnimSay, args = {elderh, "Use it with precaution!", SAY_SAY, 4000}}) |
192 table.insert(challengeCompletedAnim, {func = AnimSay, args = {elderh, loc("Use it with precaution!"), SAY_SAY, 4000}}) |
192 table.insert(challengeCompletedAnim, {func = AnimShowMission, args = {youngh, "First Blood", "The Ultimate Weapon", "Destroy the targets!|Hint: [Up], [Down] to aim, [Space] to shoot", 1, 5000}}) |
193 table.insert(challengeCompletedAnim, {func = AnimShowMission, args = {youngh, loc("First Blood"), loc("The Ultimate Weapon"), loc("Destroy the targets!|Hint: [Up], [Down] to aim, [Space] to shoot"), 1, 5000}}) |
193 table.insert(challengeCompletedAnim, {func = AnimSwitchHog, args = {youngh}}) |
194 table.insert(challengeCompletedAnim, {func = AnimSwitchHog, args = {youngh}}) |
194 |
195 |
195 AddSkipFunction(beforeKillAnim, Skipanim, {beforeKillAnim}) |
196 AddSkipFunction(beforeKillAnim, Skipanim, {beforeKillAnim}) |
196 table.insert(beforeKillAnim, {func = AnimSay, args = {elderh, "What do my faulty eyes observe? A spy!", SAY_SHOUT, 4000}, skipFunc = Skipanim, skipArgs = beforeKillAnim}) |
197 table.insert(beforeKillAnim, {func = AnimSay, args = {elderh, loc("What do my faulty eyes observe? A spy!"), SAY_SHOUT, 4000}, skipFunc = Skipanim, skipArgs = beforeKillAnim}) |
197 table.insert(beforeKillAnim, {func = AnimFollowGear, args = {cannibal}}) |
198 table.insert(beforeKillAnim, {func = AnimFollowGear, args = {cannibal}}) |
198 table.insert(beforeKillAnim, {func = AnimWait, args = {cannibal, 1000}}) |
199 table.insert(beforeKillAnim, {func = AnimWait, args = {cannibal, 1000}}) |
199 table.insert(beforeKillAnim, {func = AnimSay, args = {elderh, "Destroy him, Leaks A Lot! He is responsible for the deaths of many of us!", SAY_SHOUT, 4000}}) |
200 table.insert(beforeKillAnim, {func = AnimSay, args = {elderh, loc("Destroy him, Leaks A Lot! He is responsible for the deaths of many of us!"), SAY_SHOUT, 4000}}) |
200 table.insert(beforeKillAnim, {func = AnimSay, args = {cannibal, "Oh, my!", SAY_THINK, 4000}}) |
201 table.insert(beforeKillAnim, {func = AnimSay, args = {cannibal, loc("Oh, my!"), SAY_THINK, 4000}}) |
201 table.insert(beforeKillAnim, {func = AnimShowMission, args = {youngh, "First Blood", "The First Blood", "Kill the cannibal!", 1, 5000}}) |
202 table.insert(beforeKillAnim, {func = AnimShowMission, args = {youngh, loc("First Blood"), loc("The First Blood"), loc("Kill the cannibal!"), 1, 5000}}) |
202 table.insert(beforeKillAnim, {func = AnimSwitchHog, args = {youngh}}) |
203 table.insert(beforeKillAnim, {func = AnimSwitchHog, args = {youngh}}) |
203 |
204 |
204 AddSkipFunction(closeCannim, Skipanim, {closeCannim}) |
205 AddSkipFunction(closeCannim, Skipanim, {closeCannim}) |
205 table.insert(closeCannim, {func = AnimSay, args = {elderh, "I see you would like his punishment to be more...personal...", SAY_SAY, 4000}, skipFunc = Skipanim, skipArgs = closeCannim}) |
206 table.insert(closeCannim, {func = AnimSay, args = {elderh, loc("I see you would like his punishment to be more...personal..."), SAY_SAY, 4000}, skipFunc = Skipanim, skipArgs = closeCannim}) |
206 table.insert(closeCannim, {func = AnimSay, args = {cannibal, "I'm certain that this is a misunderstanding, fellow hedgehogs!", SAY_SAY, 4000}}) |
207 table.insert(closeCannim, {func = AnimSay, args = {cannibal, loc("I'm certain that this is a misunderstanding, fellow hedgehogs!"), SAY_SAY, 4000}}) |
207 table.insert(closeCannim, {func = AnimSay, args = {cannibal, "If only I were given a chance to explain my being here...", SAY_SAY, 4000}}) |
208 table.insert(closeCannim, {func = AnimSay, args = {cannibal, loc("If only I were given a chance to explain my being here..."), SAY_SAY, 4000}}) |
208 table.insert(closeCannim, {func = AnimSay, args = {elderh, "Do not let his words fool you, young one! He will stab you in the back as soon as you turn away!", SAY_SAY, 6000}}) |
209 table.insert(closeCannim, {func = AnimSay, args = {elderh, loc("Do not let his words fool you, young one! He will stab you in the back as soon as you turn away!"), SAY_SAY, 6000}}) |
209 table.insert(closeCannim, {func = AnimSay, args = {elderh, "Here...pick your weapon!", SAY_SAY, 5000}}) |
210 table.insert(closeCannim, {func = AnimSay, args = {elderh, loc("Here...pick your weapon!"), SAY_SAY, 5000}}) |
210 table.insert(closeCannim, {func = AnimShowMission, args = {youngh, "First Blood", "The First Blood", "KILL IT!", 1, 5000}}) |
211 table.insert(closeCannim, {func = AnimShowMission, args = {youngh, loc("First Blood"), loc("The First Blood"), loc("KILL IT!"), 1, 5000}}) |
211 table.insert(closeCannim, {func = AnimSwitchHog, args = {youngh}}) |
212 table.insert(closeCannim, {func = AnimSwitchHog, args = {youngh}}) |
212 |
213 |
213 table.insert(cannKilledAnim, {func = AnimSay, args = {elderh, "Yes, yeees! You are now ready to enter the real world!", SAY_SHOUT, 6000}}) |
214 table.insert(cannKilledAnim, {func = AnimSay, args = {elderh, loc("Yes, yeees! You are now ready to enter the real world!"), SAY_SHOUT, 6000}}) |
214 |
215 |
215 table.insert(cannKilledEarlyAnim, {func = AnimSay, args = {elderh, "What?! A cannibal? Here? There is no time to waste! Come, you are prepared.", SAY_SHOUT, 4000}}) |
216 table.insert(cannKilledEarlyAnim, {func = AnimSay, args = {elderh, loc("What?! A cannibal? Here? There is no time to waste! Come, you are prepared."), SAY_SHOUT, 4000}}) |
216 end |
217 end |
217 -----------------------------Events------------------------------------ |
218 -----------------------------Events------------------------------------ |
218 |
219 |
219 function CheckDamage() |
220 function CheckDamage() |
220 return youngdamaged and StoppedGear(youngh) |
221 return youngdamaged and StoppedGear(youngh) |