|
1 --[[ |
|
2 A Classic Fairytale: Backstab |
|
3 |
|
4 = SUMMARY = |
|
5 It is revealed that there's a traitor among the natives. |
|
6 Player decides whether to kill him or not. |
|
7 After the natives must defeat 3 waves of cannibals. |
|
8 |
|
9 = FLOW CHART = |
|
10 |
|
11 == Linear events == |
|
12 |
|
13 - Cut scene: startScene (traitor is revealed) |
|
14 - Player is instructed to decide what to do with the traitor |
|
15 | Player kills traitor |
|
16 - Cut scene: afterChoiceAnim |
|
17 | Player spares traitor |
|
18 - Cut scene: afterChoiceAnim (different) |
|
19 | Player kills any other hog or own hog |
|
20 > Game over |
|
21 - First turn of cannibals |
|
22 - TBS |
|
23 - First wave of cannibals dead |
|
24 - Cut scene: wave2Anim |
|
25 - Spawn 2nd cannibal wave |
|
26 - TBS |
|
27 - 2nd wave dead |
|
28 - Cut scene: wave2DeadAnim |
|
29 - All natives but one are encaged |
|
30 - 7 turns till arrival of 3rd wave |
|
31 - Arrival points are marked with circles |
|
32 - One hero is deployed near the circles |
|
33 - Player now only controls the hero, switch hog is removed |
|
34 - TBS |
|
35 - 3rd wave appears |
|
36 - TBS |
|
37 - 3rd wave dead |
|
38 - Final cut scene |
|
39 > Victory |
|
40 |
|
41 === The traitor === |
|
42 The traitor is chosen based on the past player decisions in the campaign. |
|
43 |
|
44 == Non-linear events == |
|
45 |
|
46 | Any native hog dies after traitor decision: |
|
47 - Another hog (if alive) mourns the loss |
|
48 |
|
49 ]] |
|
50 |
1 HedgewarsScriptLoad("/Scripts/Locale.lua") |
51 HedgewarsScriptLoad("/Scripts/Locale.lua") |
2 HedgewarsScriptLoad("/Scripts/Animate.lua") |
52 HedgewarsScriptLoad("/Scripts/Animate.lua") |
3 |
53 |
4 -----------------------------Constants--------------------------------- |
54 -----------------------------Constants--------------------------------- |
5 choiceAccepted = 1 |
55 choiceAccepted = 1 |