-
-
Notifications
You must be signed in to change notification settings - Fork 991
/
4p_A_New_Land.cfg
856 lines (748 loc) · 20.7 KB
/
4p_A_New_Land.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
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
#textdomain wesnoth-anl
[multiplayer]
id=multiplayer_A_New_Land
name= _ "4p — A New Land"
map_data="{multiplayer/maps/4p_A_New_Land.map}"
description= _ "This 4p survival scenario allows you to construct buildings and terraform the land. Use map settings. The recommended starting gold is 100."
experience_modifier=70%
turns=unlimited
define=MULTIPLAYER_A_NEW_LAND_LOAD
#ifdef MULTIPLAYER_A_NEW_LAND_LOAD
{DEFAULT_SCHEDULE}
{DEFAULT_MUSIC_PLAYLIST}
# ------------------------------------------------------
# Include ANL macros
# ------------------------------------------------------
{multiplayer/scenarios/ANL_utils}
# ------------------------------------------------------
# Story & Objectives
# ------------------------------------------------------
[story]
[part]
show_title=yes
story= _ "In the aftermath of the great war the remnants of humanity fled to an obscure secluded glen. Though they knew they could not hide from the mighty armies that had crushed their homeland, the leaders of the resistance hoped only for enough time to rebuild their forces."
[/part]
[/story]
[event]
name="start"
[objectives]
side=0
summary="<small>" + _ "Right-click on your leader during your turn for help" + "</small>" # wmllint: no spellcheck
[objective]
description= _ "You must survive until turn 25."
condition=win
[/objective]
[/objectives]
[/event]
#endif
# ------------------------------------------------------
# Side Definitions
# ------------------------------------------------------
# Players
[side]
side=1
canrecruit=yes
controller=human
team_name=1
user_team_name= _ "teamname^Team 1"
team_lock=yes
income_lock=yes
village_gold=2
shroud=no
fog=yes
recruit=Peasant,Mage
faction_from_recruit=yes
[/side]
[side]
side=2
canrecruit=yes
controller=human
team_name=1
user_team_name= _ "teamname^Team 1"
team_lock=yes
income_lock=yes
village_gold=2
shroud=no
fog=yes
recruit=Peasant,Mage
faction_from_recruit=yes
[/side]
[side]
side=3
canrecruit=yes
controller=human
team_name=1
user_team_name= _ "teamname^Team 1"
team_lock=yes
income_lock=yes
village_gold=2
shroud=no
fog=yes
recruit=Peasant,Mage
faction_from_recruit=yes
[/side]
[side]
side=4
canrecruit=yes
controller=human
team_name=1
user_team_name= _ "teamname^Team 1"
team_lock=yes
income_lock=yes
village_gold=2
shroud=no
fog=yes
recruit=Peasant,Mage
faction_from_recruit=yes
[/side]
# AI
[side]
side=5
canrecruit=yes
controller=ai
allow_player=no
team_name=2
user_team_name= _ "teamname^Team 2"
gold=25
recruit=Walking Corpse
income=20
village_gold=2
team_lock=yes
income_lock=yes
type=Death Knight
allow_player=no
#ifdef MULTIPLAYER_A_NEW_LAND_LOAD
[modifications]
{MOVEMENT_RESTRICTION flat shallow_water}
[/modifications]
[ai]
aggression=1.0
recruitment_pattern=fighter
[/ai]
[village]
x,y=10,25
[/village]
#endif
[/side]
[side]
side=6
canrecruit=yes
controller=ai
allow_player=no
team_name=2
user_team_name= _ "teamname^Team 2"
gold=25
recruit=Goblin Spearman
income=20
village_gold=2
team_lock=yes
income_lock=yes
type=Orcish Sovereign
allow_player=no
#ifdef MULTIPLAYER_A_NEW_LAND_LOAD
[modifications]
{MOVEMENT_RESTRICTION flat shallow_water}
[/modifications]
[ai]
aggression=1.0
recruitment_pattern=fighter
[/ai]
[village]
x,y=50,25
[/village]
#endif
[/side]
[side]
side=7
canrecruit=yes
controller=ai
allow_player=no
team_name=2
user_team_name= _ "teamname^Team 2"
gold=25
recruit=Goblin Spearman
income=20
village_gold=2
team_lock=yes
income_lock=yes
type=Orcish Sovereign
allow_player=no
#ifdef MULTIPLAYER_A_NEW_LAND_LOAD
[modifications]
{MOVEMENT_RESTRICTION flat shallow_water}
[/modifications]
[ai]
aggression=1.0
recruitment_pattern=fighter
[/ai]
[village]
x,y=10,30
[/village]
#endif
[/side]
[side]
side=8
canrecruit=yes
controller=ai
allow_player=no
team_name=2
user_team_name= _ "teamname^Team 2"
gold=25
recruit=Walking Corpse
income=20
village_gold=2
team_lock=yes
income_lock=yes
type=Death Knight
allow_player=no
#ifdef MULTIPLAYER_A_NEW_LAND_LOAD
[modifications]
{MOVEMENT_RESTRICTION flat shallow_water}
[/modifications]
[ai]
aggression=1.0
recruitment_pattern=fighter
[/ai]
[village]
x,y=50,30
[/village]
#endif
[/side]
# This side is for trapped units. It is allied to the AI so they don't attack it.
[side]
side=9
canrecruit=no
controller=null
allow_player=no
no_leader=yes
team_name=2
income=0
village_gold=0
team_lock=yes
gold_lock=yes
income_lock=yes
allow_player=no
[ai]
ai_algorithm=idle_ai
[/ai]
[/side]
#ifdef MULTIPLAYER_A_NEW_LAND_LOAD
# ------------------------------------------------------
# ANL Building Logic
# ------------------------------------------------------
[event]
name=prestart
# Players
{SET_SIDE_VARIABLES 1}
{SET_SIDE_VARIABLES 2}
{SET_SIDE_VARIABLES 3}
{SET_SIDE_VARIABLES 4}
{ANL_HELP}
{WORKER_OPTIONS "Peasant"}
{RESEARCH_OPTIONS "Mage,Red Mage,White Mage,Mage of Light,Silver Mage,Arch Mage,Great Mage"}
{LEADER_OPTIONS}
[/event]
# Auto-studying
{AUTO_STUDYING "Mage,Red Mage,White Mage,Mage of Light,Silver Mage,Arch Mage,Great Mage"}
# Research complete messages
[event]
name=side turn
first_time_only=no
[if]
[variable]
name=side_number
less_than_equal_to=4
[/variable]
[then]
{FARMING_RESEARCH_COMPLETE}
{MINING_RESEARCH_COMPLETE}
{WARFARE_RESEARCH_COMPLETE}
[/then]
[/if]
[/event]
# Remove working status from any working units when starting a turn
[event]
name=side turn
first_time_only=no
[store_unit]
[filter]
side=$side_number
[filter_wml]
[status]
worked_this_turn=yes
[/status]
[/filter_wml]
[/filter]
kill=yes
variable=this_side_workers
[/store_unit]
{FOREACH this_side_workers i}
[clear_variable]
name=this_side_workers[$i].status.worked_this_turn
[/clear_variable]
[unstore_unit]
variable=this_side_workers[$i]
[/unstore_unit]
{NEXT i}
[clear_variable]
name=this_side_workers
[/clear_variable]
[/event]
# Auto-working
{AUTO_FARMING "Peasant"}
{AUTO_MINING "Peasant"}
# ------------------------------------------------------
# Scenario Events
# ------------------------------------------------------
[event]
name=prestart
# Placing trapped creatures
{ANL_PLACE_TRAPPED_UNIT 9 Gryphon 24 12}
{ANL_PLACE_TRAPPED_UNIT 9 "Fire Drake" 36 12}
{ANL_PLACE_TRAPPED_UNIT 9 Ogre 24 43}
{ANL_PLACE_TRAPPED_UNIT 9 "Elder Wose" 36 43}
# Placing spiders
{ANL_PLACE_WOUNDED_UNIT 5 "Giant Spider" 29 13 4}
{ANL_PLACE_WOUNDED_UNIT 6 "Giant Spider" 31 13 4}
{ANL_PLACE_WOUNDED_UNIT 7 "Giant Spider" 29 43 4}
{ANL_PLACE_WOUNDED_UNIT 8 "Giant Spider" 31 43 4}
# Initial AI units - Side 5
{ANL_PLACE_UNIT 5 "Walking Corpse" 10 25}
{ANL_PLACE_UNIT 5 "Walking Corpse" 10 25}
{ANL_PLACE_UNIT 5 "Walking Corpse" 10 25}
{ANL_PLACE_GUARDIAN 5 "Revenant" 26 18}
{ANL_PLACE_GUARDIAN 5 "Revenant" 45 32}
{ANL_PLACE_GUARDIAN 5 "Walking Corpse" 13 27}
# Initial AI units - Side 6
{ANL_PLACE_UNIT 6 "Goblin Spearman" 50 25}
{ANL_PLACE_UNIT 6 "Goblin Spearman" 50 25}
{ANL_PLACE_UNIT 6 "Goblin Spearman" 50 25}
{ANL_PLACE_GUARDIAN 6 "Orcish Warrior" 34 18}
{ANL_PLACE_GUARDIAN 6 "Orcish Warrior" 45 24}
{ANL_PLACE_GUARDIAN 6 "Goblin Spearman" 47 27}
# Initial AI units - Side 7
{ANL_PLACE_UNIT 7 "Goblin Spearman" 10 30}
{ANL_PLACE_UNIT 7 "Goblin Spearman" 10 30}
{ANL_PLACE_UNIT 7 "Goblin Spearman" 10 30}
{ANL_PLACE_GUARDIAN 7 "Orcish Warrior" 15 32}
{ANL_PLACE_GUARDIAN 7 "Orcish Warrior" 26 37}
{ANL_PLACE_GUARDIAN 7 "Goblin Spearman" 13 29}
# Initial AI units - Side 8
{ANL_PLACE_UNIT 8 "Walking Corpse" 50 30}
{ANL_PLACE_UNIT 8 "Walking Corpse" 50 30}
{ANL_PLACE_UNIT 8 "Walking Corpse" 50 30}
{ANL_PLACE_GUARDIAN 8 "Revenant" 15 24}
{ANL_PLACE_GUARDIAN 8 "Revenant" 34 37}
{ANL_PLACE_GUARDIAN 8 "Walking Corpse" 47 29}
[/event]
# Setting leader names
[event]
name=new turn
first_time_only=no
{SET_NAMES 1}
{SET_NAMES 2}
{SET_NAMES 3}
{SET_NAMES 4}
[/event]
# Rescuing trapped units
{ANL_RESCUE_TRAPPED_UNIT 25 13 24 12}
{ANL_RESCUE_TRAPPED_UNIT 35 13 36 12}
{ANL_RESCUE_TRAPPED_UNIT 25 43 24 43}
{ANL_RESCUE_TRAPPED_UNIT 35 43 36 43}
# Destroying mushroom mines
[event]
name=moveto
[filter]
x=10
y=25
side=1,2,3,4
[/filter]
[modify_side]
side=5
income=10
[/modify_side]
{MODIFY_TERRAIN Uh $x1 $y1}
[sound]
name=skeleton-die-1.ogg
[/sound]
[message]
speaker=narrator
image=terrain/village/cave-tile.png
message= _ "You destroy the mushroom mine. The northwest undead now have 10 less income."
[/message]
[/event]
[event]
name=moveto
[filter]
x=50
y=25
side=1,2,3,4
[/filter]
[modify_side]
side=6
income=10
[/modify_side]
{MODIFY_TERRAIN Uh $x1 $y1}
[sound]
name=skeleton-die-1.ogg
[/sound]
[message]
speaker=narrator
image=terrain/village/cave-tile.png
message= _ "You destroy the mushroom mine. The northeast orcs now have 10 less income."
[/message]
[/event]
[event]
name=moveto
[filter]
x=10
y=30
side=1,2,3,4
[/filter]
[modify_side]
side=7
income=10
[/modify_side]
{MODIFY_TERRAIN Uh $x1 $y1}
[sound]
name=skeleton-die-1.ogg
[/sound]
[message]
speaker=narrator
image=terrain/village/cave-tile.png
message= _ "You destroy the mushroom mine. The southwest orcs now have 10 less income."
[/message]
[/event]
[event]
name=moveto
[filter]
x=50
y=30
side=1,2,3,4
[/filter]
[modify_side]
side=8
income=10
[/modify_side]
{MODIFY_TERRAIN Uh $x1 $y1}
[sound]
name=skeleton-die-1.ogg
[/sound]
[message]
speaker=narrator
image=terrain/village/cave-tile.png
message= _ "You destroy the mushroom mine. The southeast undead now have 10 less income."
[/message]
[/event]
# Make AI units destroy player’s buildings
# Villages
[event]
name=moveto
first_time_only=no
[filter]
side=5,6,7,8
[filter_location]
terrain=Gg^Vh
[/filter_location]
[/filter]
{MODIFY_TERRAIN "Rd" $x1 $y1}
{PLACE_IMAGE "scenery/village-human-burned2.png" $x1 $y1 }
[sound]
name=torch.ogg
[/sound]
[/event]
# Farms
[event]
name=moveto
first_time_only=no
[filter]
side=5,6,7,8
[filter_location]
terrain=Re^Gvs
[/filter_location]
[/filter]
{MODIFY_TERRAIN "Rd" $x1 $y1}
{PLACE_IMAGE "scenery/castle-ruins.png" $x1 $y1}
[sound]
name=pincers.ogg
[/sound]
[/event]
# Universities & Castles
[event]
name=moveto
first_time_only=no
[filter]
side=5,6,7,8
[filter_location]
terrain=Gg^Ve,Gg^Vea,Ch,Ce,Cv,Chr,Chw,Chs,Ke,Kv,Kh,Khr
[/filter_location]
[/filter]
{MODIFY_TERRAIN "Rd" $x1 $y1}
{PLACE_IMAGE "scenery/rubble.png" $x1 $y1}
[sound]
name=dagger-swish.wav
[/sound]
[sound]
name=club.ogg
[/sound]
[/event]
# Hill mines
[event]
name=moveto
first_time_only=no
[filter]
side=5,6,7,8
[filter_location]
terrain=Hh^Vhh
[/filter_location]
[/filter]
{MODIFY_TERRAIN "Hh" $x1 $y1}
[sound]
name=dagger-swish.wav
[/sound]
[sound]
name=club.ogg
[/sound]
[/event]
# Mountain mines
[event]
name=moveto
first_time_only=no
[filter]
side=5,6,7,8
[filter_location]
terrain=Mm^Vhh
[/filter_location]
[/filter]
{MODIFY_TERRAIN "Mm" $x1 $y1}
[sound]
name=dagger-swish.wav
[/sound]
[sound]
name=club.ogg
[/sound]
[/event]
# ------------------------------------------------------
# Messages
# ------------------------------------------------------
# Telling players about spiders
[event]
name=turn 3
[message]
speaker=narrator
message= _ "One of your peasants has happened upon some spiders’ nests in the north and south."
image=wesnoth-icon.png
[/message]
[message]
side=1,2,3,4
type=Peasant
message= _ "I swear I saw somebody trapped in the spider’s web. Maybe we should rescue him?"
[/message]
{SCROLL_TO 24 12}
[delay]
time=200
[/delay]
{SCROLL_TO 36 12}
[delay]
time=200
[/delay]
{SCROLL_TO 24 43}
[delay]
time=200
[/delay]
{SCROLL_TO 36 43}
[delay]
time=200
[/delay]
[message]
speaker=narrator
message= _ "Move any unit next to these captives and they will join your side. The spiders guarding each captive are currently wounded, the sooner you get there the better chance you have of killing them."
image=wesnoth-icon.png
[/message]
[/event]
# Telling players about mushroom mines
[event]
name=turn 5
[message]
speaker=narrator
message= _ "Your men report strange sounds coming from some caves to the east and west."
image=wesnoth-icon.png
[/message]
[message]
canrecruit=yes
side=1,2,3,4
message= _ "It would seem the enemy has built some underground mushroom mines nearby — it must be where the mainstay of their resources are produced. If we could destroy them our chances wouldn’t nearly be so slim."
[/message]
{SCROLL_TO 10 25}
[delay]
time=200
[/delay]
{SCROLL_TO 10 30}
[delay]
time=200
[/delay]
{SCROLL_TO 50 25}
[delay]
time=200
[/delay]
{SCROLL_TO 50 30}
[delay]
time=200
[/delay]
[message]
speaker=narrator
message= _ "Move any unit onto these villages to destroy the mine. Each one you destroy will reduce the enemy’s income by 10."
image=wesnoth-icon.png
[/message]
[/event]
# Almost there...
[event]
name=turn 23
[message]
side=1,2,3,4
canrecruit=yes
message= _ "This battle is nearly at an end. Victory is close at hand!"
[/message]
[/event]
# Victory!
[event]
name=turn 25
[message]
side=1,2,3,4
canrecruit=yes
message= _ "We have survived the onslaught! The tide of the battle has turned, victory cannot elude us now!"
[/message]
[message]
speaker=narrator
message= _ "You have won the game, but you may continue if you wish..."
image=wesnoth-icon.png
[/message]
[/event]
# Deaths
[event]
name=last breath
[filter]
canrecruit=yes
side=1
[/filter]
[message]
speaker=unit
message= _ "I have fallen, but all is not lost!"
[/message]
[/event]
[event]
name=last breath
[filter]
canrecruit=yes
side=2
[/filter]
[message]
speaker=unit
message= _ "I am done for, but we have yet to lose this battle!"
[/message]
[/event]
[event]
name=last breath
[filter]
canrecruit=yes
side=3
[/filter]
[message]
speaker=unit
message= _ "Comrades, avenge me!"
[/message]
[/event]
[event]
name=last breath
[filter]
canrecruit=yes
side=4
[/filter]
[message]
speaker=unit
message= _ "Do not fear, there is hope for us still!"
[/message]
[/event]
# ------------------------------------------------------
# AI Recruitment Pattern
# ------------------------------------------------------
[event]
name=turn 7
[allow_recruit]
side=6,7
type=Goblin Rouser
[/allow_recruit]
[allow_recruit]
side=5,8
type=Soulless
[/allow_recruit]
[/event]
[event]
name=turn 9
[allow_recruit]
side=6,7
type=Orcish Grunt
[/allow_recruit]
[allow_recruit]
side=5,8
type=Skeleton
[/allow_recruit]
[/event]
[event]
name=turn 11
[allow_recruit]
side=6,7
type=Orcish Archer
[/allow_recruit]
[allow_recruit]
side=5,8
type=Skeleton Archer
[/allow_recruit]
[/event]
[event]
name=turn 13
[allow_recruit]
side=6,7
type=Troll Whelp
[/allow_recruit]
[allow_recruit]
side=5,8
type=Ghoul
[/allow_recruit]
[disallow_recruit]
side=6,7
type=Goblin Spearman,Goblin Rouser
[/disallow_recruit]
[disallow_recruit]
side=5,8
type=Walking Corpse,Soulless
[/disallow_recruit]
[/event]
[event]
name=turn 15
[allow_recruit]
side=6,7
type=Orcish Assassin
[/allow_recruit]
[allow_recruit]
side=5,8
type=Dark Adept
[/allow_recruit]
[/event]
[event]
name=turn 17
[gold]
side=5,6,7,8
amount=50
[/gold]
[allow_recruit]
side=6,7
type=Troll,Orcish Crossbowman,Orcish Warrior
[/allow_recruit]
[allow_recruit]
side=5,8
type=Necrophage,Bone Shooter,Revenant
[/allow_recruit]
[/event]
#endif
[/multiplayer]