share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/enemy.lua
changeset 15072 4c40266fae97
parent 15029 09c63d4bcf53
child 15167 9d4a6ab60dec
equal deleted inserted replaced
15071:dc236bcd7309 15072:4c40266fae97
     7 = GOAL =
     7 = GOAL =
     8 Wipe out the Hedge-cogs and Leader teams
     8 Wipe out the Hedge-cogs and Leader teams
     9 
     9 
    10 = FLOW CHART =
    10 = FLOW CHART =
    11 - Cut scene: startAnim
    11 - Cut scene: startAnim
    12 - Player starts with 3-4 natives and 4 cannibals
    12 - Player starts with 3-5 natives and 4 cannibals
    13 - Player plays with 4 natives if m5DeployedNum ~= leaksNum and m8DeployedLeader == 0
    13 - Mission adds 1 native if m5DeployedNum ~= leaksNum and m8DeployedLeader == 0
       
    14 - Mission adds 1 native (princess) if m8PrincessLeader == 0
    14 - Enemy starts with 5 cyborgs
    15 - Enemy starts with 5 cyborgs
    15 - TBS
    16 - TBS
    16 - Goal completed
    17 - Goal completed
    17 - Cut scene: finalAnim
    18 - Cut scene: finalAnim
    18 > Victory
    19 > Victory
   210   table.insert(startAnim, {func = AnimSay, args = {players[1], loc("What is this place?"), SAY_SHOUT, 2500}})
   211   table.insert(startAnim, {func = AnimSay, args = {players[1], loc("What is this place?"), SAY_SHOUT, 2500}})
   211   if m5LeaksDead == 1 then
   212   if m5LeaksDead == 1 then
   212     table.insert(startAnim, {func = AnimSay, args = {players[1], loc("And how am I alive?!"), SAY_SAY, 3000}})
   213     table.insert(startAnim, {func = AnimSay, args = {players[1], loc("And how am I alive?!"), SAY_SAY, 3000}})
   213   end
   214   end
   214   local playerTalker
   215   local playerTalker
   215   -- There are 3 or 4 natives in this mission. The last one takes part in the dialog
   216   -- Number of natives varies in this mission. One of them takes part in the dialog
   216   if nativesNum >= 4 then
   217   if nativesNum >= 4 then
   217      playerTalker = players[4]
   218      playerTalker = players[4]
   218   else
   219   else
   219      playerTalker = players[3]
   220      playerTalker = players[3]
   220   end
   221   end
   537 function AddHogs()
   538 function AddHogs()
   538   cyborgTeamName = AddTeam(loc("011101001"), -1, "ring", "UFO", "Robot_qau", "cm_binary")
   539   cyborgTeamName = AddTeam(loc("011101001"), -1, "ring", "UFO", "Robot_qau", "cm_binary")
   539   cyborg = AddHog(loc("Unit 334a$7%;.*"), 0, 200, "cyborg1")
   540   cyborg = AddHog(loc("Unit 334a$7%;.*"), 0, 200, "cyborg1")
   540 
   541 
   541   nativesTeamName = AddMissionTeam(-2)
   542   nativesTeamName = AddMissionTeam(-2)
   542   -- There are 3-4 natives in this mission
   543   -- There are 3-5 natives in this mission
   543   natives[1] = AddHog(nativeNames[leaksNum], 0, 100, nativeHats[leaksNum])
   544   natives[1] = AddHog(nativeNames[leaksNum], 0, 100, nativeHats[leaksNum])
   544   if m5DeployedNum ~= leaksNum and m8DeployedLeader == 0 then
   545   if m5DeployedNum ~= leaksNum and m8DeployedLeader == 0 then
   545     natives[2] = AddHog(nativeNames[m5DeployedNum], 0, 100, nativeHats[m5DeployedNum])
   546     natives[2] = AddHog(nativeNames[m5DeployedNum], 0, 100, nativeHats[m5DeployedNum])
   546   end
   547   end
   547   table.insert(natives, AddHog(nativeNames[ramonNum], 0, 100, nativeHats[ramonNum]))
   548   table.insert(natives, AddHog(nativeNames[ramonNum], 0, 100, nativeHats[ramonNum]))