1#textdomain wesnoth-sotbe
2
3[scenario]
4    id=17_The_Human_Attack
5    name= _ "The Human Attack"
6    map_data="{campaigns/Son_Of_The_Black_Eye/maps/17_The_Human_Attack.map}"
7
8    turns=25
9
10    victory_when_enemies_defeated="yes"
11
12    {SCENARIO_MUSIC "knalgan_theme.ogg"}
13    {EXTRA_SCENARIO_MUSIC "battle.ogg"}
14
15    {DEFAULT_SCHEDULE_MORNING}
16
17    next_scenario=18_Northern_Alliance
18
19    [event]
20        name=prestart
21        [objectives]
22            side=1
23            [objective]
24                condition=win
25                description=_ "Hold off the humans"
26                show_turn_counter=yes
27            [/objective]
28            {ALTERNATIVE_OBJECTIVE_BONUS ( _ "Defeat Earl Lanbec’h")}
29            [objective]
30                condition=lose
31                description=_ "Death of Kapou’e"
32            [/objective]
33            [objective]
34                description= _ "Death of Al’Brock"
35                condition=lose
36            [/objective]
37            [objective]
38                description= _ "Death of Flar’Tar"
39                condition=lose
40            [/objective]
41            [objective]
42                condition=lose
43                description= _ "Death of Grüü"
44            [/objective]
45
46            [gold_carryover]
47                carryover_percentage=40
48            [/gold_carryover]
49
50            {AI_CONTROLLER_NOTE}
51
52            {GREAT_HORDE_NOTE}
53        [/objectives]
54    [/event]
55
56    [side]
57        side=1
58        id="Kapou'e"
59        type=Orcish Leader
60        controller=human
61        team_name=Kapoue
62        user_team_name=_ "Kapou’e"
63        gold=350
64        {BLACK_FLAG}
65    [/side]
66
67    {STARTING_VILLAGES 1 10}
68
69    {AI_CONTROLLER () 1 2,3 ()}
70
71    [side]
72        {ALBROCK_SIDE}
73        {GOLD 200 150 125}
74    [/side]
75
76    {STARTING_VILLAGES 2 6}
77
78    [side]
79        {FLARTAR_SIDE}
80        {GOLD 200 150 125}
81    [/side]
82
83    {STARTING_VILLAGES 3 6}
84
85    [side]
86        type=Grand Marshal
87        id="Earl Lanbec'h"
88        name= _ "Earl Lanbec’h"
89        profile=portraits/lanbech.png
90        side=4
91        canrecruit=yes
92        recruit=Dragoon,Swordsman,Pikeman,Longbowman,Shock Trooper,Mage,Duelist,White Mage,Red Mage,Lancer,Knight,Spearman,Bowman,Cavalryman,Horseman
93        team_name=villains
94        user_team_name=_"Villains"
95        {GOLD 600 800 1000}
96        {INCOME 30 40 50}
97        [ai]
98            leader_value=50.0
99            villages_per_scout=10
100            passive_leader=yes
101            [goal]
102                name=protect_unit
103                [criteria]
104                    id="Earl Lanbec'h"
105                [/criteria]
106                protect_radius=8
107                value=20
108            [/goal]
109        [/ai]
110        [ai]
111            time_of_day=dawn,morning,afternoon
112            aggression=0.9
113            caution=0.2
114            village_value=0.2
115            grouping=offensive
116        [/ai]
117        [ai]
118            time_of_day=dusk,first_watch,second_watch
119            aggression=0.2
120            caution=0.5
121            village_value=0.8
122            grouping=defensive
123        [/ai]
124        {FLAG_VARIANT loyalist}
125    [/side]
126
127    {STARTING_VILLAGES 4 10}
128
129    [story]
130        [part]
131            story= _ "As Kapou’e expected, by the time his forces had been defeated Shan Taum was nowhere to be found. Gritting his teeth and vowing that he would yet make a mug out of the traitor’s skull, Kapou’e gathered his men and headed for Dorest."
132            {SOTBE_BIGMAP}
133            {JOURNEY_16_OLD}
134        [/part]
135
136        [part]
137            story= _ "Once there he found his generals, Al’Brock and Flar’Tar, had already arrived along with hundreds of bloodthirsty orcs. The warriors of the tribes that Kapou’e had cowed into submission were also present. In addition, the remaining shamans of the Great Council were also present to help in whatever way they could to preserve the unity of the Horde."
138            {SOTBE_BIGMAP}
139            {JOURNEY_16_OLD}
140        [/part]
141
142        [part]
143            story= _ "Their presence proved to be unnecessary. It came as a shock to Kapou’e to discover, after a few days, that his people held him in awe. News of Kapou’e’s exploits had been widely circulated — from his rescue of the shamans at Barag Gór, to his forced march through the northern blizzards. Younger grunts especially worshiped him with such fervor that he found it almost frightening."
144            {SOTBE_BIGMAP}
145            {JOURNEY_16_OLD}
146        [/part]
147
148        [part]
149            story= _ "Days passed, the snows melted and Kapou’e readied his defenses. A few weeks after Kapou’e’s arrival, riders caught sight of Earl Lanbec’h’s army."
150            {SOTBE_BIGMAP}
151            {JOURNEY_16_OLD}
152        [/part]
153    [/story]
154
155    {SOTBE_TRACK {JOURNEY_17_NEW} }
156
157    {GOT_THE_GREAT_HORDE 1,2,3}
158
159    [event]
160        name=prestart
161
162        {LOYAL_UNIT 4 Halberdier 21 26}
163        {LOYAL_UNIT 4 Halberdier 23 26}
164
165        {LOYAL_UNIT 4 Pikeman 19 27}
166        {LOYAL_UNIT 4 Pikeman 25 27}
167
168        {LOYAL_UNIT 4 Javelineer 16 27}
169        {LOYAL_UNIT 4 Javelineer 28 27}
170
171        {LOYAL_UNIT 4 (Iron Mauler) 16 29}
172        {LOYAL_UNIT 4 (Iron Mauler) 28 29}
173
174        {LOYAL_UNIT 4 (Shock Trooper) 16 31}
175        {LOYAL_UNIT 4 (Shock Trooper) 28 31}
176
177        {LOYAL_UNIT 4 (Shock Trooper) 17 33}
178        {LOYAL_UNIT 4 (Shock Trooper) 27 33}
179
180        {LOYAL_UNIT 4 (Shock Trooper) 19 33}
181        {LOYAL_UNIT 4 (Shock Trooper) 25 33}
182
183        {LOYAL_UNIT 4 Swordsman 21 34}
184        {LOYAL_UNIT 4 Swordsman 23 34}
185
186        {MODIFY_UNIT side,canrecruit=4,no ai_special guardian}
187        {MODIFY_UNIT x=23-42 facing sw}
188    [/event]
189
190    # This helps prevent the allies from suiciding themselves by preventing them
191    # from leaving their castles and surrounding villages
192    [event]
193        name=side 2 turn refresh, side 3 turn refresh
194        first_time_only=no
195
196        [modify_unit]
197            [filter]
198                side=$side_number
199                canrecruit=yes
200            [/filter]
201
202            [movement_costs]
203                flat=99
204            [/movement_costs]
205        [/modify_unit]
206
207        [event]
208            name=side turn end
209
210            [modify_unit]
211                [filter]
212                    side=$side_number
213                    canrecruit=yes
214                [/filter]
215
216                [movement_costs]
217                    flat=1
218                [/movement_costs]
219            [/modify_unit]
220        [/event]
221    [/event]
222
223    [event]
224        name=start
225
226        [recall]
227            id=Grüü
228        [/recall]
229        [recall]
230            id=Jetto
231        [/recall]
232        [recall]
233            id=Inarix
234        [/recall]
235
236        [message]
237            speaker="Earl Lanbec'h"
238            message= _ "This is it, men! It is time to make these orcs pay for all that they have done to us. Attack without compromise, we have several detachments of reinforcements on their way. Spare no orc and let us take back this land which is rightfully ours!"
239        [/message]
240
241        [message]
242            speaker="Kapou'e"
243            message= _ "Forward, men! Our wolves will feed well tonight!"
244        [/message]
245
246        [message]
247            speaker=Grüü
248            # wmllint: local spelling softlings
249            message= _ "Come here, human softlings. Grüü has a little present for you..."
250        [/message]
251    [/event]
252
253#define HUMAN_REINFORCEMENTS ID_GENERAL
254    [unit]
255        type=General
256        id={ID_GENERAL}
257        side=4
258        x=22
259        y=38
260        generate_name=yes
261        random_traits=yes
262    [/unit]
263
264    [unit]
265        type=Swordsman
266        side=4
267        x=22
268        y=38
269        generate_name=yes
270        random_traits=yes
271    [/unit]
272
273    [unit]
274        type=Swordsman
275        side=4
276        x=22
277        y=38
278        generate_name=yes
279        random_traits=yes
280    [/unit]
281
282    [unit]
283        type=Longbowman
284        side=4
285        x=22
286        y=38
287        generate_name=yes
288        random_traits=yes
289    [/unit]
290
291    [unit]
292        type=Longbowman
293        side=4
294        x=22
295        y=38
296        generate_name=yes
297        random_traits=yes
298    [/unit]
299
300    [unit]
301        type=Horseman
302        side=4
303        x=22
304        y=38
305        generate_name=yes
306        random_traits=yes
307    [/unit]
308
309    [unit]
310        type=Horseman
311        side=4
312        x=22
313        y=38
314        generate_name=yes
315        random_traits=yes
316    [/unit]
317
318    [unit]
319        type=Spearman
320        side=4
321        x=22
322        y=38
323        generate_name=yes
324        random_traits=yes
325    [/unit]
326
327    [unit]
328        type=Spearman
329        side=4
330        x=22
331        y=38
332        generate_name=yes
333        random_traits=yes
334    [/unit]
335
336    [scroll_to]
337        x,y=22,38
338    [/scroll_to]
339#enddef
340
341    [event]
342        name=turn 6
343
344        {HUMAN_REINFORCEMENTS general1}
345
346        [message]
347            speaker=narrator
348            message= _ "As a fresh day dawned, more human forces arrived."
349            image=wesnoth-icon.png
350        [/message]
351    [/event]
352
353    [event]
354        name=turn 10
355
356        {HUMAN_REINFORCEMENTS Bruce}
357        # wmllint: recognize Bruce
358
359        [message]
360            speaker=Bruce
361            message= _ "We have arrived, my lord."
362        [/message]
363    [/event]
364
365    [event]
366        name=turn 14
367
368        {HUMAN_REINFORCEMENTS general3}
369
370        [message]
371            speaker="Earl Lanbec'h"
372            message= _ "Ahhh, perfect, more reinforcements."
373        [/message]
374    [/event]
375
376    [event]
377        name=wrapup
378
379        [move_unit_fake]
380            type=General
381            side=4
382            x=35,34,33,32,31,31,32,32,32,32,32
383            y=30,30,31,30,30,29,28,27,26,25,24
384        [/move_unit_fake]
385
386        [unit]
387            side=4
388            type=General
389            id=Howgarth III
390            name= _ "Howgarth III"
391            profile=portraits/howgarth.png
392            random_traits=no
393            x=32
394            y=24
395        [/unit]
396
397        [move_unit_fake]
398            type=Royal Guard
399            side=4
400            x=35,34,33,32,31,31,32,32,32,32,31
401            y=30,30,31,30,30,29,28,27,26,25,25
402        [/move_unit_fake]
403
404        [unit]
405            side=4
406            type=Royal Guard
407            x=31
408            y=25
409            generate_name=yes
410            random_traits=yes
411        [/unit]
412
413        [move_unit_fake]
414            type=Royal Guard
415            side=4
416            x=35,34,33,32,31,31,32,32,32,32,32,33
417            y=30,30,31,30,30,29,28,27,26,25,24,24
418        [/move_unit_fake]
419
420        [unit]
421            side=4
422            type=Royal Guard
423            x=33
424            y=24
425            generate_name=yes
426            random_traits=yes
427        [/unit]
428
429        [message]
430            speaker=Howgarth III
431            message= _ "Hold it! What in the wide green world is going on here!"
432        [/message]
433
434        [message]
435            speaker="Earl Lanbec'h"
436            image=portraits/lanbech.png~FL()~RIGHT()
437            message= _ "Howgarth? You and your interfering alliance always show up at the worst possible time."
438        [/message]
439
440        [message]
441            speaker="Kapou'e"
442            message= _ "Just who do you think you are, slug?"
443            image=portraits/kapoue-angry.png
444        [/message]
445
446        [message]
447            speaker=Howgarth III
448            message= _ "I am Howgarth of the Northern Alliance, successor to the late Rahul I."
449        [/message]
450
451        [message]
452            speaker="Earl Lanbec'h"
453            image=portraits/lanbech.png~FL()~RIGHT()
454            message= _ "This is a strictly territorial matter, Howgarth. The Northern Alliance has no right to intervene in this affair."
455        [/message]
456
457        [message]
458            speaker=Howgarth III
459            message= _ "The hell I don’t, Earl Lanbec’h, the Northern Alliance was witness to a treaty some seventeen years ago between your people and the orcs, which both of you are no doubt violating. It is our duty as the orchestrator and witness of this treaty to see that it is honored."
460        [/message]
461
462        [message]
463            speaker="Earl Lanbec'h"
464            image=portraits/lanbech.png~FL()~RIGHT()
465            message= _ "Well, good for you. As a matter of fact, this land is clearly defined under your precious treaty as human territory. So if you are so keen on being all high and noble, then muster your men to help us push back this orcish menace."
466        [/message]
467
468        [message]
469            speaker=Howgarth III
470            message= _ "Cease your lies, Lanbec’h. We all know that you were the one who started this war. But enough, it is time for all this to end. I call for both sides to parley and we shall discuss this matter."
471        [/message]
472
473        [message]
474            speaker="Kapou'e"
475            message= _ "Ha ha, very funny, old fool. You think we are stupid enough to fall for that? I’ve not forgotten what you people did to my father."
476            image=portraits/kapoue-angry.png
477        [/message]
478
479        [message]
480            speaker=Howgarth III
481            message= _ "What in the world are you talking about?"
482        [/message]
483
484        [message]
485            speaker="Kapou'e"
486            message= _ "I am Kapou’e, son of the Black-Eye Karun. Seventeen years ago you people assassinated my father after inviting him to join the Northern Alliance."
487            image=portraits/kapoue-angry.png
488        [/message]
489
490        [message]
491            speaker=Howgarth III
492            message= _ "What? We received word that he declined our invitation and that was the end of the matter. I know nothing of his assassination. As a matter of fact, I was there when the orcish messenger brought Rahul Karun’s reply."
493        [/message]
494
495        [message]
496            speaker="Kapou'e"
497            message= _ "Messenger, what messenger?"
498            image=portraits/kapoue-angry.png
499        [/message]
500
501        [message]
502            speaker=Howgarth III
503            message= _ "If I remember correctly, it was some orc named Shan Taum."
504        [/message]
505
506        [message]
507            speaker="Kapou'e"
508            message= _ "Funny, that name sounds oddly familiar..."
509        [/message]
510    [/event]
511
512    [event]
513        name=time over
514
515        [fire_event]
516            name=wrapup
517        [/fire_event]
518
519        [endlevel]
520            result=victory
521            bonus=no
522            {NEW_GOLD_CARRYOVER 40}
523        [/endlevel]
524    [/event]
525
526    [event]
527        name=last breath
528
529        [filter]
530            id="Earl Lanbec'h"
531        [/filter]
532
533        {VARIABLE unit.hitpoints 1}
534
535        [unstore_unit]
536            variable=unit
537            find_vacant=no
538        [/unstore_unit]
539
540        [fire_event]
541            name=wrapup
542        [/fire_event]
543
544        [endlevel]
545            result=victory
546            bonus=yes
547            {NEW_GOLD_CARRYOVER 40}
548        [/endlevel]
549    [/event]
550
551    {HERO_DEATHS}
552    {GENERALS_MUST_SURVIVE}
553[/scenario]
554