-
Notifications
You must be signed in to change notification settings - Fork 2
/
mmbn6.ini
4366 lines (3356 loc) · 89 KB
/
mmbn6.ini
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
[CommandDatabase]
name = mmbn6
cont = 255
splt = keyWait any=0 clearMsg
[Command]
name = nop
mask = FF
desc = Does nothing.
base = E5
[Command]
name = end
mask = FF
desc = Closes any open message box and ends script execution.
base = E6
ends = always
[Command]
name = keyWait
mask = FF 00
desc = Pauses script execution until a button is pressed.
base = E7
[Parameter]
name = any
offs = 1
bits = 8
desc = If true, any button can be pressed; otherwise, only A and B will have an effect.
valn = bool
[Command]
name = msgOpen
mask = FF FF
desc = Opens the message box and waits until the animation finishes.
base = E8 00
[Command]
name = msgClose
mask = FF FF
desc = Closes the message box and waits until the animation finishes.
base = E8 01
[Command]
name = msgOpenQuick
mask = FF FF
desc = Opens the message box without any animation.
base = E8 02
[Command]
name = msgCloseQuick
mask = FF FF
desc = Closes the message box without any animation. However, if the message box contains a mugshot, it remains on-screen.
base = E8 03
[Command]
name = msgOpenExt
mask = FF FF 00 00
desc = Opens the message box and waits until the animation finishes.
base = E8 04
[Parameter]
name = size
offs = 2
bits = 8
desc = The message box size type to use.
l
[Parameter]
name = arrowPos
offs = 3
bits = 8
desc = The arrow position type to use, or 255 to use the current arrow position.
[Command]
name = msgCloseExt
mask = FF FF 00 00
desc = Closes the message box and waits until the animation finishes.
base = E8 05
[Parameter]
name = size
offs = 2
bits = 8
desc = The message box size type to use.
[Parameter]
name = arrowPos
offs = 3
bits = 8
desc = The arrow position type to use, or 255 to use the current arrow position.
[Command]
name = msgOpenQuickExt
mask = FF FF 00 00
desc = Opens the message box without any animation.
base = E8 06
[Parameter]
name = size
offs = 2
bits = 8
desc = The message box size type to use.
[Parameter]
name = arrowPos
offs = 3
bits = 8
desc = The arrow position type to use, or 255 to use the current arrow position.
[Command]
name = msgCloseQuickExt
mask = FF FF 00 00
desc = Closes the message box without any animation. However, if the message box contains a mugshot, it remains on-screen.
base = E8 07
[Parameter]
name = size
offs = 2
bits = 8
desc = The message box size type to use.
[Parameter]
name = arrowPos
offs = 3
bits = 8
desc = The arrow position type to use, or 255 to use the current arrow position.
[Command]
name = msgOpenMenu
mask = FF FF
desc = Opens the menu message box and waits until the animation finishes.
base = E8 08
[Command]
name = msgCloseMenu
mask = FF FF
desc = Closes the menu message box and waits until the animation finishes.
base = E8 09
[Command]
name = msgOpenMenuQuick
mask = FF FF
desc = Opens the menu message box without any animation.
base = E8 0A
[Command]
name = msgCloseMenuQuick
mask = FF FF
desc = Closes the menu message box without any animation. However, if the message box contains a mugshot, it remains on-screen.
base = E8 0B
[Command]
name = msgOpenCrossover
mask = FF FF
desc = Opens the Crossover Battle message box and waits until the animation finishes.
base = E8 0C
[Command]
name = msgCloseCrossover
mask = FF FF
desc = Closes the Crossover Battle message box and waits until the animation finishes.
base = E8 0D
[Command]
name = msgOpenCrossoverQuick
mask = FF FF
desc = Opens the Crossover Battle message box without any animation.
base = E8 0E
[Command]
name = msgCloseCrossoverQuick
mask = FF FF
desc = Closes the Crossover Battle message box without any animation. However, if the message box contains a mugshot, it remains on-screen.
base = E8 0F
[Command]
name = msgOpenEmail
mask = FF FF
desc = Opens the e-mail message box without any animation.
base = E8 10
[Command]
name = msgCloseEmail
mask = FF FF
desc = Closes the e-mail message box without any animation. However, if the message box contains a mugshot, it remains on-screen.
base = E8 11
[Command]
name = newline
mask = FF
desc = Continues printing text on the next line.
base = E9
[Command]
name = flagSet
mask = FF FF 00 00
desc = Sets the specified flag.
base = EA 00
[Parameter]
name = flag
offs = 2
bits = 16
desc = The flag to set.
type = hex
[Command]
name = flagClear
mask = FF FF 00 00
desc = Clears the specified flag.
base = EA 01
[Parameter]
name = flag
offs = 2
bits = 16
desc = The flag to clear.
type = hex
[Command]
name = flagToggle
mask = FF FF 00 00
desc = Toggles the specified flag.
base = EA 02
[Parameter]
name = flag
offs = 2
bits = 16
desc = The flag to toggle.
type = hex
[Command]
name = flagMultiSet
mask = FF FF 00 00 00
desc = Sets a series of flags starting at the specified flag.
base = EA 03
[Parameter]
name = flag
offs = 2
bits = 16
desc = The first flag to set.
type = hex
[Parameter]
name = count
offs = 4
bits = 8
desc = The amount of subsequent flags to set.
[Command]
name = flagMultiClear
mask = FF FF 00 00 00
desc = Clears a series of flags starting at the specified flag.
base = EA 04
[Parameter]
name = flag
offs = 2
bits = 16
desc = The first flag to clear.
type = hex
[Parameter]
name = count
offs = 4
bits = 8
desc = The amount of subsequent flags to clear.
[Command]
name = flagSetBuffered
mask = FF FF 00
desc = Set a buffered flag stored in memory.
base = EA 06
[Parameter]
name = buffer
offs = 2
bits = 8
desc = The buffer to load the flag from.
[Command]
name = flagAddMail
mask = FF FF 00 00
desc = Makes the player receive the e-mail with the specified flag.
base = EA 07
[Parameter]
name = flag
offs = 2
bits = 16
desc = The flag of the e-mail to give.
type = hex
[Command]
name = flagAddBBSMessage
mask = FF FF 00 00
desc = Unlocks the BBS message with the specified flag.
base = EA 09
[Parameter]
name = flag
offs = 2
bits = 16
desc = The flag of the BBS message to unlock.
type = hex
[Command]
name = flagAddRequest
mask = FF FF 00 00
desc = Unlocks the request with the specified flag on the Request BBS.
base = EA 0A
[Parameter]
name = flag
offs = 2
bits = 16
desc = The flag of the BBS message to unlock.
type = hex
[Command]
name = option
mask = FF 00 00 00
desc = Creates a cursor menu option at the current text position.
base = EB
prnt = true
[Parameter]
name = brackets
offs = 1
bits = 8
desc = If true, uses a brackets cursor instead of the standard arrow cursor. (However, this is overriden by the selection command.)
[Parameter]
name = left
offs = 2.4
bits = 4
desc = Which option to go to when Left is pressed.
[Parameter]
name = right
offs = 2.0
bits = 4
desc = Which option to go to when Right is pressed.
[Parameter]
name = up
offs = 3.4
bits = 4
desc = Which option to go to when Up is pressed.
[Parameter]
name = down
offs = 3.0
bits = 4
desc = Which option to go to when Down is pressed.
[Command]
name = space
mask = FF FF 00
desc = Moves the text position to the right in blocks of space widths.
base = EC 00
prnt = true
[Parameter]
name = count
offs = 2
bits = 8
desc = The amount of spaces to insert.
[Command]
name = spacePx
mask = FF FF 00
desc = Moves the text position to the right a number of pixels.
base = EC 01
prnt = true
[Parameter]
name = count
offs = 2
bits = 8
desc = The amount of pixels to insert.
[Command]
name = select
mask = FF 00 00
desc = Lets the player choose from a number of previously defined options with the D-Pad and A button, and jumps to a different script if a certain option is chosen. If the B button is pressed, the last option is chosen by default.
base = ED
dadd = -3
[Length]
offs = 1
bits = 8
[Parameter]
name = default
offs = 2
bits = 4
desc = The option that is selected by default.
[Parameter]
name = BSeparate
offs = 2.5
bits = 1
desc = If true, pressing the B button is treated as a separate option; otherwise, the last defined option is assigned.
valn = bool
[Parameter]
name = disableB
offs = 2.6
bits = 1
desc = If true, pressing the B button has no effect; otherwise, it chooses the last labeled option.
valn = bool
[Parameter]
name = clear
offs = 2.7
bits = 1
desc = If true, clears the message box after choosing an option.
valn = bool
[Data]
name = target
offs = 0
bits = 8
desc = A script that execution can jump to depending on the chosen option, or 255 to continue with the current script.
type = jump
valn = mmbn-jump
[Command]
name = wait
mask = FF FF 00 00
desc = Pauses script execution for a specified number of frames.
base = EE 00
prnt = true
[Parameter]
name = frames
offs = 2
bits = 16
desc = The amount of frames to wait.
[Command]
name = waitSkip
mask = FF FF 00 00
desc = Pauses script execution for a specified number of frames, unless the A or B button has been pressed.
base = EE 01
prnt = true
[Parameter]
name = frames
offs = 2
bits = 16
desc = The maximum amount of frames to wait.
[Command]
name = waitFlag
mask = FF FF 00 00
desc = Pauses script execution until the specified flag is set.
base = EE 02
prnt = true
[Parameter]
name = flag
offs = 2
bits = 16
desc = The flag that must be set before script execution may continue.
type = hex
[Command]
name = waitOWVar
mask = FF FF 00 00
desc = Pauses script execution until the specified overworld variable equals a specific value.
base = EE 03
prnt = true
[Parameter]
name = variable
offs = 2
bits = 8
desc = The index of the variable.
[Parameter]
name = value
offs = 3
bits = 8
desc = The value the variable must be equal to before script execution may continue.
[Command]
name = waitFlagClear
mask = FF FF 00 00
desc = Pauses script execution until the specified flag is cleared.
base = EE 04
prnt = true
[Parameter]
name = flag
offs = 2
bits = 16
desc = The flag that must be cleared before script execution may continue.
[Command]
name = waitHold
; NOTE: only is 2 bytes long strictly speaking, but the game reserves 4 bytes
mask = FF FF 00 00
desc = Pauses script execution indefinitely.
base = EE FF
ends = always
# Changed from original, added for structural consistency
[Parameter]
name = unused
offs = 2
bits = 16
desc = reserved bytes, but not used
[Command]
name = checkFlag
mask = FF FF 00 00 00 00
desc = Checks the specified flag, and jumps to a different script depending on if it is true or false.
base = EF 00
[Parameter]
name = flag
offs = 2
bits = 16
desc = The flag to check.
type = hex
[Parameter]
name = jumpIfTrue
offs = 4
bits = 8
desc = The script to jump to if the flag is set, or 255 to continue with the current script.
type = jump
valn = mmbn-jump
[Parameter]
name = jumpIfFalse
offs = 5
bits = 8
desc = The script to jump to if the flag is not set, or 255 to continue with the current script.
type = jump
valn = mmbn-jump
[Command]
name = checkChapter
mask = FF FF 00 00 00 00
desc = Checks the current story chapter, and jumps to a different script depending on if it falls inside or outside the specified range.
base = EF 01
[Parameter]
name = lower
offs = 2
bits = 8
desc = The lower boundary of the range.
[Parameter]
name = upper
offs = 3
bits = 8
desc = The lower boundary of the range.
[Parameter]
name = jumpIfInRange
offs = 4
bits = 8
desc = The script to jump to if the current story chapter falls inside the range, or 255 to continue with the current script.
type = jump
valn = mmbn-jump
[Parameter]
name = jumpIfOutOfRange
offs = 5
bits = 8
desc = The script to jump to if the current story chapter falls outside the range, or 255 to continue with the current script.
type = jump
valn = mmbn-jump
[Command]
name = checkSubArea
mask = FF FF 00 00 00 00
desc = Checks the current subarea, and jumps to a different script depending on if it falls inside or outside the specified range.
base = EF 02
[Parameter]
name = lower
offs = 2
bits = 8
desc = The lower boundary of the range.
[Parameter]
name = upper
offs = 3
bits = 8
desc = The lower boundary of the range.
[Parameter]
name = jumpIfInRange
offs = 4
bits = 8
desc = The script to jump to if the subarea falls inside the range, or 255 to continue with the current script.
type = jump
valn = mmbn-jump
[Parameter]
name = jumpIfOutOfRange
offs = 5
bits = 8
desc = The script to jump to if the subarea falls outside the range, or 255 to continue with the current script.
type = jump
valn = mmbn-jump
[Command]
name = checkGlobal
mask = FF FF 00 00 00 00
desc = Checks a global variable in memory, and jumps to a different script depending on if it is equal to the specified value or not.
base = EF 03
[Parameter]
name = variable
offs = 2
bits = 8
desc = The index of the variable to load.
[Parameter]
name = value
offs = 3
bits = 8
desc = The value to compare to.
[Parameter]
name = jumpIfEqual
offs = 4
bits = 8
desc = The script to jump to if the values are equal, or 255 to continue with the current script.
type = jump
valn = mmbn-jump
[Parameter]
name = jumpIfNotEqual
offs = 5
bits = 8
desc = The script to jump to if the values are not equal, or 255 to continue with the current script.
type = jump
valn = mmbn-jump
[Command]
name = checkArea
mask = FF FF 00 00 00 00
desc = Checks the current area, and jumps to a different script depending on if it falls inside or outside the specified range.
base = EF 04
[Parameter]
name = lower
offs = 2
bits = 8
desc = The lower boundary of the range.
[Parameter]
name = upper
offs = 3
bits = 8
desc = The lower boundary of the range.
[Parameter]
name = jumpIfInRange
offs = 4
bits = 8
desc = The script to jump to if the area falls inside the range, or 255 to continue with the current script.
type = jump
valn = mmbn-jump
[Parameter]
name = jumpIfOutOfRange
offs = 5
bits = 8
desc = The script to jump to if the area falls outside the range, or 255 to continue with the current script.
type = jump
valn = mmbn-jump
[Command]
name = checkGameVersion
mask = FF FF 00 00
desc = Checks the current game version, and jumps to a different script depending on if the current game is Cybeast Gregar or Cybeast Falzar.
base = EF 05
[Parameter]
name = jumpIfCybeastGregar
offs = 2
bits = 8
desc = The script to jump to if the current game is Cybeast Gregar, or 255 to continue with the current script.
type = jump
valn = mmbn-jump
[Parameter]
name = jumpIfCybeastFalzar
offs = 3
bits = 8
desc = The script to jump to if the current game is Cybeast Falzar, or 255 to continue with the current script.
type = jump
valn = mmbn-jump
[Command]
name = checkChipGate
mask = FF FF 00 00
desc = Checks if the Beast Link Gate is connected, and jumps to a different script depending on if it is.
base = EF 06
[Parameter]
name = jumpIfConnected
offs = 2
bits = 8
desc = The script to jump to if the Beast Link Gate is connected, or 255 to continue with the current script.
type = jump
valn = mmbn-jump
[Parameter]
name = jumpIfNotConnected
offs = 3
bits = 8
desc = The script to jump to if the Beast Link Gate is not connected, or 255 to continue with the current script.
type = jump
valn = mmbn-jump
[Command]
name = checkItem07
mask = FF FF 00 00 00 00 00
desc = Checks how many of the specified item are in the player's inventory, and jumps to a different script depending on if it is equal to, greater than or less than the specified amount.
base = EF 07
[Parameter]
name = item
offs = 2
bits = 8
desc = The item to check the amount of.
[Parameter]
name = amount
offs = 3
bits = 8
desc = The amount to compare to.
[Parameter]
name = jumpIfEqual
offs = 4
bits = 8
desc = The script to jump to if the number of items is equal to the specified amount, or 255 to continue with the current script.
type = jump
valn = mmbn-jump
[Parameter]
name = jumpIfGreater
offs = 5
bits = 8
desc = The script to jump to if the number of items is greater than the specified amount, or 255 to continue with the current script.
type = jump
valn = mmbn-jump
[Parameter]
name = jumpIfLess
offs = 6
bits = 8
desc = The script to jump to if the number of items is less than the specified amount, or 255 to continue with the current script.
type = jump
valn = mmbn-jump
[Command]
name = checkChipCode
mask = FF FF 00 00 00 00 00 00 00
desc = Checks how many of the specified chip with the specified code are in the player's Pack as well as folders, and jumps to a different script depending on if it is equal to, greater than or less than the specified amount.
base = EF 08
[Parameter]
name = chip
offs = 2
bits = 16
desc = The chip to check.
[Parameter]
name = code
offs = 4
bits = 8
desc = The code of the chip to check.
valn = mmbn-code
[Parameter]
name = amount
offs = 5
bits = 8
desc = The amount to compare to.
[Parameter]
name = jumpIfEqual
offs = 6
bits = 8
desc = The script to jump to if the number of items is equal to the specified amount, or 255 to continue with the current script.
type = jump
valn = mmbn-jump
[Parameter]
name = jumpIfGreater
offs = 7
bits = 8
desc = The script to jump to if the number of items is greater than the specified amount, or 255 to continue with the current script.
type = jump
valn = mmbn-jump
[Parameter]
name = jumpIfLess
offs = 8
bits = 8
desc = The script to jump to if the number of items is less than the specified amount, or 255 to continue with the current script.
type = jump
valn = mmbn-jump
[Command]
name = checkPackChipCode
mask = FF FF 00 00 00 00 00 00 00
desc = Checks how many of the specified chip with the specified code are in the player's Pack, and jumps to a different script depending on if it is equal to, greater than or less than the specified amount.
base = EF 09
[Parameter]
name = chip
offs = 2
bits = 16
desc = The chip to check.
[Parameter]
name = code
offs = 4
bits = 8
desc = The code of the chip to check.
valn = mmbn-code
[Parameter]
name = amount
offs = 5
bits = 8
desc = The amount to compare to.
[Parameter]
name = jumpIfEqual
offs = 6
bits = 8
desc = The script to jump to if the number of chips is equal to the specified amount, or 255 to continue with the current script.
type = jump
valn = mmbn-jump
[Parameter]
name = jumpIfGreater
offs = 7
bits = 8
desc = The script to jump to if the number of chips is greater than the specified amount, or 255 to continue with the current script.
type = jump
valn = mmbn-jump
[Parameter]
name = jumpIfLess
offs = 8
bits = 8
desc = The script to jump to if the number of chips is less than the specified amount, or 255 to continue with the current script.
type = jump
valn = mmbn-jump
[Command]
name = checkGiveItem
mask = FF FF 00 00 00 00 00
desc = Attempts to adds to the player's inventory a specified amount of the specified item, or sets it to the maximum if that is exceeded, plays a sound effect if any were added, and jumps to a different script depending on how many were added.
base = EF 0A
[Parameter]
name = item
offs = 2
bits = 8
desc = The item to give, or 255 to give a buffered item.
[Parameter]
name = amount
offs = 3
bits = 8
desc = The amount of items to give.
[Parameter]
name = jumpIfAll
offs = 4
bits = 8
desc = The script to jump to if all items could be added, or 255 to continue with the current script.
type = jump
valn = mmbn-jump
[Parameter]
name = jumpIfNone
offs = 5
bits = 8
desc = The script to jump to if no items at all could be added, or 255 to continue with the current script.
type = jump