-
-
Notifications
You must be signed in to change notification settings - Fork 988
/
06_Temple_in_the_Deep.cfg
342 lines (310 loc) · 10.1 KB
/
06_Temple_in_the_Deep.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
#textdomain wesnoth-trow
[scenario]
id=06_Temple_in_the_Deep
name= _ "Temple in the Deep"
next_scenario=07_Return_to_Oldwood
victory_when_enemies_defeated=no
map_file=06_Temple_in_the_Deep.map
{TURNS 37 34 31}
{UNDERGROUND}
{SCENARIO_MUSIC knalgan_theme.ogg}
{EXTRA_SCENARIO_MUSIC underground.ogg}
[story]
[part]
story= _ "Prince Haldric and his company, grim and watchful, descend into catacombs below the temple, buried deep in the bedrock, in the very roots of the world itself. In the distance Haldric hears a booming voice."
background=story/trow_story_06-Temple_in_the_Deep.jpg
[/part]
[/story]
{TROW_GI_TRACK {JOURNEY_06_NEW} }
{TROW_DEATHS}
[side]
side=1
type=Noble Commander
id=Prince Haldric
name= _ "Prince Haldric"
unrenamable=yes
canrecruit=yes
{GOLD 160 140 120}
controller=human
shroud=yes
team_name=Haldric
user_team_name=_"Refugees"
{FLAG_VARIANT loyalist}
[/side]
[side]
side=2
type=Lich
id=Lich-Lord Lenvan
name= _ "Lich-Lord Lenvan"
canrecruit=yes
recruit=Revenant,Deathblade,Bone Shooter,Skeleton,Skeleton Archer
{GOLD 240 300 360}
{INCOME 6 10 14}
team_name=undead
user_team_name=_"Undead"
[ai]
aggression=1.0
recruitment_pattern=fighter,archer
{NO_SCOUTS}
[/ai]
{FLAG_VARIANT undead}
[/side]
[event]
name=prestart
#ifdef EASY
{LOYAL_UNIT 2 (Tentacle of the Deep) 3 16}
{LOYAL_UNIT 2 (Tentacle of the Deep) 22 16}
{LOYAL_UNIT 2 (Tentacle of the Deep) 10 16}
{LOYAL_UNIT 2 (Tentacle of the Deep) 16 16}
#endif
#ifdef NORMAL
{LOYAL_UNIT 2 (Tentacle of the Deep) 3 16}
{LOYAL_UNIT 2 (Tentacle of the Deep) 22 16}
{LOYAL_UNIT 2 (Tentacle of the Deep) 10 16}
{LOYAL_UNIT 2 (Tentacle of the Deep) 16 16}
{LOYAL_UNIT 2 (Tentacle of the Deep) 12 17}
{LOYAL_UNIT 2 (Tentacle of the Deep) 14 17}
#endif
#ifdef HARD
{LOYAL_UNIT 2 (Tentacle of the Deep) 3 16}
{LOYAL_UNIT 2 (Tentacle of the Deep) 22 16}
{LOYAL_UNIT 2 (Tentacle of the Deep) 10 16}
{LOYAL_UNIT 2 (Tentacle of the Deep) 16 16}
{LOYAL_UNIT 2 (Tentacle of the Deep) 12 17}
{LOYAL_UNIT 2 (Tentacle of the Deep) 14 17}
{LOYAL_UNIT 2 (Tentacle of the Deep) 10 15}
{LOYAL_UNIT 2 (Tentacle of the Deep) 16 15}
#endif
{PLACE_IMAGE (items/chest.png) 13 1}
{PLACE_IMAGE (items/dragonstatue.png) 12 1}
{PLACE_IMAGE "items/dragonstatue.png~FL(horiz)" 14 1}
{OBJ_POTION_HOLY 13 19 (holy_helper)}
[recall]
id=Burin the Lost
[/recall]
[recall]
id=Minister Edren
[/recall]
[objectives]
side=1
[objective]
description= _ "Defeat the Lich-Lord"
condition=win
[/objective]
[objective]
description= _ "Retrieve the Fire Ruby (with Prince Haldric)"
condition=win
[/objective]
[objective]
description= _ "Death of Prince Haldric"
condition=lose
[/objective]
{TURNS_RUN_OUT}
[gold_carryover]
bonus=yes
carryover_percentage=40
[/gold_carryover]
[/objectives]
[/event]
[event]
name=start
[message]
speaker=Lich-Lord Lenvan
message= _ "Free! I’m free at last! No mere magi could seal me in here forever! Rise, my soldiers of darkness, the world will be ours once more!"
[/message]
[message]
speaker=Burin the Lost
message= _ "Back underground... Och. this feels much better! As for the current residents, ugh!"
[/message]
[message]
speaker=Prince Haldric
message= _ "Let’s send these monsters to their final rest."
image=portraits/haldric-mad.png
[/message]
[/event]
[event]
name=last breath
[filter]
id=Lich-Lord Lenvan
[/filter]
[message]
speaker=unit
message= _ "All my days are ended."
[/message]
[message]
speaker=Prince Haldric
message= _ "The world won’t miss him one bit."
[/message]
[if]
[variable]
name=Have_Ruby
boolean_equals=yes
[/variable]
[then]
[endlevel]
result=victory
bonus=yes
{NEW_GOLD_CARRYOVER 40}
[/endlevel]
[/then]
[/if]
[/event]
[event]
name=time over
[message]
speaker=Prince Haldric
message= _ "What’s that! No! The tree-folk are sealing us back in here. They must think that we’ve failed. We’re trapped."
image=portraits/haldric-surprised.png
[/message]
[/event]
[event]
name=sighted
[filter]
type=Tentacle of the Deep
[/filter]
[filter_second]
side=1
[/filter_second]
[message]
speaker=second_unit
message= _ "I don’t like the look of that pool at all."
[/message]
[/event]
[event]
name=moveto
first_time_only=no
[filter]
side=1
x=13
y=1
[/filter]
[if]
[variable]
name=Have_Ruby
boolean_equals=yes
[/variable]
[then]
[message]
speaker=narrator
message= _ "You already have the Fire Ruby."
image=wesnoth-icon.png
[/message]
[allow_undo]
[/allow_undo]
[/then]
[else]
[if]
[have_unit]
id=Prince Haldric
x=13
y=1
[/have_unit]
[then]
{VARIABLE Have_Ruby yes}
[sound]
name=open-chest.wav
[/sound]
[message]
speaker=narrator
message= _ "As you open the chest you see it, the Ruby of Fire. It is the size of an apple, and burns with an internal fire, which is refracted through its faces. You can feel the power flowing from it..."
image=wesnoth-icon.png
[/message]
[message]
speaker=Prince Haldric
message= _ "It’s funny that the lich-lord didn’t have this on his person. Since I don’t actually know what this thing does, I’ll just put it in the bottom of my pack for right now."
[/message]
[if]
[not]
[have_unit]
id=Lich-Lord Lenvan
[/have_unit]
[/not]
[then]
[endlevel]
result=victory
bonus=yes
{NEW_GOLD_CARRYOVER 40}
[/endlevel]
[/then]
[/if]
[/then]
[else]
[animate_unit]
[filter]
id=$unit.id
[/filter]
flag=defend
hits=yes
[primary_attack]
range=melee
[/primary_attack]
[secondary_attack]
name=$unit.attack[0].name
[/secondary_attack]
[facing]
x,y=13,0
[/facing]
[/animate_unit]
[message]
speaker=narrator
message= _ "Maybe you should move somebody else to the chest."
image=wesnoth-icon.png
[/message]
[allow_undo]
[/allow_undo]
[/else]
[/if]
[/else]
[/if]
[/event]
[event]
name=victory
[message]
speaker=Prince Haldric
message= _ "I’m glad that’s over! We have the Ruby of Fire, and that Lich-Lord is now a pile of dust, let’s get out of these catacombs!"
[/message]
{CLEAR_VARIABLE Have_Ruby}
[/event]
[event]
name=die
[filter]
side=1
[not]
id=Prince Haldric
[/not]
[/filter]
[if]
[have_unit]
id=Lich-Lord Lenvan
[/have_unit]
[then]
[message]
speaker=Prince Haldric
message= _ "He’s raising our dead!"
image=portraits/haldric-surprised.png
[/message]
[/then]
[/if]
[/event]
[event]
name=die
first_time_only=no
[filter]
side=1
[/filter]
[filter_second]
[not]
#Basically not any type that has plague
type=Walking Corpse,Soulless
[/not]
[/filter_second]
[if]
[have_unit]
id=Lich-Lord Lenvan
[/have_unit]
[then]
{RISE_UP_RISE_UP}
[/then]
[/if]
[/event]
[/scenario]