share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/backstab.lua
changeset 14682 0bba06a05d52
parent 14660 3e15412536c8
child 14795 d0ad9fd923fd
equal deleted inserted replaced
14681:aa4f99b96c6d 14682:0bba06a05d52
   126 
   126 
   127 cyborgHidden = false
   127 cyborgHidden = false
   128 needToAct = 0
   128 needToAct = 0
   129 
   129 
   130 m2Choice = 0
   130 m2Choice = 0
   131 m2DenseDead = 0
       
   132 m4DenseDead = 0
   131 m4DenseDead = 0
   133 m4BuffaloDead = 0
   132 m4BuffaloDead = 0
   134 m4WaterDead = 0
   133 m4WaterDead = 0
   135 m4ChiefDead = 0
   134 m4ChiefDead = 0
   136 m4LeaksDead = 0
   135 m4LeaksDead = 0
   912   end
   911   end
   913 end
   912 end
   914 
   913 
   915 function GetVariables()
   914 function GetVariables()
   916   progress = tonumber(GetCampaignVar("Progress"))
   915   progress = tonumber(GetCampaignVar("Progress"))
   917   m2DenseDead = tonumber(GetCampaignVar("M2DenseDead"))
       
   918   m2Choice = tonumber(GetCampaignVar("M2Choice")) or choiceRefused
   916   m2Choice = tonumber(GetCampaignVar("M2Choice")) or choiceRefused
   919   m4DenseDead = tonumber(GetCampaignVar("M4DenseDead"))
   917   m4DenseDead = tonumber(GetCampaignVar("M4DenseDead")) or 0
   920   m4LeaksDead = tonumber(GetCampaignVar("M4LeaksDead"))
   918   m4LeaksDead = tonumber(GetCampaignVar("M4LeaksDead")) or 0
   921   m4ChiefDead = tonumber(GetCampaignVar("M4ChiefDead"))
   919   m4ChiefDead = tonumber(GetCampaignVar("M4ChiefDead")) or 0
   922   m4WaterDead = tonumber(GetCampaignVar("M4WaterDead"))
   920   m4WaterDead = tonumber(GetCampaignVar("M4WaterDead")) or 0
   923   m4BuffaloDead = tonumber(GetCampaignVar("M4BuffaloDead"))
   921   m4BuffaloDead = tonumber(GetCampaignVar("M4BuffaloDead")) or 0
   924 end
   922 end
   925 
   923 
   926 function HideCyborg()
   924 function HideCyborg()
   927   if cyborgHidden == false then
   925   if cyborgHidden == false then
   928     HideHog(cyborg)
   926     HideHog(cyborg)