-
-
Notifications
You must be signed in to change notification settings - Fork 988
/
10_Lake_Vrug.cfg
414 lines (373 loc) · 10.1 KB
/
10_Lake_Vrug.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
409
410
411
412
413
414
#textdomain wesnoth-ei
[scenario]
id=10_Lake_Vrug
name= _ "Lake Vrug"
map_data="{campaigns/Eastern_Invasion/maps/10_Lake_Vrug.map}"
turns=30
{DEFAULT_SCHEDULE_MORNING}
next_scenario=11_Captured
{SCENARIO_MUSIC knolls.ogg}
{EXTRA_SCENARIO_MUSIC nunc_dimittis.ogg}
{EXTRA_SCENARIO_MUSIC weight_of_revenge.ogg}
{EXTRA_SCENARIO_MUSIC siege_of_laurelmor.ogg}
{EXTRA_SCENARIO_MUSIC silvan_sanctuary.ogg}
{EXTRA_SCENARIO_MUSIC wanderer.ogg}
{EI_TRACK {JOURNEY_10_NEW} }
victory_when_enemies_defeated=no
[side]
type=Lieutenant
id=Gweddry
name= _ "Gweddry"
side=1
canrecruit=yes
controller=human
team_name=good
user_team_name=_"Wesnothians"
shroud=yes
gold=200
{FLAG_VARIANT loyalist}
[/side]
[side]
type=Troll Warrior
id=Darg
name= _ "Darg"
side=2
canrecruit=yes
#ifdef HARD
recruit=Troll Rocklobber,Troll,Troll Whelp
#else
recruit=Troll,Troll Whelp
#endif
team_name=monster
user_team_name=_"Monsters"
{GOLD 200 250 300}
[/side]
[side]
type=Gryphon
id=Kraagak
name= _ "Kraagak"
side=3
canrecruit=yes
#ifdef EASY
recruit=Gryphon
#else
recruit=Gryphon,Sky Drake
#endif
team_name=monster
user_team_name=_"Monsters"
{GOLD 200 250 300}
[ai]
aggression=0.9
grouping=no
[/ai]
[/side]
[event]
name=prestart
[objectives]
side=1
[objective]
description= _ "Defeat the enemy leaders"
condition=win
[show_if]
[variable]
name=enemies_defeated
boolean_equals=no
[/variable]
[/show_if]
[/objective]
[objective]
description= _ "Move Dacyn to the stronghold"
condition=win
[show_if]
[variable]
name=Dacyn_researching
boolean_equals=no
[/variable]
[/show_if]
[/objective]
[objective]
description= _ "Death of Gweddry"
condition=lose
[/objective]
[objective]
description= _ "Death of Dacyn"
condition=lose
[/objective]
[objective]
description= _ "Death of Owaec"
condition=lose
[/objective]
{TURNS_RUN_OUT}
[gold_carryover]
bonus=yes
carryover_percentage=40
[/gold_carryover]
[/objectives]
[set_variable]
name=enemies_defeated
value=no
[/set_variable]
[set_variable]
name=Dacyn_researching
value=no
[/set_variable]
[/event]
[event]
name=start
[recall]
id=Dacyn
[/recall]
[recall]
id=Owaec
[/recall]
[recall]
id=Grug
[/recall]
[recall]
id=Terraent
[/recall]
[message]
speaker=Dacyn
message= _ "The trail stops soon. We have almost reached Lake Vrug. There is a small island off the coast ahead that was once home to a great school of magic. I pray that the library is still intact."
[/message]
[message]
speaker=Owaec
message= _ "But what happened to the people living on it?"
[/message]
[message]
speaker=Dacyn
message= _ "Few enough remained before the trolls and gryphons took up residence in the mountains. But now the school is deserted, and has been for decades."
[/message]
[message]
speaker=Gweddry
message= _ "Very well, we will take care of the trolls and gryphons. Search the library and may you find us an answer. Onward!"
[/message]
[/event]
#give the player a hint about mountainous terrain
[event]
name=recall
[filter]
type=Paladin,Lancer,Knight,Grand Knight,Horseman,Cavalier,Dragoon,Cavalryman,Heavy Infantryman,Iron Mauler,Shock Trooper
[/filter]
[fire_event]
name=movement_warning
[/fire_event]
[/event]
[event]
name=recruit
[filter]
type=Horseman,Cavalryman,Heavy Infantryman
[/filter]
[fire_event]
name=movement_warning
[/fire_event]
[/event]
[event]
name=movement_warning
[message]
speaker=Dacyn
message= _ "The island ahead is mountainous; it would be wise to select troops that do well on such terrain."
[/message]
[/event]
[event]
name=moveto
[filter]
side=1
[not]
id=Dacyn
[/not]
[filter_location]
x,y=12,4
radius=3
[/filter_location]
[/filter]
[filter_condition]
[variable]
name=Dacyn_researching
boolean_equals=no
[/variable]
[/filter_condition]
[message]
speaker=unit
message= _ "This must be the academy Dacyn mentioned."
[/message]
[message]
speaker=Gweddry
message= _ "It still looks quite defensible. We should be able to hold there while Dacyn is working."
[/message]
[message]
speaker=Dacyn
message= _ "Very well. Let us rally there after the trolls and gryphons are defeated."
[/message]
[/event]
[event]
name=moveto
[filter]
x,y=12,4
side=1
[/filter]
[sound]
name=gold.ogg
[/sound]
[message]
speaker=narrator
image=wesnoth-icon.png
message= _ "You find 100 gold in the fortress!"
[/message]
[gold]
side=1
amount=100
[/gold]
[/event]
[event]
name=moveto
[filter]
x,y=12,4
id=Dacyn
[/filter]
[message]
speaker=Dacyn
message= _ "Excellent; I’ll start my research."
[/message]
[store_unit]
[filter]
id=Dacyn
[/filter]
kill=yes
variable=stored_Dacyn
[/store_unit]
[set_variable]
name=Dacyn_researching
value=yes
[/set_variable]
# If we've already defeated all enemies, end the scenario now
[if]
[variable]
name=enemies_defeated
boolean_equals=yes
[/variable]
[then]
[delay]
time=3000
[/delay]
[message]
speaker=narrator
message= _ "Some time later..."
image=wesnoth-icon.png
[/message]
[endlevel]
result=victory
bonus=yes
{NEW_GOLD_CARRYOVER 40}
[/endlevel]
[/then]
[else]
[show_objectives][/show_objectives]
[/else]
[/if]
[/event]
[event]
name=enemies defeated
[message]
speaker=Gweddry
message= _ "Alright, now we should be safe while Dacyn is researching."
[/message]
[set_variable]
name=enemies_defeated
value=yes
[/set_variable]
[show_objectives][/show_objectives]
[/event]
# Check each turn if the victory conditions have been met
[event]
name=turn end
first_time_only=no
[filter_condition]
[variable]
name=enemies_defeated
boolean_equals=yes
[/variable]
[variable]
name=Dacyn_researching
boolean_equals=yes
[/variable]
[/filter_condition]
[endlevel]
result=victory
bonus=yes
{NEW_GOLD_CARRYOVER 40}
[/endlevel]
[/event]
[event]
name=victory
[unstore_unit]
variable=stored_Dacyn
find_vacant=yes
[/unstore_unit]
{CLEAR_VARIABLE stored_Dacyn}
{CLEAR_VARIABLE enemies_defeated}
{CLEAR_VARIABLE Dacyn_researching}
[store_unit]
[filter]
id=Gweddry
[/filter]
variable=temp
[/store_unit]
[message]
speaker=Dacyn
message= _ "I have found an answer! We must return to Wesnoth immediately! ..."
[/message]
[unit]
type=Troll Warrior
side=3
x=$temp.x
y=$temp.y
[/unit]
[unit]
type=Troll Warrior
id=Groog
name= _ "Groog"
side=3
x=$temp.x
y=$temp.y
[/unit]
[unit]
type=Troll Warrior
side=3
x=$temp.x
y=$temp.y
[/unit]
[unit]
type=Troll Warrior
side=3
x=$temp.x
y=$temp.y
[/unit]
[unit]
type=Troll Warrior
side=3
x=$temp.x
y=$temp.y
[/unit]
[unit]
type=Troll Warrior
side=3
x=$temp.x
y=$temp.y
[/unit]
[message]
speaker=Groog
# wmllint: local spelling wid
message= _ "Be not going too fast. You gonna come wid us."
[/message]
[delay]
time=100
[/delay]
{CLEAR_VARIABLE temp}
[/event]
{FOREIGN_DEFEAT}
{HERODEATH_GWEDDRY}
{HERODEATH_DACYN}
{HERODEATH_OWAEC}
{HERODEATH_GRUG}
[/scenario]