-
Notifications
You must be signed in to change notification settings - Fork 63
Expand file tree
/
Copy pathchunks.h
More file actions
1121 lines (1116 loc) · 35.9 KB
/
chunks.h
File metadata and controls
1121 lines (1116 loc) · 35.9 KB
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
/* !!!! GENERATED FILE - DO NOT EDIT !!!!
* --------------------------------------
*
* This file is part of liblcf. Copyright (c) liblcf authors.
* https://github.com/EasyRPG/liblcf - https://easyrpg.org
*
* liblcf is Free/Libre Open Source Software, released under the MIT License.
* For the full copyright and license information, please view the COPYING
* file that was distributed with this source code.
*/
#ifndef LCF_LSD_CHUNKS_H
#define LCF_LSD_CHUNKS_H
namespace lcf {
/**
* LSD Reader namespace.
*/
namespace LSD_Reader {
struct ChunkSaveTitle {
enum Index {
/** double - timestamp in Delphi's TDateTime format */
timestamp = 0x01,
/** char[]: hero name */
hero_name = 0x0B,
/** int: hero level */
hero_level = 0x0C,
/** int: hero HP */
hero_hp = 0x0D,
/** char[]: face filename */
face1_name = 0x15,
/** int: face id */
face1_id = 0x16,
/** char[]: face filename */
face2_name = 0x17,
/** int: face id */
face2_id = 0x18,
/** char[]: face filename */
face3_name = 0x19,
/** int: face id */
face3_id = 0x1A,
/** char[]: face filename */
face4_name = 0x1B,
/** int: face id */
face4_id = 0x1C
};
};
struct ChunkSaveSystem {
enum Index {
/** The current Scene for RPG_RT. Legacy field only used by RPG_RT and not by EasyRPG Player. Savegames always have a scene of 5 (filemenu). */
scene = 0x01,
/** */
frame_count = 0x0B,
/** string */
graphics_name = 0x15,
/** Integer */
message_stretch = 0x16,
/** Integer */
font_id = 0x17,
/** */
switches_size = 0x1F,
/** */
switches = 0x20,
/** */
variables_size = 0x21,
/** */
variables = 0x22,
/** */
message_transparent = 0x29,
/** */
message_position = 0x2A,
/** */
message_prevent_overlap = 0x2B,
/** */
message_continue_events = 0x2C,
/** */
face_name = 0x33,
/** */
face_id = 0x34,
/** bool */
face_right = 0x35,
/** bool */
face_flip = 0x36,
/** A flag set by RPG_RT when a message is spawned by ShowMessage; ShowChoices; or ShowNumberInput and cleared when message spawned for any other reason. */
event_message_active = 0x37,
/** Music is being faded out or had been stopped (Play music with the same music as currently playing will restart the music when this flag is set) */
music_stopping = 0x3D,
/** */
title_music = 0x47,
/** */
battle_music = 0x48,
/** */
battle_end_music = 0x49,
/** */
inn_music = 0x4A,
/** */
current_music = 0x4B,
/** */
before_vehicle_music = 0x4C,
/** */
before_battle_music = 0x4D,
/** */
stored_music = 0x4E,
/** */
boat_music = 0x4F,
/** */
ship_music = 0x50,
/** */
airship_music = 0x51,
/** */
gameover_music = 0x52,
/** */
cursor_se = 0x5B,
/** */
decision_se = 0x5C,
/** */
cancel_se = 0x5D,
/** */
buzzer_se = 0x5E,
/** */
battle_se = 0x5F,
/** */
escape_se = 0x60,
/** */
enemy_attack_se = 0x61,
/** */
enemy_damaged_se = 0x62,
/** */
actor_damaged_se = 0x63,
/** */
dodge_se = 0x64,
/** */
enemy_death_se = 0x65,
/** */
item_se = 0x66,
/** */
transition_out = 0x6F,
/** */
transition_in = 0x70,
/** */
battle_start_fadeout = 0x71,
/** */
battle_start_fadein = 0x72,
/** */
battle_end_fadeout = 0x73,
/** */
battle_end_fadein = 0x74,
/** */
teleport_allowed = 0x79,
/** */
escape_allowed = 0x7A,
/** */
save_allowed = 0x7B,
/** */
menu_allowed = 0x7C,
/** string */
background = 0x7D,
/** */
save_count = 0x83,
/** */
save_slot = 0x84,
/** ATB mode of RPG 2003 battle system. 2k3e sets this to 1, otherwise 0 */
atb_mode = 0x8C,
/** rpg::Strings */
maniac_strings = 0x24,
/** Width of the message window in pixels */
maniac_message_window_width = 0x2D,
/** Height of the message window in pixels */
maniac_message_window_height = 0x2E,
/** Font to use in the message window */
maniac_message_font_name = 0x2F,
/** Size of the font in the message window */
maniac_message_font_size = 0x30,
/** Situations when to invoke the callbacks */
maniac_message_hook_flags = 0x32,
/** Common Event to call for a hook */
maniac_message_hook_common_event_id = 0x42,
/** Variable (starting range) populated when hook is invoked */
maniac_message_hook_callback_system_variable = 0x43,
/** String Variable populated when hook is invoked */
maniac_message_hook_callback_system_string_variable = 0x44,
/** Variable (starting range) populated when hook is invoked */
maniac_message_hook_callback_user_variable = 0x45,
/** String Variable populated when hook is invoked (TODO: Difference between System and User callback) */
maniac_message_hook_callback_user_string_variable = 0x46,
/** FatalMix Frameskip (0=None, 1=1/5, 2=1/3, 3=1/2) */
maniac_frameskip = 0x88,
/** FatalMix Picture Limit */
maniac_picture_limit = 0x89,
/** Various FatalMix options (XX XA XB XC). A: MsgSkip OFF/RShift (0/4) B: TestPlay Keep/ON/OFF (0/2/4), C: Pause focus lost Wait/Run (0/1) */
maniac_options = 0x8A,
/** JoyLeft, JoyRight, JoyUp, JoyDown, Joy1, ... Joy12 */
maniac_joypad_bindings = 0x8B,
/** Additional spacing between characters in the message window (Editor value - 1) */
maniac_message_spacing_char = 0x8E,
/** Additional spacing between lines in the message window (Editor value - 1) */
maniac_message_spacing_line = 0x8F
};
};
struct ChunkSaveScreen {
enum Index {
/** int */
tint_finish_red = 0x01,
/** int */
tint_finish_green = 0x02,
/** int */
tint_finish_blue = 0x03,
/** int */
tint_finish_sat = 0x04,
/** double */
tint_current_red = 0x0B,
/** double */
tint_current_green = 0x0C,
/** double */
tint_current_blue = 0x0D,
/** double */
tint_current_sat = 0x0E,
/** int */
tint_time_left = 0x0F,
/** int */
flash_continuous = 0x14,
/** int */
flash_red = 0x15,
/** int */
flash_green = 0x16,
/** int */
flash_blue = 0x17,
/** double */
flash_current_level = 0x18,
/** int */
flash_time_left = 0x19,
/** int */
shake_continuous = 0x1E,
/** int */
shake_strength = 0x1F,
/** int */
shake_speed = 0x20,
/** int */
shake_position = 0x21,
/** int - unused */
shake_position_y = 0x22,
/** int */
shake_time_left = 0x23,
/** int */
pan_x = 0x29,
/** int */
pan_y = 0x2A,
/** int - battle animation ID */
battleanim_id = 0x2B,
/** int - battle animation target */
battleanim_target = 0x2C,
/** int - frame count - Ref<Animation>? FIXME */
battleanim_frame = 0x2D,
/** There is currently a battle animation playing */
battleanim_active = 0x2E,
/** int - battle animation global scope */
battleanim_global = 0x2F,
/** int */
weather = 0x30,
/** int */
weather_strength = 0x31
};
};
struct ChunkSavePicture {
enum Index {
/** string */
name = 0x01,
/** X position where picture was originally shown */
start_x = 0x02,
/** Y position where picture was originally shown */
start_y = 0x03,
/** Current x position of picture */
current_x = 0x04,
/** Current y position of picture */
current_y = 0x05,
/** If true; picture will scroll with map */
fixed_to_map = 0x06,
/** Current zoom level of picture. */
current_magnify = 0x07,
/** Current transparency of picture. In RPG2k3 < 1.12 affects only top half of picture. */
current_top_trans = 0x08,
/** If false; ignore the transparent color */
use_transparent_color = 0x09,
/** Current red tint */
current_red = 0x0B,
/** Current green tint */
current_green = 0x0C,
/** Current blue tint. */
current_blue = 0x0D,
/** Current saturation */
current_sat = 0x0E,
/** Which effect is active. */
effect_mode = 0x0F,
/** The current power of the active effect. */
current_effect_power = 0x10,
/** Bottom half transparency. Only has an effect in RPG2k3 < 1.12. */
current_bot_trans = 0x12,
/** Spritesheet columns */
spritesheet_cols = 0x13,
/** Spritesheet rows */
spritesheet_rows = 0x14,
/** Current spritesheet frame */
spritesheet_frame = 0x15,
/** Spritesheet speed (X frames per second) */
spritesheet_speed = 0x16,
/** Frames since ShowPicture */
frames = 0x17,
/** True: Play once and destroy; False: Loop spritesheet */
spritesheet_play_once = 0x18,
/** Layer to show picture on at the map */
map_layer = 0x19,
/** Layer to show picture on in battle */
battle_layer = 0x1A,
/** Bitflag. Persists Map/Battle change/end; Affected by Shake/Flash/Tint */
flags = 0x1B,
/** Final X position to move picture to. */
finish_x = 0x1F,
/** Final Y position to move picture to. */
finish_y = 0x20,
/** Final zoom level to animate picture to. */
finish_magnify = 0x21,
/** Final top_trans level to animate picture. */
finish_top_trans = 0x22,
/** Final bot_trans level to animate picture. */
finish_bot_trans = 0x23,
/** Final red tint to animate picture. */
finish_red = 0x29,
/** Final green tint to animate picture. */
finish_green = 0x2A,
/** Final blue tint to animate picture. */
finish_blue = 0x2B,
/** Final saturation to animate picture. */
finish_sat = 0x2C,
/** Final power of the effect to animate picture. */
finish_effect_power = 0x2E,
/** How much time left in picture move / animation effects. */
time_left = 0x33,
/** How much the picture is currently rotated. */
current_rotation = 0x34,
/** Current wave effect for picture. */
current_waver = 0x35,
/** How to flip the picture */
easyrpg_flip = 0xC8,
/** Blend mode to use for blit. See Bitmap::BlendMode */
easyrpg_blend_mode = 0xC9,
/** Type of this picture */
easyrpg_type = 0xCA,
/** Current zoom level of picture (y direction). */
maniac_current_magnify_height = 0x0A,
/** Final zoom level to animate picture to (y direction). */
maniac_finish_magnify_height = 0x24
};
};
struct ChunkSavePartyLocation {
enum Index {
/** Flag */
active = 0x01,
/** ? */
map_id = 0x0B,
/** ? */
position_x = 0x0C,
/** ? */
position_y = 0x0D,
/** Sprite direction */
direction = 0x15,
/** Facing direction */
facing = 0x16,
/** ? */
anim_frame = 0x17,
/** 0 or 3 - Transparency level of the current event page */
transparency = 0x18,
/** From 0 to 255 - Remaining distance of the current move */
remaining_step = 0x1F,
/** ? */
move_frequency = 0x20,
/** ? */
layer = 0x21,
/** Flag */
overlap_forbidden = 0x22,
/** */
animation_type = 0x23,
/** facing locked */
lock_facing = 0x24,
/** */
move_speed = 0x25,
/** chunks: rpg::MoveRoute */
move_route = 0x29,
/** Use custom move route */
move_route_overwrite = 0x2A,
/** Index of MoveEvent command route */
move_route_index = 0x2B,
/** Boolean - Repeating move route has been completed at least once */
move_route_finished = 0x2C,
/** When true the sprite is not displayed */
sprite_hidden = 0x2E,
/** Whether the move route (MoveEvent or defined route) activated through mode. Almost the same as 0x33 (through). 0x2F represents that by MoveEvent the through mode has been activated; but 0x33 is what's actually checked for collisions. In several cases; 0x33 will be changed to indicate a condition in which an event or the hero is in through mode through other means than a MoveEvent; which can be: an event with an empty page being activated; player pressing Ctrl in test play; hero entering or exiting a vehicle (only very briefly) */
move_route_through = 0x2F,
/** ? */
anim_paused = 0x30,
/** Can go through anything */
through = 0x33,
/** ? */
stop_count = 0x34,
/** ? */
anim_count = 0x35,
/** 2^move_frequency unless it's a random move route - Once stop_count reaches it; the next move command is executed */
max_stop_count = 0x36,
/** ? */
jumping = 0x3D,
/** ? */
begin_jump_x = 0x3E,
/** ? */
begin_jump_y = 0x3F,
/** Indicates paused movement for an event; set while the player is talking to the event so that it won't run away */
pause = 0x47,
/** Flag */
flying = 0x48,
/** ? */
sprite_name = 0x49,
/** ? */
sprite_id = 0x4A,
/** Flag whether an event (the hero is also an event) in the current frame processed their movement actions (may also be none). This is required because events are asked every frame to initiate their next movement step if required; but not necessarily in order; because checking passability for an event trying to move onto another tile will trigger any event's movement initiation which is on the target tile (because this way the target event may move away; allowing the other event to move to that tile). This flag ensures that every event processes their possible movements only once per frame even if it was already asked to do so out of order as part of another event's movement initiation. */
processed = 0x4B,
/** int */
flash_red = 0x51,
/** int */
flash_green = 0x52,
/** int */
flash_blue = 0x53,
/** double */
flash_current_level = 0x54,
/** int */
flash_time_left = 0x55,
/** Tracks how often the current move operation in a move route failed */
easyrpg_move_failure_count = 0xC9,
/** The original map id of a cloned event */
easyrpg_clone_map_id = 0xCA,
/** The original event id of a cloned event */
easyrpg_clone_event_id = 0xCB,
/** Runtime changes to the engine config */
easyrpg_runtime_flags = 0xCC,
/** Name of the cloned event */
easyrpg_clone_event_name = 0xCD,
/** */
boarding = 0x65,
/** */
aboard = 0x66,
/** Vehicle in use */
vehicle = 0x67,
/** */
unboarding = 0x68,
/** Move speed before the party boarded the vehicle */
preboard_move_speed = 0x69,
/** Flag which briefly is true if the player presses ESC. At the right place in handling each frame's activities for the player; the code checks whether this flag is set and calls the menu; however there are several conditions which would cancel this flag and instead process another higher-priority action; such as when an encounter takes place during the same frame. */
menu_calling = 0x6C,
/** 0: screen is fixed; 1: screen moves with player. */
pan_state = 0x6F,
/** Number of 1/16 pixels to the left of player */
pan_current_x = 0x70,
/** Number of 1/16 pixels above the player */
pan_current_y = 0x71,
/** Number of 1/16 pixels to the left of player when current scroll finishes */
pan_finish_x = 0x72,
/** Number of 1/16 pixels above the player when current scroll finishes. */
pan_finish_y = 0x73,
/** speed in the scrolls of the screen - shown in sixteenth pixels. */
pan_speed = 0x79,
/** int: sum of terrain.encounter_rate for each step */
total_encounter_rate = 0x7C,
/** Similar to 0x6C - is used to signal a different piece of code that an encounter is to be triggered; which may be cancelled by other conditions such as the player starting to interact with an event during the same frame. */
encounter_calling = 0x7D,
/** Mirrors save_count of current map. On mismatch events are not continued after load. */
map_save_count = 0x83,
/** ? */
database_save_count = 0x84,
/** horizontal speed in the scrolls of the screen */
maniac_horizontal_pan_speed = 0x8D,
/** vertical speed in the scrolls of the screen */
maniac_vertical_pan_speed = 0x8E
};
};
struct ChunkSaveVehicleLocation {
enum Index {
/** Flag */
active = 0x01,
/** ? */
map_id = 0x0B,
/** ? */
position_x = 0x0C,
/** ? */
position_y = 0x0D,
/** Sprite direction */
direction = 0x15,
/** Facing direction */
facing = 0x16,
/** ? */
anim_frame = 0x17,
/** 0 or 3 - Transparency level of the current event page */
transparency = 0x18,
/** From 0 to 255 - Remaining distance of the current move */
remaining_step = 0x1F,
/** ? */
move_frequency = 0x20,
/** ? */
layer = 0x21,
/** Flag */
overlap_forbidden = 0x22,
/** */
animation_type = 0x23,
/** facing locked */
lock_facing = 0x24,
/** */
move_speed = 0x25,
/** chunks: rpg::MoveRoute */
move_route = 0x29,
/** Use custom move route */
move_route_overwrite = 0x2A,
/** Index of MoveEvent command route */
move_route_index = 0x2B,
/** Boolean - Repeating move route has been completed at least once */
move_route_finished = 0x2C,
/** When true the sprite is not displayed */
sprite_hidden = 0x2E,
/** Whether the move route (MoveEvent or defined route) activated through mode. Almost the same as 0x33 (through). 0x2F represents that by MoveEvent the through mode has been activated; but 0x33 is what's actually checked for collisions. In several cases; 0x33 will be changed to indicate a condition in which an event or the hero is in through mode through other means than a MoveEvent; which can be: an event with an empty page being activated; player pressing Ctrl in test play; hero entering or exiting a vehicle (only very briefly) */
move_route_through = 0x2F,
/** ? */
anim_paused = 0x30,
/** Can go through anything */
through = 0x33,
/** ? */
stop_count = 0x34,
/** ? */
anim_count = 0x35,
/** 2^move_frequency unless it's a random move route - Once stop_count reaches it; the next move command is executed */
max_stop_count = 0x36,
/** ? */
jumping = 0x3D,
/** ? */
begin_jump_x = 0x3E,
/** ? */
begin_jump_y = 0x3F,
/** Indicates paused movement for an event; set while the player is talking to the event so that it won't run away */
pause = 0x47,
/** Flag */
flying = 0x48,
/** ? */
sprite_name = 0x49,
/** ? */
sprite_id = 0x4A,
/** Flag whether an event (the hero is also an event) in the current frame processed their movement actions (may also be none). This is required because events are asked every frame to initiate their next movement step if required; but not necessarily in order; because checking passability for an event trying to move onto another tile will trigger any event's movement initiation which is on the target tile (because this way the target event may move away; allowing the other event to move to that tile). This flag ensures that every event processes their possible movements only once per frame even if it was already asked to do so out of order as part of another event's movement initiation. */
processed = 0x4B,
/** int */
flash_red = 0x51,
/** int */
flash_green = 0x52,
/** int */
flash_blue = 0x53,
/** double */
flash_current_level = 0x54,
/** int */
flash_time_left = 0x55,
/** Tracks how often the current move operation in a move route failed */
easyrpg_move_failure_count = 0xC9,
/** The original map id of a cloned event */
easyrpg_clone_map_id = 0xCA,
/** The original event id of a cloned event */
easyrpg_clone_event_id = 0xCB,
/** Runtime changes to the engine config */
easyrpg_runtime_flags = 0xCC,
/** Name of the cloned event */
easyrpg_clone_event_name = 0xCD,
/** Which vehicle */
vehicle = 0x65,
/** From 0 to 255 - In flying vehicles; remaining distance to ascend */
remaining_ascent = 0x6A,
/** From 0 to 255 - In flying vehicles; remaining distance to descend */
remaining_descent = 0x6B,
/** Set by ChangeVehicleGraphic command */
orig_sprite_name = 0x6F,
/** Set by ChangeVehicleGraphic command */
orig_sprite_id = 0x70
};
};
struct ChunkSaveActor {
enum Index {
/** string */
name = 0x01,
/** string */
title = 0x02,
/** string */
sprite_name = 0x0B,
/** int */
sprite_id = 0x0C,
/** transparency value. 0 means opaque; 3 is the value used when actor is transparent. */
transparency = 0x0D,
/** string */
face_name = 0x15,
/** int */
face_id = 0x16,
/** int */
level = 0x1F,
/** int */
exp = 0x20,
/** ? */
hp_mod = 0x21,
/** ? */
sp_mod = 0x22,
/** int */
attack_mod = 0x29,
/** int */
defense_mod = 0x2A,
/** int */
spirit_mod = 0x2B,
/** int */
agility_mod = 0x2C,
/** ? */
skills_size = 0x33,
/** short[] */
skills = 0x34,
/** short[5] */
equipped = 0x3D,
/** int */
current_hp = 0x47,
/** int */
current_sp = 0x48,
/** array of (uncompressed) int32 */
battle_commands = 0x50,
/** ? */
status_size = 0x51,
/** array of short */
status = 0x52,
/** bool */
changed_battle_commands = 0x53,
/** int class-id */
class_id = 0x5A,
/** RPG2003 Battle row */
row = 0x5B,
/** bool */
two_weapon = 0x5C,
/** bool */
lock_equipment = 0x5D,
/** bool */
auto_battle = 0x5E,
/** bool */
super_guard = 0x5F,
/** Integer - RPG2003 */
battler_animation = 0x60
};
};
struct ChunkSaveInventory {
enum Index {
/** ? */
party_size = 0x01,
/** ? */
party = 0x02,
/** ? */
item_ids_size = 0x0B,
/** short[]: item list */
item_ids = 0x0C,
/** ? */
item_counts = 0x0D,
/** ? */
item_usage = 0x0E,
/** int */
gold = 0x15,
/** Number of frames remaining for timer1; When set; the value is seconds * 60 + 59. */
timer1_frames = 0x17,
/** If timer1 is active */
timer1_active = 0x18,
/** If timer1 is visible */
timer1_visible = 0x19,
/** If timer1 will be active in battles */
timer1_battle = 0x1A,
/** Number of frames remaining for timer2; When set; the value is seconds * 60 + 59. */
timer2_frames = 0x1B,
/** If timer2 is active */
timer2_active = 0x1C,
/** If timer2 is visible */
timer2_visible = 0x1D,
/** If timer2 will be active in battles */
timer2_battle = 0x1E,
/** ? */
battles = 0x20,
/** ? */
defeats = 0x21,
/** ? */
escapes = 0x22,
/** ? */
victories = 0x23,
/** Number of turns passed in the latest battle fought. RPG2000: 'turn' passes after every character (enemies and heroes both) performed an action each. RPG2003: every time a hero or enemy performs an action that is considered a 'turn'. */
turns = 0x29,
/** Number of steps taken in the field. */
steps = 0x2A
};
};
struct ChunkSaveTarget {
enum Index {
/** int */
map_id = 0x01,
/** int */
map_x = 0x02,
/** int */
map_y = 0x03,
/** bool */
switch_on = 0x04,
/** int */
switch_id = 0x05
};
};
struct ChunkSaveEventExecFrame {
enum Index {
/** int */
commands_size = 0x01,
/** event command list */
commands = 0x02,
/** int */
current_command = 0x0B,
/** 0 if it's common event or in other map */
event_id = 0x0C,
/** Event was triggered by the Action Key */
triggered_by_decision_key = 0x0D,
/** size of the 0x16 vector - indention level */
subcommand_path_size = 0x15,
/** byte For each indention level in the script; an ID is stored there which corresponds to the branch to take in case a command allows multiple branches. For example; the Show Choice command would write the result of the choice (for example 2 for the third item) into the current indention level's entry in this array; and the script processor would later look for the Case subcommand with the corresponding ID; if any; and jump to that one (if none found; it would jump to the End Case subcommand). Once the jump is executed; the ID is set to 255 (probably a protection mechanism even though there should normally not be multiple subcommands with the same ID). */
subcommand_path = 0x16,
/** Event info bitfield */
maniac_event_info = 0x0E,
/** Event ID */
maniac_event_id = 0x0F,
/** Page ID when it is a map event */
maniac_event_page_id = 0x10,
/** Amount of loop info groups */
maniac_loop_info_size = 0x11,
/** One group of (Current loop count, end loop value) for each identation */
maniac_loop_info = 0x12,
/** Runtime changes to the engine config */
easyrpg_runtime_flags = 0xCC
};
};
struct ChunkSaveEventExecState {
enum Index {
/** array */
stack = 0x01,
/** Show Message command has been executed in the current move route */
show_message = 0x04,
/** Flag which is set before a fight if the EnemyEncounter event command had battle_escape_mode set to 1 (abort event on escape). After the fight; the interpreter checks if the battle result was an escape and this flag was set and abort the event in that case. */
abort_on_escape = 0x0B,
/** Whether Wait for all movement is in effect */
wait_movement = 0x0D,
/** */
keyinput_wait = 0x15,
/** */
keyinput_variable = 0x16,
/** */
keyinput_all_directions = 0x17,
/** Maniac: Mouse Left (Bit 1) */
keyinput_decision = 0x18,
/** Maniac: Mouse Right (Bit 1) */
keyinput_cancel = 0x19,
/** In RM2k Value this is keyinput_shift */
keyinput_2kshift_2k3numbers = 0x1A,
/** In Value keyinput_down */
keyinput_2kdown_2k3operators = 0x1B,
/** In Value keyinput_left; Maniac: Mouse Middle (Bit 1) */
keyinput_2kleft_2k3shift = 0x1C,
/** Only in Value */
keyinput_2kright = 0x1D,
/** Only in Value */
keyinput_2kup = 0x1E,
/** int */
wait_time = 0x1F,
/** */
keyinput_time_variable = 0x20,
/** Maniac: Mouse Scroll Down (Bit 1) */
keyinput_2k3down = 0x23,
/** */
keyinput_2k3left = 0x24,
/** */
keyinput_2k3right = 0x25,
/** Maniac: Mouse Scroll Up (Bit 1) */
keyinput_2k3up = 0x26,
/** */
keyinput_timed = 0x29,
/** Used for a wait command WaitForKeyInput rm2k3 feature to wait for decision key press. */
wait_key_enter = 0x2A,
/** When true state of an event is preserved in easyrpg_string and easyrpg_parameters */
easyrpg_active = 0xC9,
/** Preserved string data of an event */
easyrpg_string = 0xCA,
/** Preserved int parameter of an event */
easyrpg_parameters = 0xCB,
/** Runtime changes to the engine config */
easyrpg_runtime_flags = 0xCC
};
};
struct ChunkSaveMapEventBase {
enum Index {
/** Flag */
active = 0x01,
/** ? */
map_id = 0x0B,
/** ? */
position_x = 0x0C,
/** ? */
position_y = 0x0D,
/** Sprite direction */
direction = 0x15,
/** Facing direction */
facing = 0x16,
/** ? */
anim_frame = 0x17,
/** 0 or 3 - Transparency level of the current event page */
transparency = 0x18,
/** From 0 to 255 - Remaining distance of the current move */
remaining_step = 0x1F,
/** ? */
move_frequency = 0x20,
/** ? */
layer = 0x21,
/** Flag */
overlap_forbidden = 0x22,
/** */
animation_type = 0x23,
/** facing locked */
lock_facing = 0x24,
/** */
move_speed = 0x25,
/** chunks: rpg::MoveRoute */
move_route = 0x29,
/** Use custom move route */
move_route_overwrite = 0x2A,
/** Index of MoveEvent command route */
move_route_index = 0x2B,
/** Boolean - Repeating move route has been completed at least once */
move_route_finished = 0x2C,
/** When true the sprite is not displayed */
sprite_hidden = 0x2E,
/** Whether the move route (MoveEvent or defined route) activated through mode. Almost the same as 0x33 (through). 0x2F represents that by MoveEvent the through mode has been activated; but 0x33 is what's actually checked for collisions. In several cases; 0x33 will be changed to indicate a condition in which an event or the hero is in through mode through other means than a MoveEvent; which can be: an event with an empty page being activated; player pressing Ctrl in test play; hero entering or exiting a vehicle (only very briefly) */
move_route_through = 0x2F,
/** ? */
anim_paused = 0x30,
/** Can go through anything */
through = 0x33,
/** ? */
stop_count = 0x34,
/** ? */
anim_count = 0x35,
/** 2^move_frequency unless it's a random move route - Once stop_count reaches it; the next move command is executed */
max_stop_count = 0x36,
/** ? */
jumping = 0x3D,
/** ? */
begin_jump_x = 0x3E,
/** ? */
begin_jump_y = 0x3F,
/** Indicates paused movement for an event; set while the player is talking to the event so that it won't run away */
pause = 0x47,
/** Flag */
flying = 0x48,
/** ? */
sprite_name = 0x49,
/** ? */
sprite_id = 0x4A,
/** Flag whether an event (the hero is also an event) in the current frame processed their movement actions (may also be none). This is required because events are asked every frame to initiate their next movement step if required; but not necessarily in order; because checking passability for an event trying to move onto another tile will trigger any event's movement initiation which is on the target tile (because this way the target event may move away; allowing the other event to move to that tile). This flag ensures that every event processes their possible movements only once per frame even if it was already asked to do so out of order as part of another event's movement initiation. */
processed = 0x4B,
/** int */
flash_red = 0x51,
/** int */
flash_green = 0x52,
/** int */
flash_blue = 0x53,
/** double */
flash_current_level = 0x54,
/** int */
flash_time_left = 0x55,
/** Tracks how often the current move operation in a move route failed */
easyrpg_move_failure_count = 0xC9,
/** The original map id of a cloned event */
easyrpg_clone_map_id = 0xCA,
/** The original event id of a cloned event */
easyrpg_clone_event_id = 0xCB,
/** Runtime changes to the engine config */
easyrpg_runtime_flags = 0xCC,
/** Name of the cloned event */
easyrpg_clone_event_name = 0xCD
};
};
struct ChunkSaveMapEvent {
enum Index {
/** Flag */
active = 0x01,
/** ? */
map_id = 0x0B,
/** ? */
position_x = 0x0C,
/** ? */
position_y = 0x0D,
/** Sprite direction */
direction = 0x15,
/** Facing direction */
facing = 0x16,
/** ? */
anim_frame = 0x17,
/** 0 or 3 - Transparency level of the current event page */
transparency = 0x18,
/** From 0 to 255 - Remaining distance of the current move */
remaining_step = 0x1F,
/** ? */
move_frequency = 0x20,
/** ? */
layer = 0x21,
/** Flag */
overlap_forbidden = 0x22,
/** */
animation_type = 0x23,
/** facing locked */
lock_facing = 0x24,
/** */
move_speed = 0x25,
/** chunks: rpg::MoveRoute */
move_route = 0x29,
/** Use custom move route */
move_route_overwrite = 0x2A,
/** Index of MoveEvent command route */
move_route_index = 0x2B,
/** Boolean - Repeating move route has been completed at least once */
move_route_finished = 0x2C,
/** When true the sprite is not displayed */
sprite_hidden = 0x2E,
/** Whether the move route (MoveEvent or defined route) activated through mode. Almost the same as 0x33 (through). 0x2F represents that by MoveEvent the through mode has been activated; but 0x33 is what's actually checked for collisions. In several cases; 0x33 will be changed to indicate a condition in which an event or the hero is in through mode through other means than a MoveEvent; which can be: an event with an empty page being activated; player pressing Ctrl in test play; hero entering or exiting a vehicle (only very briefly) */
move_route_through = 0x2F,
/** ? */
anim_paused = 0x30,
/** Can go through anything */
through = 0x33,
/** ? */
stop_count = 0x34,
/** ? */
anim_count = 0x35,
/** 2^move_frequency unless it's a random move route - Once stop_count reaches it; the next move command is executed */
max_stop_count = 0x36,
/** ? */
jumping = 0x3D,
/** ? */
begin_jump_x = 0x3E,
/** ? */
begin_jump_y = 0x3F,
/** Indicates paused movement for an event; set while the player is talking to the event so that it won't run away */
pause = 0x47,
/** Flag */
flying = 0x48,
/** ? */
sprite_name = 0x49,
/** ? */
sprite_id = 0x4A,
/** Flag whether an event (the hero is also an event) in the current frame processed their movement actions (may also be none). This is required because events are asked every frame to initiate their next movement step if required; but not necessarily in order; because checking passability for an event trying to move onto another tile will trigger any event's movement initiation which is on the target tile (because this way the target event may move away; allowing the other event to move to that tile). This flag ensures that every event processes their possible movements only once per frame even if it was already asked to do so out of order as part of another event's movement initiation. */
processed = 0x4B,
/** int */
flash_red = 0x51,
/** int */
flash_green = 0x52,
/** int */
flash_blue = 0x53,
/** double */
flash_current_level = 0x54,
/** int */
flash_time_left = 0x55,
/** Tracks how often the current move operation in a move route failed */
easyrpg_move_failure_count = 0xC9,
/** The original map id of a cloned event */
easyrpg_clone_map_id = 0xCA,
/** The original event id of a cloned event */
easyrpg_clone_event_id = 0xCB,
/** Runtime changes to the engine config */
easyrpg_runtime_flags = 0xCC,
/** Name of the cloned event */
easyrpg_clone_event_name = 0xCD,
/** If true; this event is waiting for foreground execution. */
waiting_execution = 0x65,
/** Index of custom move route */
original_move_route_index = 0x66,
/** If true; this event was started by the decision key. */
triggered_by_decision_key = 0x67,
/** chunks */
parallel_event_execstate = 0x6C
};
};
struct ChunkSaveMapInfo {
enum Index {
/** int */
position_x = 0x01,
/** int */
position_y = 0x02,
/** int */
encounter_steps = 0x03,
/** int */
chipset_id = 0x05,
/** ? array */
events = 0x0B,