-
-
Notifications
You must be signed in to change notification settings - Fork 991
/
06_Black_Flag.cfg
408 lines (343 loc) · 11.4 KB
/
06_Black_Flag.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
#textdomain wesnoth-sotbe
[scenario]
id=06_Black_Flag
name= _ "Black Flag"
map_data="{campaigns/Son_Of_The_Black_Eye/maps/06_Black_Flag.map}"
{TURNS 26 24 22}
{DEFAULT_SCHEDULE}
next_scenario=07_The_Desert_of_Death
{SCENARIO_MUSIC "the_city_falls.ogg"}
{EXTRA_SCENARIO_MUSIC "breaking_the_chains.ogg"}
{EXTRA_SCENARIO_MUSIC "siege_of_laurelmor.ogg"}
[side]
side=1
id="Kapou'e"
type=Orcish Leader
controller=human
team_name=Kapoue
user_team_name=_ "Kapou’e"
gold=150
{BLACK_FLAG}
[/side]
[side]
type=General
id=Slowhand
name= _ "Slowhand"
side=2
team_name=Humans
user_team_name=_"Humans"
canrecruit=yes
recruit=Swordsman,Fencer,Mage,Heavy Infantryman,Bowman
{GOLD 110 130 150}
{FLAG_VARIANT loyalist}
[/side]
{STARTING_VILLAGES 2 6}
[side]
side=3
no_leader=yes
team_name=Humans
user_team_name=_"Humans"
[ai]
{MODIFY_AI_ADD_CANDIDATE_ACTION 3 main_loop (
[candidate_action]
engine=lua
name=transport
id=transport
max_score=300000
location="campaigns/Son_Of_The_Black_Eye/ai/ca_transport_S6.lua"
[/candidate_action]
)}
[/ai]
[/side]
[side]
type=General
id=Harman
name= _ "Harman"
side=4
team_name=Humans
user_team_name=_"Humans"
canrecruit=yes
facing=sw
recruit=Swordsman,Fencer,Mage,Heavy Infantryman,Bowman
{GOLD 100 125 150}
{FLAG_VARIANT loyalist}
[/side]
{STARTING_VILLAGES 4 4}
[side]
side=5
team_name=Kapoue
user_team_name=_ "Kapou’e"
no_leader=yes
[/side]
{SOTBE_TRACK {JOURNEY_06_NEW} }
[event]
name=prestart
{UNIT 5 (Orcish Grunt) 16 12 ()}
{UNIT 5 (Orcish Archer) 17 12 ()}
{UNIT 5 (Orcish Grunt) 20 9 ()}
{UNIT 5 (Orcish Archer) 25 12 ()}
{UNIT 5 (Orcish Grunt) 32 23 ()}
{UNIT 5 (Orcish Archer) 31 25 ()}
[unit]
side=2
id="Landing Galleon"
type=Transport Galleon
ai_special=guardian
x=6
y=9
[/unit]
[unit]
#ifdef EASY
type=Orcish Warrior
#else
type=Orcish Grunt
#endif
id=Affman
name= _ "Affman"
side=5
x,y=27,20
[/unit]
[objectives]
side=1
[objective]
description= _ "Defeat Slowhand and Harman"
condition=win
[/objective]
[objective]
description= _ "Death of Kapou’e"
condition=lose
[/objective]
[objective]
description= _ "Death of Grüü"
condition=lose
[/objective]
{TURNS_RUN_OUT}
[gold_carryover]
bonus=yes
carryover_percentage=40
[/gold_carryover]
[/objectives]
[/event]
[event]
name=start
[recall]
id=Pirk
x=26
y=1
[/recall]
[recall]
id=Gork
x=27
y=1
[/recall]
[recall]
id=Vraurk
x=28
y=1
[/recall]
[recall]
id=Grüü
x,y=25,2
[/recall]
[recall]
id=Jetto
x,y=24,1
[/recall]
[message]
speaker="Kapou'e"
message= _ "So, here is Tirigaz. But what’s going on?"
[/message]
[message]
speaker="Pirk"
message= _ "Looks like humans have attacked here too. You were right, Kapou’e, the humans have declared all-out war on us."
[/message]
[message]
speaker="Kapou'e"
message= _ "Listen, if we are to meet with the rest of the Great Council, we have to repel this attack. You shamans hide here in the forest until we defeat them. It will be faster and easier for us if we don’t have to worry about protecting you."
[/message]
[message]
speaker="Gork"
message= _ "This is a wise choice. Good luck, Son of the Black-Eye."
[/message]
[message]
speaker="Slowhand"
image=/portraits/humans/general.png~FL()~RIGHT()
message= _ "Haha! Our plan is going well, let’s surround them on land while our allies attack them from sea!"
[/message]
[store_unit]
[filter]
id=Pirk,Gork,Vraurk
[/filter]
variable=stored_shamans
kill=yes
[/store_unit]
[/event]
[event]
name=turn 2
[message]
speaker=Affman
message= _ "Look, a party of our kind approaches from the North."
[/message]
[message]
speaker="Kapou'e"
message= _ "Greetings from Kapou’e, Son of the Black-Eye Karun."
[/message]
[message]
speaker=Affman
message= _ "Son of the great Black-Eye Karun?! You do us honor, Chief."
[/message]
[message]
speaker="Kapou'e"
message= _ "Do not grovel like humans, just tell me what’s going on here."
[/message]
[message]
speaker=Affman
message= _ "I don’t really know, one day all was calm and peaceful and the next day a fleet of human ships showed up and began spewing out troops. Did our best to hold them off, but they captured the northern keep. And then human reinforcements arrived from their settlements to the South."
[/message]
[message]
speaker="Kapou'e"
message= _ "Are the shamans safe?"
[/message]
[message]
speaker=Affman
message= _ "When we realized that there was no way we could hold the humans off, we sent them east to a place near the Mourned Hills along with most of our women and children. The rest of us remained here to buy them some time."
[/message]
[message]
speaker="Kapou'e"
message= _ "Wise decision. We have actually come to speak to the shamans, but while we are here we must help you out of this scrape. Grüü, hold them while I run to the keep and organize our forces to counterattack. We can’t defeat them by sea without ships, but we can destroy the foothold they have gained on the land."
[/message]
[message]
speaker="Grüü"
message= _ "I love this strategy, Chief!"
[/message]
[/event]
[event]
name=new turn
first_time_only=no
[if]
[variable]
name=turn_number
#ifdef EASY
less_than=4
#else
less_than=5
#endif
[/variable]
[then]
{NOTRAIT_UNIT 3 "Transport Galleon" 1 30}
[store_locations]
x=14-28
y=14-29
terrain=Ww
[filter_adjacent_location]
terrain="!, W*"
[/filter_adjacent_location]
[not]
find_in=already_picked_transport_destination_surroundings
[/not]
variable=possible_transport_destinations
[/store_locations]
{VARIABLE_OP transport_destination_index rand "1..$possible_transport_destinations.length"}
{VARIABLE_OP transport_destination_index sub 1}
[modify_unit]
[filter]
x,y=1,30
[/filter]
[variables]
destination_x=$possible_transport_destinations[$transport_destination_index].x
destination_y=$possible_transport_destinations[$transport_destination_index].y
[/variables]
[/modify_unit]
[store_locations]
x=$possible_transport_destinations[$transport_destination_index].x
y=$possible_transport_destinations[$transport_destination_index].y
radius=2
[filter_radius]
terrain=Ww
[/filter_radius]
[or]
find_in=already_picked_transport_destination_surroundings
[/or]
variable=already_picked_transport_destination_surroundings
[/store_locations]
{CLEAR_VARIABLE transport_destination_index,possible_transport_destinations}
[/then]
[/if]
[/event]
[event]
name=moveto
[filter]
side=3
[not]
type=Transport Galleon
[/not]
[/filter]
[message]
x,y=$x1,$y1
message= _ "Let’s get those orcs!"
[/message]
[/event]
[event]
name=moveto
first_time_only=no
[filter]
type=Transport Galleon
x,y=1,30
[/filter]
[kill]
id=$unit.id
[/kill]
[/event]
[event]
name=last breath
[filter]
id=Slowhand
[/filter]
[message]
speaker=unit
message= _ "Aaaargh! I die!"
[/message]
[message]
speaker="Kapou'e"
message= _ "Finally, you pay for what you did to my orc brothers!"
image=portraits/kapoue-angry.png
[/message]
[/event]
[event]
name=enemies defeated
[message]
speaker="Kapou'e"
message= _ "We are victorious at last. Someone go tell the shamans that they can come out now."
[/message]
{FOREACH stored_shamans i}
[unstore_unit]
variable=stored_shamans[$i]
find_vacant=yes
[/unstore_unit]
{NEXT i}
{CLEAR_VARIABLE stored_shamans}
[message]
speaker=Gork
message= _ "Congratulations on your victory, Kapou’e. You do honor to the memory of your father."
[/message]
[message]
speaker="Kapou'e"
message= _ "Thanks, but I have news. Since the forces here were certain they were going to be defeated, they sent the shamans to the Mourned Hills. If we want to meet them, we must go after them."
[/message]
[message]
speaker=Pirk
message= _ "Oh, great. That means we have to cross the Desert of Death which is full of poisonous giant scorpions and human outlaws. And bypassing it would take too long! Not to mention after this desert, we’ll have to cross the Silent Forest!"
[/message]
[message]
speaker=Grüü
message= _ "Well, we have no choice... I’ve never tasted scorpions but I am sure they are good. This journey will be fun."
[/message]
{CLEAR_VARIABLE already_picked_transport_destination_surroundings}
[endlevel]
result=victory
bonus=yes
{NEW_GOLD_CARRYOVER 40}
[/endlevel]
[/event]
{HERO_DEATHS}
[/scenario]