share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/journey.lua
changeset 13468 4ea2c8fa699e
parent 13467 1515e643cd91
child 13469 2c7ae236b2d8
equal deleted inserted replaced
13467:1515e643cd91 13468:4ea2c8fa699e
   206 
   206 
   207 function SkipEndAnimAlone()
   207 function SkipEndAnimAlone()
   208   RestoreHedge(cyborg)
   208   RestoreHedge(cyborg)
   209   RestoreHedge(princess)
   209   RestoreHedge(princess)
   210   AnimSetGearPosition(cyborg, 437, 1700)
   210   AnimSetGearPosition(cyborg, 437, 1700)
   211   AnimSetGearPosition(princess, 519, 1722)
   211   AnimSetGearPosition(princess, 519, 1726)
   212 end
   212 end
   213 
   213 
   214 function SkipEndAnimDuo()
   214 function SkipEndAnimDuo()
   215   RestoreHedge(cyborg)
   215   RestoreHedge(cyborg)
   216   RestoreHedge(princess)
   216   RestoreHedge(princess)
   217   if princessHidden then
   217   if princessHidden then
   218     RestoreHog(princess)
   218     RestoreHog(princess)
   219     princessHidden = false
   219     princessHidden = false
   220   end
   220   end
   221   AnimSetGearPosition(cyborg, 437, 1700)
   221   AnimSetGearPosition(cyborg, 437, 1700)
   222   AnimSetGearPosition(princess, 519, 1722)
   222   AnimSetGearPosition(princess, 519, 1726)
   223   AnimSetGearPosition(leaks, 763, 1760)
   223   AnimSetGearPosition(leaks, 763, 1760)
   224   AnimSetGearPosition(dense, 835, 1519)
   224   AnimSetGearPosition(dense, 835, 1519)
   225   HogTurnLeft(leaks, true)
   225   HogTurnLeft(leaks, true)
   226   HogTurnLeft(dense, true)
   226   HogTurnLeft(dense, true)
   227 end
   227 end
   538   table.insert(failAnimAD, {func = AnimWait, args = {cyborg, 500}})
   538   table.insert(failAnimAD, {func = AnimWait, args = {cyborg, 500}})
   539   table.insert(failAnimAD, {func = AnimSay, args = {leaks, loc("No! What have I done?! What have YOU done?!"), SAY_SHOUT, 3000}})
   539   table.insert(failAnimAD, {func = AnimSay, args = {leaks, loc("No! What have I done?! What have YOU done?!"), SAY_SHOUT, 3000}})
   540   table.insert(failAnimAD, {func = AnimSwitchHog, args = {princess}})
   540   table.insert(failAnimAD, {func = AnimSwitchHog, args = {princess}})
   541   AddSkipFunction(failAnimAD, SkipFailAnimAlone, {})
   541   AddSkipFunction(failAnimAD, SkipFailAnimAlone, {})
   542 
   542 
   543   table.insert(endAnimAD, {func = AnimCustomFunction, swh = false, args = {leaks, RestoreCyborg, {437, 1700, 519, 1722}}})
   543   table.insert(endAnimAD, {func = AnimCustomFunction, swh = false, args = {leaks, RestoreCyborg, {437, 1700, 519, 1726}}})
   544   table.insert(endAnimAD, {func = AnimTurn, swh = false, args = {cyborg, "Right"}})
   544   table.insert(endAnimAD, {func = AnimTurn, swh = false, args = {cyborg, "Right"}})
   545   table.insert(endAnimAD, {func = AnimTurn, swh = false, args = {princess, "Right"}})
   545   table.insert(endAnimAD, {func = AnimTurn, swh = false, args = {princess, "Right"}})
   546   table.insert(endAnimAD, {func = AnimSay, args = {princess, loc("Help me, Leaks!"), SAY_SHOUT, 3000}})
   546   table.insert(endAnimAD, {func = AnimSay, args = {princess, loc("Help me, Leaks!"), SAY_SHOUT, 3000}})
   547   table.insert(endAnimAD, {func = AnimSay, args = {leaks, loc("But you said you'd let her go!"), SAY_SHOUT, 5000}})
   547   table.insert(endAnimAD, {func = AnimSay, args = {leaks, loc("But you said you'd let her go!"), SAY_SHOUT, 5000}})
   548   table.insert(endAnimAD, {func = AnimSay, args = {cyborg, loc("And you believed me? Oh, god, that's cute!"), SAY_SHOUT, 7000}})
   548   table.insert(endAnimAD, {func = AnimSay, args = {cyborg, loc("And you believed me? Oh, god, that's cute!"), SAY_SHOUT, 7000}})
   597   table.insert(outPitAnimAL, {func = AnimSwitchHog, args = {dense}})
   597   table.insert(outPitAnimAL, {func = AnimSwitchHog, args = {dense}})
   598   table.insert(outPitAnimAL, {func = AnimDisappear, swh = false, args = {cyborg, 3781, 1583}})
   598   table.insert(outPitAnimAL, {func = AnimDisappear, swh = false, args = {cyborg, 3781, 1583}})
   599   table.insert(outPitAnimAL, {func = AnimCustomFunction, swh = false, args = {cyborg, HideCyborgOnly, {}}})
   599   table.insert(outPitAnimAL, {func = AnimCustomFunction, swh = false, args = {cyborg, HideCyborgOnly, {}}})
   600   AddSkipFunction(outPitAnimAL, SkipOutPitAnim, {})
   600   AddSkipFunction(outPitAnimAL, SkipOutPitAnim, {})
   601 
   601 
   602   table.insert(endAnim, {func = AnimCustomFunction, swh = false, args = {leaks, RestoreCyborg, {437, 1700, 519, 1722}}})
   602   table.insert(endAnim, {func = AnimCustomFunction, swh = false, args = {leaks, RestoreCyborg, {437, 1700, 519, 1726}}})
   603   table.insert(endAnim, {func = AnimTeleportGear, args = {leaks, 763, 1760}})
   603   table.insert(endAnim, {func = AnimTeleportGear, args = {leaks, 763, 1760}})
   604   table.insert(endAnim, {func = AnimTeleportGear, args = {dense, 835, 1519}})
   604   table.insert(endAnim, {func = AnimTeleportGear, args = {dense, 835, 1519}})
   605   table.insert(endAnim, {func = AnimTurn, swh = false, args = {leaks, "Left"}})
   605   table.insert(endAnim, {func = AnimTurn, swh = false, args = {leaks, "Left"}})
   606   table.insert(endAnim, {func = AnimTurn, swh = false, args = {dense, "Left"}})
   606   table.insert(endAnim, {func = AnimTurn, swh = false, args = {dense, "Left"}})
   607   table.insert(endAnim, {func = AnimTurn, swh = false, args = {cyborg, "Right"}})
   607   table.insert(endAnim, {func = AnimTurn, swh = false, args = {cyborg, "Right"}})
   660   table.insert(outPitAnimRL, {func = AnimSwitchHog, args = {dense}})
   660   table.insert(outPitAnimRL, {func = AnimSwitchHog, args = {dense}})
   661   table.insert(outPitAnimRL, {func = AnimDisappear, swh = false, args = {cyborg, 3781, 1583}})
   661   table.insert(outPitAnimRL, {func = AnimDisappear, swh = false, args = {cyborg, 3781, 1583}})
   662   table.insert(outPitAnimRL, {func = AnimCustomFunction, swh = false, args = {cyborg, HideCyborgOnly, {}}})
   662   table.insert(outPitAnimRL, {func = AnimCustomFunction, swh = false, args = {cyborg, HideCyborgOnly, {}}})
   663   AddSkipFunction(outPitAnimRL, SkipOutPitAnim, {})
   663   AddSkipFunction(outPitAnimRL, SkipOutPitAnim, {})
   664 
   664 
   665   table.insert(endAnim, {func = AnimCustomFunction, args = {leaks, RestoreCyborg, {437, 1700, 519, 1722}}})
   665   table.insert(endAnim, {func = AnimCustomFunction, args = {leaks, RestoreCyborg, {437, 1700, 519, 1726}}})
   666   table.insert(endAnim, {func = AnimTeleportGear, args = {leaks, 763, 1760}})
   666   table.insert(endAnim, {func = AnimTeleportGear, args = {leaks, 763, 1760}})
   667   table.insert(endAnim, {func = AnimTeleportGear, args = {dense, 835, 1519}})
   667   table.insert(endAnim, {func = AnimTeleportGear, args = {dense, 835, 1519}})
   668   table.insert(endAnim, {func = AnimTurn, swh = false, args = {leaks, "Left"}})
   668   table.insert(endAnim, {func = AnimTurn, swh = false, args = {leaks, "Left"}})
   669   table.insert(endAnim, {func = AnimTurn, swh = false, args = {dense, "Left"}})
   669   table.insert(endAnim, {func = AnimTurn, swh = false, args = {dense, "Left"}})
   670   table.insert(endAnim, {func = AnimTurn, swh = false, args = {cyborg, "Right"}})
   670   table.insert(endAnim, {func = AnimTurn, swh = false, args = {cyborg, "Right"}})