-
-
Notifications
You must be signed in to change notification settings - Fork 988
/
scenario-test.cfg
4071 lines (3876 loc) · 127 KB
/
scenario-test.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
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#textdomain wesnoth
[binary_path]
path=data/campaigns/Under_the_Burning_Suns
[/binary_path]
[binary_path]
path=data/campaigns/The_Rise_Of_Wesnoth
[/binary_path]
#ifhave campaigns/Under_the_Burning_Suns/units/units.cfg
[units]
{campaigns/Under_the_Burning_Suns/utils/kaleh-abilities.cfg}
{campaigns/Under_the_Burning_Suns/units/units.cfg}
{campaigns/Under_the_Burning_Suns/units/elves/Kaleh.cfg}
[/units]
#endif
[test]
name="Test scenario"
map_data="Mm, Mm, Mm, Mm, Mm^Xm, Mm^Xm, Mm^Xm, Gg, Ww, Gg, Dd, Gg, Aa, Gg, Aa, Gg, Hh, Gg, Mm, Gg, Uu, Gg, Wo, Wo, Ch, Wo, Wo, Wo, Gg, Wo, Wo, Wo, Md, Wo, Wo, Wo, Rd, Wo, Wo
Mm, Mm, Mm, Mm, Mm^Xm, Mm^Xm, Mm^Xm, Gg^Vl, Ww^Vm, Gg, Dd^Vda, Gg, Aa^Vea, Aa^Vla, Aa^Vha, Gg, Hh^Vhh, Gg, Mm^Vhh, Gg, Uu^Vu, Gg, Wo, Wo, Ch, Wo, Wo, Wo, Gg^Fet, Wo, Wo, Wo, Md, Wo, Wo, Wo, Rd^Vov, 3 Wo, Wo
Mm, Mm, Mm, Mm, Mm, Mm^Xm, Gg, Gg, Gg, Uu^Vud, Gg, Dd^Vdt, Gg, Gg^Ve, Gg, Gg^Vh, Gg^Vo, Ha^Vhha, Gg, Gs^Vht, Wo, Wo, Cud, Ch, Wo, Wo, Ds, Gg, Wo, Wo^Fet, Hd^Fet, Md^Fet, Wo^Fet, Wo, Re^Kov, Rd^Cov, Wo, Wo, Wo
Mm, Mm, Gg, Gg, Gg, Gg, Gg, Ch, Ch, Ch, Ch, Gg, Gg, Gg, Gg, Gg, Gg^Vo, Gg^Vo, Gg^Em, Ss^Vhs, Gg, Cud, Wo, Wo, Dd, Ds, Wo, Wo, Ha, Hd, Wo, Wo, Ql^Fet, Re^F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, Gg, Gg, Gg, Gg, Wo, Gg, Wo, Re, Wo, Uu, Uu"
turns=-1
id=test
{DAWN}
{MORNING}
{AFTERNOON}
{DUSK}
{FIRST_WATCH}
{SECOND_WATCH}
current_time=3
victory_music="loyalists.ogg,underground.ogg,revelation.ogg"
defeat_music="sad.ogg"
[side]
no_leader=yes
[leader]
name= "Kaleh"
type=Kaleh
variation=Youth
[modifications]
[object]
[effect]
apply_to=image_mod
add="BLEND(255,0,255,25%)"
[/effect]
[/object]
[/modifications]
random_gender=yes
id="test"
max_hitpoints=90
experience=99
alignment=liminal
[/leader]
side=1
controller=human
suppress_end_turn_confirmation=yes
recruit="Ghost,Troll Whelp,Assassin,Elvish Hero,Elvish Fighter,Elvish Archer,Horseman,Mage,Elvish Shaman,Red Mage,Spearman,Swordsman,Duelist,Fencer,Elvish Captain,Elvish Ranger,Elvish Shyde,Thief,Rogue,White Mage,Mage of Light,Elvish Sharpshooter,Silver Mage,Vampire Bat,Blood Bat,Dread Bat,Soulless,Walking Corpse,Fire Dragon"
gold=2000
village_support=5
team_name="1"
shroud=yes
recall_cost=42
[village]
x,y=9,7
[/village]
[village]
x,y=7,7
[/village]
[unit]
alignment=lawful
x,y=8,11
type=Elvish Outrider
max_hitpoints=12000
hitpoints=12000
max_experience=9999
experience=9000
max_moves=120
vision=12
jamming=5
level=10
name= "UI testing Outrider called Isor"
[status]
#dehydrated=yes
#entangled=yes
poisoned=yes
#entangled=yes
slowed=yes
[/status]
[+modifications]
{TRAIT_LOYAL}
{TRAIT_INTELLIGENT}
{TRAIT_DEXTROUS}
[object]
silent=yes
[effect]
apply_to=remove_attacks
[/effect]
[effect]
apply_to=new_attack
name=sword
#textdomain wesnoth-units
description=_"sword"
#textdomain wesnoth
icon=attacks/greatsword-elven.png
type=blade
[specials]
[drains]
id=life_vortex
name="Life Vortex"
description="Each successful strike in a battle involving this attack causes the attacker to gain the health that his attack removed from the target. This has no effect against nonliving targets."
value=0
add=100
apply_to=both
[/drains]
[heal_on_hit]
id=entropy
name="Entropy"
description="Each successful strike in a battle involving this attack causes the attacker to lose 4 HP. This has no effect against nonliving targets."
[filter_opponent]
[not]
status=not_living
[/not]
[/filter_opponent]
sub=4
apply_to=both
[/heal_on_hit]
[/specials]
range=melee
damage=9
number=5
[/effect]
[effect]
apply_to=new_attack
name=bow
#textdomain wesnoth-units
description=_"bow"
#textdomain wesnoth
icon=attacks/bow-elven.png
type=pierce
[specials]
[drains]
id=empathic_weapon
name="Empathic Weapon"
description="All damage dealt by this attack to a living target is dealt to the user as well"
multiply=-2
[/drains]
[heal_on_hit]
id=rejuvenating_weapon
name="Rejuvenating Weapon (10)"
description="Each successful strike with this weapon heals the user for 10 HP"
value=10
[/heal_on_hit]
[/specials]
range=ranged
damage=9
number=3
[/effect]
[effect]
apply_to=new_attack
name=longbow
#textdomain wesnoth-units
description=_"longbow"
#textdomain wesnoth
icon=attacks/bow-elven-magic.png
type=pierce
[specials]
{WEAPON_SPECIAL_MARKSMAN}
[drains]
id=drains
name="drains 20%"
description="This unit drains health from living units, healing itself for 20% of the amount of damage it deals (rounded down)."
value=20
[/drains]
[heal_on_hit]
id=drains
name="sacrifice 5"
description="Each successful attack costs this unit 5 HP."
sub=5
[/heal_on_hit]
[/specials]
range=ranged
damage=10
number=5
[/effect]
[effect]
apply_to=new_attack
name=life bomb
description="life bomb"
type=impact
[specials]
[heal_on_hit]
id=drains
name="life copy 20"
description="When this attack hits a living unit, the user is healed for 20 HP."
[filter_opponent]
[not]
status=not_living
[/not]
[/filter_opponent]
value=20
[/heal_on_hit]
[/specials]
damage=3
number=2
range=ranged
[/effect]
[/object]
[/modifications]
[abilities]
{ABILITY_SKIRMISHER}
{ABILITY_ILLUMINATES}
[/abilities]
[/unit]
[unit]
x,y=9,7
type="Silver Mage"
generate_name=yes
[/unit]
[unit]
x,y=4,8
type="Elvish Avenger"
id=statue
generate_name=yes
hitpoints=4
vision=15
ellipse=none
[status]
petrified=yes
[/status]
overlays="wesnoth-icon.png~CROP(10,10,20,20)"
[/unit]
[unit]
x,y=14,6
type=Footpad
generate_name=yes
[modifications]
[trait]
id=feral
availability="musthave"
male_name="feral"
female_name="female^feral"
description="Receive at most 40% defense in villages"
[effect]
apply_to=defense
replace=yes
[defense]
village=-60
[/defense]
[/effect]
[/trait]
[trait]
id=overpowered
name="overpowered"
availability=musthave
[effect]
apply_to=attack
increase_attacks=1
increase_damage=1
[/effect]
[/trait]
[/modifications]
[/unit]
[unit]
x,y=12,8
type="Thief"
generate_name=yes
hitpoints=9
[status]
poisoned=yes
entangled=yes
[/status]
[/unit]
[unit]
# Unhealable unit
x,y=9,8
type="Peasant_unhealable"
name="Unhealable"
image_icon="misc/key.png"
generate_name=yes
[status]
unhealable=yes
[/status]
[/unit]
[unit]
# A unit without a portrait.
x,y=18,9
type="Wolf Rider"
generate_name=yes
[/unit]
[unit]
x,y=17,10
type="Elvish Druid"
generate_name=yes
[/unit]
[unit]
# A unit with an old small portrait.
x,y=19,10
type="Thief"
generate_name=yes
[/unit]
[unit]
x,y=17,11
type="Elvish Shyde"
profile="portraits/elves/shyde.png~BLIT(items/gold-coins-large.png)"
generate_name=yes
[/unit]
[unit]
# A unit whose portrait is only shown on the right side.
x,y=18,11
type="White Mage"
gender="female"
generate_name=yes
[/unit]
[unit]
# A unit with a cold attack
x,y=19,11
type="Dark Adept"
generate_name=yes
[modifications]
[object]
silent=yes
[effect]
apply_to=halo
halo=halo/darkens-aura.png
[/effect]
[effect]
apply_to=new_ability
[abilities]
[illuminates]
id=illumination
value=-25
min_value=-25
cumulative=no
name= "darkens"
female_name= "female^darkens"
description= "darkens and stuff"
affect_self=yes
[/illuminates]
[/abilities]
[/effect]
[effect]
apply_to=attack
name=chill wave
increase_attacks=12
[set_specials]
mode=append
[heal_on_hit]
id=sacrifice
name="Sacrifice"
description="This unit sacrifices its own life in order to make more attacks."
value=-5
[/heal_on_hit]
[/set_specials]
[/effect]
[effect]
apply_to=attack
name=shadow wave
increase_attacks=18
[set_specials]
mode=append
[heal_on_hit]
id=sacrifice
name="Greater Sacrifice"
description="This unit sacrifices its own life in order to make more attacks."
value=-6
[/heal_on_hit]
[/set_specials]
[/effect]
[/object]
[/modifications]
[/unit]
[unit]
# Drain tester
x,y=20,7
type="Elvish Champion"
generate_name=yes
{IS_HERO}
[modifications]
[object]
silent=yes
[effect]
apply_to=remove_attacks
[/effect]
[effect]
apply_to=new_attack
name=sword
#textdomain wesnoth-units
description=_"sword"
#textdomain wesnoth
icon=attacks/greatsword-elven.png
type=blade
[specials]
[drains]
id=life_vortex
name="Life Vortex"
description="Each successful strike in a battle involving this attack causes the attacker to gain the health that his attack removed from the target. This has no effect against nonliving targets."
value=0
add=100
apply_to=both
[/drains]
[heal_on_hit]
id=entropy
name="Entropy"
description="Each successful strike in a battle involving this attack causes the attacker to lose 4 HP. This has no effect against nonliving targets."
[filter_opponent]
[not]
status=not_living
[/not]
[/filter_opponent]
sub=4
apply_to=both
[/heal_on_hit]
[/specials]
range=melee
damage=9
number=5
[/effect]
[effect]
apply_to=new_attack
name=bow
#textdomain wesnoth-units
description=_"bow"
#textdomain wesnoth
icon=attacks/bow-elven.png
type=pierce
[specials]
[drains]
id=empathic_weapon
name="Empathic Weapon"
description="All damage dealt by this attack to a living target is dealt to the user as well"
multiply=-2
[/drains]
[heal_on_hit]
id=rejuvenating_weapon
name="Rejuvenating Weapon (10)"
description="Each successful strike with this weapon heals the user for 10 HP"
value=10
[/heal_on_hit]
[/specials]
range=ranged
damage=9
number=3
[/effect]
[effect]
apply_to=new_attack
name=longbow
#textdomain wesnoth-units
description=_"longbow"
#textdomain wesnoth
icon=attacks/bow-elven-magic.png
type=pierce
[specials]
{WEAPON_SPECIAL_MARKSMAN}
[drains]
id=drains
name="drains 20%"
description="This unit drains health from living units, healing itself for 20% of the amount of damage it deals (rounded down)."
value=20
[/drains]
[heal_on_hit]
id=drains
name="sacrifice 5"
description="Each successful attack costs this unit 5 HP."
sub=5
[/heal_on_hit]
[/specials]
range=ranged
damage=10
number=5
[/effect]
[effect]
apply_to=new_attack
name=life bomb
description="life bomb"
type=impact
[specials]
[heal_on_hit]
id=drains
name="life copy 20"
description="When this attack hits a living unit, the user is healed for 20 HP."
[filter_opponent]
[not]
status=not_living
[/not]
[/filter_opponent]
value=20
[/heal_on_hit]
[/specials]
damage=3
number=2
range=ranged
[/effect]
[/object]
[/modifications]
[/unit]
[/side]
[label]
x,y=20,12
text="Enhance Vision"
tooltip="Set the unit's vision to 15."
[/label]
[event]
name=moveto
first_time_only=no
[filter]
x,y=20,12
[/filter]
[message]
speaker=unit
message="Now my Vision value is 15 and I can see 16 hex fields wide."
[/message]
[modify_unit]
[filter]
x,y=20,12
[/filter]
vision=15
[/modify_unit]
[/event]
[label]
x,y=18,7
text="Hero or not?"
tooltip="Toggle the hero status."
[/label]
[event]
name=moveto
first_time_only=no
[filter]
x,y=18,7
[/filter]
[if]
[variable]
name=unit.ellipse
equals="misc/ellipse-hero"
[/variable]
[then]
[message]
speaker=unit
message="I am no longer a hero!"
[/message]
{UNMAKE_HERO $unit.id}
[/then]
[else]
[message]
speaker=unit
message="I am now a hero!"
[/message]
{MAKE_HERO $unit.id}
[/else]
[/if]
[/event]
[label]
x,y=14,10
text="Vision Test"
tooltip="Visibility Check of (8,15)"
[/label]
[event]
name=moveto
first_time_only=no
[filter]
x,y=14,10
[/filter]
[message]
speaker=narrator
icon=wesnoth-icon.png
message="Checking visibility of (8,15)..."
[/message]
[if]
[have_location]
x,y=8,15
[filter_vision]
side=1
respect_fog=no
[/filter_vision]
[/have_location]
[then]
[if]
[have_location]
x,y=8,15
[filter_vision]
side=1
visible=no
respect_fog=no
[/filter_vision]
[/have_location]
[then]
[message]
speaker=narrator
icon=wesnoth-icon.png
message="HORRORS FILTERS ARE ALL TRUE!"
[/message]
[/then]
[else]
[message]
speaker=narrator
icon=wesnoth-icon.png
message="You can see it, can't you?"
[/message]
[if]
[have_location]
x,y=8,15
[filter_vision]
side=1
[/filter_vision]
[/have_location]
[then]
[if]
[have_location]
x,y=8,15
[filter_vision]
side=1
visible=no
[/filter_vision]
[/have_location]
[then]
[message]
speaker=narrator
icon=wesnoth-icon.png
message="HORRORS FILTERS ARE ALL TRUE!"
[/message]
[/then]
[else]
[message]
speaker=narrator
icon=wesnoth-icon.png
message="Clear sailing!"
[/message]
[/else]
[/if]
[/then]
[else]
[if]
[have_location]
x,y=8,15
[filter_vision]
side=1
visible=no
[/filter_vision]
[/have_location]
[then]
[message]
speaker=narrator
icon=wesnoth-icon.png
message="But the fog, it blinds you!"
[/message]
[/then]
[else]
[message]
speaker=narrator
icon=wesnoth-icon.png
message="HORRORS FILTERS ARE ALL FALSE!"
[/message]
[/else]
[/if]
[/else]
[/if]
[/else]
[/if]
[/then]
[else]
[if]
[have_location]
x,y=8,15
[filter_vision]
side=1
visible=no
[/filter_vision]
[/have_location]
[then]
[message]
speaker=narrator
icon=wesnoth-icon.png
message="It is invisible!"
[/message]
[/then]
[else]
[message]
speaker=narrator
icon=wesnoth-icon.png
message="HORRORS FILTERS ARE ALL FALSE!"
[/message]
[/else]
[/if]
[/else]
[/if]
[/event]
[event]
name=attack
[filter]
type="Elvish Shyde"
[/filter]
{MODIFY_UNIT (id=$second_unit.id) side 1}
[/event]
[event]
name=prestart
{VARIABLE teleports_on no}
[/event]
[label]
x,y=20,13
text="Teleport switch"
[/label]
[event]
name=moveto
first_time_only=no
[filter]
x,y=20,13
[/filter]
[if]
[variable]
name=teleports_on
boolean_equals=no
[/variable]
[then]
[tunnel]
id="one"
bidirectional=yes
always_visible=yes
[source]
x=8
y=6
[/source]
[target]
x=20
y=12
[/target]
[filter]
[/filter]
[/tunnel]
[tunnel]
id="two"
bidirectional=no
[source]
x=20
y=14
[/source]
[target]
x=21
y=4
[/target]
[filter]
[/filter]
[/tunnel]
{VARIABLE teleports_on yes}
[message]
speaker=narrator
icon=wesnoth-icon.png
message="Teleporters activated"
[/message]
[/then]
[else]
[tunnel]
id="one,two"
remove=yes
[/tunnel]
{VARIABLE teleports_on no}
[message]
speaker=narrator
icon=wesnoth-icon.png
message="Teleporters deactivated"
[/message]
[/else]
[/if]
[/event]
[side]
type=Orcish Warlord
id="Urug-Telfar"
side=2
controller=ai
canrecruit=yes
recruit="Orcish Grunt,Troll Whelp,Wolf Rider,Orcish Archer,Orcish Assassin,Saurian Skirmisher,Naga Fighter"
gold=40
income=10
team_name="2"
[leader]
type=Orcish Warlord
id="Asir-Ulrug"
x=28
y=18
[/leader]
[unit]
x,y=12,13
type="Orcish Archer"
generate_name=yes
jamming=5
[/unit]
[unit]
x,y=10,7
type="Orcish Archer"
generate_name=yes
[/unit]
[unit]
x,y=18,12
type="Ghost"
name="Steadfast tester"
[modifications]
[object]
silent=yes
[effect]
apply_to=new_ability
[abilities]
{ABILITY_STEADFAST}
[/abilities]
[/effect]
[/object]
[/modifications]
[/unit]
[village]
x,y=26,5
[/village]
[unit]
x,y=24,7
type="Silver Mage"
name= "Hidden Teleporter"
[/unit]
[unit]
x,y=18,10
type="Soulless"
[modifications]
[object]
silent=yes
[effect]
apply_to=attack
increase_damage=50
[/effect]
[effect]
apply_to=hitpoints
increase_total=30
[/effect]
[effect]
apply_to=defense
replace=yes
[defense]
flat=10
[/defense]
[/effect]
[/object]
[/modifications]
[/unit]
[unit]
x,y=20,5
type="Ancient Wose"
id="rithrandil"
name="Rithrandil"
profile="portraits/rithrandil.png"
[modifications]
[object]
[effect]
apply_to=movement
set=0
[/effect]
[/object]
[/modifications]
[/unit]
[unit]
# Drain tester (for undead and default drain)
x,y=21,7
type="Lich"
generate_name=yes
[/unit]
[unit]
# Drain tester
x,y=21,8
type="Elvish Sharpshooter"
generate_name=yes
[modifications]
[object]
silent=yes
[effect]
apply_to=attack
name=sword
[set_specials]
mode=append
[heal_on_hit]
id=fiery
name="fiery 4"
name_inactive="fiery 4"
description="A successful hit against this unit costs the opponent 4 HP."
description_inactive="A successful hit against this unit costs the opponent 4 HP."
sub=4
apply_to=opponent
[/heal_on_hit]
[/set_specials]
[/effect]
[effect]
apply_to=new_attack
name=lifebow
description="lifebow"
icon=attacks/bow-elven-magic.png
type=pierce
[specials]
{WEAPON_SPECIAL_MARKSMAN}
[drains]
id=drains
name="drains 100%"
description="This unit drains health from living units, healing itself for 100% of the amount of damage it deals (rounded down)."
value=100
[/drains]
[/specials]
range=ranged
damage=4
number=5
[/effect]
[/object]
[/modifications]
[/unit]
[/side]
[side]
side=3
controller=ai
team_name="1,2"
type="Gryphon Master"
name="Friendly Explorer"
canrecruit=yes
fog=yes
shroud=yes
share_maps=no
share_view=no
[/side]
[event]
name=turn refresh
first_time_only=no
[if]
[variable]
name=side_number
equals=3
[/variable]
[then]
# This is to work around a broken idle_ai (it moves)
[end_turn]
[/end_turn]
[/then]
[/if]
[/event]
[label]
x,y=1,1
text="Explore the map"
[/label]
[event]
name=moveto
[filter]
side=1
[filter_adjacent]
id=rithrandil
[/filter_adjacent]
[/filter]
[message]
id=rithrandil
message="Hello there"
[/message]
[/event]
#ifdef DEBUG_MODE
[event]
name=select
first_time_only=no
[filter]
type="Wolf Rider"
[/filter]
[message]
speaker=narrator
icon=wesnoth-icon.png
message="Select event triggered on Wolf Rider"
[/message]
[/event]
#endif
#ifhave ~add-ons/Wesnoth_Lua_Pack/_main.cfg
{~add-ons/Wesnoth_Lua_Pack/utils.cfg}
{WLP_QUICK_DEBUG}
#endif
[label]
x,y=14,7
text="Custom dialog"