summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPikalaxALT <pikalaxalt@gmail.com>2018-04-06 18:16:17 -0400
committerPikalaxALT <pikalaxalt@gmail.com>2018-04-06 18:16:17 -0400
commitb64aa1099ca7d97d6db6d0828e2114392790338f (patch)
tree27361508d60b1f8a17e6e271e5668dd0a467cae8
parentb5badf3e2d1e60052a14c129758d48617b856c1b (diff)
Finish decompiling debug_menu_3 scripts
-rw-r--r--data/debug_menu_3.s122
1 files changed, 94 insertions, 28 deletions
diff --git a/data/debug_menu_3.s b/data/debug_menu_3.s
index 4572b8851..5cce24ab2 100644
--- a/data/debug_menu_3.s
+++ b/data/debug_menu_3.s
@@ -33,7 +33,7 @@ _0845DB16:
_845DB56:
setvaddress _845DB56
checkitem ITEM_EON_TICKET, 0x1
- compare_var_to_value RESULT, 0x1
+ compare RESULT, 0x1
vgoto_if 0x1, _0845DBB4
checkpcitem ITEM_EON_TICKET, 0x1
compare RESULT, 0x1
@@ -155,19 +155,32 @@ _0845E387:
.string "aufgenommen werden.$"
gUnknown_Debug_845E3E0::
- .byte 0x01, 0xe0, 0xe3, 0x45, 0x08, 0x04, 0x00, 0x04, 0x00, 0x00, 0x00, 0x04, 0x00, 0x80, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0xfe, 0xe3, 0x45, 0x08, 0x02, 0xe4, 0x45, 0x08, 0x08, 0x00
- .byte 0x01, 0x02
+ me_checkcompat 0x845e3e0, 0x4, 0x4, 0x4, 0x80
+ me_crc 0x0, _0845E3FE, gUnknown_Debug_845E402
+_0845E3FE:
+ me_giveribbon 0x0, 0x1
+ me_end
gUnknown_Debug_845E402::
- .byte 0x01, 0x02, 0xe4, 0x45, 0x08, 0x04, 0x00, 0x04, 0x00, 0x00, 0x00, 0x04, 0x00, 0x80, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x20, 0xe4, 0x45, 0x08, 0x22, 0xe4, 0x45, 0x08, 0x09, 0x02
+ me_checkcompat 0x845e402, 0x4, 0x4, 0x4, 0x80
+ me_crc 0x0, _0845E420, gUnknown_Debug_845E422
+_0845E420:
+ me_givenationaldex
+ me_end
gUnknown_Debug_845E422::
- .byte 0x01, 0x22, 0xe4, 0x45, 0x08, 0x04, 0x00, 0x04, 0x00, 0x00, 0x00, 0x04, 0x00, 0x80, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x40, 0xe4, 0x45, 0x08, 0x43, 0xe4, 0x45, 0x08, 0x0a, 0x01
- .byte 0x02
+ me_checkcompat 0x845e422, 0x4, 0x4, 0x4, 0x80
+ me_crc 0x0, _0845E440, gUnknown_Debug_845E443
+_0845E440:
+ me_addrareword 0x1
+ me_end
gUnknown_Debug_845E443::
- .byte 0x01, 0x43, 0xe4, 0x45, 0x08, 0x04, 0x00, 0x04, 0x00, 0x00, 0x00, 0x04, 0x00, 0x80, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x61, 0xe4, 0x45, 0x08, 0xef, 0xe4, 0x45, 0x08, 0x0c, 0x67
- .byte 0xe4, 0x45, 0x08, 0x02
+ me_checkcompat 0x845e443, 0x4, 0x4, 0x4, 0x80
+ me_crc 0x0, _0845E461, gUnknown_Debug_845E4EF
+_0845E461:
+ me_givepokemon gUnknown_Debug_845E467
+ me_end
gUnknown_Debug_845E467::
.space 100
@@ -176,40 +189,93 @@ gUnknown_Debug_845E4CB::
.space 36
gUnknown_Debug_845E4EF::
- .byte 0x01, 0xef, 0xe4, 0x45, 0x08, 0x04, 0x00, 0x04, 0x00, 0x00, 0x00, 0x04, 0x00, 0x80, 0x00, 0x00, 0x00, 0x0d, 0x06, 0xe5, 0x45, 0x08, 0x02
+ me_checkcompat gUnknown_Debug_845E4EF, 0x4, 0x4, 0x4, 0x80
+ me_addtrainer gUnknown_Debug_845E506
+ me_end
gUnknown_Debug_845E506::
.space 256
gUnknown_Debug_845E606::
- .byte 0x01, 0x06, 0xe6, 0x45, 0x08, 0x04, 0x00, 0x04, 0x00, 0x00, 0x00, 0x04, 0x00, 0x80, 0x00, 0x00, 0x00, 0x0e, 0x02
+ me_checkcompat gUnknown_Debug_845E606, 0x4, 0x4, 0x4, 0x80
+ me_enableresetrtc
+ me_end
gUnknown_Debug_845E619::
- .byte 0x01, 0x19, 0xe6, 0x45, 0x08, 0x04, 0x00, 0x04, 0x00, 0x00, 0x00, 0x04, 0x00, 0x80, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x00, 0x00, 0x37, 0xe6, 0x45, 0x08, 0x12, 0xe7, 0x45, 0x08, 0x06, 0x08
- .byte 0x01, 0x01, 0x83, 0xe6, 0x45, 0x08, 0x12, 0xe7, 0x45, 0x08, 0x03, 0xff, 0x4c, 0xe6, 0x45, 0x08, 0x04, 0x02, 0x02, 0xbc, 0xd9, 0xe7, 0xe9, 0xd7, 0xdc, 0xd9, 0x00, 0xd8, 0xd9, 0xdd, 0xe2, 0xd9
- .byte 0xe2, 0x00, 0xd0, 0xd5, 0xe8, 0xd9, 0xe6, 0x00, 0xdd, 0xe2, 0x00, 0xd8, 0xd9, 0xe6, 0x00, 0xbb, 0xcc, 0xbf, 0xc8, 0xbb, 0xfe, 0xea, 0xe3, 0xe2, 0x00, 0xbc, 0xc6, 0xf3, 0xce, 0xbf, 0xc8, 0xbc
- .byte 0xcf, 0xcc, 0xc1, 0x00, 0xbd, 0xc3, 0xce, 0xd3, 0xad, 0xff, 0xb8, 0x83, 0xe6, 0x45, 0x08, 0x47, 0xa9, 0x00, 0x01, 0x00, 0x21, 0x0d, 0x80, 0x01, 0x00, 0xbb, 0x01, 0xbf, 0xe6, 0x45, 0x08, 0x4a
- .byte 0xa9, 0x00, 0x01, 0x00, 0x21, 0x0d, 0x80, 0x01, 0x00, 0xbb, 0x01, 0xbf, 0xe6, 0x45, 0x08, 0x6a, 0x5a, 0xbd, 0xc0, 0xe6, 0x45, 0x08, 0x66, 0x6d, 0x1a, 0x00, 0x80, 0xa9, 0x00, 0x1a, 0x01, 0x80
- .byte 0x01, 0x00, 0x09, 0x00, 0x6c, 0x0d, 0x0c, 0xd0, 0xbb, 0xce, 0xbf, 0xcc, 0xf0, 0x00, 0xc2, 0xdd, 0xb8, 0x00, 0xfd, 0x01, 0xab, 0xfb, 0xc3, 0xd7, 0xdc, 0x00, 0xdc, 0xd5, 0xd6, 0xd9, 0x00, 0xdb
- .byte 0xd9, 0xe6, 0xd5, 0xd8, 0xd9, 0x00, 0xd8, 0xdd, 0xd9, 0xe7, 0xd9, 0x00, 0xe7, 0xd9, 0xe0, 0xe8, 0xd9, 0xe2, 0xd9, 0x00, 0xbc, 0xbf, 0xbf, 0xcc, 0xbf, 0xfe, 0xd9, 0xe6, 0xdc, 0xd5, 0xe0, 0xe8
- .byte 0xd9, 0xe2, 0xad, 0x00, 0xc3, 0xd7, 0xdc, 0x00, 0xe7, 0xd7, 0xdc, 0xd9, 0xe2, 0xdf, 0xd9, 0x00, 0xe7, 0xdd, 0xd9, 0x00, 0xd8, 0xdd, 0xe6, 0xab, 0xff
+ me_checkcompat gUnknown_Debug_845E619, 0x4, 0x4, 0x4, 0x80
+ me_checksum 0x0, _0845E637, gUnknown_Debug_845E712
+_0845E637:
+ me_initramscript MAP_PETALBURG_CITY_GYM, 0x1, _0845E683, gUnknown_Debug_845E712
+ me_setmsg 0xff, _0845E64C
+ me_setstatus 0x2
+ me_end
+
+_0845E64C:
+ .string "Besuche deinen Vater in der ARENA\n"
+ .string "von BLÜTENBURG CITY.$"
+
+_0845E683:
+ setvaddress _0845E683
+ checkitem ITEM_GANLON_BERRY, 0x1
+ compare RESULT, 0x1
+ vgoto_if 0x1, _0845E6BF
+ checkpcitem ITEM_GANLON_BERRY, 0x1
+ compare RESULT, 0x1
+ vgoto_if 0x1, _0845E6BF
+ lock
+ faceplayer
+ vmessage _0845E6C0
+ waitmessage
+ waitbuttonpress
+ setorcopyvar VAR_SPECIAL_0, ITEM_GANLON_BERRY
+ setorcopyvar VAR_SPECIAL_1, 0x1
+ callstd 0x0
+ release
+ killscript
+_0845E6BF:
+ gotoram
+
+_0845E6C0:
+ .string "VATER: Hi, {PLAYER}!\p"
+ .string "Ich habe gerade diese seltene BEERE\n"
+ .string "erhalten. Ich schenke sie dir!$"
gUnknown_Debug_845E712::
- .byte 0x01, 0x12, 0xe7, 0x45, 0x08, 0x04, 0x00, 0x04, 0x00, 0x00, 0x00, 0x04, 0x00, 0x80, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x30, 0xe7, 0x45, 0x08, 0x97, 0xe7, 0x45, 0x08, 0x05, 0x36
- .byte 0xe7, 0x45, 0x08, 0x02, 0xb8, 0x36, 0xe7, 0x45, 0x08, 0x81, 0x00, 0x78, 0x00, 0x4b, 0x78, 0x00, 0x21, 0x0d, 0x80, 0x00, 0x00, 0xbb, 0x01, 0x55, 0xe7, 0x45, 0x08, 0xbe, 0x5d, 0xe7, 0x45, 0x08
- .byte 0x0e, 0x02, 0x02, 0xbe, 0x71, 0xe7, 0x45, 0x08, 0x0e, 0x03, 0x02, 0xfd, 0x02, 0x00, 0xeb, 0xe9, 0xe6, 0xd8, 0xd9, 0x00, 0xf6, 0xd6, 0xd9, 0xe6, 0xdb, 0xd9, 0xd6, 0xd9, 0xe2, 0xad, 0xff, 0xbf
- .byte 0xe7, 0x00, 0xdd, 0xe7, 0xe8, 0x00, 0xdf, 0xd9, 0xdd, 0xe2, 0x00, 0xca, 0xe0, 0xd5, 0xe8, 0xee, 0x00, 0xda, 0xf6, 0xe6, 0x00, 0xfd, 0x02, 0xfe, 0xea, 0xe3, 0xe6, 0xdc, 0xd5, 0xe2, 0xd8, 0xd9
- .byte 0xe2, 0xad, 0xad, 0xad, 0xff
+ me_checkcompat gUnknown_Debug_845E712, 0x4, 0x4, 0x4, 0x80
+ me_crc 0x0, _0845E730, gUnknown_Debug_845E797
+_0845E730:
+ me_runscript _0845E736
+ me_end
-gUnknown_Debug_845E797::
- .byte 0x01, 0x97, 0xe7, 0x45, 0x08, 0x04, 0x00, 0x04, 0x00, 0x00, 0x00, 0x04, 0x00, 0x80, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0xb5, 0xe7, 0x45, 0x08, 0xbb, 0xe7, 0x45, 0x08
+_0845E736:
+ setvaddress _0845E736
+ bufferdecorationname 0x0, DECOR_REGISTEEL_DOLL
+ givedecoration DECOR_REGISTEEL_DOLL
+ compare RESULT, 0x0
+ vgoto_if 0x1, _0845E755
+ vloadptr _0845E75D
+ setmysteryeventstatus 0x2
+ end
+_0845E755:
+ vloadptr _0845E771
+ setmysteryeventstatus 0x3
+ end
+
+_0845E75D:
+ .string "{STR_VAR_1} wurde übergeben.$"
+_0845E771:
+ .string "Es ist kein Platz für {STR_VAR_1}\n"
+ .string "vorhanden...$"
+
+gUnknown_Debug_845E797::
+ me_checkcompat gUnknown_Debug_845E797, 0x4, 0x4, 0x4, 0x80
+ me_crc 0x0, gUnknown_Debug_845E7B5, gUnknown_Debug_845E7BB
gUnknown_Debug_845E7B5::
- .byte 0x0b, 0x01, 0x03, 0x0d, 0x00, 0x02
+ me_setrecordmixinggift 0x1, 0x3, ITEM_POTION
+ me_end
gUnknown_Debug_845E7BB::
.byte 0x00
.endif
-
-