-
-
Notifications
You must be signed in to change notification settings - Fork 988
/
sound-utils.cfg
622 lines (565 loc) · 13.8 KB
/
sound-utils.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
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
#textdomain wesnoth
# Music control macros, and declarations of sound resource lists.
#
# As of 1.1.3, music is parsed as follows:
#! 1. the [scenario]-level [music] tag
#! 2. the [story]-level music key
#! 3. any [event]-level [music] tags
#
# If you change the music at a lower level, the tags above it will NOT
# be re-parsed and your scenario will sound wrong. For example, if
# you set scenario music with the normal [scenario]-level music tag
# but change the music during the [story], it is never reset back to
# normal. Therefore, these macros are intended to catch instances
# like that. Of course, if you want something more elaborate, code it
# manually.
# These macros do not rely on any other macros. Please don't change this.
#define DEFAULT_MUSIC_PLAYLIST_NO_EVENT
[music]
name=knolls.ogg
ms_before=12000
[/music]
[music]
name=wanderer.ogg
ms_before=12000
append=yes
[/music]
[music]
name=battle.ogg
ms_before=12000
append=yes
[/music]
[music]
name=transience.ogg
ms_before=12000
append=yes
[/music]
[music]
name=the_king_is_dead.ogg
ms_before=12000
append=yes
[/music]
[music]
name=knalgan_theme.ogg
ms_before=12000
append=yes
[/music]
[music]
name=the_city_falls.ogg
ms_before=12000
append=yes
[/music]
[music]
name=nunc_dimittis.ogg
ms_before=12000
append=yes
[/music]
[music]
name=revelation.ogg
ms_before=12000
append=yes
[/music]
[music]
name=loyalists.ogg
ms_before=12000
append=yes
[/music]
[music]
name=breaking_the_chains.ogg
ms_before=12000
append=yes
[/music]
[music]
name=elvish-theme.ogg
ms_before=12000
append=yes
[/music]
[music]
name=legends_of_the_north.ogg
ms_before=12000
append=yes
[/music]
[music]
name=traveling_minstrels.ogg
ms_before=12000
append=yes
[/music]
[music]
name=underground.ogg
ms_before=12000
append=yes
[/music]
[music]
name=vengeful.ogg
ms_before=12000
append=yes
[/music]
[music]
name=frantic.ogg
ms_before=12000
append=yes
[/music]
[music]
name=the_dangerous_symphony.ogg
ms_before=12000
append=yes
[/music]
[music]
name=heroes_rite.ogg
ms_before=12000
append=yes
[/music]
[music]
name=suspense.ogg
ms_before=12000
append=yes
[/music]
[music]
name=the_deep_path.ogg
ms_before=12000
append=yes
[/music]
[music]
name=siege_of_laurelmor.ogg
ms_before=12000
append=yes
[/music]
[music]
name=casualties_of_war.ogg
ms_before=12000
append=yes
[/music]
[music]
name=silvan_sanctuary.ogg
ms_before=12000
append=yes
[/music]
[music]
name=battle-epic.ogg
ms_before=12000
append=yes
[/music]
#enddef
#define DEFAULT_MUSIC_PLAYLIST
{DEFAULT_MUSIC_PLAYLIST_NO_EVENT}
[event]
name=prestart
{DEFAULT_MUSIC_PLAYLIST_NO_EVENT}
[/event]
#enddef
#define FULL_MUSIC_PLAYLIST_NO_EVENT
[music]
name=battle-epic.ogg
title= _ "Battle Epic"
ms_before=12000
append=yes
[/music]
[music]
name=battle.ogg
title= _ "Battle Music"
ms_before=12000
append=yes
[/music]
[music]
name=breaking_the_chains.ogg
title= _ "Breaking the Chains"
ms_before=12000
append=yes
[/music]
[music]
name=casualties_of_war.ogg
title= _ "Casualties of War"
ms_before=12000
append=yes
[/music]
[music]
name=elf-land.ogg
title= _ "Elf Land"
ms_before=12000
append=yes
[/music]
[music]
name=elvish-theme.ogg
title= _ "Elvish theme"
ms_before=12000
append=yes
[/music]
[music]
name=frantic.ogg
title= _ "Frantic"
ms_before=12000
append=yes
[/music]
[music]
name=heroes_rite.ogg
title= _ "Heroes Rite"
ms_before=12000
append=yes
[/music]
[music]
name=into_the_shadows.ogg
title= _ "Into the Shadows"
ms_before=12000
append=yes
[/music]
[music]
name=journeys_end.ogg
title= _ "Journey’s End"
ms_before=12000
append=yes
[/music]
[music]
name=knalgan_theme.ogg
title= _ "Knalgan Theme"
ms_before=12000
append=yes
[/music]
[music]
name=knolls.ogg
title= _ "The Knolls of Doldesh"
ms_before=12000
append=yes
[/music]
[music]
name=legends_of_the_north.ogg
title= _ "Legends of the North"
ms_before=12000
append=yes
[/music]
[music]
name=love_theme.ogg
title= _ "Love Theme"
ms_before=12000
append=yes
[/music]
[music]
name=loyalists.ogg
title= _ "Loyalists"
ms_before=12000
append=yes
[/music]
[music]
name=northern_mountains.ogg
title= _ "Over the Northern Mountains"
ms_before=12000
append=yes
[/music]
[music]
name=northerners.ogg
title= _ "Northerners"
ms_before=12000
append=yes
[/music]
[music]
name=nunc_dimittis.ogg
title= _ "Nunc Dimittis"
ms_before=12000
append=yes
[/music]
[music]
name=revelation.ogg
title= _ "Revelation"
ms_before=12000
append=yes
[/music]
[music]
name=sad.ogg
title= _ "Sad"
ms_before=12000
append=yes
[/music]
[music]
name=siege_of_laurelmor.ogg
title= _ "Siege of Laurelmor"
ms_before=12000
append=yes
[/music]
[music]
name=silvan_sanctuary.ogg
title= _ "Silvan Sanctuary"
ms_before=12000
append=yes
[/music]
[music]
name=suspense.ogg
title= _ "Suspense"
ms_before=12000
append=yes
[/music]
[music]
name=the_city_falls.ogg
title= _ "The City Falls"
ms_before=12000
append=yes
[/music]
[music]
name=the_dangerous_symphony.ogg
title= _ "The Dangerous Symphony"
ms_before=12000
append=yes
[/music]
[music]
name=the_deep_path.ogg
title= _ "The Deep Path"
ms_before=12000
append=yes
[/music]
[music]
name=the_king_is_dead.ogg
title= _ "The King is Dead"
ms_before=12000
append=yes
[/music]
[music]
name=transience.ogg
title= _ "Transience"
ms_before=12000
append=yes
[/music]
[music]
name=traveling_minstrels.ogg
title= _ "Traveling Minstrels"
ms_before=12000
append=yes
[/music]
[music]
name=underground.ogg
title= _ "Underground"
ms_before=12000
append=yes
[/music]
[music]
name=vengeful.ogg
title= _ "Vengeful Pursuit"
ms_before=12000
append=yes
[/music]
[music]
name=wanderer.ogg
title= _ "Still Another Wanderer"
ms_before=12000
append=yes
[/music]
[music]
name=weight_of_revenge.ogg
title= _ "Weight of Revenge"
ms_before=12000
append=yes
[/music]
#enddef
#define FULL_MUSIC_PLAYLIST
{FULL_MUSIC_PLAYLIST_NO_EVENT}
[event]
name=prestart
{FULL_MUSIC_PLAYLIST_NO_EVENT}
[/event]
#enddef
#define SCENARIO_MUSIC MUSIC
# This music macro ensures that the correct music is selected
# for a scenario just in case it is changed by [story].
# It should be positioned at the top of the scenario file
# so it can be overridden by other prestart or start events.
#
# It also allows for the convenient use of standardized
# intra-scenario music, should we decide to use one.
[music]
name="revelation.ogg"
[/music]
[event]
name=prestart
[music]
name={MUSIC}
immediate=yes
ms_after=2000
[/music]
[/event]
#enddef
#define EXTRA_SCENARIO_MUSIC MUSIC
# Use this immediately after the above SCENARIO_MUSIC macro to append extra
# tracks to the playlist.
#
# Example:
#! {SCENARIO_MUSIC battle.ogg}
#! {EXTRA_SCENARIO_MUSIC knolls.ogg}
#! {EXTRA_SCENARIO_MUSIC frantic.ogg}
[+event]
[music]
name={MUSIC}
append=yes
[/music]
[/event]
#enddef
#define INTRO_AND_SCENARIO_MUSIC INTRO_MUSIC SCENARIO_MUSIC
# This works as SCENARIO_MUSIC does, except that it allows you to specify
# the music used for the story screen (if any) as well.
[music]
name={INTRO_MUSIC}
immediate=yes
[/music]
[event]
name=prestart
[music]
name={SCENARIO_MUSIC}
immediate=yes
append=no
ms_after=2000
[/music]
[/event]
#enddef
#define LET_INTRO_MUSIC_FINISH
# Use immediately following INTRO_AND_SCENARIO_MUSIC, to let the intro music
# finish before switching to scenario music.
[+event]
[+music]
immediate=no
[/music]
[/event]
#enddef
#define INCIDENTAL_MUSIC MUSIC
# To be played immediately to mark an incident,
# but not appended to the scenario playlist.
# The playlist will be resumed afterwards.
[music]
name={MUSIC}
play_once=yes
[/music]
#enddef
#define APPEND_MUSIC MUSIC
# Append to playlist. Meant to be used after REPLACE_SCENARIO_MUSIC.
[music]
name={MUSIC}
append=yes
[/music]
#enddef
#define REPLACE_SCENARIO_MUSIC MUSIC
# To be used mid-scenario to replace the current playlist.
[music]
name={MUSIC}
immediate=yes
append=no
[/music]
#enddef
# For some animations some units use a list of sounds, from which one is
# randomly picked every time, instead of a single sound. Here the most commonly
# used lists are wrapped inside macros.
#
# These are used in unit .cfg files, for example like this:
#
#! [animation]
#! hits=no
#! start_time=-200
#!
#! [frame]
#! sound={SOUND_LIST:MISS}
#! image="units/dwarves/warrior-attack.png:200"
#! [/frame]
#define SOUND_LIST:HOLY
magic-holy-[1~4].ogg #enddef
#define SOUND_LIST:HOLY_MISS
magic-holy-miss-[1~4].ogg #enddef
#define SOUND_LIST:MISS
miss-[1~3].ogg #enddef
#define SOUND_LIST:THROW
throw-[1~4].wav #enddef
#define SOUND_LIST:SWORD_SWISH
sword-1.ogg #enddef
#define SOUND_LIST:BAT_HIT
bat-hit-[1~4].ogg #enddef
#define SOUND_LIST:DRAKE_HIT
drake-hit-[1~3].ogg #enddef
#define SOUND_LIST:DWARF_HIT
dwarf-hit-[1~4].ogg #enddef
#define SOUND_LIST:DWARF_DIE
dwarf-die-[1~3].ogg #enddef
#define SOUND_LIST:ELF_HIT
human-hit-[1~4].ogg,elf-hit-[1~2].ogg #enddef
#define SOUND_LIST:ELF_FEMALE_HIT
human-female-hit-[1~3].ogg #enddef
#define SOUND_LIST:GOBLIN_HIT
goblin-hit-[1~3].ogg #enddef
#define SOUND_LIST:GOBLIN_DIE
goblin-die-[1~2].ogg #enddef
#define SOUND_LIST:GRYPHON_HIT
gryphon-hit-[1~3].ogg #enddef
#define SOUND_LIST:GRYPHON_DIE
gryphon-die-[1~2].ogg #enddef
#define SOUND_LIST:HORSE_HIT
horse-hit-[1~3].ogg #enddef
#define SOUND_LIST:HUMAN_HIT
human-hit-[1~5].ogg #enddef
#define SOUND_LIST:HUMAN_FEMALE_HIT
human-female-hit-[1~3].ogg #enddef
#define SOUND_LIST:HUMAN_OLD_HIT
human-old-hit-[1~4].ogg #enddef
#define SOUND_LIST:HUMAN_OLD_DIE
human-old-die-[1~3].ogg #enddef
#define SOUND_LIST:HUMAN_DIE
human-die-[1~3].ogg #enddef
#define SOUND_LIST:HUMAN_FEMALE_DIE
human-female-die-[1~3].ogg #enddef
#define SOUND_LIST:LICH_HIT
lich-hit-[1~2].ogg #enddef
#define SOUND_LIST:NAGA_HIT
naga-hit-[1~3].ogg #enddef
#define SOUND_LIST:OGRE_HIT
ogre-hit-[1~4].ogg #enddef
#define SOUND_LIST:OGRE_DIE
ogre-die-[1~3].ogg #enddef
#define SOUND_LIST:ORC_HIT
orc-hit-[1~4].ogg #enddef
#define SOUND_LIST:ORC_DIE
orc-die-[1~3].ogg #enddef
#define SOUND_LIST:ORC_SMALL_HIT
orc-small-hit-[1~4].ogg #enddef
#define SOUND_LIST:ORC_SMALL_DIE
orc-small-die-[1~2].ogg #enddef
#define SOUND_LIST:SKELETON_HIT
skeleton-hit-[1~3].ogg #enddef
#define SOUND_LIST:SKELETON_BIG_HIT
skeleton-big-hit-[1~3].ogg #enddef
#define SOUND_LIST:SKELETON_DIE
skeleton-die-[1~2].ogg #enddef
#define SOUND_LIST:TROLL_HIT
troll-hit-[1~4].ogg #enddef
#define SOUND_LIST:TROLL_DIE
troll-die-[1~3].ogg #enddef
#define SOUND_LIST:WOLF_GROWL
wolf-growl-[1~4].ogg #enddef
#define SOUND_LIST:WOLF_HIT
wolf-hit-[1~3].ogg #enddef
#define SOUND_LIST:WOLF_DIE
wolf-die-[1~4].ogg #enddef
#define SOUND_LIST:ZOMBIE_WEAK_HIT
zombie-hit-[4~6].ogg #enddef
#define SOUND_LIST:ZOMBIE_HIT
zombie-hit-[1~6].ogg #enddef
#define SOUND:HIT_AND_MISS HITSOUND MISSSOUND TIME
# A more convenient way of wiring in hit and miss sounds to an
# attack animation. Just specify the sounds to use and the time
# when they should trigger.
attack_sound_start_time={TIME}
[if]
hits=yes
[attack_sound_frame]
sound={HITSOUND}
[/attack_sound_frame]
[/if]
[else]
hits=no
[attack_sound_frame]
sound={MISSSOUND}
[/attack_sound_frame]
[/else]
#enddef
#define SOUND:HIT HITSOUND TIME
# A more convenient way of wiring in hit only sounds to an
# attack animation. Just specify the sound to use and the time
# when it should trigger.
[if]
hits=yes
attack_sound_start_time={TIME}
[attack_sound_frame]
sound={HITSOUND}
[/attack_sound_frame]
[/if]
#enddef