-
-
Notifications
You must be signed in to change notification settings - Fork 988
/
03_The_Contention.cfg
331 lines (319 loc) · 10.7 KB
/
03_The_Contention.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
#textdomain wesnoth-wov
# This scenario is intended to be the hardest of the first three.
# Both sides are forced to recruit evenly (one of each type, then it repeats), to prevent
# recruiting only clashers, and for the player to gain experience using each unit type.
# xp earned is limited and a time limit in place so players can't use this as an xp factory
[scenario]
id=03_The_Contention
name= _ "The Contention"
next_scenario=04_The_Spiral_Path
{WOV_MAP 03_The_Contention.map}
{TURNS 30 30 26}
{DEFAULT_SCHEDULE_DAWN}
carryover_percentage=0
disallow_recall=yes
{INTRO_AND_SCENARIO_MUSIC revelation.ogg battle.ogg}
{EXTRA_SCENARIO_MUSIC siege_of_laurelmor.ogg}
{EXTRA_SCENARIO_MUSIC weight_of_revenge.ogg}
[story]
[part]
story= _ "For ages, we of the Spiral Path have not demurred when our kin of the Straight Path spoke vaguely of the ’end of the world’ lying beyond the oceans, receding ever farther as Dominants claim new ranges. However, we knew better: for we have found it written in the tides and the motion of the stars that our world is round, made like a drake’s egg."
[/part]
[part]
story= _ "Every hatchling’s hope is to become the Dominant of a new flight. But the sinking of our islands may only prefigure a vastly greater tragedy; for if the world is bounded, our Way must end in a final war of drake against drake…or a great starvation."
[/part]
[part]
story= _ "Every turn of the heavens brings us closer to that doom. We of the Spiral Path seek a way for Drake-kind to step off that wheel, before it is too late."
[/part]
[/story]
# wmllint: validate-off
[side]
side=1
controller=human
recruit=Drake Burner, Drake Clasher, Drake Fighter, Drake Glider
gold=100
save_id=Player
team_name=hero
user_team_name= _ "Drakes"
side_name= _ "Galun"
{FLAG_VARIANT long}
[leader]
{GALUN}
[/leader]
[unit]
{VANK}
x,y=11,4
[/unit]
[unit]
type=Drake Warrior
x,y=7,3
[/unit]
[unit]
type=Drake Arbiter
x,y=7,4
[/unit]
[unit]
type=Drake Flare
x,y=15,3
[/unit]
[unit]
type=Drake Thrasher
x,y=15,4
[/unit]
[/side]
[side]
side=2
controller=ai
recruit=Drake Burner, Drake Clasher, Drake Fighter, Drake Glider
{GOLD 100 110 120}
{INCOME 2 4 6}
team_name=rival
user_team_name= _ "Drakes"
{FLAG_VARIANT long}
recall_cost=99999 # needed as ai ignores disallow_recall
# wmllint: who GRIBBEL is Gribbel
[leader]
{GRIBBEL}
facing=n
[/leader]
[unit]
type=Sky Drake
[modifications]
{TRAIT_LOYAL_HERO_NOSLOT}
{TRAIT_STRONG}
{TRAIT_RESILIENT}
[/modifications]
x,y=11,30
facing=n
ai_special=guardian
[/unit]
[unit]
type=Drake Arbiter
x,y=7,30
facing=n
moves=0 # So they don't charge ahead
[/unit]
[unit]
type=Drake Warrior
x,y=7,31
facing=n
moves=0
[/unit]
[unit]
type=Drake Thrasher
x,y=15,30
facing=n
moves=0
[/unit]
[unit]
type=Fire Drake
x,y=15,31
facing=n
moves=0
[/unit]
[ai]
aggression=0.75
[/ai]
[/side]
# wmllint: validate-on
[event]
name=preload
first_time_only=no
[lua]
code=<< wesnoth.game_config.kill_experience = 1 >>
[/lua]
[/event]
[event]
name=prestart
{MODIFY_UNIT side=1 facing s}
[objectives]
[objective]
description= _ "Defeat Gribbel"
condition=win
[/objective]
{OBJECTIVE_OR}
[objective]
description= _ "Have the advantage when turns run out"
condition=win
[/objective]
[objective]
description= _ "Defeat of Galun"
condition=lose
[/objective]
[objective]
description= _ "Fail to have the advantage when turns run out"
condition=lose
[/objective]
[gold_carryover]
carryover_percentage=0
[/gold_carryover]
[note]
description= _ "For this scenario, only 1×level XP is earned for kills, as defeated units are merely removed from play."
[/note]
[note]
description= _ "Your defeated units will be returned to you after the battle."
[/note]
[note]
description= _ "Each side is allowed only intendants and recruits for this battle."
[/note]
[note]
description= _ "Each side is forced to recruit unit types evenly before a type is allowed to be repeated."
[/note]
[/objectives]
[/event]
[event]
name=start
[message]
speaker=narrator
message= _ "And so the day of the Contention came. Each caste elected an Aspirant from their ranks to become the new Dominant, and each Aspirant brought with him Intendants to extend his rule over the other castes. Thus, in the ancient Way of the drakes, six times six: thirty-six drakes in all."
image=wesnoth-icon.png
[/message]
# what I'm going for here is a good way to justify having the player start the contest with different resources than the opponent, for difficulty adjustments
[message]
speaker=narrator
message= _ "All the skills necessary to protect and provide for a flight were tested. Each team faced various challenges of martial ability, hunting, group coordination, strategy, & tactics. The top two teams, with only their gathered resources and raw recruits, advanced onward to the traditional arena in the very heart of Morogor."
image=wesnoth-icon.png
[/message]
[message]
speaker=narrator
message= _ "As was the Way, the teams, lead by Galun of the Flight of Verkon, and Gribbel of the Flight of Kerath, faced off in a final battle: The Contention."
image=wesnoth-icon.png
[/message]
[message]
speaker=Vank
message= _ "I can scarce believe we are actually here. The Contention! Are we truly fit for this?"
[/message]
[message]
speaker=Galun
message= _ "Just fly and fight, Vank. I’ll do the worrying."
[/message]
[/event]
# Remove recruit type when recruited and store it. When recruit list is empty, it is refilled.
[event]
name=recruit
first_time_only=no
[disallow_recruit]
side=$unit.side
type=$unit.type
[/disallow_recruit]
[set_variables]
name=$unit.side|_recruit
mode=append
[value]
type=$unit.type
[/value]
[/set_variables]
[store_side]
side=$unit.side
[/store_side]
[if]
{VARIABLE_CONDITIONAL side.recruit equals ""}
[then]
[set_variable]
name=recruit
[join]
variable=$unit.side|_recruit
key=type
separator=,
remove_empty=yes
[/join]
[/set_variable]
[allow_recruit]
side=$unit.side
type=$recruit
[/allow_recruit]
{CLEAR_VARIABLE (recruit,$unit.side|_recruit)}
[/then]
[/if]
{CLEAR_VARIABLE side}
[/event]
# These two last breath events must be before the third one so dialog fires.
# Since they are both leaders, scenario will end when either is removed from the map.
[event]
name=last breath
[filter]
id=Galun
[/filter]
[message]
speaker=unit
message= _ "The chance at my dream, lost…"
[/message]
[/event]
[event]
name=last breath
[filter]
id=Gribbel
[/filter]
[message]
speaker=unit
message= _ "No!"
[/message]
[/event]
# This event is last breath to prevent death animation
# Place units on the recall list if they are defeated.
[event]
name=last breath
first_time_only=no
[put_to_recall_list]
id=$unit.id
heal=yes
[/put_to_recall_list]
[/event]
[event]
name=time over
first_time_only=no
# Determine which side has the advantage
[lua]
code = << wesnoth.set_variable( "result", wesnoth.require("campaigns/Wings_of_Victory/lua/lua.lua").turns_over_advantage() ) >>
[/lua]
[switch]
variable=result
[case]
value=1
[message]
speaker=Gribbel
message= _ "No!"
[/message]
[endlevel]
result=victory
[/endlevel]
[/case]
[case]
value=2
[message]
speaker=Galun
message= _ "The chance at my dream, lost…"
[/message]
[endlevel]
result=defeat
[/endlevel]
[/case]
[case]
value=tie
[modify_turns]
add=1
[/modify_turns]
[/case]
[else]
# error, do nothing and end in defeat
[/else]
[/switch]
{CLEAR_VARIABLE result}
[/event]
[event]
name=victory
[message]
speaker=Galun
message= _ "We did it!"
[/message]
[message]
speaker=narrator
image=wesnoth-icon.png
message= _ "By his victory, Galun earned the privilege of founding a new Flight in accordance with the Way. As custom required, he would be gifted with breeders and fledglings from each of the other Flights."
[/message]
[/event]
[event]
name=scenario end
{CLEAR_VARIABLE 1_recruit,2_recruit}
[/event]
[/scenario]