share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/backstab.lua
changeset 12901 bdf8e80a97b8
parent 12900 a9e4e8fa852c
child 12933 e65aa3c3d4e6
equal deleted inserted replaced
12900:a9e4e8fa852c 12901:bdf8e80a97b8
     2 A Classic Fairytale: Backstab
     2 A Classic Fairytale: Backstab
     3 
     3 
     4 = SUMMARY =
     4 = SUMMARY =
     5 It is revealed that there's a traitor among the natives.
     5 It is revealed that there's a traitor among the natives.
     6 Player decides whether to kill him or not.
     6 Player decides whether to kill him or not.
     7 After the natives must defeat 3 waves of cannibals.
     7 After this, the natives must defeat 3 waves of cannibals.
     8 
     8 
     9 = FLOW CHART =
     9 = FLOW CHART =
    10 
    10 
    11 == Linear events ==
    11 == Linear events ==
    12 
    12 
   632   SetGearMessage(CurrentHedgehog, 0)
   632   SetGearMessage(CurrentHedgehog, 0)
   633   AddEvent(CheckTurnsOver, {}, DoTurnsOver, {3}, 0)
   633   AddEvent(CheckTurnsOver, {}, DoTurnsOver, {3}, 0)
   634   AddEvent(CheckWaveDead, {3}, DoWaveDead, {3}, 0)
   634   AddEvent(CheckWaveDead, {3}, DoWaveDead, {3}, 0)
   635   AddEvent(CheckDeployedDead, {}, DoDeployedDead, {}, 0)
   635   AddEvent(CheckDeployedDead, {}, DoDeployedDead, {}, 0)
   636   EndTurn(true)
   636   EndTurn(true)
   637   ShowMission(loc("Backstab"), loc("Drills"), loc("You have 7 turns until the next wave arrives.|Make sure the arriving cannibals are greeted appropriately!|If the hog dies, the cause is lost.|Hint: you might want to use some mines..."), 1, 12000)
   637   ShowMission(loc("Backstab"), loc("Drills"), loc("You have 7 turns until the next wave arrives.|Make sure the arriving cannibals are greeted appropriately!|If the hog dies, the cause is lost.|Hint: You might want to use some mines ..."), 1, 12000)
   638 end
   638 end
   639 
   639 
   640 function DoTurnsOver()
   640 function DoTurnsOver()
   641   stage = wave3Stage
   641   stage = wave3Stage
   642   RestoreWave(3)
   642   RestoreWave(3)