share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/shadow.lua
changeset 15055 981f16edea02
parent 15054 1bce780e55ac
child 15089 6f51c75994a4
equal deleted inserted replaced
15054:1bce780e55ac 15055:981f16edea02
    21 - Brainiac dead
    21 - Brainiac dead
    22 - Cut scene: weaklingsAnim
    22 - Cut scene: weaklingsAnim
    23 - The remaining Weaklings spawn
    23 - The remaining Weaklings spawn
    24 - TBS
    24 - TBS
    25 - All Weaklings dead
    25 - All Weaklings dead
    26 - Cut scene: stronglingsAnim: Stronglings spawn, hero walks to forest, meets cyborg, cyborg makes offer
    26 - Cut scene: stronglingsAnim: Stronglings spawn, Dense Cloud walks to forest, meets cyborg, cyborg makes offer
    27 - The cyborg offer is an IMPORTANT decision, it completely changes the next mission, and the rest of the story
    27 - The cyborg offer is an IMPORTANT decision, it completely changes the next mission, and the rest of the story
    28 | Accept: Player walks to cyborg
    28 | Accept: Player walks to cyborg
    29     - Cut scene: acceptAnim
    29     - Cut scene: acceptAnim
    30     - Hero needs to walk all the way back (infinite turn time)
    30     - Dense Cloud needs to walk all the way back (infinite turn time)
    31     - Hero reached tree
    31     | Dense Cloud reached tree
    32     - Turn time starts
    32         - Turn time starts
    33     - TBS
    33         - TBS
    34     - Stronglings defeated
    34         - Stronglings defeated
    35     | Stronglings defeated with both hogs survived
    35         | Stronglings defeated with both hogs survived
    36         - Cut scene: acceptedSurvivedFinalAnim
    36             - Cut scene: acceptedSurvivedFinalAnim
    37     | Stronglings deafeated with Dense Cloud dead
    37         | Stronglings defeated with Dense Cloud dead
    38         - Cut scene: acceptedDiedFinalAnim
    38             - Cut scene: acceptedDiedFinalAnim
    39     > Victory
    39         > Victory
       
    40     | Dense Cloud dies before reaching the tree
       
    41         > Game over
    40 | Reject: Player walks away
    42 | Reject: Player walks away
    41     - Cut scene: refusedAnim
    43     - Cut scene: refusedAnim
    42     - Leaks a Lot teleports back to tree at the start (automatically)
    44     - Leaks a Lot teleports back to tree at the start (automatically)
    43     - Spiky Cheese and Ramon appear together with crates
    45     - Spiky Cheese and Ramon appear together with crates
    44     - Spiky Cheese gains control
    46     - Spiky Cheese gains control
    46     - Stronglings defeated
    48     - Stronglings defeated
    47     - Cut scene: refusedFinalAnim
    49     - Cut scene: refusedFinalAnim
    48     > Victory
    50     > Victory
    49 | Attack: Player attacks cyborg
    51 | Attack: Player attacks cyborg
    50     - Cut scene: attackAnim
    52     - Cut scene: attackAnim
    51     - Cyborg kills hero
    53     - Cyborg kills Dense Cloud
    52     - Other native's turn to defeat Stronglings
    54     - Other native's turn to defeat Stronglings
    53     - TBS
    55     - TBS
    54     - Stronglings defeated
    56     - Stronglings defeated
    55     - Cut scene: attackedFinalAnim
    57     - Cut scene: attackedFinalAnim
    56     > Victory
    58     > Victory
   299   SpawnSupplyCrate(1300, 810, amParachute)
   301   SpawnSupplyCrate(1300, 810, amParachute)
   300   ShowMission(loc("The Shadow Falls"), loc("The walk of Fame"), loc("Return to Leaks A Lot!"), 1, 6000)
   302   ShowMission(loc("The Shadow Falls"), loc("The walk of Fame"), loc("Return to Leaks A Lot!"), 1, 6000)
   301   AddEvent(CheckReadyForStronglings, {}, DoReadyForStronglings, {}, 0)
   303   AddEvent(CheckReadyForStronglings, {}, DoReadyForStronglings, {}, 0)
   302   AddEvent(CheckNeedGirder, {}, DoNeedGirder, {}, 0)
   304   AddEvent(CheckNeedGirder, {}, DoNeedGirder, {}, 0)
   303   AddEvent(CheckNeedWeapons, {}, DoNeedWeapons, {}, 0)
   305   AddEvent(CheckNeedWeapons, {}, DoNeedWeapons, {}, 0)
   304   RemoveEventFunc(CheckDenseDead)
       
   305   SwitchHog(dense)
   306   SwitchHog(dense)
   306   AnimWait(dense, 1)
   307   AnimWait(dense, 1)
   307   AddFunction({func = HideHog, args = {cyborg}})
   308   AddFunction({func = HideHog, args = {cyborg}})
   308 end
   309 end
   309 
   310 
   923   AddAmmo(leaks, amSkip, 100)
   924   AddAmmo(leaks, amSkip, 100)
   924   AddAmmo(leaks, amSwitch, 100)
   925   AddAmmo(leaks, amSwitch, 100)
   925   stage = duoStage
   926   stage = duoStage
   926   RemoveEventFunc(CheckNeedGirder)
   927   RemoveEventFunc(CheckNeedGirder)
   927   RemoveEventFunc(CheckNeedWeapons)
   928   RemoveEventFunc(CheckNeedWeapons)
       
   929   RemoveEventFunc(CheckDenseDead)
   928   AddEvent(CheckStronglingsDead, {}, DoStronglingsDead, {}, 0)
   930   AddEvent(CheckStronglingsDead, {}, DoStronglingsDead, {}, 0)
   929   AddAmmo(cannibals[6], amGrenade, 2)
   931   AddAmmo(cannibals[6], amGrenade, 2)
   930   AddAmmo(cannibals[6], amShotgun, 2)
   932   AddAmmo(cannibals[6], amShotgun, 2)
   931   AddAmmo(cannibals[7], amGrenade, 2)
   933   AddAmmo(cannibals[7], amGrenade, 2)
   932   AddAmmo(cannibals[7], amShotgun, 2)
   934   AddAmmo(cannibals[7], amShotgun, 2)