forked from VladimirMakeev/D2SGFormat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sg.ksy
1712 lines (1709 loc) · 47.9 KB
/
sg.ksy
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
meta:
id: sg
title: Disciples 2 scenario file
application: Disciples 2 (v3.01)
file-extension: sg
license: GPL-3.0-or-later
ks-version: 0.8
encoding: cp1251
endian: le
doc: |
SG is used by [Disciples 2](https://en.wikipedia.org/wiki/Disciples_II:_Dark_Prophecy) game for scenario maps and saves.
Written and tested by Vladimir Makeev, 2019-2020
seq:
- id: header
type: header
- id: total
type: int_record('SxxxOBxxxx')
- id: objects
type: scenario_object
repeat: expr
repeat-expr: total.value
types:
header:
seq:
- id: signature
type: strz
size: 10
- id: data
type:
switch-on: signature
cases:
'"D2EESFISIG"': d2ee_header
'"MidFile"': midfile_header
d2ee_header:
seq:
- id: zeroes
type: u2
- id: ones
type: u4
- id: size
type: u4
doc: |
Header size.
Can not be greater than 2920 bytes, according to the game code
- id: unknown1
contents: [1, 0, 0, 0]
doc: Must be 1 according to the game code
- id: unknown2
contents: [0x23, 0, 0, 0]
doc: Must be 0x23 (35) according to the game code
- id: unknown3
contents: [0, 0, 0, 0]
- id: scenario_id
type: strz
size: 11
- id: scenario_description
type: strz
size: 256
- id: designer_name
type: strz
size: 21
- id: official_map
type: u1
doc: |
1 means this map is made by 'Strategy First', 0 - 'Third Party'
ScenarioEditor always set this to 0 when entering objectives menu
- id: quest_name
type: strz
size: 256
- id: map_size
type: u4
doc: This value is shown in preview while selecting scenario to load
- id: difficulty
type: u4
doc: Difficulty value, same as ID in Ldiff.dbf
- id: turn_number
type: u4
- id: unknown4
type: u4
- id: campaign_id
type: str
size: 11
- id: sugg_lvl
type: u4
doc: Suggested leader level. Scenario Editor set it to the same value as in 'scenario_info.sugg_lvl'
- id: unknown5
size: 1
- id: default_player_name
type: strz
size: 256
doc: Game allows to enter only 15 characters upon starting a scenario
- id: race
type: u4
doc: Race value, same as ID in Lrace.dbf
- id: unknown6
size: 815
- id: unknown_data
type: u4
- id: prng_values
type: u4
repeat: expr
repeat-expr: 250
doc: Values used for pseudo-random number generation
- id: padding_size
type: u4
- id: total_races
type: u4
doc: |
Total races in scenario, including neutrals.
This information is shown in scenario preview.
- id: races
type: race_info
repeat: expr
repeat-expr: total_races
- id: padding
type: u1
repeat: expr
repeat-expr: padding_size
midfile_header:
seq:
- id: zeroes
size: 6
- id: version
type: u2
- id: unknown
size: 2725
race_info:
seq:
- id: race_id
type: u4
doc: Id encoded the same way as in 'scenario_info.player_' fields
- id: unknown
size: 36
string_record:
params:
- id: name_value
type: str
seq:
- id: name
type: str
size: name_value.length
- id: length
type: u4
doc: Length of string data, including trailing zero
- id: string
type: strz
size: length
int_record:
params:
- id: name_value
type: str
seq:
- id: name
type: str
size: name_value.length
- id: value
type: u4
bool_record:
params:
- id: name_value
type: str
seq:
- id: name
type: str
size: name_value.length
- id: value
type: u1
currency:
seq:
- id: type
type: u1
- id: amount_str
type: str
size: 4
instances:
amount:
value: amount_str.to_i
doc: Represents single currency type such as gold or mana
bank_record:
params:
- id: name_value
type: str
seq:
- id: name
type: str
size: name_value.length
- id: length
type: u4
- id: gold
type: currency
- id: colon1
contents: ':'
- id: infernal_mana
type: currency
doc: Associated with and primarily used by Legions of the Damned
- id: colon2
contents: ':'
- id: life_mana
type: currency
doc: Associated with and primarily used by Empire
- id: colon3
contents: ':'
- id: death_mana
type: currency
doc: Associated with and primarily used by Undead Hordes
- id: colon4
contents: ':'
- id: runic_mana
type: currency
doc: Associated with and primarily used by Mountain Clans
- id: colon5
contents: ':'
if: _root.header.signature == 'D2EESFISIG'
- id: grove_mana
type: currency
if: _root.header.signature == 'D2EESFISIG'
doc: Associated with and primarily used by Elven alliance
- id: terminator
type: u1
doc: Represents ingame currency
position:
seq:
- id: x
type: int_record('POS_X')
- id: y
type: int_record('POS_Y')
doc: Represents map coordinates
size:
seq:
- id: x
type: int_record('SIZE_X')
- id: y
type: int_record('SIZE_Y')
begobject:
seq:
- id: value
contents: ['BEGOBJECT', 0]
endobject:
seq:
- id: value
contents: ['ENDOBJECT', 0]
single_id:
seq:
- id: id
type: int_record('XXXxxxXXXx') # 10
double_id:
seq:
- id: id1
type: int_record('XXXxxxXXXx') # 10
- id: id2
type: int_record('XXXxxxXXXx') # 10
midgard_map:
seq:
- id: unknown
type: int_record('XXXxxxXXXx') # 10
mid_spell_effect_item:
seq:
- id: unit_id
type: string_record('UNIT_ID')
- id: origin_id
type: string_record('ORIGIN_ID')
- id: modif_id
type: string_record('MODIF_ID')
- id: caster_id
type: string_record('CASTER_ID')
- id: turn_stop
type: int_record('TURN_STOP')
mid_spell_effects:
seq:
- id: count
type: int_record('XXXxxxXXXx')
- id: items
type: mid_spell_effect_item
repeat: expr
repeat-expr: count.value
mid_spell_cast_item:
seq:
- id: player_id
type: string_record('PLAYER_ID')
- id: origin
type: string_record('ORIGIN')
- id: turn_stop
type: int_record('TURN_STOP')
mid_spell_cast:
seq:
- id: count
type: int_record('XXXxxxXXXx')
- id: items
type: mid_spell_cast_item
repeat: expr
repeat-expr: count.value
- id: unknown
type: int_record('XXXxxxXXXx')
scenario_info:
seq:
- id: info_id
type: string_record('INFO_ID')
- id: campaign
type: string_record('CAMPAIGN')
- id: source_m
type: bool_record('SOURCE_M')
- id: qty_cities
type: int_record('QTY_CITIES')
- id: name
type: string_record('NAME')
- id: desc
type: string_record('DESC')
- id: briefing
type: string_record('BRIEFING')
- id: debunkw
type: string_record('DEBUNKW')
- id: debunkw2
type: string_record('DEBUNKW2')
if: (_root.header.signature == 'D2EESFISIG')
or (_root.header.data.as<midfile_header>.version == 35)
- id: debunkw3
type: string_record('DEBUNKW3')
if: (_root.header.signature == 'D2EESFISIG')
or (_root.header.data.as<midfile_header>.version == 35)
- id: debunkw4
type: string_record('DEBUNKW4')
if: (_root.header.signature == 'D2EESFISIG')
or (_root.header.data.as<midfile_header>.version == 35)
- id: debunkw5
type: string_record('DEBUNKW5')
if: (_root.header.signature == 'D2EESFISIG')
or (_root.header.data.as<midfile_header>.version == 35)
- id: debunkl
type: string_record('DEBUNKL')
- id: brieflong1
type: string_record('BRIEFLONG1')
- id: brieflong2
type: string_record('BRIEFLONG2')
- id: brieflong3
type: string_record('BRIEFLONG3')
- id: brieflong4
type: string_record('BRIEFLONG4')
- id: brieflong5
type: string_record('BRIEFLONG5')
- id: o
type: bool_record('O')
- id: cur_turn
type: int_record('CUR_TURN')
- id: max_unit
type: int_record('MAX_UNIT')
- id: max_spell
type: int_record('MAX_SPELL')
- id: max_leader
type: int_record('MAX_LEADER')
- id: max_city
type: int_record('MAX_CITY')
- id: map_size
type: int_record('MAP_SIZE')
- id: diffscen
type: int_record('DIFFSCEN')
- id: diffgame
type: int_record('DIFFGAME')
- id: creator
type: string_record('CREATOR')
- id: players
repeat: expr
repeat-expr: 13
type:
switch-on: _index
cases:
_: int_record('PLAYER_N')
9: int_record('PLAYER_NN')
10: int_record('PLAYER_NN')
11: int_record('PLAYER_NN')
12: int_record('PLAYER_NN')
- id: sugg_lvl
type: int_record('SUGG_LVL')
- id: map_seed
type: int_record('MAP_SEED')
mountains_entry:
seq:
- id: id_mount
type: int_record('ID_MOUNT')
- id: size
type: size
- id: position
type: position
- id: image
type: int_record('IMAGE')
- id: race
type: int_record('RACE')
mid_mountains:
seq:
- id: mountains_count
type: int_record('XXXxxxXXXx')
- id: mountains
type: mountains_entry
repeat: expr
repeat-expr: mountains_count.value
mid_player_exmap_record:
seq:
- id: id
type: string_record('EXMAPIDx')
- id: turn
type: string_record('EXMAPTURNx')
mid_player:
seq:
- id: player_id
type: string_record('PLAYER_ID')
- id: name_txt
type: string_record('NAME_TXT')
- id: desc_txt
type: string_record('DESC_TXT')
- id: lord_id
type: string_record('LORD_ID')
- id: race_id
type: string_record('RACE_ID')
- id: fog_id
type: string_record('FOG_ID')
- id: known_id
type: string_record('KNOWN_ID')
- id: builds_id
type: string_record('BUILDS_ID')
- id: face
type: int_record('FACE')
- id: qty_breaks
type: int_record('QTY_BREAKS')
- id: bank
type: bank_record('BANK')
- id: is_human
type: bool_record('IS_HUMAN')
- id: spell_bank
type: bank_record('SPELL_BANK')
- id: attitude
type: int_record('ATTITUDE')
- id: resear_t
type: int_record('RESEAR_T')
- id: constr_t
type: int_record('CONSTR_T')
- id: spies
type: string_record('SPY_N')
repeat: expr
repeat-expr: 3
- id: capt_by
type: string_record('CAPT_BY')
- id: alwaysai
type: bool_record('ALWAYSAI')
if: _root.header.signature == 'D2EESFISIG'
- id: exmap_records
type: mid_player_exmap_record
repeat: expr
repeat-expr: 3
if: _root.header.signature == 'D2EESFISIG'
mid_unit:
seq:
- id: unit_id
type: string_record('UNIT_ID')
- id: type
type: string_record('TYPE')
- id: level
type: int_record('LEVEL')
- id: modifier_count
type: int_record('XXXxxxXXXx') # 10
- id: modifiers
type: string_record('MODIF_ID')
repeat: expr
repeat-expr: modifier_count.value
- id: creation
type: int_record('CREATION')
- id: name_txt
type: string_record('NAME_TXT')
- id: transf
type: bool_record('TRANSF')
- id: orig_type_id
type: string_record('ORIGTYPEID')
doc: Id of original unit 'GnnnUUnnnn'
if: transf.value == 1
- id: keep_hp
type: bool_record('KEEP_HP')
if: transf.value == 1
- id: orig_xp
type: int_record('ORIG_XP')
if: transf.value == 1
- id: hp_before
type: int_record('HP_BEFORE')
if: transf.value == 1
- id: hp_before_max
type: int_record('HP_BEF_MAX')
if: transf.value == 1
- id: dynlevel
type: bool_record('DYNLEVEL')
if: (_root.header.signature == 'D2EESFISIG')
or (_root.header.data.as<midfile_header>.version == 35)
- id: hp
type: int_record('HP')
- id: xp
type: int_record('XP')
tile:
seq:
- id: type
type: u1
- id: unknown
type: u2
- id: image_id
type: u1
midgard_map_block:
seq:
- id: blockid
type: string_record('BLOCKID')
- id: blockdata
type: int_record('BLOCKDATA')
- id: tiles
type: tile
repeat: expr
repeat-expr: (blockdata.value / 4)
city:
seq:
- id: city_id
type: string_record('CITY_ID')
- id: name_txt
type: string_record('NAME_TXT')
- id: desc_txt
type: string_record('DESC_TXT')
- id: owner
type: string_record('OWNER')
- id: subrace
type: string_record('SUBRACE')
- id: stack
type: string_record('STACK')
- id: position
type: position
- id: group
type: group
group:
seq:
- id: group_id
type: string_record('GROUP_ID')
- id: units
type: string_record('UNIT_N')
repeat: expr
repeat-expr: 6
- id: positions
type: int_record('POS_N')
repeat: expr
repeat-expr: 6
capital:
seq:
- id: city
type: city
- id: item_count
type: int_record('XXXxxxXXXx') # 10
- id: items
type: string_record('XXXxxxX') # 7
repeat: expr
repeat-expr: (item_count.value)
- id: aipriority
type: int_record('AIPRIORITY')
fog_entry:
seq:
- id: pos_y
type: int_record('POS_Y')
- id: fog
type: int_record('FOG')
- id: fog_mask
type: b1
repeat: expr
repeat-expr: fog.value * 8
doc: |
For each Y position we have an entry with a bitmask
where each bit corresponds to X position,
thus defining a fog for a tile.
midgard_map_fog:
seq:
- id: count
type: int_record('XXXxxxXXXx') # 10
- id: entries
type: fog_entry
repeat: expr
repeat-expr: (count.value)
diplomacy_entry:
seq:
- id: race_1
type: int_record('RACE_1')
- id: race_2
type: int_record('RACE_2')
- id: relation
type: int_record('RELATION')
mid_diplomacy:
seq:
- id: count
type: int_record('XXXxxxXXXx') # 10
- id: entries
type: diplomacy_entry
repeat: expr
repeat-expr: (count.value)
plan_entry:
seq:
- id: position
type: position
- id: element
type: string_record('ELEMENT')
midgard_plan:
seq:
- id: unknown
type: int_record('XXXxxxXXXx') # 10
- id: count
type: int_record('XXXxxxXXXx') # 10
- id: entries
type: plan_entry
repeat: expr
repeat-expr: (count.value)
mid_stack:
seq:
- id: group
type: group
- id: item_count
type: int_record('XXXxxxXXXx') # 10
- id: items
type: string_record('ITEM_ID')
repeat: expr
repeat-expr: item_count.value
- id: stack_id
type: string_record('STACK_ID')
- id: srctmpl_id
type: string_record('SRCTMPL_ID')
- id: leader_id
type: string_record('LEADER_ID')
- id: leader_aliv
type: bool_record('LEADR_ALIV')
- id: position
type: position
- id: morale
type: int_record('MORALE')
- id: move
type: int_record('MOVE')
- id: facing
type: int_record('FACING')
- id: banner
type: string_record('BANNER')
- id: tome
type: string_record('TOME')
- id: battle1
type: string_record('BATTLE1')
- id: battle2
type: string_record('BATTLE2')
- id: artifact1
type: string_record('ARTIFACT1')
- id: artifact2
type: string_record('ARTIFACT2')
- id: boots
type: string_record('BOOTS')
- id: owner
type: string_record('OWNER')
- id: inside
type: string_record('INSIDE')
- id: subrace
type: string_record('SUBRACE')
- id: invisible
type: bool_record('INVISIBLE')
- id: ai_ignore
type: bool_record('AI_IGNORE')
- id: upgcount
type: int_record('UPGCOUNT')
- id: order
type: int_record('ORDER')
- id: order_targ
type: string_record('ORDER_TARG')
- id: aiorder
type: int_record('AIORDER')
- id: aiordertar
type: string_record('AIORDERTAR')
- id: aipriority
type: int_record('AIPRIORITY')
- id: creat_lvl
type: int_record('CREAT_LVL')
- id: nbbattle
type: int_record('NBBATTLE')
unit_modifier:
seq:
- id: unit_pos
type: int_record('UNIT_POS')
- id: modif_id
type: string_record('MODIF_ID')
stack_template_unit_record:
seq:
- id: unit
type: string_record('UNIT_N')
- id: level
type: int_record('UNIT_N_LVL')
mid_stack_template:
seq:
- id: id
type: string_record('ID')
- id: owner
type: string_record('OWNER')
- id: leader
type: string_record('LEADER')
- id: leader_lvl
type: int_record('LEADER_LVL')
- id: name_txt
type: string_record('NAME_TXT')
- id: order_targ
type: string_record('ORDER_TARG')
- id: subrace
type: string_record('SUBRACE')
- id: order
type: int_record('ORDER')
- id: units
type: stack_template_unit_record
repeat: expr
repeat-expr: 6
- id: positions
type: int_record('POS_N')
repeat: expr
repeat-expr: 6
- id: use_facing
type: bool_record('USE_FACING')
- id: facing
type: int_record('FACING')
- id: modifier_count
type: int_record('XXXxxxXXXx') # 10
- id: modifiers
type: unit_modifier
repeat: expr
repeat-expr: modifier_count.value
- id: aipriority
type: int_record('AIPRIORITY')
if: _root.header.signature == 'D2EESFISIG'
mid_item:
seq:
- id: item_id
type: string_record('ITEM_ID')
- id: item_type
type: string_record('ITEM_TYPE')
mid_subrace:
seq:
- id: subrace_id
type: string_record('SUBRACE_ID')
- id: subrace
type: int_record('SUBRACE')
- id: player_id
type: string_record('PLAYER_ID')
- id: number
type: int_record('NUMBER')
- id: name_txt
type: string_record('NAME_TXT')
- id: banner
type: int_record('BANNER')
mid_road:
seq:
- id: road_id
type: string_record('ROAD_ID')
- id: index
type: int_record('INDEX')
- id: var
type: int_record('VAR')
- id: position
type: position
site:
seq:
- id: site_id
type: string_record('SITE_ID')
- id: img_iso
type: int_record('IMG_ISO')
- id: img_intf
type: string_record('IMG_INTF')
- id: txt_title
type: string_record('TXT_TITLE')
- id: txt_desc
type: string_record('TXT_DESC')
- id: position
type: position
- id: visiter
type: string_record('VISITER')
- id: aipriority
type: int_record('AIPRIORITY')
site_visitor:
seq:
- id: site_id
type: string_record('SITE_ID')
- id: visitor
type: string_record('VISITER')
mid_site_mage:
seq:
- id: site
type: site
- id: spell_count
type: int_record('QTY_SPELL')
- id: spells
type: string_record('SPELL_ID')
repeat: expr
repeat-expr: spell_count.value
- id: visitor_count
type: int_record('SnnnSInnnn')
- id: visitors
type: site_visitor
repeat: expr
repeat-expr: visitor_count.value
mercs_unit_entry:
seq:
- id: unit_id
type: string_record('UNIT_ID')
- id: unit_level
type: int_record('UNIT_LEVEL')
- id: unit_uniq
type: bool_record('UNIT_UNIQ')
mid_site_mercs:
seq:
- id: site
type: site
- id: unit_count
type: int_record('QTY_UNIT')
- id: units
type: mercs_unit_entry
repeat: expr
repeat-expr: unit_count.value
- id: visitor_count
type: int_record('SnnnSInnnn')
- id: visitors
type: site_visitor
repeat: expr
repeat-expr: visitor_count.value
merchant_item_entry:
seq:
- id: item_id
type: string_record('ITEM_ID')
- id: item_count
type: int_record('ITEM_COUNT')
mid_site_merchant:
seq:
- id: site
type: site
- id: buy_armor
type: bool_record('BUY_ARMOR')
- id: buy_jewel
type: bool_record('BUY_JEWEL')
- id: buy_weapon
type: bool_record('BUY_WEAPON')
- id: buy_banner
type: bool_record('BUY_BANNER')
- id: buy_potion
type: bool_record('BUY_POTION')
- id: buy_scroll
type: bool_record('BUY_SCROLL')
- id: buy_wand
type: bool_record('BUY_WAND')
- id: buy_value
type: bool_record('BUY_VALUE')
- id: item_count
type: int_record('QTY_ITEM')
- id: items
type: merchant_item_entry
repeat: expr
repeat-expr: item_count.value
- id: mission
type: bool_record('MISSION')
- id: visitor_count
type: int_record('SnnnSInnnn')
- id: visitors
type: site_visitor
repeat: expr
repeat-expr: visitor_count.value
ruin_visiter:
seq:
- id: ruin_id
type: string_record('RUIN_ID')
- id: visiter
type: string_record('VISITER')
mid_ruin:
seq:
- id: ruin_id
type: string_record('RUIN_ID')
- id: title
type: string_record('TITLE')
- id: desc
type: string_record('DESC')
- id: image
type: int_record('IMAGE')
- id: position
type: position
- id: cash
type: bank_record('CASH')
- id: item
type: string_record('ITEM')
- id: looter
type: string_record('LOOTER')
- id: aipriority
type: int_record('AIPRIORITY')
- id: visitor_count
type: int_record('XxxxXXxxxx')
- id: visitors
type: ruin_visiter
repeat: expr
repeat-expr: visitor_count.value
- id: group
type: group
mid_site_trainer:
seq:
- id: site
type: site
- id: visitor_count
type: int_record('SnnnSInnnn')
- id: visitors
type: site_visitor
repeat: expr
repeat-expr: visitor_count.value
mid_village:
seq:
- id: city
type: city
- id: item_count
type: int_record('XXXxxxXXXx')
- id: items
type: string_record('ITEM_ID')
repeat: expr
repeat-expr: item_count.value
- id: aipriority
type: int_record('AIPRIORITY')
- id: protect_b
type: string_record('PROTECT_B')
- id: regen_b
type: int_record('REGEN_B')
- id: morale
type: int_record('MORALE')
- id: growth_t
type: int_record('GROWTH_T')
- id: size
type: int_record('SIZE')
- id: p_o_un
type: bool_record('P_O_UN')
- id: p_o_he
type: bool_record('P_O_HE')
- id: p_o_hu
type: bool_record('P_O_HU')
- id: p_o_dw
type: bool_record('P_O_DW')
- id: p_o_el
type: bool_record('P_O_EL')
if: _root.header.signature == 'D2EESFISIG'
- id: riot_t
type: int_record('RIOT_T')
mid_crystal:
seq:
- id: crystal_id
type: string_record('CRYSTAL_ID')
- id: reource
type: int_record('RESOURCE')
- id: position
type: position
- id: aipriority
type: int_record('AIPRIORITY')
mid_landmark:
seq:
- id: lmark_id
type: string_record('LMARK_ID')
- id: type
type: string_record('TYPE')
- id: position
type: position
- id: desc_txt
type: string_record('DESC_TXT')
if: _root.header.signature == 'D2EESFISIG'
mid_bag:
seq:
- id: bag_id
type: string_record('BAG_ID')
- id: position
type: position
- id: image
type: int_record('IMAGE')
- id: aipriority
type: int_record('AIPRIORITY')
- id: item_count
type: int_record('XXXxxxXXXx')
- id: items
type: string_record('ITEM_ID')
repeat: expr
repeat-expr: (item_count.value)
mid_location:
seq:
- id: loc_id
type: string_record('LOC_ID')
- id: position
type: position
- id: name_txt
type: string_record('NAME_TXT')
- id: radius
type: int_record('RADIUS')
event_condition_alliance:
doc: <id player 1> must be in alliance with <id player 2>
seq:
- id: id_player1
type: string_record('ID_PLAYER1')
- id: id_player2
type: string_record('ID_PLAYER2')
event_condition_destroy_stack:
doc: <id stack> must be killed by any of the affected races
seq:
- id: id_stack
type: string_record('ID_STACK')
event_condition_diplomacy_relations:
doc: <id player 1> must be at <diplomacy> level with <id player 2>