/
actionwml.cfg
1531 lines (1526 loc) · 36.4 KB
/
actionwml.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
#define ACTION_TAG NAME EXTRA
[tag]
name="{NAME}"
super="$action_wml"
{EXTRA}
[/tag]
#enddef
#define SHOW_IF_TAG
[tag]
name="show_if"
super="$conditional_wml"
[/tag]
#enddef
#define COLOR_KEYS TYPE
{SIMPLE_KEY red {TYPE}}
{SIMPLE_KEY green {TYPE}}
{SIMPLE_KEY blue {TYPE}}
#enddef
#define FORMATTING_KEYS
{SIMPLE_KEY font string}
{SIMPLE_KEY font_family string}
{SIMPLE_KEY font_size font_size}
{SIMPLE_KEY font_style font_style}
{SIMPLE_KEY font_weight font_weight}
{SIMPLE_KEY font_variant font_variant}
{SIMPLE_KEY font_stretch font_stretch}
{SIMPLE_KEY color html_color}
{SIMPLE_KEY bgcolor html_color}
{SIMPLE_KEY underline font_underline}
{SIMPLE_KEY underline_color html_color}
{SIMPLE_KEY rise s_int}
{SIMPLE_KEY strikethrough s_bool}
{SIMPLE_KEY strikethrough_color html_color}
{SIMPLE_KEY fallback s_bool}
{SIMPLE_KEY letter_spacing s_unsigned}
{SIMPLE_KEY gravity font_gravity}
{SIMPLE_KEY gravity_hint font_gravity_hint}
#enddef
[tag]
name="$action_wml"
max=0
{INSERT_TAG}
{ACTION_TAG "command" max=infinite}
[link]
name="event"
[/link]
[link]
name="lua"
[/link]
# Flow control (ConditionalActionsWML)
[tag]
name="if"
max=infinite
super="$conditional_wml"
{ACTION_TAG "then" max=infinite}
[tag]
name="elseif"
max=infinite
super="$conditional_wml"
{ACTION_TAG "then" max=infinite}
[/tag]
{ACTION_TAG "else" max=infinite}
[/tag]
[tag]
name="switch"
max=infinite
{REQUIRED_KEY variable string}
{INSERT_TAG}
[tag]
name="case"
max=infinite
super="$action_wml"
{REQUIRED_KEY value string}
[/tag]
{ACTION_TAG "else" max=infinite}
[/tag]
[tag]
name="while"
max=infinite
super="$conditional_wml"
{ACTION_TAG "do" min,max=0,infinite}
[tag]
name="do"
max=infinite
super="$action_wml"
[/tag]
[/tag]
[tag]
name="for"
max=infinite
{SIMPLE_KEY variable string}
{INSERT_TAG}
[if]
glob_on_array=*
[then]
{SIMPLE_KEY array string}
{DEFAULT_KEY reverse s_bool no}
[/then]
[else]
{SIMPLE_KEY start s_int}
{SIMPLE_KEY end s_int}
{SIMPLE_KEY step s_int}
[/else]
[/if]
{ACTION_TAG "do" min,max=0,infinite}
[/tag]
[tag]
name="foreach"
max=infinite
{INSERT_TAG}
{SIMPLE_KEY array string}
{SIMPLE_KEY variable string}
{SIMPLE_KEY index_var string}
{DEFAULT_KEY readonly s_bool no}
{ACTION_TAG "do" min,max=0,infinite}
[/tag]
[tag]
name="repeat"
max=infinite
{INSERT_TAG}
{SIMPLE_KEY times s_int}
{ACTION_TAG "do" min,max=0,infinite}
[/tag]
# Direct actions (DirectActionsWML)
[tag]
name="endlevel"
max=infinite
{INSERT_TAG}
{DEFAULT_KEY result endlevel_result victory}
{SIMPLE_KEY side s_unsigned}
{DEFAULT_KEY bonus s_bool,s_unsigned yes}
{DEFAULT_KEY carryover_report s_bool yes}
{DEFAULT_KEY save s_bool yes}
{DEFAULT_KEY replay_save s_bool yes}
{DEFAULT_KEY linger_mode s_bool yes}
{DEFAULT_KEY reveal_map s_bool yes}
{SIMPLE_KEY next_scenario string}
{SIMPLE_KEY carryover_percentage int}
{DEFAULT_KEY carryover_add s_bool no}
{SIMPLE_KEY music string_list}
{DEFAULT_KEY end_credits s_bool yes}
{SIMPLE_KEY end_text t_string}
{SIMPLE_KEY end_text_duration s_unsigned}
[tag]
name="result"
max=infinite
{INSERT_TAG}
{REQUIRED_KEY result endlevel_result}
{REQUIRED_KEY side s_unsigned}
{DEFAULT_KEY bonus s_bool,s_unsigned yes}
{SIMPLE_KEY carryover_percentage int}
{DEFAULT_KEY carryover_add s_bool no}
[/tag]
[/tag]
[tag]
name="unit"
max=infinite
super="units/$unit"
{INSERT_TAG}
{DEFAULT_KEY animate s_bool no}
{SIMPLE_KEY to_variable string}
[/tag]
[tag]
name="recall"
max=infinite
super="$filter_unit,$action_wml/role/auto_recall"
{INSERT_TAG}
{FILTER_TAG "secondary_unit" unit {INSERT_TAG}}
[/tag]
[tag]
name="teleport"
max=infinite
{INSERT_TAG}
{FILTER_TAG "filter" unit {INSERT_TAG}}
{SIMPLE_KEY x s_int}
{SIMPLE_KEY y s_int}
{DEFAULT_KEY clear_shroud s_bool yes}
{DEFAULT_KEY animate s_bool no}
{DEFAULT_KEY check_passability s_bool yes}
[/tag]
[tag]
name="terrain_mask"
max=infinite
{INSERT_TAG}
{SIMPLE_KEY x s_int}
{SIMPLE_KEY y s_int}
{SIMPLE_KEY mask map_data}
{SIMPLE_KEY mask_file string}
{DEFAULT_KEY border s_bool no}
[tag]
name="rule"
max=infinite
{INSERT_TAG}
{SIMPLE_KEY old terrain_list}
{SIMPLE_KEY new terrain_list}
{SIMPLE_KEY terrain terrain_code}
{DEFAULT_KEY layer terrain_layer both}
{DEFAULT_KEY replace_if_failed s_bool no}
{DEFAULT_KEY use_old s_bool no}
[/tag]
[/tag]
[tag]
name="terrain"
max=infinite
super="$filter_location"
{INSERT_TAG}
{REQUIRED_KEY terrain terrain_code}
{DEFAULT_KEY layer terrain_layer both}
{DEFAULT_KEY replace_if_failed s_bool no}
[/tag]
[tag]
name="gold"
max=infinite
super="$filter_side"
{INSERT_TAG}
{REQUIRED_KEY amount s_int}
[/tag]
[tag]
name="unstore_unit"
max=infinite
{INSERT_TAG}
{REQUIRED_KEY variable string}
{DEFAULT_KEY find_vacant s_bool no}
{DEFAULT_KEY check_passability s_bool yes}
{SIMPLE_KEY text t_string}
{SIMPLE_KEY male_text t_string}
{SIMPLE_KEY female_text t_string}
{COLOR_KEYS s_unsigned} # TODO: These are probably deprecated?
{SIMPLE_KEY color s_color}
{DEFAULT_KEY advance s_bool yes}
{DEFAULT_KEY fire_event s_bool no}
{DEFAULT_KEY animate s_bool yes}
{SIMPLE_KEY x s_coordinates}
{SIMPLE_KEY y s_coordinates}
[/tag]
[tag]
name="allow_recruit,disallow_recruit,set_recruit"
max=infinite
super="$filter_side"
{INSERT_TAG}
{REQUIRED_KEY types string_list}
[/tag]
[tag]
name="allow_extra recruit,disallow_extra_recruit,set_recruit"
max=infinite
super="$filter_unit"
{INSERT_TAG}
{REQUIRED_KEY extra_recruit string_list}
[/tag]
[tag]
name="modify_side"
max=infinite
{INSERT_TAG}
{FILTER_TAG "filter_side" side {INSERT_TAG}}
{SIMPLE_KEY side s_int}
{SIMPLE_KEY income s_int}
{SIMPLE_KEY recruit string_list}
{SIMPLE_KEY team_name string}
{SIMPLE_KEY side_name string}
{SIMPLE_KEY user_team_name t_string}
{SIMPLE_KEY gold s_int}
{SIMPLE_KEY village_gold s_int}
{SIMPLE_KEY controller controller}
{SIMPLE_KEY fog s_bool}
{SIMPLE_KEY shroud s_bool}
{SIMPLE_KEY hidden s_bool}
{SIMPLE_KEY color string}
{SIMPLE_KEY switch_ai string}
{SIMPLE_KEY reset_maps s_bool}
{SIMPLE_KEY reset_view s_bool}
{SIMPLE_KEY share_vision share_vision}
{DEPRECATED_KEY share_maps s_bool}
{DEPRECATED_KEY share_view s_bool}
{SIMPLE_KEY shroud_data shroud_data}
{SIMPLE_KEY suppress_end_turn_confirmation s_bool}
{SIMPLE_KEY scroll_to_leader s_bool}
{SIMPLE_KEY flag string}
{SIMPLE_KEY flag_icon string}
{SIMPLE_KEY village_support s_int}
{SIMPLE_KEY defeat_condition defeat_condition}
[tag]
name="ai"
super="$side/ai"
{INSERT_TAG}
[/tag]
[/tag]
[tag]
name="modify_turns"
max=infinite
{INSERT_TAG}
{SIMPLE_KEY value s_unsigned,turns}
{SIMPLE_KEY add s_int}
{SIMPLE_KEY current s_unsigned}
[/tag]
{EMPTY_TAG "allow_end_turn,disallow_end_turn" 0 infinite}
[tag]
name="capture_village"
max=infinite
super="$filter_location"
{INSERT_TAG}
{SIMPLE_KEY side s_unsigned}
{DEFAULT_KEY fire_event s_bool no}
{FILTER_TAG "filter_side" side {INSERT_TAG}}
[/tag]
[tag]
name="kill"
max=infinite
super="$filter_unit"
{INSERT_TAG}
{SIMPLE_KEY animate s_bool}
{SIMPLE_KEY fire_event s_bool}
{FILTER_TAG "secondary_unit" unit {INSERT_TAG}}
{FILTER_TAG "primary_attack" weapon {INSERT_TAG}}
{FILTER_TAG "secondary_attack" weapon {INSERT_TAG}}
[/tag]
[tag]
name="move_unit"
max=infinite
super="$filter_unit"
{INSERT_TAG}
{SIMPLE_KEY to_x s_range_list}
{SIMPLE_KEY to_y s_range_list}
{SIMPLE_KEY to_location string}
{DEFAULT_KEY fire_event s_bool no}
{DEFAULT_KEY check_passability s_bool yes}
{SIMPLE_KEY force_scroll s_bool}
[/tag]
[tag]
name="modify_ai"
super="$ai/modify_ai"
{INSERT_TAG}
[/tag]
[tag]
name="modify_unit"
max=infinite
super="units/$unit"
{INSERT_TAG}
{FILTER_TAG "filter" unit {INSERT_TAG}}
{SIMPLE_KEY mode string} # TODO: This is undocumented and it's unclear what's allowed here; probably should be an enum though?
[link]
name="units/$modifications/trait"
[/link]
[link]
name="units/$modifications/advancement"
[/link]
[link]
name="units/$modifications/object"
[/link]
[link]
name="units/$modifications/base/effect"
[/link]
[/tag]
[tag]
name="transform_unit"
max=infinite
super="$filter_unit"
{INSERT_TAG}
{SIMPLE_KEY transform_to string}
[/tag]
{FILTER_TAG "petrify,unpetrify" unit (
max=infinite
{INSERT_TAG}
)}
[tag]
name="object"
max=infinite
super="units/$modifications/object"
{INSERT_TAG}
{DEFAULT_KEY take_only_once s_bool yes}
{DEFAULT_KEY delayed_variable_substitution s_bool no}
{SIMPLE_KEY silent s_bool}
{SIMPLE_KEY image string}
{SIMPLE_KEY name t_string}
{SIMPLE_KEY description t_string}
{SIMPLE_KEY cannot_use_message t_string}
{FILTER_TAG "filter" unit {INSERT_TAG}}
{ACTION_TAG "then" ()}
{ACTION_TAG "else" ()}
[/tag]
[tag]
name="remove_object"
max=infinite
super="$filter_unit"
{INSERT_TAG}
{SIMPLE_KEY object_id string}
[/tag]
[tag]
name="place_shroud"
max=infinite
super="$filter_location"
{INSERT_TAG}
{SIMPLE_KEY side s_unsigned}
{FILTER_TAG "filter_side" side {INSERT_TAG}}
[/tag]
[tag]
name="lift_fog"
max=infinite
super="$filter_location"
{INSERT_TAG}
{FILTER_TAG "filter_side" side {INSERT_TAG}}
{DEFAULT_KEY multiturn s_bool no}
[/tag]
[tag]
name="reset_fog"
max=infinite
super="$filter_location"
{INSERT_TAG}
{FILTER_TAG "filter_side" side {INSERT_TAG}}
{DEFAULT_KEY reset_view s_bool no}
[/tag]
{EMPTY_TAG "allow_undo,cancel_action" 0 infinite}
{ACTION_TAG "on_undo" (
max=infinite
{DEFAULT_KEY delayed_variable_substitution s_bool no}
)}
[tag]
name="heal_unit"
max=infinite
{INSERT_TAG}
{FILTER_TAG "filter" unit {INSERT_TAG}}
{FILTER_TAG "filter_second" unit {INSERT_TAG}}
{SIMPLE_KEY amount heal_amount}
{DEFAULT_KEY animate s_bool no}
{DEFAULT_KEY moves heal_amount 0}
{DEFAULT_KEY restore_attacks s_bool no}
{DEFAULT_KEY restore_statuses s_bool yes}
[/tag]
[tag]
name="harm_unit"
max=infinite
{INSERT_TAG}
{FILTER_TAG "filter" unit (
min=1
{INSERT_TAG}
)}
{FILTER_TAG "filter_second" unit {INSERT_TAG}}
{REQUIRED_KEY amount s_int}
{SIMPLE_KEY alignment alignment}
{SIMPLE_KEY damage_type string}
{DEFAULT_KEY kill s_bool yes}
{DEFAULT_KEY fire_event s_bool no}
{DEFAULT_KEY animate s_bool no}
{DEFAULT_KEY delay s_unsigned 500}
{SIMPLE_KEY variable string}
{DEFAULT_KEY poisoned s_bool no}
{DEFAULT_KEY slowed s_bool no}
{DEFAULT_KEY petrified s_bool no}
{DEFAULT_KEY unhealable s_bool no}
{DEFAULT_KEY experience s_bool no}
{DEFAULT_KEY resistance_modifier s_real 1}
{FILTER_TAG "primary_attack" weapon {INSERT_TAG}}
{FILTER_TAG "secondary_attack" weapon {INSERT_TAG}}
[/tag]
[tag]
name="time_area"
max=infinite
super="scenario/time_area,$filter_location"
{INSERT_TAG}
{SIMPLE_KEY id string} # TODO: Is this allowed in scenario-level areas too?
{DEFAULT_KEY remove s_bool no}
{SIMPLE_KEY current_time s_unsigned}
[/tag]
[tag]
name="remove_time_area"
max=infinite
{INSERT_TAG}
{REQUIRED_KEY id string}
[/tag]
{EMPTY_TAG "end_turn" 0 infinite}
[tag]
name="replace_map"
max=infinite
{INSERT_TAG}
{SIMPLE_KEY map map_data}
{SIMPLE_KEY map_file string}
{DEFAULT_KEY expand s_bool no}
{DEFAULT_KEY shrink s_bool no}
[/tag]
[tag]
name="replace_schedule"
max=infinite
{INSERT_TAG}
[link]
name="scenario/time"
[/link]
{SIMPLE_KEY current_time s_unsigned}
[/tag]
[tag]
name="tunnel"
max=infinite
super="units/unit_type~core/abilities/teleport/tunnel"
{INSERT_TAG}
{SIMPLE_KEY id string}
{DEFAULT_KEY remove s_bool no}
[/tag]
[tag]
name="do_command"
max=infinite
{INSERT_TAG}
# TODO: Move these to SaveWML schema and link them from here?
[tag]
name="attack"
{INSERT_TAG}
{SIMPLE_KEY weapon int}
{SIMPLE_KEY defender_weapon int}
[tag]
name="source"
{SIMPLE_KEY x int}
{SIMPLE_KEY y int}
[/tag]
[tag]
name="destination"
{SIMPLE_KEY x int}
{SIMPLE_KEY y int}
[/tag]
[/tag]
[tag]
name="move"
{SIMPLE_KEY x int}
{SIMPLE_KEY y int}
{SIMPLE_KEY skip_sighted string} # TODO: Make this an enum type
[/tag]
[tag]
name="recruit"
{INSERT_TAG}
{SIMPLE_KEY type string}
{SIMPLE_KEY x int}
{SIMPLE_KEY y int}
[tag]
name="from"
{SIMPLE_KEY x int}
{SIMPLE_KEY y int}
[/tag]
[/tag]
[tag]
name="recall"
{INSERT_TAG}
{SIMPLE_KEY value string}
{SIMPLE_KEY x int}
{SIMPLE_KEY y int}
[tag]
name="from"
{SIMPLE_KEY x int}
{SIMPLE_KEY y int}
[/tag]
[/tag]
[tag]
name="disband"
{SIMPLE_KEY value string}
[/tag]
[tag]
name="fire_event"
{INSERT_TAG}
{SIMPLE_KEY raise string}
[tag]
name="source"
{SIMPLE_KEY x int}
{SIMPLE_KEY y int}
[/tag]
[tag]
name="set_variable"
deprecated=yes
{SIMPLE_KEY name string}
{SIMPLE_KEY value string}
[/tag]
[/tag]
[tag]
name="lua_ai"
deprecated=yes
{SIMPLE_KEY code string}
[/tag]
[tag]
name="custom_command"
{SIMPLE_KEY name string}
{DATA_TAG "data" 1 1}
[/tag]
[/tag]
[tag]
name="put_to_recall_list"
max=infinite
super="$filter_unit"
{INSERT_TAG}
{DEFAULT_KEY heal s_bool no}
[/tag]
# Display actions (InterfaceActionsWML)
[tag]
name="inspect"
max=infinite
{SIMPLE_KEY name string}
[/tag]
[tag]
name="message"
max=infinite
super="$filter_unit"
{INSERT_TAG}
{SIMPLE_KEY speaker string}
{SIMPLE_KEY message t_string}
{SIMPLE_KEY male_message t_string}
{SIMPLE_KEY female_message t_string}
{SIMPLE_KEY wait_description t_string}
{SIMPLE_KEY side_for s_range_list}
{SIMPLE_KEY image string}
{SIMPLE_KEY mirror s_bool}
{SIMPLE_KEY second_image string}
{SIMPLE_KEY second_mirror s_bool}
{SIMPLE_KEY image_pos image_pos}
{SIMPLE_KEY caption t_string}
{DEFAULT_KEY scroll s_bool yes}
{DEFAULT_KEY highlight s_bool yes}
{SIMPLE_KEY sound string_list}
{SIMPLE_KEY voice string_list}
{SIMPLE_KEY variable string}
{FORMATTING_KEYS}
{SHOW_IF_TAG}
[tag]
name="option"
max=infinite
{INSERT_TAG}
{DEPRECATED_KEY message t_string}
{SIMPLE_KEY image string}
{SIMPLE_KEY label t_string}
{SIMPLE_KEY description t_string}
{SIMPLE_KEY default s_bool}
{SIMPLE_KEY value string}
{SHOW_IF_TAG}
{ACTION_TAG "command" max=infinite}
[/tag]
[tag]
name="text_input"
{SIMPLE_KEY variable string}
{SIMPLE_KEY label t_string}
{SIMPLE_KEY max_length s_unsigned}
{SIMPLE_KEY text string}
[/tag]
[/tag]
[tag]
name="objectives"
max=infinite
super="$filter_side"
{INSERT_TAG}
{SIMPLE_KEY bullet string}
{SIMPLE_KEY summary t_string}
{SIMPLE_KEY note t_string}
{SIMPLE_KEY victory_string t_string}
{SIMPLE_KEY defeat_string t_string}
{SIMPLE_KEY gold_carryover_string t_string}
{SIMPLE_KEY notes_string t_string}
{DEFAULT_KEY silent s_bool no}
{DEFAULT_KEY delayed_variable_substitution s_bool no}
[tag]
name="objective~base"
max=0
{SIMPLE_KEY bullet string}
{COLOR_KEYS s_unsigned}
{SHOW_IF_TAG}
[/tag]
[tag]
name="objective"
max=infinite
super="$action_wml/objectives/objective~base"
{SIMPLE_KEY description t_string}
{SIMPLE_KEY caption t_string}
{SIMPLE_KEY condition objective_condition}
{DEFAULT_KEY show_turn_counter s_bool no}
[/tag]
[tag]
name="gold_carryover"
max=infinite
super="$action_wml/objectives/objective~base"
{SIMPLE_KEY bonus s_bool}
{SIMPLE_KEY carryover_percentage int}
[/tag]
[tag]
name="note"
max=infinite
super="$action_wml/objectives/objective~base"
{SIMPLE_KEY description t_string}
[/tag]
[/tag]
[tag]
name="set_menu_item"
max=infinite
{INSERT_TAG}
{SIMPLE_KEY id string}
{SIMPLE_KEY description t_string}
{SIMPLE_KEY image string}
{DEPRECATED_KEY needs_select s_bool}
{DEFAULT_KEY synced s_bool yes}
{DEFAULT_KEY use_hotkey s_bool yes}
{SHOW_IF_TAG}
{FILTER_TAG "filter_location" location {INSERT_TAG}}
{ACTION_TAG "command" {DEFAULT_KEY delayed_variable_substitution s_bool yes}}
[tag]
name="default_hotkey"
{SIMPLE_KEY key string}
{SIMPLE_KEY alt bool}
{SIMPLE_KEY ctrl bool}
{SIMPLE_KEY shift bool}
{SIMPLE_KEY cmd bool}
{DEFAULT_KEY repeat_on_hold s_bool no}
[/tag]
[/tag]
[tag]
name="clear_menu_item"
max=infinite
{REQUIRED_KEY id string}
[/tag]
[tag]
name="change_theme"
max=infinite
{REQUIRED_KEY theme string}
[/tag]
[tag]
name="item"
max=infinite
super="$filter_location,scenario/item"
{INSERT_TAG}
{DEFAULT_KEY redraw s_bool yes}
{SIMPLE_KEY write_name string}
{SIMPLE_KEY name string}
# Override some supertag keys to allow variable substitutions
{DEFAULT_KEY visible_in_fog s_bool yes}
[/tag]
[tag]
name="remove_item"
max=infinite
super="$filter_location"
{INSERT_TAG}
{SIMPLE_KEY image string}
[/tag]
[tag]
name="print"
max=infinite
{SIMPLE_KEY text t_string}
{SIMPLE_KEY size s_unsigned}
{SIMPLE_KEY duration s_unsigned}
{COLOR_KEYS s_unsigned}
[/tag]
[tag]
name="$fake_unit"
max=0
{SIMPLE_KEY type string}
{SIMPLE_KEY x s_range_list}
{SIMPLE_KEY y s_range_list}
{SIMPLE_KEY side s_unsigned}
{SIMPLE_KEY gender gender}
{SIMPLE_KEY variation string}
{SIMPLE_KEY image_mods string}
[/tag]
[tag]
name="move_unit_fake"
max=infinite
super="$action_wml/$fake_unit"
{DEFAULT_KEY force_scroll s_bool yes}
[/tag]
[tag]
name="move_units_fake"
max=infinite
{INSERT_TAG}
{DEFAULT_KEY force_scroll s_bool no}
[tag]
name="fake_unit"
super="$action_wml/$fake_unit"
{SIMPLE_KEY skip_steps s_unsigned}
[/tag]
[/tag]
{FILTER_TAG "hide_unit,unhide_unit" unit (
max=infinite
{INSERT_TAG}
)}
{EMPTY_TAG "lock_view,unlock_view" 0 infinite}
[tag]
name="scroll"
max=infinite
{INSERT_TAG}
{SIMPLE_KEY x s_int}
{SIMPLE_KEY y s_int}
{SIMPLE_KEY side s_unsigned}
{FILTER_TAG "filter_side" side {INSERT_TAG}}
[/tag]
[tag]
name="scroll_to"
max=infinite
super="$filter_location"
{INSERT_TAG}
{DEFAULT_KEY check_fogged s_bool no}
{DEFAULT_KEY immediate s_bool no}
{DEFAULT_KEY highlight s_bool no}
{SIMPLE_KEY side s_unsigned}
{FILTER_TAG "filter_side" side {INSERT_TAG}}
[/tag]
[tag]
name="scroll_to_unit"
max=infinite
super="$filter_unit"
{INSERT_TAG}
{DEFAULT_KEY check_fogged s_bool no}
{DEFAULT_KEY immediate s_bool no}
{DEFAULT_KEY highlight s_bool no}
{SIMPLE_KEY for_side s_unsigned}
{FILTER_TAG "for_side" side {INSERT_TAG}}
[/tag]
[tag]
name="select_unit"
max=infinite
super="$filter_unit"
{INSERT_TAG}
{DEFAULT_KEY fire_event s_bool no}
{DEFAULT_KEY highlight s_bool yes}
[/tag]
[tag]
name="sound"
max=infinite
{REQUIRED_KEY name string_list}
{DEFAULT_KEY repeat s_unsigned 0}
[/tag]
[tag]
name="sound_source"
max=infinite
{SIMPLE_KEY id string}
{SIMPLE_KEY sounds string_list}
{SIMPLE_KEY delay s_unsigned}
{SIMPLE_KEY chance s_unsigned}
{SIMPLE_KEY check_fogged s_bool}
{SIMPLE_KEY check_shrouded s_bool}
{SIMPLE_KEY x s_range_list}
{SIMPLE_KEY y s_range_list}
{DEFAULT_KEY fade_range s_unsigned 3}
{DEFAULT_KEY full_range s_unsigned 14}
{SIMPLE_KEY loop s_int}
[/tag]
[tag]
name="story"
max=infinite
super="scenario/story"
[/tag]
[link]
name="titlescreen_music/music"
[/link]
[tag]
name="volume"
max=infinite
{SIMPLE_KEY music s_unsigned}
{SIMPLE_KEY sound s_unsigned}
[/tag]
[tag]
name="color_adjust"
max=infinite
{COLOR_KEYS s_int}
[/tag]
[tag]
name="delay"
max=infinite
{REQUIRED_KEY time s_unsigned}
{DEFAULT_KEY accelerate s_bool no}
[/tag]
[tag]
name="redraw"
max=infinite
super="$filter_side"
{INSERT_TAG}
{DEFAULT_KEY clear_shroud s_bool no}
{SIMPLE_KEY side s_unsigned}
[/tag]
[tag]
name="unit_overlay,remove_unit_overlay"
max=infinite
super="$filter_unit"
{INSERT_TAG}
{REQUIRED_KEY image string}
[/tag]
[tag]
name="animate_unit"
max=infinite
{REQUIRED_KEY flag string}
{SIMPLE_KEY hits anim_hits}
{SIMPLE_KEY text t_string}
{SIMPLE_KEY male_text t_string}
{SIMPLE_KEY female_text t_string}
{COLOR_KEYS s_unsigned}
{SIMPLE_KEY with_bars s_bool}
{FILTER_TAG "filter" unit {INSERT_TAG}}
{FILTER_TAG "primary_attack" weapon {INSERT_TAG}}
{FILTER_TAG "secondary_attack" weapon {INSERT_TAG}}
{FILTER_TAG "facing" location {INSERT_TAG}}
[tag]
name="animate"
super="$action_wml/animate_unit"
# TODO: [filter] is now mandatory rather than optional...
# TODO: Also, is nested [aniamte] allowed?
[/tag]
[/tag]
[tag]
name="label"
max=infinite
super="scenario/label,$filter_location"
{INSERT_TAG}
[/tag]
[tag]
name="floating_text"
max=infinite
super="$filter_location"
{INSERT_TAG}
{REQUIRED_KEY text t_string}
{SIMPLE_KEY color s_color}
[/tag]
[tag]
name="deprecated_message"
max=infinite
{SIMPLE_KEY message string}
{SIMPLE_KEY level deprecation_level}
{SIMPLE_KEY what string}
{SIMPLE_KEY version version}
[/tag]
[tag]
name="wml_message"
max=infinite
{SIMPLE_KEY message string}
{SIMPLE_KEY logger logger}
[/tag]
[tag]
name="test_condition"
max=infinite
super="$conditional_wml"
{DEFAULT_KEY result s_bool no}
{SIMPLE_KEY logger logger}
[/tag]
[tag]
name="open_help"
max=infinite
{SIMPLE_KEY topic string}
[/tag]
[tag]
name="show_objectives"
max=infinite
super="$filter_side"
{INSERT_TAG}
[/tag]
[tag]
name="chat"
max=infinite
super="$filter_side"
{INSERT_TAG}
{DEFAULT_KEY speaker string "WML"}
{REQUIRED_KEY message string}
{DEFAULT_KEY observable s_bool yes}
[/tag]
[tag]
name="zoom"
max=infinite
{SIMPLE_KEY factor s_unsigned}
{SIMPLE_KEY relative s_bool}
[/tag]
# Internal actions (InternalActionsWML)
[tag]
name="set_variable"
max=infinite
{INSERT_TAG}
{REQUIRED_KEY name string}
{SIMPLE_KEY value string}
{SIMPLE_KEY literal string}
{SIMPLE_KEY to_variable string}
{SIMPLE_KEY suffix string}
{SIMPLE_KEY prefix string}
{SIMPLE_KEY add s_real}
{SIMPLE_KEY sub s_real}
{SIMPLE_KEY multiply s_real}
{SIMPLE_KEY divide s_real}
{SIMPLE_KEY modulo s_real}
{SIMPLE_KEY abs s_bool}
{SIMPLE_KEY root root_base}
{SIMPLE_KEY power s_real}
{SIMPLE_KEY rand string_list}
{SIMPLE_KEY time stamp}
{SIMPLE_KEY string_length string}
{SIMPLE_KEY round rounding_method}
{SIMPLE_KEY ipart s_real}
{SIMPLE_KEY fpart s_real}
{SIMPLE_KEY formula formula}
[tag]
name="join"
{REQUIRED_KEY variable string}
{DEFAULT_KEY key string "value"}
{SIMPLE_KEY separator string}
{SIMPLE_KEY remove_empty s_bool}
[/tag]
[/tag]
[tag]
name="set_variables"
max=infinite
{INSERT_TAG}
{REQUIRED_KEY name string}
{SIMPLE_KEY to_variable string}
[if]
[not]