forked from everything8215/ff3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathff3j-event.txt
8349 lines (7736 loc) · 226 KB
/
ff3j-event.txt
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
; floating continent npc scripts
; format
; s1 s2 ... FF ee d1 d2 ...
; s1, s2, ...: if event switch 0/1 (msb clear/set)
; FF: conditional terminator
; ee: event id
; d1, d2, ...: npc dialog
; npc script $01
2C/9943: FF 70 ; do event $70 (drink water in altar cave)
2C/9945: 01 ; The four drank…
2C/9946: 66 ; “I feel a power welling
; up inside me!”
; npc script $02
2C/9947: FF 71 ; do event $71 (open passage in altar cave)
2C/9949: 02 ; (empty dialog)
; npc script $03
2C/994A: FF
; npc script $04
2C/994B: 08 FF 4B ; if ($08 == 0) do event $4B (crystal in altar cave)
2C/994F: FF C5 ; do event $C5
2C/9950: 49 ; The Crystal is shedding
; its light silently…
; ‘Light Warriors,bring
; hope back to this World…’
; npc script $05
2C/9951: FF 01 ; do event $01 (show npc dialog 0)
2C/9953: 06 ; Press B to use an item.
; For example,try using a
; Potion on me!
2C/9954: FF 01 07
2C/9957: FF 01 09
2C/995A: FF 01 0A
2C/995D: FF 01 0B
2C/9960: FF 01 0C
2C/9963: FF 01 0D
2C/9966: FF 01 0E
2C/9969: FF 01 0F
2C/996C: FF 01 10
2C/996F: FF 01 11
2C/9972: FF 01 12
2C/9975: FF 01 13
2C/9978: FF 01 14
; npc script $13
2C/997B: 11 FF 72 ; if ($11 == 0) do event $72
2C/997F: FF 03 ; do event $03 (show npc dialog 2)
2C/9980: 15 ; The man who raised the
; orphans,Topapa the Elder.
; “Dad! We…”
2C/9981: 16 ; Topapa:I know. I had no
; idea you Would be chosen.
; \char1[0x02],\char2[0x02],
; \char3[0x02],\char4[0x02]…
; First you must know that
; this was no accident.
; The Crystals have chosen
; you by their will.
; Don't let their power…
; don't let your hearts of
; Light go to waste!
; Begin your journey!
; Seal off the power of
; Darkness!
2C/9982: 17 ; Topapa:Go now!
; Begin your journey!
2C/9983: FF 01 18
2C/9986: FF 01 1A
2C/9989: FF 01 1B
2C/998C: FF 01 1C
2C/998F: FF 01 1D
2C/9992: FF 01 1E
2C/9995: FF 73
2C/9997: FF 01 20
2C/999A: FF 01 21
2C/999D: FF 75
2C/999F: 19 FF 76 22 23
2C/99A4: FF 01 26
2C/99A7: FF 01 27
2C/99AA: FF 01 28
; floating continent inns (npc scripts $00E0-$00E2)
2C/9CA4: 02 AF
2C/9CA6: 04 AF
2C/9CA8: 06 AF
; floating continent shops (npc scripts $00E3-$00FB)
; 1st byte is shop type id (string offset $0100)
; 07: weapon shop
; 08: armor shop
; 09: item shop
; 0A: magic shop
2C/9CAA: 09 A6 AE AF 00 ; $E3: generic item shop
2C/9CAF: 09 A7 AA AC AE AF B0 99 A4 ; $E4: invincible item shop
2C/9CB8: 09 A6 A7 AA AB AC AD AE AF ; $E5: ancients/dwarf item shop
2C/9CC1: 09 A4 00 ; $E6: tozus item shop (midgbread)
2C/9CC4: 07 1E 1F 24 0E 06 00 ; $E7: ur weapon shop
2C/9CCB: 07 09 20 27 00 ; $E8: kazus/canaan weapon shop
2C/9CD0: 07 28 25 0F 10 4C 52 53 54 ; $E9: ancients weapon shop
2C/9CD9: 0A F9 FA FB F2 F3 F4 00 ; $EA: vikings magic shop
2C/9CE1: 07 31 18 3C 3E 42 56 49 45 ; $EB: invincible weapon shop
2C/9CEA: 07 28 2B 25 2A 07 08 11 00 ; $EC: dwarf weapon shop
2C/9CF3: 09 98 00 ; $ED: gysahl item shop (magic key)
2C/9CF6: 08 72 73 58 62 8B 00 ; $EE: ur armor shop
2C/9CFD: 08 75 5A 64 8D 8E 00 ; $EF: kazus/canaan armor shop
2C/9D04: 08 76 78 67 79 7B 00 ; $F0: ancients armor shop
2C/9D0B: 08 5E 6E 84 93 94 86 87 82 ; $F1: invincible armor shop
2C/9D14: 08 77 66 5B 79 7B 00 ; $F2: dwarf armor shop
2C/9D1B: 0A FD 00 ; $F3: ur magic shop
2C/9D1E: 0A F9 FA FB 00 ; $F4: kazus magic shop
2C/9D23: 0A FC F2 F3 F4 00 ; $F5: canaan magic shop
2C/9D29: 0A F9 FA FB F2 F3 F4 F5 00 ; $F6: tozus magic shop
2C/9D32: 0A FE EB EC ED EE EF F0 00 ; $F7: ancients magic shop
2C/9D3B: 0A F6 F7 E4 E5 E6 E7 E8 E9 ; $F8: gysahl magic shop
2C/9D44: 09 99 00 ; $F9: gysahl item shop
2C/9D47: 09 A6 AE AF 00 ; $FA: kazus item shop
2C/9D4C: 0A CF D0 D1 D2 D3 D4 00 ; $FB: invincible magic shop
; floating continent fat chocobo (npc scripts $00FC-$00FF)
2C/9D54: FE
; surface world npc scripts
; npc script $0101
2C/9D55: 33 FF 01 ; if ($33 == 0) do event $01
2C/9D58: FF 02 ; do event $02
2C/9D5A: 01 ; After the earthquake,the
; world sank into the sea…
; Luckily,I happened to be
; aboard a boat.
; The only survivors were
; myself and that girl
; sleeping in back.
2C/9D5B: 02 ; Old man:Are you alright?
; Elia:Thank you,sir!
; Old man:Don't mention it.
; Take care of yourself!
; npc script $0102
2C/9D5C: FF 01 ; do event $01
2C/9D5E: 03 ; Elia:Uunh…
2C/9D5F: 33 FF C6 FF 97 05 FF 01 06 FF C5 07 FF 01 09 FF 01 0A FF 01 0C 41 FF 01 FF 02 0D 0E 41 FF 01 FF 02 0F 10 FF 01 11 41 FF 01 FF 02 12 13 41 FF 01 FF 02 14 15 FF 01 16 FF 01
; surface world inns (npc scripts $01E0-$01E2)
2C/A069: 0A AF
2C/A06B: 10 AF
2C/A06D: 20 AF
; surface world shops (npc scripts $01E3-$01FB)
2C/A06F: 09 A7 AA AB AC AD AE AF 99 ; $E3: generic item shop
2C/A078: 09 A7 AA AC AE AF B0 99 A4 ; $E4: invincible item shop
2C/A081: 09 A7 99 A4 00 ; $E5: falgabard item shop
2C/A086: 07 17 19 21 3F 01 00 ; $E6: amur weapon shop
2C/A08D: 07 30 31 32 2D 2E 00 ; $E7: ancient ruins weapon shop
2C/A094: 07 43 46 00 ; $E8: duster weapon shop
2C/A098: 07 1A 1B 00 ; $E9: saronia weapon shop (northwest)
2C/A09C: 07 0F 10 11 12 13 0A 0B 0C ; $EA: saronia weapon shop (northeast)
2C/A0A5: 07 31 18 3C 3E 42 56 49 45 ; $EB: invincible weapon shop
2C/A0AE: 07 2F 4E 56 00 ; $EC: falgabard weapon shop
2C/A0B3: 08 6B 7C 5C 8F 7A 69 7D 6A ; $ED: amur armor shop
2C/A0BC: 08 5E 6E 84 93 94 00 ; $EE: ancient ruins armor shop
2C/A0C3: 08 82 80 6D 92 00 ; $EF: duster armor shop
2C/A0C9: 08 86 87 92 82 81 68 00 ; $F0: saronia armor shop
2C/A0D1: 08 5E 6E 84 93 94 86 87 82 ; $F1: invincible armor shop
2C/A0DA: 08 83 5D 00 ; $F2: falgabard armor shop
2C/A0DE: 0A FF F8 F1 EA E3 00 ; $F3: replito magic shop
2C/A0E5: 0A DD DE DF E0 E1 E2 00 ; $F4: saronia magic shop (southeast)
2C/A0ED: 0A E4 E5 E6 E7 E8 E9 00 ; $F5: saronia magic shop (southwest)
2C/A0F5: 0A EB EC ED EE EF F0 00 ; $F6: falgabard magic shop
2C/A0FD: 0A D6 D7 D8 D9 DA DB E0 E1 ; $F7: doga's manor magic shop
2C/A106: 09 41 61 89 97 70 00 ; $F8: eureka hidden shop
2C/A10D: 0A C8 C9 CA CB CC CD 00 ; $F9: eureka magic shop
2C/A115: 0A DC D5 CE 00 ; $FA: eureka summon shop
2C/A11A: 0A CF D0 D1 D2 D3 D4 00 ; $FB: invincible magic shop
; surface world fat chocobo (npc scripts $01FC-$01FF)
2C/A122: FE
-----------------------------------------------------------------------------
; trigger scripts
; same format as npc scripts but without npc dialog
; trigger script $00
2C/A123: D0 3F FF 10 ; if ($50 == 1) && ($3F == 0) do event $10
2C/A128: FF 00 ; do event $00
; trigger script $01 (boulder explodes ???)
2C/A129: FA 94 FF 11 ; if ($7A == 1) && ($14 == 1) do event $11
2C/A12D: FF 00 ; do event $00
; trigger script $02
2C/A12F: AE 20 FF 12 FF 00
2C/A135: 20 FF 13 FF 00
2C/A13A: 7B 7C 7D 0F F7 FF 14 FF 00
2C/A143: 7B 7C 7D 0F F7 FF 15 FF 00
2C/A14C: 18 FF 16 FF 00
; trigger script $07
2C/A151: 7B 7C 7D 0F 19 FF 17 FF 18
2C/A15A: 8F FF 19 FF 00
2C/A15F: 7B 7C 7D 0F 31 FF 1A FF 00
2C/A168: FF 00
; trigger script $0B
2C/A16A: 26 FB FF 1C ; if ($26 == 0) && ($7B == 1) do event $1C
2C/A16E: 26 FC FF 1C ; if ($26 == 0) && ($7C == 1) do event $1C
2C/A172: 26 FD FF 1C ; if ($26 == 0) && ($7D == 1) do event $1C
2C/A176: B9 26 FF 1D ; if ($39 == 1) && ($26 == 0) do event $1D
2C/A17A: 39 26 FF 1E ; if ($39 == 0) && ($26 == 0) do event $1E
2C/A17E: FF 00 ; do event $00
; trigger script $0C
2C/A180: 27 FB FF 1C ; if ($27 == 0) && ($7B == 1) do event $1C
2C/A184: 27 FC FF 1C ; if ($27 == 0) && ($7C == 1) do event $1C
2C/A188: 27 FD FF 1C ; if ($27 == 0) && ($7D == 1) do event $1C
2C/A18C: 98 27 FF 1F ; if ($18 == 1) && ($27 == 0) do event $1F
2C/A190: FF 00 ; do event $00
; trigger script $0D
2C/A192: 28 FB FF 1C 28 FC FF 1C 28 FD FF 1C 99 28 FF 20 FF 00
; trigger script $0E
2C/A1A4: 29 FB FF 1C 29 FC FF 1C 29 FD FF 1C A5 29 FF 21 25 29 FF 22 FF 00
; trigger script $0F
2C/A1BA: 2A FF 23 FF 00
; trigger script $10
2C/A1BF: FC FF 0F FF 24
; trigger script $11
2C/A1C4: FB FF 25 FF 0F
; trigger script $12
2C/A1C9: 7B 7C 7D 0F 7B 2B FF 26
2C/A1D1: FF 0F
; trigger script $13
; trigger script $14
2C/A1D3: FC F8 FF 2A
2C/A1D7: FD F8 FF 2A
2C/A1DB: F8 FF 09
2C/A1DE: FC 78 FF 29
2C/A1E2: FD 78 FF 29
2C/A1E6: FF 0F
; trigger script $15
2C/A1E8: B0 B1 B2 FF 0C FF 00
; trigger script $16
2C/A1EF: 53 FF 0D ; if ($53 == 0) do event $0D
2C/A1F2: FF 00 ; do event $00
; trigger script $17
2C/A1F4: 2C FF 30 ; if ($2C == 0) do event $30
2C/A1F7: FF 00 ; do event $00
; trigger script $18
2C/A1F9: 2D FF 31 FF 00
; trigger script $19
2C/A1FE: 12 FF 32 FF 00
; trigger script $1A
2C/A203: 92 13 FF 33 FF 00
; trigger script $1B
2C/A209: 2E FF 34 FF 00
; trigger script $1C
2C/A20E: 2F FF 35 FF 00
; trigger script $1D
2A/A213: 2F FF 36 FF 00
; trigger script $1E
2C/A218: 2F FF 37 FF 00
; trigger script $1F
2C/A21D: 1C 1D FF 38 9C 1D FF 39 FF 00
; trigger script $20
2C/A227: 9E 19 FF 3A FF 00
; trigger script $21
2C/A22D: FF 3B ; do event $3B
; trigger script $22
2C/A22F: FF 3C ; do event $3C
; trigger script $23
2C/A231: FF 3D ; do event $3D
; trigger script $24
2C/A233: FF 3E ; do event $3E
; trigger script $25 (tozus entrance)
2C/A235: F7 52 FF 3F ; if ($77 == 1) && ($52 == 0) do event $3F
2C/A239: D2 18 FF CB ; if ($52 == 1) && ($18 == 0) do event $CB
2C/A23D: FF 00 ; do event $00
; trigger script $26
2C/A23F: FF C3 ; do event $C3
; trigger script $27
2C/A241: FF 41 ; do event $41
; trigger script $28 (tower of owen)
2C/A243: 9C FF 00 ; if ($1C == 1) do event $00
2C/A246: F6 FF 43 ; if ($76 == 1) do event $43
2C/A249: FF 44 ; do event $44
; trigger script $29
2C/A24B: F6 FF 45 ; if ($76 == 1) do event $45
2C/A24D: FF 46 ; do event $46
2C/A250: 1E FF 47 FF 00 F7 FF 48 FF 49 32 FF 4A FF 00 08 FF BA FF BB FF BC 4E 4F FF 4E 4E FF 4D FF 00 0D FF 4F FF 00 07 F7 FF 50 07 FF 49 FF 00 FF BD 47 FF 51 FF 00 2A FF 52 FF 00 34 FF 53 FF 00 48 07 FF 54 87 A5 36 FF 55 87 A5 37 FF 55 FF 00 07 FF 56 FF 00 30 FF 57 FF 00 31 FF 58 FF 00 49 FF 59 FF 00 38 B9 FF 5A FF 00 44 FF 00 DF FF 00 FF 5B 3A FF 5C FF 00 FF BE FF 5E FF 5F C6 FF 60 FF 00 3B FF 61 FF 00 3C FF 62 FF 00 3D FF 63 FF 00 3E FF 64 FF 00 BB BC BD BE FF 65 FF 66 FF 00 4C FF 6A FF 00 51 FF 0A FF 00 FF 6C FF C2 FF 3E FF CC 19 89 59 FF CE FF 00 DF FF B2 DE FF B3 A1 FF B1 68 FF B0 C0 04 FF B4 FF 0E 01 FF 00 05 FF 79 01 FF 00 44 15 FF B5 FF 0E 01 FF 00 56 16 FF B6 FF 0E DF FF B2 DE FF B3 01 FF 00 98 0B FF 67 FF B7 01 FF 00 88 FF B8 04 FF 69 01 FF 00 02 FF 96 01 FF 00 02 FF 96 60 FF D0 61 FF D1 62 FF D2 FF D3 63 FF D4 14 64 FF D5 14 65 FF D6 14 FF D7 80 FF D8 FF D9 66
; floating continent item select scripts
; item $98: magic key
2C/A307: DF ; npc $DF
2C/A308: FF B2 ; do event $B2
; item $99: carrot
2C/A30A: DE ; npc $DE
2C/A30B: FF B3 ; do event $B3
; item $9A: horn
2C/A30D: A1 ; npc $A1
2C/A30E: FF B1 ; do event $B1
; item $9B: eye
2C/A310: 68 ; npc $68
2C/A311: FF B0 ; do event $B0
; item $9C: time gear
2C/A313: C0 ; npc $C0
2C/A314: 04 FF B4 ; if ($04 == 0) do event $B4
2C/A317: FF 0E ; do event $0E
; item $9D-$A5: no effect
2C/A319: 01 ; npc $01
2C/A31A: FF 00 ; do event $00
; item $A6: potion (old man in ur)
2C/A31C: 05 ; npc $05
2C/A31D: FF 79 ; do event $79
; item $A7: hi-potion (no effect)
2C/A31F: 01 ; npc $01
2C/A320: FF 00 ; do event $00
; item $A8: elixir (cid's wife)
2C/A322: 44 ; npc $44
2C/A323: 15 FF B5 ; if ($15 == 0) do event $B5
2C/A326: FF 0E ; do event $0E
; item $A9-$AE: no effect
2C/A328: 01 ; npc $01
2C/A329: FF 00 ; do event $00
; item $AF: antidote (dr. shelco in tozus)
2C/A32B: 56 ; npc $56
2C/A32C: 16 FF B6 ; if ($16 == 0) do event $B6
2C/A32F: FF 0E ; do event $0E
; surface world item select scripts
; item $98: magic key
2C/A331: DF FF B2
; item $99: carrot
2C/A334: DE FF B3
; item $9A-$9C: no effect
2C/A337: 01 FF 00
; item $9D: eureka key
2C/A33A: 98 0B FF 67 FF B7
; item $9E-$A1: no effect
2C/A340: 01 FF 00
; item $A2: lute
2C/A343: 88 FF B8
; item $A3: sylx key
2C/A346: 04 FF 69
; item $A4-$A5: no effect
2C/A349: 01 FF 00
; item $A6-$A9: restore aria
2C/A34C: 02 FF 96
; item $AA-$AE: no effect
2C/A34F: 01 FF 00
; item $AF: antidote (restore aria)
2C/A352: 02 FF 96
+-----------------------+
| event script commands |
+-----------------------+
+----------+---------+------------------------------------------------------+
| opcodes | address | description |
+----------+---------+------------------------------------------------------+
| 00-BF | 3B/ACD1 | object commands |
| | | 0: move right |
| | | 1: move left |
| | | 2: move down |
| | | 3: move up |
| | | 4: face right |
| | | 5: face left |
| | | 6: face down |
| | | 7: face up |
| | | 8: show object |
| | | 9: hide object |
| | | A: jump left |
| | | B: jump right |
| | | C: |
| | | D: |
| | | E: move in a circle |
| | | F: spin in a circle |
| C0-CF | 3B/A13B | player commands |
| | | 0: move right |
| | | 1: move left |
| | | 2: move down |
| | | 3: move up |
| | | 4: face right |
| | | 5: face left |
| | | 6: face down |
| | | 7: face up |
| | | 8: show player |
| | | 9: hide player |
| | | A: get on nautilus |
| | | B: get on invincible |
| | | C: show guest npc |
| | | D: hide guest npc |
| | | E: get off vehicle |
| | | F: get on chocobo |
| D0 | 3B/B58F | shake screen |
| D1 | 3B/B597 | flash screen + sound effect |
| D2 | 3B/B59F | darken bg palette to blue |
| D3 | 3B/B5A3 | restore darkened bg palette |
| D4 | 3B/B5A7 | restore all characters to max hp |
| D5 | 3B/B5AA | restore all characters to max mp |
| D6 | 3B/B5AD | open passage tile (floor) |
| D7 | 3B/B5B2 | open passage tile (wall) |
| D8 | 3B/B5B7 | reset game |
| D9 | 3B/B5BA | make ship chained up |
| DA | 3B/B5D7 | npc dance |
| DB | 3B/B5DA | prologue |
| DC | 3B/B5DF | epilogue |
| DD | 3B/B5E4 | ending |
| DE | 3B/B5EF | surface world emerges |
| DF | 3B/B5FC | set all characters' hp to 1 |
| E0 | 3B/B64F | reload map palette (no guest npc) |
| E1 | 3B/B668 | reload map palette (w/ guest npc) |
| E2 | 3B/B66F | flash screen |
| E3-E6 | 3B/B672 | no effect |
| E7 xx | 3B/B673 | take item xx |
| E8 xx | 3B/B68E | clear status xx (all characters) |
| E9 xx | 3B/B694 | set status xx (all characters) |
| EA xx | 3B/B69A | give xx gil |
| EB xx | 3B/B69D | take xx gil |
| EC xx | 3B/B6A0 | give xx cp |
| ED xx | 3B/B6A3 | take xx cp |
| EE xx | 3B/B6A6 | set guest npc to xx |
| EF xx | 3B/B6B4 | special animation xx |
| F0 xx | 3B/B6BF | npc dialogue xx |
| F1 xx | 3B/B6D5 | event dialogue xx |
| F2 xx | 3B/B6E0 | set event switch xx |
| F3 xx | 3B/B6E5 | clear event switch xx |
| F4 xx | 3B/B6EA | set npc switch xx |
| F5 xx | 3B/B6EF | clear npc switch xx |
| F6 xx | 3B/B6F4 | give item xx |
| F7 xx | 3B/B70F | battle xx |
| F8 xx | 3B/B71C | song/sound effect xx |
| F9 xx | 3B/B750 | exit xx (explicit) |
| FA xx | 3B/B75E | entrance xx (explicit) |
| FB xx | 3B/B76C | entrance xx (map) |
| FC xx | 3B/B775 | wait xx frames |
| FD | 3B/B79D | exit (to previous map) |
| FE xx | 3E/D219 | repeat xx times |
| FF | 3B/B7A3 | end of event |
+----------+---------+------------------------------------------------------+
+--------------+
| event script |
+--------------+
; event $00 is no event
; event $01
2D/A3F5: F0 00 ; show npc dialogue 0
2D/A3F7: FF ; end of event
; event $02
2D/A3F8: F0 01 ; show npc dialogue 1
2D/A3FA: FF ; end of event
; event $03
2D/A3FB: F0 02 ; show npc dialogue 2
2D/A3FD: FF ; end of event
; event $04
2D/A3FE: F0 03 ; show npc dialogue 3
2D/A400: FF ; end of event
; event $05
2D/A401: F0 04 ; show npc dialogue 4
2D/A403: FF ; end of event
; event $06
2D/A404: F0 05 ; show npc dialogue 5
2D/A406: FF ; end of event
; event $07
; event $08
; event $09
2D/A407: D1
2D/A408: C3
2D/A409: FF ; end of event
; event $0A
2D/A40A: F1 D3 ; show event dialog $D3
; “It's a spring…”
; “What an odd color.”
; “Let's try drinking it!”
2D/A40C: F2 51 ; set event switch $51
2D/A40E: FF ; end of event
; event $0B
2D/A40F: F6 33 ; give item $33 (Kotetsu)
2D/A411: F0 00
2D/A413: FC 10
2D/A415: F8 BF ; play sound effect $3F
2D/A417: 19
2D/A418: 18
2D/A419: FC 10
2D/A41B: 19
2D/A41C: 18
2D/A41D: FC 10
2D/A41F: 19
2D/A420: F5 34 ; clear npc switch $34
2D/A422: FF ; end of event
; event $0C
2D/A423: F5 31 ; clear npc switch $31
2D/A425: F4 FA ; set npc switch $FA
2D/A427: FF ; end of event
; event $0D
2D/A428: F1 AE ; show event dialog $AE
; “Huh?”
; “What's the matter?”
; “That rock's a bit odd…”
; “Now that you mention it…”
2D/A42A: F2 53 ; set event switch $53
2D/A42C: FF ; end of event
; event $0E
2D/A42D: F1 77 ; show event dialog $77
; Nothing happens.
2D/A42F: FF ; end of event
; event $0F
2D/A430: FF ; end of event
; event $10
2D/A431: FB 01 ; map entrance $01
2D/A433: FF ; end of event
; event $11
2D/A434: F8 90 ; play sound effect $10
2D/A436: E0 ; reload map palette (no guest npc)
2D/A437: EF 01 ; special animation $01
2D/A439: E1 ; reload map palette (w/ guest npc)
2D/A43A: F8 1E ; play song $1E
2D/A43C: FC 10
2D/A43E: F3 00 ; clear event switch $00 (nautilus ???)
2D/A440: FF ; end of event
; event $12
2D/A441: F8 35 ; play song $35
2D/A443: EF 0A ; special animation $0A
2D/A445: FC 40
2D/A447: FB 1A ; map entrance $1A
2D/A449: FF ; end of event
; event $13
2D/A44A: F8 35 ; play song $35
2D/A44C: EF 0B ; special animation $0B
2D/A44E: FB 1B ; map entrance $1B
2D/A450: F2 20 ; set event switch $20
2D/A452: FF ; end of event
; event $14
2D/A453: FB 05 ; map entrance $05
2D/A455: FF ; end of event
; event $15
2D/A456: FB 06 ; map entrance $06
2D/A458: FF ; end of event
; event $16
2D/A459: C2 ; move down
2D/A45A: F7 57 ; battle $57
2D/A45C: FF ; end of event
; event $17
2D/A45D: FB 07 ; map entrance $07
2D/A45F: FF ; end of event
; event $18
2D/A460: F2 7E ; set event switch $7E
2D/A462: C1 ; move left
2D/A463: C0 ; move right
2D/A464: F2 7E ; set event switch $7E
2D/A466: C0 ; move right
2D/A467: C1 ; move left
2D/A468: C6 ; face down
2D/A469: FF ; end of event
; event $19
2D/A46A: F2 21
2D/A46C: FF
; event $1A
2D/A46D: F8 30
2D/A46F: F2 7E
2D/A471: FC C0
2D/A473: D0
2D/A474: D0
2D/A475: FB 02
2D/A477: FF
Event 0000
----------
0000: F0 00 NPC Dialogue
0002: FF End of Script
Event 0001
----------
0000: F0 00 NPC Dialogue
0002: FF End of Script
Event 0002
----------
0000: F0 01 NPC Dialogue
0002: FF End of Script
Event 0003
----------
0000: F0 02 NPC Dialogue
0002: FF End of Script
Event 0004
----------
0000: F0 03 NPC Dialogue
0002: FF End of Script
Event 0005
----------
0000: F0 04 NPC Dialogue
0002: FF End of Script
Event 0006
----------
0000: F0 05 NPC Dialogue
0002: FF End of Script
Event 0007
----------
0000: D1 Flash Screen
0001: C3 Default Command
0002: FF End of Script
Event 0008
----------
0000: D1 Flash Screen
0001: C3 Default Command
0002: FF End of Script
Event 0009
----------
0000: D1 Flash Screen
0001: C3 Default Command
0002: FF End of Script
Event 000A
----------
0000: F1 D3 Event Dialogue
“It's a spring…”
“What an odd color.”
“Let's try drinking it!”
0002: F2 51 Set/Clear Event Switch
0004: FF End of Script
Event 000B
----------
0000: F6 33 Give/Take Item
0002: F0 00 NPC Dialogue
0004: FC 10 Wait
0006: F8 BF Song/Sound Effect
0008: 19 Default Command
0009: 18 Default Command
000A: FC 10 Wait
000C: 19 Default Command
000D: 18 Default Command
000E: FC 10 Wait
0010: 19 Default Command
0011: F5 34 Set/Clear NPC Switch
0013: FF End of Script
Event 000C
----------
0000: F5 31 Set/Clear NPC Switch
0002: F4 FA Set/Clear NPC Switch
0004: FF End of Script
Event 000D
----------
0000: F1 AE Event Dialogue
“Huh?”
“What's the matter?”
“That rock's a bit odd…”
“Now that you mention it…”
0002: F2 53 Set/Clear Event Switch
0004: FF End of Script
Event 000E
----------
0000: F1 77 Event Dialogue
Nothing happens.
0002: FF End of Script
Event 000F
----------
0000: FF End of Script
Event 0010
----------
0000: FB 01 Map Entrance
0002: FF End of Script
Event 0011
----------
0000: F8 90 Song/Sound Effect
0002: E0 Change Guest NPC Palette
0003: EF 01 Special Animation
0005: E1 Change Guest NPC Palette
0006: F8 1E Song/Sound Effect
0008: FC 10 Wait
000A: F3 00 Set/Clear Event Switch
000C: FF End of Script
Event 0012
----------
0000: F8 35 Song/Sound Effect
0002: EF 0A Special Animation
0004: FC 40 Wait
0006: FB 1A Map Entrance
0008: FF End of Script
Event 0013
----------
0000: F8 35 Song/Sound Effect
0002: EF 0B Special Animation
0004: FB 1B Map Entrance
0006: F2 20 Set/Clear Event Switch
0008: FF End of Script
Event 0014
----------
0000: FB 05 Map Entrance
0002: FF End of Script
Event 0015
----------
0000: FB 06 Map Entrance
0002: FF End of Script
Event 0016
----------
0000: C2 Default Command
0001: F7 57 Battle
0003: FF End of Script
Event 0017
----------
0000: FB 07 Map Entrance
0002: FF End of Script
Event 0018
----------
0000: F2 7E Set/Clear Event Switch
0002: C1 Default Command
0003: C0 Default Command
0004: F2 7E Set/Clear Event Switch
0006: C0 Default Command
0007: C1 Default Command
0008: C6 Default Command
0009: FF End of Script
Event 0019
----------
0000: F2 21 Set/Clear Event Switch
0002: FF End of Script
Event 001A
----------
0000: F8 30 Song/Sound Effect
0002: F2 7E Set/Clear Event Switch
0004: FC C0 Wait
0006: D0 Shake Screen
0007: D0 Shake Screen
0008: FB 02 Map Entrance
000A: FF End of Script
Event 001B
----------
0000: E2 Flash Screen
0001: E2 Flash Screen
0002: F2 7E Set/Clear Event Switch
0004: C2 Default Command
0005: E2 Flash Screen
0006: E2 Flash Screen
0007: D1 Flash Screen
0008: F2 7E Set/Clear Event Switch
000A: E2 Flash Screen
000B: E2 Flash Screen
000C: D1 Flash Screen
000D: FF End of Script
Event 001C
----------
0000: E2 Flash Screen
0001: E2 Flash Screen
0002: F2 7E Set/Clear Event Switch
0004: C2 Default Command
0005: E2 Flash Screen
0006: E2 Flash Screen
0007: D1 Flash Screen
0008: F2 7E Set/Clear Event Switch
000A: E2 Flash Screen
000B: E2 Flash Screen
000C: D1 Flash Screen
000D: FF End of Script
Event 001D
----------
0000: E7 9F Give/Take Item
0002: F8 CE Song/Sound Effect
0004: E0 Change Guest NPC Palette
0005: EF 05 Special Animation
0007: E1 Change Guest NPC Palette
0008: F2 26 Set/Clear Event Switch
000A: F8 FF Song/Sound Effect
000C: FF End of Script
Event 001E
----------
0000: F8 DC Song/Sound Effect
0002: EF 03 Special Animation
0004: D1 Flash Screen
0005: FE 07 Repeat
0007: F8 FF Song/Sound Effect
0009: FC 10 Wait
000B: FB 1F Map Entrance
000D: D1 Flash Screen
000E: D1 Flash Screen
000F: C9 Default Command
0010: D1 Flash Screen
0011: D1 Flash Screen
0012: C8 Default Command
0013: D1 Flash Screen
0014: C9 Default Command
0015: D1 Flash Screen
0016: D1 Flash Screen
0017: C8 Default Command
0018: D1 Flash Screen
0019: C9 Default Command
001A: D1 Flash Screen
001B: D1 Flash Screen
001C: F8 13 Song/Sound Effect
001E: FC A0 Wait
0020: F1 E5 Event Dialogue
Annihilated…
0022: F8 7F Song/Sound Effect
0024: FC 40 Wait
0026: D8 Reset Game
0027: FF End of Script
Event 001F
----------
0000: E7 A0 Give/Take Item
0002: F8 CE Song/Sound Effect
0004: E0 Change Guest NPC Palette
0005: EF 06 Special Animation
0007: E1 Change Guest NPC Palette
0008: F2 27 Set/Clear Event Switch
000A: F8 FF Song/Sound Effect
000C: FF End of Script
Event 0020
----------
0000: E7 9E Give/Take Item
0002: F8 CE Song/Sound Effect
0004: E0 Change Guest NPC Palette
0005: EF 07 Special Animation
0007: E1 Change Guest NPC Palette
0008: F2 28 Set/Clear Event Switch
000A: F8 FF Song/Sound Effect
000C: FF End of Script
Event 0021
----------
0000: E7 A1 Give/Take Item
0002: F8 CE Song/Sound Effect
0004: E0 Change Guest NPC Palette
0005: EF 08 Special Animation
0007: E1 Change Guest NPC Palette
0008: F2 29 Set/Clear Event Switch
000A: F8 FF Song/Sound Effect
000C: FF End of Script
Event 0022
----------
0000: F8 DC Song/Sound Effect
0002: EF 02 Special Animation
0004: D1 Flash Screen
0005: FE 07 Repeat
0007: F8 FF Song/Sound Effect
0009: FC 10 Wait
000B: FB 1F Map Entrance
000D: D1 Flash Screen
000E: D1 Flash Screen
000F: C9 Default Command
0010: D1 Flash Screen
0011: D1 Flash Screen
0012: C8 Default Command
0013: D1 Flash Screen
0014: C9 Default Command
0015: D1 Flash Screen
0016: D1 Flash Screen
0017: C8 Default Command
0018: D1 Flash Screen
0019: C9 Default Command
001A: D1 Flash Screen
001B: D1 Flash Screen
001C: F8 13 Song/Sound Effect
001E: FC A0 Wait
0020: F1 E5 Event Dialogue
Annihilated…
0022: F8 7F Song/Sound Effect
0024: FC 40 Wait
0026: D8 Reset Game
0027: FF End of Script
Event 0023
----------
0000: FB 1F Map Entrance
0002: F8 BE Song/Sound Effect
0004: F2 7E Set/Clear Event Switch
0006: C2 Default Command
0007: C2 Default Command
0008: F8 BE Song/Sound Effect
000A: F2 7E Set/Clear Event Switch
000C: C2 Default Command
000D: C2 Default Command
000E: F8 BE Song/Sound Effect
0010: F2 7E Set/Clear Event Switch
0012: C2 Default Command
0013: C2 Default Command
0014: C2 Default Command
0015: FC 20 Wait
0017: D0 Shake Screen
0018: FE 03 Repeat
001A: C9 Default Command
001B: F8 13 Song/Sound Effect