share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/family.lua
changeset 12263 2c8e7e73ef58
parent 12049 030464f34d47
child 12364 5857936921ec
equal deleted inserted replaced
12262:2c11b8f5fa4d 12263:2c8e7e73ef58
   144   table.insert(startAnim, {func = AnimCustomFunction, args = {natives[1], RestoreHedge, {cyborg}}})
   144   table.insert(startAnim, {func = AnimCustomFunction, args = {natives[1], RestoreHedge, {cyborg}}})
   145   table.insert(startAnim, {func = AnimOutOfNowhere, args = {cyborg, unpack(cyborgPos)}})
   145   table.insert(startAnim, {func = AnimOutOfNowhere, args = {cyborg, unpack(cyborgPos)}})
   146   table.insert(startAnim, {func = AnimTurn, args = {cyborg, "Left"}})
   146   table.insert(startAnim, {func = AnimTurn, args = {cyborg, "Left"}})
   147   table.insert(startAnim, {func = AnimTurn, args = {natives[2], "Left"}})
   147   table.insert(startAnim, {func = AnimTurn, args = {natives[2], "Left"}})
   148   table.insert(startAnim, {func = AnimTurn, args = {natives[3], "Left"}})
   148   table.insert(startAnim, {func = AnimTurn, args = {natives[3], "Left"}})
   149   table.insert(startAnim, {func = AnimSay, args = {cyborg, loc("Hello again, ") .. nativeUnNames[m5DeployedNum] .. "!", SAY_SAY, 2500}})
   149   table.insert(startAnim, {func = AnimSay, args = {cyborg, string.format(loc("Hello again, %s!"), nativeUnNames[m5DeployedNum]), SAY_SAY, 2500}})
   150   table.insert(startAnim, {func = AnimSay, args = {cyborg, loc("I just found out that they have captured your princess!"), SAY_SAY, 7000}})
   150   table.insert(startAnim, {func = AnimSay, args = {cyborg, loc("I just found out that they have captured your princess!"), SAY_SAY, 7000}})
   151   if m5DeployedNum == girlNum then
   151   if m5DeployedNum == girlNum then
   152     table.insert(startAnim, {func = AnimSay, args = {natives[1], loc("Of course I have to save her. What did I expect?!"), SAY_SAY, 7000}})
   152     table.insert(startAnim, {func = AnimSay, args = {natives[1], loc("Of course I have to save her. What did I expect?!"), SAY_SAY, 7000}})
   153   elseif m5DeployedNum == denseNum then
   153   elseif m5DeployedNum == denseNum then
   154     table.insert(startAnim, {func = AnimCustomFunction, args = {natives[1], EmitDenseClouds, {"Right"}}})
   154     table.insert(startAnim, {func = AnimCustomFunction, args = {natives[1], EmitDenseClouds, {"Right"}}})
   336   return gearDead[gear]
   336   return gearDead[gear]
   337 end
   337 end
   338 
   338 
   339 function EndMission()
   339 function EndMission()
   340   RemoveEventFunc(CheckPrincessFreed)
   340   RemoveEventFunc(CheckPrincessFreed)
   341   AddCaption("So the princess was never heard of again...")
   341   AddCaption(loc("So the princess was never heard of again ..."))
   342   DismissTeam(loc("Natives"))
   342   DismissTeam(loc("Natives"))
   343   DismissTeam(loc("011101001"))
   343   DismissTeam(loc("011101001"))
   344   TurnTimeLeft = 0
   344   TurnTimeLeft = 0
   345 end
   345 end
   346 
   346