share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/journey.lua
changeset 12794 bca911f8e804
parent 12554 194b00c4ba07
child 12797 981036f1bdef
equal deleted inserted replaced
12793:575c0de98505 12794:bca911f8e804
       
     1 --[[
       
     2 A Classic Fairytale: The Journey Back
       
     3 
       
     4 = SUMMARY =
       
     5 This is a very complex and heavily scripted mission with
       
     6 2 major gameplay variants and 2 sub-variants each.
       
     7 
       
     8 This mission is mostly about movement and overcoming obstacles,
       
     9 and not much about fighting.
       
    10 
       
    11 The player has either 1 or 2 hogs (depending on previous mission)
       
    12 and must reach the left coast. The cyborg will show up from time
       
    13 to time and constantly annoys the heroes with obstacles and additional
       
    14 challenges.
       
    15 
       
    16 The mission's gameplay is affected by whether Dense Cloud survived
       
    17 in the previous mission. The mission's dialogues are affected by
       
    18 the decision of the player in the previous mission.
       
    19 
       
    20 = GOALS =
       
    21 - Collect the crate at the left coast
       
    22 - (Need to accomplish various sub-goals before this is possible)
       
    23 - Then kill the cyborg
       
    24 
       
    25 = FLOW CHART =
       
    26 == Linear events ==
       
    27 
       
    28 Note: This mission's gameplay is significantly affected by the choices of the previous mission (The Shadow Falls).
       
    29 There are two major paths, and each of them has two variants.
       
    30 
       
    31 === PATH ONE (AL) ===
       
    32 Condition: Cyborg's offer in ACF2 accepted and Dense Cloud survived.
       
    33 
       
    34 - Mission starts with Dense Cloud and Leaks a Lot
       
    35 - Mines time: 5s
       
    36 - Cut scene: startAnimAL (initial instructions)
       
    37 - Hog moves past flower (via teamwork)
       
    38 - Animation: pastFlowerAnimAL
       
    39 - Player jumps up the tree
       
    40 - Cut scene: outPutAnimAL
       
    41 - Cyborg teleports one hog to the pit, while the other hog remains
       
    42 - TBS
       
    43 - Trapped hog walks out of pit
       
    44 - Cut scene: midAnimAL
       
    45 - Trapped hog is teleported below bridge (and trapped again)
       
    46 - A huge barricade at the bridge is erected, and mines spawn on bridge
       
    47 - Now any hog needs to collect the final crate
       
    48 - TBS
       
    49 - Final crate collected
       
    50 - Cut scene: endAnimAL
       
    51 - Cyborg and princess apear, player must kill cyborg
       
    52 | Cyborg killed
       
    53     - Cut scene: winAnim
       
    54     > Victory
       
    55 | Princess killed
       
    56     - Cut scene: endFailAnim
       
    57     > Game over
       
    58 
       
    59 === PATH TWO (AD) ===
       
    60 Condition: Cyborg's offer in ACF2 accepted, but Dense Cloud died afterwards.
       
    61 
       
    62 - Mission starts with Leaks a Lot only
       
    63 - Cut scene: startAnimAD (initial instructions)
       
    64 - Hog moves past flower (via blowtorch)
       
    65 - Animation: pastFlowerAnimAD
       
    66 - TBS
       
    67 - Hog proceeds all the way to the bridge
       
    68 - Cut scene: outPutAnimAD (the “Princess Game”)
       
    69 - Hog is teleported to the pit
       
    70 - TBS
       
    71 - Hog must reach goal crate within a given number of turns
       
    72 | Hog reaches goal crate within the turn limit
       
    73     - Cut scene: endAnimAD
       
    74     - Cyborg and princess spawn
       
    75     | Cyborg killed
       
    76         - Cut scene: winAnim
       
    77         > Victory
       
    78     | Princess killed
       
    79         - Cut scene: endFailAnim
       
    80         > Game over
       
    81 | Turn limit exceeded
       
    82     - Cut scene: failAnimAD (princess is caged and killed by cyborg)
       
    83     > Game over
       
    84 
       
    85 === PATH THREE (RL) ===
       
    86 Condition: Cyborg's offer in ACF2 rejected.
       
    87 
       
    88 This is almost identical to Path One, only the dialogues differ.
       
    89 All AL animations are replaced with RL animations.
       
    90 
       
    91 === PATH FOUR (attacked) ===
       
    92 Condition: Cyborg from ACF2 was attacked.
       
    93 
       
    94 This is almost identical to Path Two, only the dialogues differ.
       
    95 Uses startAnim and midAnim from SetupAnimAttacked.
       
    96 
       
    97 
       
    98 == Non-linear events ==
       
    99 - Any of the Natives dies
       
   100    > Game over
       
   101 
       
   102 ]]
       
   103 
     1 HedgewarsScriptLoad("/Scripts/Locale.lua")
   104 HedgewarsScriptLoad("/Scripts/Locale.lua")
     2 HedgewarsScriptLoad("/Scripts/Animate.lua")
   105 HedgewarsScriptLoad("/Scripts/Animate.lua")
     3 
   106 
     4 --///////////////////////////////CONSTANTS///////////////////////////
   107 --///////////////////////////////CONSTANTS///////////////////////////
     5 
   108