share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/dragon.lua
changeset 12901 bdf8e80a97b8
parent 12798 fdb3730aa0e2
child 12933 e65aa3c3d4e6
equal deleted inserted replaced
12900:a9e4e8fa852c 12901:bdf8e80a97b8
     3 
     3 
     4 = SUMMARY =
     4 = SUMMARY =
     5 Hero must collect an utility crate on the other side of the river.
     5 Hero must collect an utility crate on the other side of the river.
     6 To accomplish that, hero must first collect a series of crates with
     6 To accomplish that, hero must first collect a series of crates with
     7 the rope and wipe out the cyborgs.
     7 the rope and wipe out the cyborgs.
       
     8 The hero is one survivor of the previous missions.
     8 
     9 
     9 = GOALS =
    10 = GOALS =
    10 - Mission goal (leads to immediate victory): Collect utility crate at the right side of the river
    11 - Mission goal (leads to immediate victory): Collect utility crate at the right side of the river
    11 - First sub-goal: Collect (or destroy) a series of crates (all other utility crates)
    12 - First sub-goal: Collect (or destroy) a series of crates (all other utility crates)
    12 - Second sub-goal: Wipe out the cyborgs
    13 - Second sub-goal: Wipe out the cyborgs
    13 
    14 
    14 = FLOW CHART =
    15 = FLOW CHART =
       
    16 - Choose hog to be hero (read from m5DeployedNum)
    15 - Cut scene: Intro
    17 - Cut scene: Intro
    16 - TBS
    18 - TBS
    17 | Player accomplishes first sub-goal first:
    19 | Player accomplishes first sub-goal first:
    18     - Cut scene: Cyborg reveals second goal
    20     - Cut scene: Cyborg reveals second goal
    19     - A ton of weapon crates and some rope crates spawn on the long platform
    21     - A ton of weapon crates and some rope crates spawn on the long platform
   398   SetGearMessage(native, 0)
   400   SetGearMessage(native, 0)
   399   SpawnUtilityCrate(1184, 399, amPortalGun, 100)
   401   SpawnUtilityCrate(1184, 399, amPortalGun, 100)
   400   SpawnUtilityCrate(2259, 755, amTeleport, 2)
   402   SpawnUtilityCrate(2259, 755, amTeleport, 2)
   401   SpawnHealthCrate(secondPos[1][1] + 50, secondPos[1][2] - 20)
   403   SpawnHealthCrate(secondPos[1][1] + 50, secondPos[1][2] - 20)
   402   ShowMission(loc("Dragon's Lair"), loc("The what?!"), loc("Use the portal gun to get to the next crate, then use the new gun to get to the final destination!|")..
   404   ShowMission(loc("Dragon's Lair"), loc("The what?!"), loc("Use the portal gun to get to the next crate, then use the new gun to get to the final destination!|")..
   403                                              loc("Portal hint: one goes to the destination, and one is the entrance.|")..
   405                                              loc("Portal hint: One goes to the destination, the other one is the entrance.|")..
   404                                              loc("Teleport hint: just use the mouse to select the destination!").."|"..
   406                                              loc("Teleport hint: Just use the mouse to select the destination!").."|"..
   405                                              loc("Mines time: 5 seconds"), 1, 8000)
   407                                              loc("Mines time: 5 seconds"), 1, 8000)
   406 end
   408 end
   407 -----------------------------Events------------------------------------
   409 -----------------------------Events------------------------------------
   408 
   410 
   409 function CheckCyborgsDead()
   411 function CheckCyborgsDead()