underground switches, town map

This commit is contained in:
PikalaxALT 2015-12-09 11:38:40 -05:00
parent 5b7fc7b0fa
commit 7f68db68ad
42 changed files with 1655 additions and 1603 deletions

View File

@ -2293,7 +2293,7 @@ Functione33d0: ; e33d0 (38:73d0)
ld a, $e4 ld a, $e4
call DmgToCgbBGPals call DmgToCgbBGPals
ld a, $fc ld a, $fc
call Functioncf8 call DmgToCgbObjPal0
ret ret
Functione33df: ; e33df (38:73df) Functione33df: ; e33df (38:73df)

View File

@ -1756,7 +1756,7 @@ Functione1190: ; e1190
ld a, $e4 ld a, $e4
call DmgToCgbBGPals call DmgToCgbBGPals
ld a, $24 ld a, $24
call Functioncf8 call DmgToCgbObjPal0
xor a xor a
ld [wd0ec], a ld [wd0ec], a
call DelayFrame call DelayFrame

View File

@ -57,7 +57,7 @@ _ComposeMailMessage: ; 11e75 (mail?)
ld a, %11100100 ld a, %11100100
call DmgToCgbBGPals call DmgToCgbBGPals
ld a, %11100100 ld a, %11100100
call Functioncf8 call DmgToCgbObjPal0
call Function11be0 call Function11be0
ld hl, wc6d0 ld hl, wc6d0
ld e, [hl] ld e, [hl]

View File

@ -39,7 +39,7 @@ Functione1e67: ; e1e67 (38:5e67)
ld a, $e4 ld a, $e4
call DmgToCgbBGPals call DmgToCgbBGPals
ld a, $e0 ld a, $e0
call Functioncf8 call DmgToCgbObjPal0
ret ret
Functione1ebb: ; e1ebb (38:5ebb) Functione1ebb: ; e1ebb (38:5ebb)

View File

@ -13,7 +13,7 @@ HealMachineAnim: ; 12324
ld [Buffer2], a ld [Buffer2], a
call .DoJumptableFunctions call .DoJumptableFunctions
ld a, [Buffer2] ld a, [Buffer2]
call Functiond24 call DmgToCgbObjPal1
ret ret
; 1233e ; 1233e

View File

@ -1,8 +1,8 @@
UnknownScript_0xa0000: UnknownScript_0xa0000:
special RandomPhoneMon special RandomPhoneMon
farscall UnknownScript_0xbde3f farscall PhoneScript_Random2
if_equal $0, UnknownScript_0xa0013 if_equal 0, UnknownScript_0xa0013
farscall UnknownScript_0xbe51e farscall PhoneScript_Generic_Male
farjump UnknownScript_0xa003e farjump UnknownScript_0xa003e
UnknownScript_0xa0013: UnknownScript_0xa0013:
@ -10,9 +10,9 @@ UnknownScript_0xa0013:
UnknownScript_0xa0017: UnknownScript_0xa0017:
special RandomPhoneMon special RandomPhoneMon
farscall UnknownScript_0xbde3f farscall PhoneScript_Random2
if_equal $0, UnknownScript_0xa002a if_equal 0, UnknownScript_0xa002a
farscall UnknownScript_0xbe5d0 farscall PhoneScript_Generic_Female
farjump UnknownScript_0xa0055 farjump UnknownScript_0xa0055
UnknownScript_0xa002a: UnknownScript_0xa002a:
@ -28,31 +28,31 @@ UnknownScript_0xa0036:
UnknownScript_0xa003e: UnknownScript_0xa003e:
special RandomPhoneWildMon special RandomPhoneWildMon
farscall UnknownScript_0xbde3f farscall PhoneScript_Random2
if_equal $0, UnknownScript_0xa0051 if_equal 0, UnknownScript_0xa0051
farscall UnknownScript_0xa017a farscall UnknownScript_0xa017a
farjump UnknownScript_0xa0484 farjump PhoneScript_HangupText_Male
UnknownScript_0xa0051: UnknownScript_0xa0051:
farjump UnknownScript_0xa006c farjump UnknownScript_0xa006c
UnknownScript_0xa0055: UnknownScript_0xa0055:
special RandomPhoneWildMon special RandomPhoneWildMon
farscall UnknownScript_0xbde3f farscall PhoneScript_Random2
if_equal $0, UnknownScript_0xa0068 if_equal 0, UnknownScript_0xa0068
farscall UnknownScript_0xa0226 farscall UnknownScript_0xa0226
farjump UnknownScript_0xa053a farjump PhoneScript_HangupText_Female
UnknownScript_0xa0068: UnknownScript_0xa0068:
farjump UnknownScript_0xa0074 farjump UnknownScript_0xa0074
UnknownScript_0xa006c: UnknownScript_0xa006c:
farscall UnknownScript_0xa0278 farscall UnknownScript_0xa0278
farjump UnknownScript_0xa0484 farjump PhoneScript_HangupText_Male
UnknownScript_0xa0074: UnknownScript_0xa0074:
farscall UnknownScript_0xa0324 farscall UnknownScript_0xa0324
farjump UnknownScript_0xa053a farjump PhoneScript_HangupText_Female
UnknownScript_0xa007c: UnknownScript_0xa007c:
checkcode VAR_CALLERID checkcode VAR_CALLERID
@ -523,14 +523,14 @@ UnknownScript_0xa0324:
end end
UnknownScript_0xa0376: UnknownScript_0xa0376:
farscall UnknownScript_0xa0386 farscall PhoneScript_RematchText_Male
farjump UnknownScript_0xa0484 farjump PhoneScript_HangupText_Male
UnknownScript_0xa037e: UnknownScript_0xa037e:
farscall UnknownScript_0xa0432 farscall PhoneScript_RematchText_Female
farjump UnknownScript_0xa053a farjump PhoneScript_HangupText_Female
UnknownScript_0xa0386: PhoneScript_RematchText_Male:
checkcode VAR_CALLERID checkcode VAR_CALLERID
if_equal PHONE_SCHOOLBOY_JACK, .Jack if_equal PHONE_SCHOOLBOY_JACK, .Jack
if_equal PHONE_SAILOR_HUEY, .Huey if_equal PHONE_SAILOR_HUEY, .Huey
@ -635,7 +635,7 @@ UnknownScript_0xa0386:
buttonsound buttonsound
end end
UnknownScript_0xa0432: PhoneScript_RematchText_Female:
checkcode VAR_CALLERID checkcode VAR_CALLERID
if_equal PHONE_COOLTRAINERF_BETH, .Beth if_equal PHONE_COOLTRAINERF_BETH, .Beth
if_equal PHONE_COOLTRAINERF_REENA, .Reena if_equal PHONE_COOLTRAINERF_REENA, .Reena
@ -688,7 +688,7 @@ UnknownScript_0xa047f:
farwritetext UnknownText_0x66796 farwritetext UnknownText_0x66796
end end
UnknownScript_0xa0484: PhoneScript_HangupText_Male:
checkcode VAR_CALLERID checkcode VAR_CALLERID
if_equal PHONE_SCHOOLBOY_JACK, .Jack if_equal PHONE_SCHOOLBOY_JACK, .Jack
if_equal PHONE_SAILOR_HUEY, .Huey if_equal PHONE_SAILOR_HUEY, .Huey
@ -791,7 +791,7 @@ UnknownScript_0xa0484:
farwritetext UnknownText_0x670eb farwritetext UnknownText_0x670eb
end end
UnknownScript_0xa053a: PhoneScript_HangupText_Female:
checkcode VAR_CALLERID checkcode VAR_CALLERID
if_equal PHONE_POKEFAN_BEVERLY, .Beverly if_equal PHONE_POKEFAN_BEVERLY, .Beverly
if_equal PHONE_COOLTRAINERF_BETH, .Beth if_equal PHONE_COOLTRAINERF_BETH, .Beth
@ -840,7 +840,7 @@ UnknownScript_0xa0584:
farjump UnknownScript_0xa0000 farjump UnknownScript_0xa0000
UnknownScript_0xa058e: UnknownScript_0xa058e:
farjump UnknownScript_0xa0484 farjump PhoneScript_HangupText_Male
UnknownScript_0xa0592: UnknownScript_0xa0592:
scall UnknownScript_0xa05a0 scall UnknownScript_0xa05a0
@ -848,7 +848,7 @@ UnknownScript_0xa0592:
farjump UnknownScript_0xa0017 farjump UnknownScript_0xa0017
UnknownScript_0xa059c: UnknownScript_0xa059c:
farjump UnknownScript_0xa053a farjump PhoneScript_HangupText_Female
UnknownScript_0xa05a0: UnknownScript_0xa05a0:
special RandomPhoneRareWildMon special RandomPhoneRareWildMon
@ -862,37 +862,37 @@ UnknownScript_0xa05a4:
.Wade: .Wade:
farwritetext UnknownText_0x1759f7 farwritetext UnknownText_0x1759f7
buttonsound buttonsound
jump UnknownScript_0xa0484 jump PhoneScript_HangupText_Male
.Derek: .Derek:
farwritetext UnknownText_0x65c66 farwritetext UnknownText_0x65c66
buttonsound buttonsound
jump UnknownScript_0xa0484 jump PhoneScript_HangupText_Male
UnknownScript_0xa05be: UnknownScript_0xa05be:
farwritetext UnknownText_0x64032 farwritetext UnknownText_0x64032
buttonsound buttonsound
jump UnknownScript_0xa0484 jump PhoneScript_HangupText_Male
UnknownScript_0xa05c6: UnknownScript_0xa05c6:
farwritetext UnknownText_0x177378 farwritetext UnknownText_0x177378
buttonsound buttonsound
jump UnknownScript_0xa053a jump PhoneScript_HangupText_Female
UnknownScript_0xa05ce: UnknownScript_0xa05ce:
farwritetext UnknownText_0x64b5f farwritetext UnknownText_0x64b5f
buttonsound buttonsound
jump UnknownScript_0xa0484 jump PhoneScript_HangupText_Male
UnknownScript_0xa05d6: UnknownScript_0xa05d6:
farwritetext UnknownText_0x175dd9 farwritetext UnknownText_0x175dd9
buttonsound buttonsound
jump UnknownScript_0xa0484 jump PhoneScript_HangupText_Male
UnknownScript_0xa05de: UnknownScript_0xa05de:
farwritetext UnknownText_0x176c61 farwritetext UnknownText_0x176c61
buttonsound buttonsound
jump UnknownScript_0xa0484 jump PhoneScript_HangupText_Male
UnknownScript_0xa05e6: UnknownScript_0xa05e6:
checkcode VAR_CALLERID checkcode VAR_CALLERID
@ -953,270 +953,270 @@ UnknownScript_0xa061e:
UnknownScript_0xa0644: UnknownScript_0xa0644:
farwritetext UnknownText_0x176feb farwritetext UnknownText_0x176feb
buttonsound buttonsound
jump UnknownScript_0xa0484 jump PhoneScript_HangupText_Male
UnknownScript_0xa064c: UnknownScript_0xa064c:
farwritetext UnknownText_0x66dc5 farwritetext UnknownText_0x66dc5
buttonsound buttonsound
jump UnknownScript_0xa0484 jump PhoneScript_HangupText_Male
UnknownScript_0xa0654: UnknownScript_0xa0654:
random $b random 11
if_equal $0, UnknownScript_0xa0682 if_equal 0, UnknownScript_0xa0682
if_equal $1, UnknownScript_0xa068a if_equal 1, UnknownScript_0xa068a
if_equal $2, UnknownScript_0xa0692 if_equal 2, UnknownScript_0xa0692
if_equal $3, UnknownScript_0xa069a if_equal 3, UnknownScript_0xa069a
if_equal $4, UnknownScript_0xa06a2 if_equal 4, UnknownScript_0xa06a2
if_equal $5, UnknownScript_0xa06aa if_equal 5, UnknownScript_0xa06aa
if_equal $6, UnknownScript_0xa06b2 if_equal 6, UnknownScript_0xa06b2
if_equal $7, UnknownScript_0xa06ba if_equal 7, UnknownScript_0xa06ba
if_equal $8, UnknownScript_0xa06c2 if_equal 8, UnknownScript_0xa06c2
if_equal $9, UnknownScript_0xa06ca if_equal 9, UnknownScript_0xa06ca
if_equal $a, UnknownScript_0xa06d2 if_equal 10, UnknownScript_0xa06d2
UnknownScript_0xa0682: UnknownScript_0xa0682:
farwritetext UnknownText_0x174261 farwritetext UnknownText_0x174261
buttonsound buttonsound
jump UnknownScript_0xa0484 jump PhoneScript_HangupText_Male
UnknownScript_0xa068a: UnknownScript_0xa068a:
farwritetext UnknownText_0x17429d farwritetext UnknownText_0x17429d
buttonsound buttonsound
jump UnknownScript_0xa0484 jump PhoneScript_HangupText_Male
UnknownScript_0xa0692: UnknownScript_0xa0692:
farwritetext UnknownText_0x1742ee farwritetext UnknownText_0x1742ee
buttonsound buttonsound
jump UnknownScript_0xa0484 jump PhoneScript_HangupText_Male
UnknownScript_0xa069a: UnknownScript_0xa069a:
farwritetext UnknownText_0x174340 farwritetext UnknownText_0x174340
buttonsound buttonsound
jump UnknownScript_0xa0484 jump PhoneScript_HangupText_Male
UnknownScript_0xa06a2: UnknownScript_0xa06a2:
farwritetext UnknownText_0x174391 farwritetext UnknownText_0x174391
buttonsound buttonsound
jump UnknownScript_0xa0484 jump PhoneScript_HangupText_Male
UnknownScript_0xa06aa: UnknownScript_0xa06aa:
farwritetext UnknownText_0x1743e3 farwritetext UnknownText_0x1743e3
buttonsound buttonsound
jump UnknownScript_0xa0484 jump PhoneScript_HangupText_Male
UnknownScript_0xa06b2: UnknownScript_0xa06b2:
farwritetext UnknownText_0x174433 farwritetext UnknownText_0x174433
buttonsound buttonsound
jump UnknownScript_0xa0484 jump PhoneScript_HangupText_Male
UnknownScript_0xa06ba: UnknownScript_0xa06ba:
farwritetext UnknownText_0x174485 farwritetext UnknownText_0x174485
buttonsound buttonsound
jump UnknownScript_0xa0484 jump PhoneScript_HangupText_Male
UnknownScript_0xa06c2: UnknownScript_0xa06c2:
farwritetext UnknownText_0x1744d6 farwritetext UnknownText_0x1744d6
buttonsound buttonsound
jump UnknownScript_0xa0484 jump PhoneScript_HangupText_Male
UnknownScript_0xa06ca: UnknownScript_0xa06ca:
farwritetext UnknownText_0x174522 farwritetext UnknownText_0x174522
buttonsound buttonsound
jump UnknownScript_0xa0484 jump PhoneScript_HangupText_Male
UnknownScript_0xa06d2: UnknownScript_0xa06d2:
farwritetext UnknownText_0x174571 farwritetext UnknownText_0x174571
buttonsound buttonsound
jump UnknownScript_0xa0484 jump PhoneScript_HangupText_Male
UnknownScript_0xa06da: UnknownScript_0xa06da:
random $a random 10
if_equal $0, UnknownScript_0xa0704 if_equal 0, UnknownScript_0xa0704
if_equal $1, UnknownScript_0xa070c if_equal 1, UnknownScript_0xa070c
if_equal $2, UnknownScript_0xa0714 if_equal 2, UnknownScript_0xa0714
if_equal $3, UnknownScript_0xa071c if_equal 3, UnknownScript_0xa071c
if_equal $4, UnknownScript_0xa0724 if_equal 4, UnknownScript_0xa0724
if_equal $5, UnknownScript_0xa072c if_equal 5, UnknownScript_0xa072c
if_equal $6, UnknownScript_0xa0734 if_equal 6, UnknownScript_0xa0734
if_equal $7, UnknownScript_0xa073c if_equal 7, UnknownScript_0xa073c
if_equal $8, UnknownScript_0xa0744 if_equal 8, UnknownScript_0xa0744
if_equal $9, UnknownScript_0xa074c if_equal 9, UnknownScript_0xa074c
UnknownScript_0xa0704: UnknownScript_0xa0704:
farwritetext UnknownText_0x176223 farwritetext UnknownText_0x176223
buttonsound buttonsound
jump UnknownScript_0xa053a jump PhoneScript_HangupText_Female
UnknownScript_0xa070c: UnknownScript_0xa070c:
farwritetext UnknownText_0x1762c3 farwritetext UnknownText_0x1762c3
buttonsound buttonsound
jump UnknownScript_0xa053a jump PhoneScript_HangupText_Female
UnknownScript_0xa0714: UnknownScript_0xa0714:
farwritetext UnknownText_0x17638a farwritetext UnknownText_0x17638a
buttonsound buttonsound
jump UnknownScript_0xa053a jump PhoneScript_HangupText_Female
UnknownScript_0xa071c: UnknownScript_0xa071c:
farwritetext UnknownText_0x176424 farwritetext UnknownText_0x176424
buttonsound buttonsound
jump UnknownScript_0xa053a jump PhoneScript_HangupText_Female
UnknownScript_0xa0724: UnknownScript_0xa0724:
farwritetext UnknownText_0x1764eb farwritetext UnknownText_0x1764eb
buttonsound buttonsound
jump UnknownScript_0xa053a jump PhoneScript_HangupText_Female
UnknownScript_0xa072c: UnknownScript_0xa072c:
farwritetext UnknownText_0x176599 farwritetext UnknownText_0x176599
buttonsound buttonsound
jump UnknownScript_0xa053a jump PhoneScript_HangupText_Female
UnknownScript_0xa0734: UnknownScript_0xa0734:
farwritetext UnknownText_0x1766ac farwritetext UnknownText_0x1766ac
buttonsound buttonsound
jump UnknownScript_0xa053a jump PhoneScript_HangupText_Female
UnknownScript_0xa073c: UnknownScript_0xa073c:
farwritetext UnknownText_0x17674f farwritetext UnknownText_0x17674f
buttonsound buttonsound
jump UnknownScript_0xa053a jump PhoneScript_HangupText_Female
UnknownScript_0xa0744: UnknownScript_0xa0744:
farwritetext UnknownText_0x176816 farwritetext UnknownText_0x176816
buttonsound buttonsound
jump UnknownScript_0xa053a jump PhoneScript_HangupText_Female
UnknownScript_0xa074c: UnknownScript_0xa074c:
farwritetext UnknownText_0x17686d farwritetext UnknownText_0x17686d
buttonsound buttonsound
jump UnknownScript_0xa053a jump PhoneScript_HangupText_Female
UnknownScript_0xa0754: UnknownScript_0xa0754:
random $a random 10
if_equal $0, UnknownScript_0xa077e if_equal 0, UnknownScript_0xa077e
if_equal $1, UnknownScript_0xa0786 if_equal 1, UnknownScript_0xa0786
if_equal $2, UnknownScript_0xa078e if_equal 2, UnknownScript_0xa078e
if_equal $3, UnknownScript_0xa0796 if_equal 3, UnknownScript_0xa0796
if_equal $4, UnknownScript_0xa079e if_equal 4, UnknownScript_0xa079e
if_equal $5, UnknownScript_0xa07a6 if_equal 5, UnknownScript_0xa07a6
if_equal $6, UnknownScript_0xa07ae if_equal 6, UnknownScript_0xa07ae
if_equal $7, UnknownScript_0xa07b6 if_equal 7, UnknownScript_0xa07b6
if_equal $8, UnknownScript_0xa07be if_equal 8, UnknownScript_0xa07be
if_equal $9, UnknownScript_0xa07c6 if_equal 9, UnknownScript_0xa07c6
UnknownScript_0xa077e: UnknownScript_0xa077e:
farwritetext UnknownText_0x65481 farwritetext UnknownText_0x65481
buttonsound buttonsound
jump UnknownScript_0xa0484 jump PhoneScript_HangupText_Male
UnknownScript_0xa0786: UnknownScript_0xa0786:
farwritetext UnknownText_0x654ea farwritetext UnknownText_0x654ea
buttonsound buttonsound
jump UnknownScript_0xa0484 jump PhoneScript_HangupText_Male
UnknownScript_0xa078e: UnknownScript_0xa078e:
farwritetext UnknownText_0x65555 farwritetext UnknownText_0x65555
buttonsound buttonsound
jump UnknownScript_0xa0484 jump PhoneScript_HangupText_Male
UnknownScript_0xa0796: UnknownScript_0xa0796:
farwritetext UnknownText_0x655c7 farwritetext UnknownText_0x655c7
buttonsound buttonsound
jump UnknownScript_0xa0484 jump PhoneScript_HangupText_Male
UnknownScript_0xa079e: UnknownScript_0xa079e:
farwritetext UnknownText_0x65628 farwritetext UnknownText_0x65628
buttonsound buttonsound
jump UnknownScript_0xa0484 jump PhoneScript_HangupText_Male
UnknownScript_0xa07a6: UnknownScript_0xa07a6:
farwritetext UnknownText_0x6569b farwritetext UnknownText_0x6569b
buttonsound buttonsound
jump UnknownScript_0xa0484 jump PhoneScript_HangupText_Male
UnknownScript_0xa07ae: UnknownScript_0xa07ae:
farwritetext UnknownText_0x6574a farwritetext UnknownText_0x6574a
buttonsound buttonsound
jump UnknownScript_0xa0484 jump PhoneScript_HangupText_Male
UnknownScript_0xa07b6: UnknownScript_0xa07b6:
farwritetext UnknownText_0x65810 farwritetext UnknownText_0x65810
buttonsound buttonsound
jump UnknownScript_0xa0484 jump PhoneScript_HangupText_Male
UnknownScript_0xa07be: UnknownScript_0xa07be:
farwritetext UnknownText_0x658c6 farwritetext UnknownText_0x658c6
buttonsound buttonsound
jump UnknownScript_0xa0484 jump PhoneScript_HangupText_Male
UnknownScript_0xa07c6: UnknownScript_0xa07c6:
farwritetext UnknownText_0x65969 farwritetext UnknownText_0x65969
buttonsound buttonsound
jump UnknownScript_0xa0484 jump PhoneScript_HangupText_Male
UnknownScript_0xa07ce: UnknownScript_0xa07ce:
random $a random 10
if_equal $0, UnknownScript_0xa07f8 if_equal 0, UnknownScript_0xa07f8
if_equal $1, UnknownScript_0xa0800 if_equal 1, UnknownScript_0xa0800
if_equal $2, UnknownScript_0xa0808 if_equal 2, UnknownScript_0xa0808
if_equal $3, UnknownScript_0xa0810 if_equal 3, UnknownScript_0xa0810
if_equal $4, UnknownScript_0xa0818 if_equal 4, UnknownScript_0xa0818
if_equal $5, UnknownScript_0xa0820 if_equal 5, UnknownScript_0xa0820
if_equal $6, UnknownScript_0xa0828 if_equal 6, UnknownScript_0xa0828
if_equal $7, UnknownScript_0xa0830 if_equal 7, UnknownScript_0xa0830
if_equal $8, UnknownScript_0xa0838 if_equal 8, UnknownScript_0xa0838
if_equal $9, UnknownScript_0xa0840 if_equal 9, UnknownScript_0xa0840
UnknownScript_0xa07f8: UnknownScript_0xa07f8:
farwritetext UnknownText_0x662bc farwritetext UnknownText_0x662bc
buttonsound buttonsound
jump UnknownScript_0xa0484 jump PhoneScript_HangupText_Male
UnknownScript_0xa0800: UnknownScript_0xa0800:
farwritetext UnknownText_0x662fc farwritetext UnknownText_0x662fc
buttonsound buttonsound
jump UnknownScript_0xa0484 jump PhoneScript_HangupText_Male
UnknownScript_0xa0808: UnknownScript_0xa0808:
farwritetext UnknownText_0x66335 farwritetext UnknownText_0x66335
buttonsound buttonsound
jump UnknownScript_0xa0484 jump PhoneScript_HangupText_Male
UnknownScript_0xa0810: UnknownScript_0xa0810:
farwritetext UnknownText_0x66366 farwritetext UnknownText_0x66366
buttonsound buttonsound
jump UnknownScript_0xa0484 jump PhoneScript_HangupText_Male
UnknownScript_0xa0818: UnknownScript_0xa0818:
farwritetext UnknownText_0x663a1 farwritetext UnknownText_0x663a1
buttonsound buttonsound
jump UnknownScript_0xa0484 jump PhoneScript_HangupText_Male
UnknownScript_0xa0820: UnknownScript_0xa0820:
farwritetext UnknownText_0x663e6 farwritetext UnknownText_0x663e6
buttonsound buttonsound
jump UnknownScript_0xa0484 jump PhoneScript_HangupText_Male
UnknownScript_0xa0828: UnknownScript_0xa0828:
farwritetext UnknownText_0x66421 farwritetext UnknownText_0x66421
buttonsound buttonsound
jump UnknownScript_0xa0484 jump PhoneScript_HangupText_Male
UnknownScript_0xa0830: UnknownScript_0xa0830:
farwritetext UnknownText_0x6645f farwritetext UnknownText_0x6645f
buttonsound buttonsound
jump UnknownScript_0xa0484 jump PhoneScript_HangupText_Male
UnknownScript_0xa0838: UnknownScript_0xa0838:
farwritetext UnknownText_0x6649b farwritetext UnknownText_0x6649b
buttonsound buttonsound
jump UnknownScript_0xa0484 jump PhoneScript_HangupText_Male
UnknownScript_0xa0840: UnknownScript_0xa0840:
farwritetext UnknownText_0x664dd farwritetext UnknownText_0x664dd
buttonsound buttonsound
jump UnknownScript_0xa0484 jump PhoneScript_HangupText_Male
UnknownScript_0xa0848: UnknownScript_0xa0848:
checkevent EVENT_OPENED_MT_SILVER checkevent EVENT_OPENED_MT_SILVER
@ -1245,231 +1245,231 @@ UnknownScript_0xa0848:
iftrue UnknownScript_0xa0898 iftrue UnknownScript_0xa0898
farwritetext UnknownText_0x646a3 farwritetext UnknownText_0x646a3
buttonsound buttonsound
jump UnknownScript_0xa0484 jump PhoneScript_HangupText_Male
UnknownScript_0xa0898: UnknownScript_0xa0898:
farwritetext UnknownText_0x64099 farwritetext UnknownText_0x64099
buttonsound buttonsound
jump UnknownScript_0xa0484 jump PhoneScript_HangupText_Male
UnknownScript_0xa08a0: UnknownScript_0xa08a0:
farwritetext UnknownText_0x640e6 farwritetext UnknownText_0x640e6
buttonsound buttonsound
jump UnknownScript_0xa0484 jump PhoneScript_HangupText_Male
UnknownScript_0xa08a8: UnknownScript_0xa08a8:
farwritetext UnknownText_0x6416d farwritetext UnknownText_0x6416d
buttonsound buttonsound
jump UnknownScript_0xa0484 jump PhoneScript_HangupText_Male
UnknownScript_0xa08b0: UnknownScript_0xa08b0:
farwritetext UnknownText_0x641e8 farwritetext UnknownText_0x641e8
buttonsound buttonsound
jump UnknownScript_0xa0484 jump PhoneScript_HangupText_Male
UnknownScript_0xa08b8: UnknownScript_0xa08b8:
farwritetext UnknownText_0x64247 farwritetext UnknownText_0x64247
buttonsound buttonsound
jump UnknownScript_0xa0484 jump PhoneScript_HangupText_Male
UnknownScript_0xa08c0: UnknownScript_0xa08c0:
farwritetext UnknownText_0x642bb farwritetext UnknownText_0x642bb
buttonsound buttonsound
jump UnknownScript_0xa0484 jump PhoneScript_HangupText_Male
UnknownScript_0xa08c8: UnknownScript_0xa08c8:
farwritetext UnknownText_0x643d4 farwritetext UnknownText_0x643d4
buttonsound buttonsound
jump UnknownScript_0xa0484 jump PhoneScript_HangupText_Male
UnknownScript_0xa08d0: UnknownScript_0xa08d0:
farwritetext UnknownText_0x64448 farwritetext UnknownText_0x64448
buttonsound buttonsound
jump UnknownScript_0xa0484 jump PhoneScript_HangupText_Male
UnknownScript_0xa08d8: UnknownScript_0xa08d8:
farwritetext UnknownText_0x6455b farwritetext UnknownText_0x6455b
buttonsound buttonsound
jump UnknownScript_0xa0484 jump PhoneScript_HangupText_Male
UnknownScript_0xa08e0: UnknownScript_0xa08e0:
farwritetext UnknownText_0x645ff farwritetext UnknownText_0x645ff
buttonsound buttonsound
jump UnknownScript_0xa0484 jump PhoneScript_HangupText_Male
UnknownScript_0xa08e8: UnknownScript_0xa08e8:
farwritetext UnknownText_0x646df farwritetext UnknownText_0x646df
buttonsound buttonsound
jump UnknownScript_0xa0484 jump PhoneScript_HangupText_Male
UnknownScript_0xa08f0: UnknownScript_0xa08f0:
farwritetext UnknownText_0x647d8 farwritetext UnknownText_0x647d8
buttonsound buttonsound
jump UnknownScript_0xa0484 jump PhoneScript_HangupText_Male
UnknownScript_0xa08f8: UnknownScript_0xa08f8:
farwritetext UnknownText_0x1745c2 farwritetext UnknownText_0x1745c2
buttonsound buttonsound
jump UnknownScript_0xa0484 jump PhoneScript_HangupText_Male
UnknownScript_0xa0900: UnknownScript_0xa0900:
farwritetext UnknownText_0x17485b farwritetext UnknownText_0x17485b
buttonsound buttonsound
jump UnknownScript_0xa053a jump PhoneScript_HangupText_Female
UnknownScript_0xa0908: UnknownScript_0xa0908:
farwritetext UnknownText_0x17496b farwritetext UnknownText_0x17496b
buttonsound buttonsound
jump UnknownScript_0xa0484 jump PhoneScript_HangupText_Male
UnknownScript_0xa0910: UnknownScript_0xa0910:
farwritetext UnknownText_0x174c29 farwritetext UnknownText_0x174c29
buttonsound buttonsound
jump UnknownScript_0xa0484 jump PhoneScript_HangupText_Male
UnknownScript_0xa0918: UnknownScript_0xa0918:
farwritetext UnknownText_0x174ec5 farwritetext UnknownText_0x174ec5
buttonsound buttonsound
jump UnknownScript_0xa053a jump PhoneScript_HangupText_Female
UnknownScript_0xa0920: UnknownScript_0xa0920:
farwritetext UnknownText_0x17519b farwritetext UnknownText_0x17519b
buttonsound buttonsound
jump UnknownScript_0xa0484 jump PhoneScript_HangupText_Male
UnknownScript_0xa0928: UnknownScript_0xa0928:
farwritetext UnknownText_0x17549b farwritetext UnknownText_0x17549b
buttonsound buttonsound
jump UnknownScript_0xa053a jump PhoneScript_HangupText_Female
UnknownScript_0xa0930: UnknownScript_0xa0930:
farwritetext UnknownText_0x17571d farwritetext UnknownText_0x17571d
buttonsound buttonsound
jump UnknownScript_0xa0484 jump PhoneScript_HangupText_Male
UnknownScript_0xa0938: UnknownScript_0xa0938:
farwritetext UnknownText_0x175abe farwritetext UnknownText_0x175abe
buttonsound buttonsound
jump UnknownScript_0xa0484 jump PhoneScript_HangupText_Male
UnknownScript_0xa0940: UnknownScript_0xa0940:
farwritetext UnknownText_0x175eaf farwritetext UnknownText_0x175eaf
buttonsound buttonsound
jump UnknownScript_0xa0484 jump PhoneScript_HangupText_Male
UnknownScript_0xa0948: UnknownScript_0xa0948:
farwritetext UnknownText_0x1768b0 farwritetext UnknownText_0x1768b0
buttonsound buttonsound
jump UnknownScript_0xa053a jump PhoneScript_HangupText_Female
UnknownScript_0xa0950: UnknownScript_0xa0950:
farwritetext UnknownText_0x176d32 farwritetext UnknownText_0x176d32
buttonsound buttonsound
jump UnknownScript_0xa0484 jump PhoneScript_HangupText_Male
UnknownScript_0xa0958: UnknownScript_0xa0958:
farwritetext UnknownText_0x1770fb farwritetext UnknownText_0x1770fb
buttonsound buttonsound
jump UnknownScript_0xa0484 jump PhoneScript_HangupText_Male
UnknownScript_0xa0960: UnknownScript_0xa0960:
farwritetext UnknownText_0x177465 farwritetext UnknownText_0x177465
buttonsound buttonsound
jump UnknownScript_0xa053a jump PhoneScript_HangupText_Female
UnknownScript_0xa0968: UnknownScript_0xa0968:
farwritetext UnknownText_0x64bc6 farwritetext UnknownText_0x64bc6
buttonsound buttonsound
jump UnknownScript_0xa0484 jump PhoneScript_HangupText_Male
UnknownScript_0xa0970: UnknownScript_0xa0970:
farwritetext UnknownText_0x64e90 farwritetext UnknownText_0x64e90
buttonsound buttonsound
jump UnknownScript_0xa0484 jump PhoneScript_HangupText_Male
UnknownScript_0xa0978: UnknownScript_0xa0978:
farwritetext UnknownText_0x65161 farwritetext UnknownText_0x65161
buttonsound buttonsound
jump UnknownScript_0xa053a jump PhoneScript_HangupText_Female
UnknownScript_0xa0980: UnknownScript_0xa0980:
farwritetext UnknownText_0x65a23 farwritetext UnknownText_0x65a23
buttonsound buttonsound
jump UnknownScript_0xa0484 jump PhoneScript_HangupText_Male
UnknownScript_0xa0988: UnknownScript_0xa0988:
farwritetext UnknownText_0x65d5c farwritetext UnknownText_0x65d5c
buttonsound buttonsound
jump UnknownScript_0xa0484 jump PhoneScript_HangupText_Male
UnknownScript_0xa0990: UnknownScript_0xa0990:
farwritetext UnknownText_0x65ff2 farwritetext UnknownText_0x65ff2
buttonsound buttonsound
jump UnknownScript_0xa0484 jump PhoneScript_HangupText_Male
UnknownScript_0xa0998: UnknownScript_0xa0998:
farwritetext UnknownText_0x6651e farwritetext UnknownText_0x6651e
buttonsound buttonsound
jump UnknownScript_0xa0484 jump PhoneScript_HangupText_Male
UnknownScript_0xa09a0: UnknownScript_0xa09a0:
farwritetext UnknownText_0x66882 farwritetext UnknownText_0x66882
buttonsound buttonsound
jump UnknownScript_0xa053a jump PhoneScript_HangupText_Female
UnknownScript_0xa09a8: UnknownScript_0xa09a8:
farwritetext UnknownText_0x66aa5 farwritetext UnknownText_0x66aa5
buttonsound buttonsound
jump UnknownScript_0xa0484 jump PhoneScript_HangupText_Male
UnknownScript_0xa09b0: UnknownScript_0xa09b0:
farwritetext UnknownText_0x66ca7 farwritetext UnknownText_0x66ca7
buttonsound buttonsound
jump UnknownScript_0xa0484 jump PhoneScript_HangupText_Male
UnknownScript_0xa09b8: UnknownScript_0xa09b8:
farwritetext UnknownText_0x67106 farwritetext UnknownText_0x67106
buttonsound buttonsound
jump UnknownScript_0xa0484 jump PhoneScript_HangupText_Male
UnknownScript_0xa09c0: UnknownScript_0xa09c0:
farwritetext UnknownText_0x67294 farwritetext UnknownText_0x67294
buttonsound buttonsound
jump UnknownScript_0xa053a jump PhoneScript_HangupText_Female
UnknownScript_0xa09c8: UnknownScript_0xa09c8:
random $3 random 3
if_equal $0, UnknownScript_0xa09d6 if_equal 0, UnknownScript_0xa09d6
if_equal $1, UnknownScript_0xa09de if_equal 1, UnknownScript_0xa09de
if_equal $2, UnknownScript_0xa09e6 if_equal 2, UnknownScript_0xa09e6
UnknownScript_0xa09d6: UnknownScript_0xa09d6:
farwritetext UnknownText_0x64846 farwritetext UnknownText_0x64846
buttonsound buttonsound
jump UnknownScript_0xa0484 jump PhoneScript_HangupText_Male
UnknownScript_0xa09de: UnknownScript_0xa09de:
farwritetext UnknownText_0x64881 farwritetext UnknownText_0x64881
buttonsound buttonsound
jump UnknownScript_0xa0484 jump PhoneScript_HangupText_Male
UnknownScript_0xa09e6: UnknownScript_0xa09e6:
farwritetext UnknownText_0x648dc farwritetext UnknownText_0x648dc
buttonsound buttonsound
jump UnknownScript_0xa0484 jump PhoneScript_HangupText_Male
UnknownScript_0xa09ee: UnknownScript_0xa09ee:
checkcode VAR_KENJI_BREAK checkcode VAR_KENJI_BREAK
if_equal $2, UnknownScript_0xa0a00 if_equal 2, UnknownScript_0xa0a00
if_equal $1, UnknownScript_0xa0a08 if_equal 1, UnknownScript_0xa0a08
farwritetext UnknownText_0x66e17 farwritetext UnknownText_0x66e17
buttonsound buttonsound
jump UnknownScript_0xa0484 jump PhoneScript_HangupText_Male
UnknownScript_0xa0a00: UnknownScript_0xa0a00:
farwritetext UnknownText_0x66e67 farwritetext UnknownText_0x66e67
buttonsound buttonsound
jump UnknownScript_0xa0484 jump PhoneScript_HangupText_Male
UnknownScript_0xa0a08: UnknownScript_0xa0a08:
checkmorn checkmorn
@ -1479,17 +1479,17 @@ UnknownScript_0xa0a08:
setevent EVENT_KENJI_ON_BREAK setevent EVENT_KENJI_ON_BREAK
farwritetext UnknownText_0x66f11 farwritetext UnknownText_0x66f11
buttonsound buttonsound
jump UnknownScript_0xa0484 jump PhoneScript_HangupText_Male
UnknownScript_0xa0a1d: UnknownScript_0xa0a1d:
farwritetext UnknownText_0x66ed3 farwritetext UnknownText_0x66ed3
buttonsound buttonsound
jump UnknownScript_0xa0484 jump PhoneScript_HangupText_Male
UnknownScript_0xa0a25: UnknownScript_0xa0a25:
farwritetext UnknownText_0x66f52 farwritetext UnknownText_0x66f52
buttonsound buttonsound
jump UnknownScript_0xa0484 jump PhoneScript_HangupText_Male
UnknownScript_0xa0a2d: UnknownScript_0xa0a2d:
farwritetext UnknownText_0x174638 farwritetext UnknownText_0x174638
@ -1590,52 +1590,52 @@ UnknownScript_0xa0aa0:
UnknownScript_0xa0aa5: UnknownScript_0xa0aa5:
farwritetext UnknownText_0x174895 farwritetext UnknownText_0x174895
buttonsound buttonsound
jump UnknownScript_0xa053a jump PhoneScript_HangupText_Female
UnknownScript_0xa0aad: UnknownScript_0xa0aad:
farwritetext UnknownText_0x17529c farwritetext UnknownText_0x17529c
buttonsound buttonsound
jump UnknownScript_0xa0484 jump PhoneScript_HangupText_Male
UnknownScript_0xa0ab5: UnknownScript_0xa0ab5:
farwritetext UnknownText_0x175b6d farwritetext UnknownText_0x175b6d
buttonsound buttonsound
jump UnknownScript_0xa0484 jump PhoneScript_HangupText_Male
UnknownScript_0xa0abd: UnknownScript_0xa0abd:
farwritetext UnknownText_0x17750e farwritetext UnknownText_0x17750e
buttonsound buttonsound
jump UnknownScript_0xa053a jump PhoneScript_HangupText_Female
UnknownScript_0xa0ac5: UnknownScript_0xa0ac5:
farwritetext UnknownText_0x64f1a farwritetext UnknownText_0x64f1a
buttonsound buttonsound
jump UnknownScript_0xa0484 jump PhoneScript_HangupText_Male
UnknownScript_0xa0acd: UnknownScript_0xa0acd:
farwritetext UnknownText_0x6520f farwritetext UnknownText_0x6520f
buttonsound buttonsound
jump UnknownScript_0xa053a jump PhoneScript_HangupText_Female
UnknownScript_0xa0ad5: UnknownScript_0xa0ad5:
farwritetext UnknownText_0x65da6 farwritetext UnknownText_0x65da6
buttonsound buttonsound
jump UnknownScript_0xa0484 jump PhoneScript_HangupText_Male
UnknownScript_0xa0add: UnknownScript_0xa0add:
farwritetext UnknownText_0x66087 farwritetext UnknownText_0x66087
buttonsound buttonsound
jump UnknownScript_0xa0484 jump PhoneScript_HangupText_Male
UnknownScript_0xa0ae5: UnknownScript_0xa0ae5:
farwritetext UnknownText_0x6691d farwritetext UnknownText_0x6691d
buttonsound buttonsound
jump UnknownScript_0xa053a jump PhoneScript_HangupText_Female
UnknownScript_0xa0aed: UnknownScript_0xa0aed:
farwritetext UnknownText_0x66d45 farwritetext UnknownText_0x66d45
buttonsound buttonsound
jump UnknownScript_0xa0484 jump PhoneScript_HangupText_Male
UnknownScript_0xa0af5: UnknownScript_0xa0af5:
farwritetext UnknownText_0x175f70 farwritetext UnknownText_0x175f70

File diff suppressed because it is too large Load Diff

View File

@ -339,7 +339,7 @@ Function40217: ; 40217 (10:4217)
ret ret
Function40258: ; 40258 (10:4258) Function40258: ; 40258 (10:4258)
ld de, Unknown_402e8 ld de, DexEntryPage_JoypadCoords
call Function4135a call Function4135a
ld hl, hJoyPressed ; $ffa7 ld hl, hJoyPressed ; $ffa7
ld a, [hl] ld a, [hl]
@ -355,7 +355,7 @@ Function40258: ; 40258 (10:4258)
.a .a
ld a, [wc7d8] ld a, [wc7d8]
ld hl, Jumptable_402f2 ld hl, DexEntryPage_Jumptable
call Pokedex_LoadPointer call Pokedex_LoadPointer
jp [hl] jp [hl]
@ -373,7 +373,7 @@ Function40258: ; 40258 (10:4258)
ret ret
; 40292 (10:4292) ; 40292 (10:4292)
Function40292: ; 40292 Pokedex_Page: ; 40292
ld a, [wPokedexStatus] ld a, [wPokedexStatus]
xor $1 xor $1
ld [wPokedexStatus], a ld [wPokedexStatus], a
@ -410,7 +410,7 @@ Function402aa: ; 402aa (10:42aa)
ret ret
; 402e8 (10:42e8) ; 402e8 (10:42e8)
Unknown_402e8: ; 402e8 DexEntryPage_JoypadCoords: ; 402e8
db D_RIGHT | D_LEFT, 4 db D_RIGHT | D_LEFT, 4
dwcoord 1, 17 dwcoord 1, 17
dwcoord 6, 17 dwcoord 6, 17
@ -419,14 +419,14 @@ Unknown_402e8: ; 402e8
; 402f2 ; 402f2
Jumptable_402f2: ; 402f2 DexEntryPage_Jumptable: ; 402f2
dw Function40292 dw Pokedex_Page
dw Function402fa dw .Area
dw Function40340 dw .Cry
dw Function4034f dw .Print
; 402fa ; 402fa
Function402fa: ; 402fa .Area: ; 402fa
call Function41401 call Function41401
xor a xor a
ld [hSCX], a ld [hSCX], a
@ -438,7 +438,7 @@ Function402fa: ; 402fa
call Pokedex_GetMonAtCursorPosition call Pokedex_GetMonAtCursorPosition
ld a, [wDexCurrentLocation] ld a, [wDexCurrentLocation]
ld e, a ld e, a
predef Function91d11 predef _Area
call Function41401 call Function41401
call DelayFrame call DelayFrame
xor a xor a
@ -458,7 +458,7 @@ Function402fa: ; 402fa
ret ret
; 40340 ; 40340
Function40340: ; 40340 .Cry: ; 40340
call Pokedex_GetMonAtCursorPosition call Pokedex_GetMonAtCursorPosition
ld a, [wd265] ld a, [wd265]
call GetCryIndex call GetCryIndex
@ -468,7 +468,7 @@ Function40340: ; 40340
ret ret
; 4034f ; 4034f
Function4034f: ; 4034f .Print: ; 4034f
call Function41415 call Function41415
xor a xor a
ld [hSCX], a ld [hSCX], a
@ -2393,7 +2393,7 @@ Function41415: ; 41415
ld a, $ff ld a, $ff
call DmgToCgbBGPals call DmgToCgbBGPals
ld a, $ff ld a, $ff
call Functioncf8 call DmgToCgbObjPal0
call DelayFrame call DelayFrame
ret ret
@ -2405,7 +2405,7 @@ Function41427: ; 41427
ld a, $e4 ld a, $e4
call DmgToCgbBGPals call DmgToCgbBGPals
ld a, $e0 ld a, $e0
call Functioncf8 call DmgToCgbObjPal0
ret ret
; 41432 ; 41432

View File

@ -60,7 +60,7 @@ Function90bea: ; 90bea (24:4bea)
ld [hWX], a ld [hWX], a
call Function90c4e call Function90c4e
callba ClearSpriteAnims callba ClearSpriteAnims
call Function90d32 call InitPokegearModeIndicatorArrow
ld a, 8 ld a, 8
call SkipMusic call SkipMusic
ld a, $e3 ld a, $e3
@ -85,8 +85,8 @@ Function90bea: ; 90bea (24:4bea)
ld a, [hCGB] ld a, [hCGB]
and a and a
ret z ret z
ld a, $e4 ld a, %11100100
call Functioncf8 call DmgToCgbObjPal0
ret ret
Function90c4e: ; 90c4e Function90c4e: ; 90c4e
@ -121,6 +121,7 @@ Function90c4e: ; 90c4e
ld l, e ld l, e
ld a, b ld a, b
; standing sprite
push af push af
ld de, VTiles0 tile $10 ld de, VTiles0 tile $10
ld bc, 4 tiles ld bc, 4 tiles
@ -129,7 +130,8 @@ Function90c4e: ; 90c4e
pop hl pop hl
ld de, $c0 ; walking sprite
ld de, 12 tiles
add hl, de add hl, de
ld de, VTiles0 tile $14 ld de, VTiles0 tile $14
ld bc, 4 tiles ld bc, 4 tiles
@ -148,11 +150,11 @@ FastShipGFX: ; 90cb2
INCBIN "gfx/misc/fast_ship.2bpp" INCBIN "gfx/misc/fast_ship.2bpp"
; 90d32 ; 90d32
Function90d32: ; 90d32 (24:4d32) InitPokegearModeIndicatorArrow: ; 90d32 (24:4d32)
depixel 4, 2, 4, 0 depixel 4, 2, 4, 0
ld a, SPRITE_ANIM_INDEX_0D ld a, SPRITE_ANIM_INDEX_0D
call _InitSpriteAnimStruct call _InitSpriteAnimStruct
ld hl, $3 ld hl, SPRITEANIMSTRUCT_TILE_ID
add hl, bc add hl, bc
ld [hl], $0 ld [hl], $0
ret ret
@ -199,10 +201,10 @@ Function90d70: ; 90d70 (24:4d70)
call GetWorldMapLocation call GetWorldMapLocation
cp FAST_SHIP cp FAST_SHIP
jr z, .asm_90d95 jr z, .FastShip
cp SPECIAL_MAP cp SPECIAL_MAP
jr nz, .asm_90d8e jr nz, .LoadLandmark
ld a, [BackupMapGroup] ld a, [BackupMapGroup]
ld b, a ld b, a
@ -210,12 +212,12 @@ Function90d70: ; 90d70 (24:4d70)
ld c, a ld c, a
call GetWorldMapLocation call GetWorldMapLocation
.asm_90d8e .LoadLandmark
ld [wc6d8], a ld [wc6d8], a
ld [wc6d7], a ld [wc6d7], a
ret ret
.asm_90d95 .FastShip
ld [wc6d8], a ld [wc6d8], a
ld a, NEW_BARK_TOWN ld a, NEW_BARK_TOWN
ld [wc6d7], a ld [wc6d7], a
@ -670,7 +672,7 @@ Function9102f: ; 9102f (24:502f)
Function9106a: ; 9106a Function9106a: ; 9106a
push af push af
ld de, 0 depixel 0, 0
ld b, SPRITE_ANIM_INDEX_0A ld b, SPRITE_ANIM_INDEX_0A
ld a, [PlayerGender] ld a, [PlayerGender]
bit 0, a bit 0, a
@ -680,7 +682,7 @@ Function9106a: ; 9106a
.asm_91079 .asm_91079
ld a, b ld a, b
call _InitSpriteAnimStruct call _InitSpriteAnimStruct
ld hl, $3 ld hl, SPRITEANIMSTRUCT_TILE_ID
add hl, bc add hl, bc
ld [hl], $10 ld [hl], $10
pop af pop af
@ -688,10 +690,10 @@ Function9106a: ; 9106a
push bc push bc
callba GetLandmarkCoords callba GetLandmarkCoords
pop bc pop bc
ld hl, $4 ld hl, SPRITEANIMSTRUCT_XCOORD
add hl, bc add hl, bc
ld [hl], e ld [hl], e
ld hl, $5 ld hl, SPRITEANIMSTRUCT_YCOORD
add hl, bc add hl, bc
ld [hl], d ld [hl], d
ret ret
@ -699,15 +701,15 @@ Function9106a: ; 9106a
Function91098: ; 91098 Function91098: ; 91098
push af push af
ld de, 0 depixel 0, 0
ld a, SPRITE_ANIM_INDEX_0D ld a, SPRITE_ANIM_INDEX_0D
call _InitSpriteAnimStruct call _InitSpriteAnimStruct
ld hl, $3 ld hl, SPRITEANIMSTRUCT_TILE_ID
add hl, bc add hl, bc
ld [hl], $4 ld [hl], $4
ld hl, $2 ld hl, SPRITEANIMSTRUCT_ANIM_SEQ_ID
add hl, bc add hl, bc
ld [hl], $0 ld [hl], SPRITE_ANIM_SEQ_00
pop af pop af
push bc push bc
call Function910d4 call Function910d4
@ -736,10 +738,10 @@ Function910d4: ; 910d4
ld e, a ld e, a
callba GetLandmarkCoords callba GetLandmarkCoords
pop bc pop bc
ld hl, $4 ld hl, SPRITEANIMSTRUCT_XCOORD
add hl, bc add hl, bc
ld [hl], e ld [hl], e
ld hl, $5 ld hl, SPRITEANIMSTRUCT_YCOORD
add hl, bc add hl, bc
ld [hl], d ld [hl], d
ret ret
@ -765,7 +767,7 @@ Function910f9: ; 910f9 (24:50f9)
depixel 4, 10, 4, 4 depixel 4, 10, 4, 4
ld a, SPRITE_ANIM_INDEX_14 ld a, SPRITE_ANIM_INDEX_14
call _InitSpriteAnimStruct call _InitSpriteAnimStruct
ld hl, $3 ld hl, SPRITEANIMSTRUCT_TILE_ID
add hl, bc add hl, bc
ld [hl], $8 ld [hl], $8
call _UpdateRadioStation call _UpdateRadioStation
@ -1925,12 +1927,12 @@ PokegearMap: ; 91ae1
ld a, e ld a, e
and a and a
jr nz, .kanto jr nz, .kanto
call Function91ff2 call LoadTownMapGFX
call FillJohtoMap call FillJohtoMap
ret ret
.kanto .kanto
call Function91ff2 call LoadTownMapGFX
call FillKantoMap call FillKantoMap
ret ret
; 91af3 ; 91af3
@ -1946,13 +1948,13 @@ _FlyMap: ; 91af3
xor a xor a
ld [hBGMapMode], a ld [hBGMapMode], a
callba ClearSpriteAnims callba ClearSpriteAnims
call Function91ff2 call LoadTownMapGFX
ld de, GFX_922e1 ld de, FlyMapLabelBorderGFX
ld hl, VTiles2 tile $30 ld hl, VTiles2 tile $30
lb bc, BANK(GFX_922e1), 6 lb bc, BANK(FlyMapLabelBorderGFX), 6
call Request1bpp call Request1bpp
call FlyMap call FlyMap
call Function91c8f call ret_91c8f
ld b, SCGB_02 ld b, SCGB_02
call GetSGBLayout call GetSGBLayout
call SetPalettes call SetPalettes
@ -2182,10 +2184,6 @@ Flypoints: ; 91c5e
const_def const_def
flypoint: MACRO flypoint: MACRO
; \1\@FLY EQUS "FLY_\1"
; \1\@SPAWN EQUS "SPAWN_\1"
; const \1\@FLY
; db \2, \1\@SPAWN
const FLY_\1 const FLY_\1
db \2, SPAWN_\1 db \2, SPAWN_\1
ENDM ENDM
@ -2223,7 +2221,7 @@ KANTO_FLYPOINT EQU const_value
db -1 db -1
; 91c8f ; 91c8f
Function91c8f: ; 91c8f ret_91c8f: ; 91c8f
ret ret
; 91c90 ; 91c90
@ -2344,7 +2342,8 @@ FlyMap: ; 91c90
ret ret
; 91d11 ; 91d11
Function91d11: ; 91d11 _Area: ; 91d11
; e: Current landmark
ld a, [wd002] ld a, [wd002]
push af push af
ld a, [wd003] ld a, [wd003]
@ -2357,25 +2356,24 @@ Function91d11: ; 91d11
ld a, $1 ld a, $1
ld [hInMenu], a ld [hInMenu], a
ld de, GFX_922d1 ld de, PokedexNestIconGFX
ld hl, VTiles0 tile $7f ld hl, VTiles0 tile $7f
lb bc, BANK(GFX_922d1), 1 lb bc, BANK(PokedexNestIconGFX), 1
call Request2bpp ; actually 1bpp
call Function91ed0
ld hl, VTiles0 tile $78
ld c, $4
call Request2bpp call Request2bpp
call Function91ff2 call .GetPlayerOrFastShipIcon
ld hl, VTiles0 tile $78
ld c, 4
call Request2bpp
call LoadTownMapGFX
call FillKantoMap call FillKantoMap
call Function91de9 call .PlaceString_MonsNest
call TownMapPals call TownMapPals
hlbgcoord 0, 0, VBGMap1 hlbgcoord 0, 0, VBGMap1
call TownMapBGUpdate call TownMapBGUpdate
call FillJohtoMap call FillJohtoMap
call Function91de9 call .PlaceString_MonsNest
call TownMapPals call TownMapPals
hlbgcoord 0, 0 hlbgcoord 0, 0
call TownMapBGUpdate call TownMapBGUpdate
@ -2384,8 +2382,8 @@ Function91d11: ; 91d11
call SetPalettes call SetPalettes
xor a xor a
ld [hBGMapMode], a ld [hBGMapMode], a
xor a xor a ; Johto
call Function91e1e call .GetAndPlaceNest
.loop .loop
call JoyTextDelay call JoyTextDelay
ld hl, hJoyPressed ld hl, hJoyPressed
@ -2395,12 +2393,12 @@ Function91d11: ; 91d11
ld a, [hJoypadDown] ld a, [hJoypadDown]
and SELECT and SELECT
jr nz, .select jr nz, .select
call Function91d9b call .LeftRightInput
call Function91dcd call .BlinkNestIcons
jr .next jr .next
.select .select
call Function91e5a call .HideNestsShowPlayer
.next .next
call DelayFrame call DelayFrame
@ -2415,27 +2413,27 @@ Function91d11: ; 91d11
ret ret
; 91d9b ; 91d9b
Function91d9b: ; 91d9b .LeftRightInput: ; 91d9b
ld a, [hl] ld a, [hl]
and $20 and D_LEFT
jr nz, .asm_91da6 jr nz, .left
ld a, [hl] ld a, [hl]
and $10 and D_RIGHT
jr nz, .asm_91db7 jr nz, .right
ret ret
.asm_91da6 .left
ld a, [hWY] ld a, [hWY]
cp $90 cp $90
ret z ret z
call ClearSprites call ClearSprites
ld a, $90 ld a, $90
ld [hWY], a ld [hWY], a
xor a xor a ; Johto
call Function91e1e call .GetAndPlaceNest
ret ret
.asm_91db7 .right
ld a, [StatusFlags] ld a, [StatusFlags]
bit 6, a ; hall of fame bit 6, a ; hall of fame
ret z ret z
@ -2445,39 +2443,39 @@ Function91d9b: ; 91d9b
call ClearSprites call ClearSprites
xor a xor a
ld [hWY], a ld [hWY], a
ld a, $1 ld a, 1 ; Kanto
call Function91e1e call .GetAndPlaceNest
ret ret
; 91dcd ; 91dcd
Function91dcd: ; 91dcd .BlinkNestIcons: ; 91dcd
ld a, [hVBlankCounter] ld a, [hVBlankCounter]
ld e, a ld e, a
and $f and $f
ret nz ret nz
ld a, e ld a, e
and $10 and $10
jr nz, .asm_91ddc jr nz, .copy_sprites
call ClearSprites call ClearSprites
ret ret
.asm_91ddc .copy_sprites
hlcoord 0, 0 hlcoord 0, 0
ld de, Sprites ld de, Sprites
ld bc, $a0 ld bc, SpritesEnd - Sprites
call CopyBytes call CopyBytes
ret ret
; 91de9 ; 91de9
Function91de9: ; 91de9 .PlaceString_MonsNest: ; 91de9
hlcoord 0, 0 hlcoord 0, 0
ld bc, SCREEN_WIDTH ld bc, SCREEN_WIDTH
ld a, $7f ld a, " "
call ByteFill call ByteFill
hlcoord 0, 1 hlcoord 0, 1
ld a, $6 ld a, $6
ld [hli], a ld [hli], a
ld bc, SCREEN_HEIGHT ld bc, SCREEN_WIDTH - 2
ld a, $7 ld a, $7
call ByteFill call ByteFill
ld [hl], $17 ld [hl], $17
@ -2486,54 +2484,56 @@ Function91de9: ; 91de9
call PlaceString call PlaceString
ld h, b ld h, b
ld l, c ld l, c
ld de, String_91e16 ld de, .String_SNest
call PlaceString call PlaceString
ret ret
; 91e16 ; 91e16
String_91e16: .String_SNest:
db "'S NEST@" db "'S NEST@"
; 91e1e ; 91e1e
Function91e1e: ; 91e1e .GetAndPlaceNest: ; 91e1e
ld [wd003], a ld [wd003], a
ld e, a ld e, a
callba Function2a01f callba FindNest ; load nest landmarks into TileMap[0,0]
decoord 0, 0 decoord 0, 0
ld hl, Sprites ld hl, Sprites
.asm_91e2e .nestloop
ld a, [de] ld a, [de]
and a and a
jr z, .asm_91e4d jr z, .done_nest
push de push de
ld e, a ld e, a
push hl push hl
callba GetLandmarkCoords callba GetLandmarkCoords
pop hl pop hl
; load into OAM
ld a, d ld a, d
sub $4 sub 4
ld [hli], a ld [hli], a
ld a, e ld a, e
sub $4 sub 4
ld [hli], a ld [hli], a
ld a, $7f ld a, $7f ; nest icon in this context
ld [hli], a ld [hli], a
xor a xor a
ld [hli], a ld [hli], a
; next
pop de pop de
inc de inc de
jr .asm_91e2e jr .nestloop
.asm_91e4d .done_nest
ld hl, Sprites ld hl, Sprites
decoord 0, 0 decoord 0, 0
ld bc, $a0 ld bc, SpritesEnd - Sprites
call CopyBytes call CopyBytes
ret ret
; 91e5a ; 91e5a
Function91e5a: ; 91e5a .HideNestsShowPlayer: ; 91e5a
call Function91ea9 call .CheckPlayerLocation
ret c ret c
ld a, [wd002] ld a, [wd002]
@ -2541,12 +2541,12 @@ Function91e5a: ; 91e5a
callba GetLandmarkCoords callba GetLandmarkCoords
ld c, e ld c, e
ld b, d ld b, d
ld de, Unknown_91e9c ld de, .PlayerOAM
ld hl, Sprites ld hl, Sprites
.asm_91e70 .ShowPlayerLoop
ld a, [de] ld a, [de]
cp $80 cp $80
jr z, .asm_91e91 jr z, .copy
add b add b
ld [hli], a ld [hli], a
@ -2558,24 +2558,24 @@ Function91e5a: ; 91e5a
inc de inc de
ld a, [de] ld a, [de]
add $78 add $78 ; where the player's sprite is loaded
ld [hli], a ld [hli], a
inc de inc de
push bc push bc
ld c, 0 ld c, 0 ; RED
ld a, [PlayerGender] ld a, [PlayerGender]
bit 0, a bit 0, a
jr z, .asm_91e8c jr z, .got_gender
inc c inc c ; BLUE
.asm_91e8c .got_gender
ld a, c ld a, c
ld [hli], a ld [hli], a
pop bc pop bc
jr .asm_91e70 jr .ShowPlayerLoop
.asm_91e91 .copy
ld hl, Sprites + $10 ld hl, Sprites + $10
ld bc, SpritesEnd - (Sprites + $10) ld bc, SpritesEnd - (Sprites + $10)
xor a xor a
@ -2583,15 +2583,18 @@ Function91e5a: ; 91e5a
ret ret
; 91e9c ; 91e9c
Unknown_91e9c: ; 91e9c .PlayerOAM: ; 91e9c
db -8, -8, 0 db -1 * 8, -1 * 8, 0 ; top left
db -8, 0, 1 db -1 * 8, 0 * 8, 1 ; top right
db 0, -8, 2 db 0 * 8, -1 * 8, 2 ; bottom left
db 0, 0, 3 db 0 * 8, 0 * 8, 3 ; bottom right
db $80 ; terminator db $80 ; terminator
; 91ea9 ; 91ea9
Function91ea9: ; 91ea9 .CheckPlayerLocation: ; 91ea9
; Don't show the player's sprite if you're
; not in the same region as what's currently
; on the screen.
ld a, [wd002] ld a, [wd002]
cp FAST_SHIP cp FAST_SHIP
jr z, .johto jr z, .johto
@ -2622,14 +2625,14 @@ Function91ea9: ; 91ea9
ret ret
; 91ed0 ; 91ed0
Function91ed0: ; 91ed0 .GetPlayerOrFastShipIcon: ; 91ed0
ld a, [wd002] ld a, [wd002]
cp FAST_SHIP cp FAST_SHIP
jr z, .asm_91ede jr z, .FastShip
callba GetPlayerIcon callba GetPlayerIcon
ret ret
.asm_91ede .FastShip
ld de, FastShipGFX ld de, FastShipGFX
ld b, BANK(FastShipGFX) ld b, BANK(FastShipGFX)
ret ret
@ -2679,7 +2682,7 @@ FillTownMap: ; 91f07
hlcoord 0, 0 hlcoord 0, 0
.loop .loop
ld a, [de] ld a, [de]
cp $ff cp -1
ret z ret z
ld a, [de] ld a, [de]
ld [hli], a ld [hli], a
@ -2692,7 +2695,7 @@ TownMapPals: ; 91f13
hlcoord 0, 0 hlcoord 0, 0
decoord 0, 0, AttrMap decoord 0, 0, AttrMap
ld bc, 360 ld bc, SCREEN_WIDTH * SCREEN_HEIGHT
.loop .loop
; Current tile ; Current tile
ld a, [hli] ld a, [hli]
@ -2744,10 +2747,12 @@ TownMapPals: ; 91f13
ret ret
TownMapPalMap: TownMapPalMap:
db $11, $21, $22, $00, $11, $13, $54, $54, $11, $21, $22, $00 dn 1, 1, 2, 1, 2, 2, 0, 0, 1, 1, 1, 3, 5, 4, 5, 4
db $11, $10, $01, $00, $11, $21, $22, $00, $00, $00, $00, $00 dn 1, 1, 2, 1, 2, 2, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0
db $00, $00, $44, $04, $00, $00, $00, $00, $33, $33, $33, $33 dn 1, 1, 2, 1, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
db $33, $33, $33, $03, $33, $33, $33, $33, $00, $00, $00, $00 dn 0, 0, 0, 0, 4, 4, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0
dn 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 3
dn 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0, 0, 0, 0
; 91f7b ; 91f7b
TownMapMon: ; 91f7b TownMapMon: ; 91f7b
@ -2767,16 +2772,16 @@ TownMapMon: ; 91f7b
callba GetSpeciesIcon callba GetSpeciesIcon
; Animation/palette ; Animation/palette
ld de, 0 depixel 0, 0
ld a, $0 ld a, SPRITE_ANIM_INDEX_00
call _InitSpriteAnimStruct call _InitSpriteAnimStruct
ld hl, 3 ld hl, SPRITEANIMSTRUCT_TILE_ID
add hl, bc add hl, bc
ld [hl], 8 ld [hl], $8
ld hl, 2 ld hl, SPRITEANIMSTRUCT_ANIM_SEQ_ID
add hl, bc add hl, bc
ld [hl], 0 ld [hl], SPRITE_ANIM_SEQ_00
ret ret
; 91fa6 ; 91fa6
@ -2802,17 +2807,17 @@ TownMapPlayerIcon: ; 91fa6
call Request2bpp call Request2bpp
; Animation/palette ; Animation/palette
ld de, 0 depixel 0, 0
ld b, $0a ; Male ld b, SPRITE_ANIM_INDEX_0A ; Male
ld a, [PlayerGender] ld a, [PlayerGender]
bit 0, a bit 0, a
jr z, .asm_91fd3 jr z, .got_gender
ld b, $1e ; Female ld b, SPRITE_ANIM_INDEX_1E ; Female
.asm_91fd3 .got_gender
ld a, b ld a, b
call _InitSpriteAnimStruct call _InitSpriteAnimStruct
ld hl, $3 ld hl, SPRITEANIMSTRUCT_TILE_ID
add hl, bc add hl, bc
ld [hl], $10 ld [hl], $10
@ -2822,16 +2827,16 @@ TownMapPlayerIcon: ; 91fa6
callba GetLandmarkCoords callba GetLandmarkCoords
pop bc pop bc
ld hl, 4 ld hl, SPRITEANIMSTRUCT_XCOORD
add hl, bc add hl, bc
ld [hl], e ld [hl], e
ld hl, 5 ld hl, SPRITEANIMSTRUCT_YCOORD
add hl, bc add hl, bc
ld [hl], d ld [hl], d
ret ret
; 0x91ff2 ; 0x91ff2
Function91ff2: ; 91ff2 LoadTownMapGFX: ; 91ff2
ld hl, TownMapGFX ld hl, TownMapGFX
ld de, VTiles2 ld de, VTiles2
lb bc, BANK(TownMapGFX), $30 lb bc, BANK(TownMapGFX), $30
@ -2848,14 +2853,14 @@ KantoMap: ; 92168
INCBIN "gfx/misc/kanto.bin" INCBIN "gfx/misc/kanto.bin"
; 922d1 ; 922d1
PokedexNestIconGFX: ; 922d1
INCBIN "gfx/pokegear/dexmap_nest_icon.2bpp"
GFX_922d1: ; 922d1 FlyMapLabelBorderGFX: ; 922e1
INCBIN "gfx/unknown/0922d1.2bpp" INCBIN "gfx/pokegear/flymap_label_border.2bpp"
GFX_922e1: ; 922e1
INCBIN "gfx/unknown/0922e1.2bpp" Function92311: ; 92311
GFX_92301: ; 92301 ; unreferenced
INCBIN "gfx/unknown/092301.2bpp"
Function92311: ; unreferenced
xor a xor a
ld [wd002], a ld [wd002], a
call ClearBGPalettes call ClearBGPalettes
@ -2868,10 +2873,10 @@ Function92311: ; unreferenced
xor a xor a
ld [hBGMapMode], a ld [hBGMapMode], a
callba ClearSpriteAnims callba ClearSpriteAnims
call Function91ff2 call LoadTownMapGFX
ld de, GFX_922e1 ld de, FlyMapLabelBorderGFX
ld hl, VTiles2 tile $30 ld hl, VTiles2 tile $30
lb bc, BANK(GFX_922e1), 6 lb bc, BANK(FlyMapLabelBorderGFX), 6
call Request1bpp call Request1bpp
call FillKantoMap call FillKantoMap
call TownMapBubble call TownMapBubble
@ -2900,7 +2905,7 @@ Function92311: ; unreferenced
ld a, [hl] ld a, [hl]
and A_BUTTON and A_BUTTON
jr nz, .pressedA jr nz, .pressedA
call Function923b8 call .HandleDPad
call GetMapCursorCoordinates call GetMapCursorCoordinates
callba PlaySpriteAnimations callba PlaySpriteAnimations
call DelayFrame call DelayFrame
@ -2935,36 +2940,36 @@ Function92311: ; unreferenced
ret ret
; 923b8 ; 923b8
Function923b8: ; 923b8 .HandleDPad: ; 923b8
ld hl, hJoyLast ld hl, hJoyLast
ld a, [hl] ld a, [hl]
and D_DOWN | D_RIGHT and D_DOWN | D_RIGHT
jr nz, .asm_923c6 jr nz, .down_right
ld a, [hl] ld a, [hl]
and D_UP | D_LEFT and D_UP | D_LEFT
jr nz, .asm_923d3 jr nz, .up_left
ret ret
.asm_923c6 .down_right
ld hl, wd002 ld hl, wd002
ld a, [hl] ld a, [hl]
cp FLY_INDIGO cp FLY_INDIGO
jr c, .asm_923d0 jr c, .okay_dr
ld [hl], -1 ld [hl], -1
.asm_923d0 .okay_dr
inc [hl] inc [hl]
jr .asm_923dd jr .continue
.asm_923d3 .up_left
ld hl, wd002 ld hl, wd002
ld a, [hl] ld a, [hl]
and a and a
jr nz, .asm_923dc jr nz, .okay_ul
ld [hl], FLY_INDIGO + 1 ld [hl], FLY_INDIGO + 1
.asm_923dc .okay_ul
dec [hl] dec [hl]
.asm_923dd .continue
ld a, [wd002] ld a, [wd002]
cp KANTO_FLYPOINT cp KANTO_FLYPOINT
jr c, .johto jr c, .johto
@ -2972,14 +2977,14 @@ Function923b8: ; 923b8
call FillKantoMap call FillKantoMap
xor a xor a
ld b, $9c ld b, $9c
jr .asm_923f3 jr .finish
.johto .johto
call FillJohtoMap call FillJohtoMap
ld a, $90 ld a, $90
ld b, $98 ld b, $98
.asm_923f3 .finish
ld [hWY], a ld [hWY], a
ld a, b ld a, b
ld [hBGMapAddress + 1], a ld [hBGMapAddress + 1], a

View File

@ -80,7 +80,7 @@ PredefPointers:: ; 856b
add_predef Predef2F add_predef Predef2F
add_predef Function9853 ; $30 add_predef Function9853 ; $30
add_predef Predef_LoadSGBLayout add_predef Predef_LoadSGBLayout
add_predef Function91d11 add_predef _Area
add_predef CheckContestMon add_predef CheckContestMon
add_predef Predef_StartBattle add_predef Predef_StartBattle
add_predef Predef35 add_predef Predef35

View File

@ -18,7 +18,7 @@ SaveMenu: ; 14a1a
.refused .refused
call ExitMenu call ExitMenu
call Functiond90 call ret_d90
callba SaveMenu_LoadEDTile callba SaveMenu_LoadEDTile
scf scf
ret ret
@ -217,7 +217,7 @@ SaveTheGame_yesorno: ; 14baf
dec a dec a
call WriteBackup call WriteBackup
push af push af
call Functiond90 call ret_d90
pop af pop af
and a and a
ret ret

View File

@ -70,178 +70,178 @@ RunScriptCommand: ; 96ca9
ScriptCommandTable: ; 96cb1 ScriptCommandTable: ; 96cb1
dw Script_scall dw Script_scall ; 00
dw Script_farscall dw Script_farscall ; 01
dw Script_ptcall dw Script_ptcall ; 02
dw Script_jump dw Script_jump ; 03
dw Script_farjump dw Script_farjump ; 04
dw Script_ptjump dw Script_ptjump ; 05
dw Script_if_equal dw Script_if_equal ; 06
dw Script_if_not_equal dw Script_if_not_equal ; 07
dw Script_iffalse dw Script_iffalse ; 08
dw Script_iftrue dw Script_iftrue ; 09
dw Script_if_greater_than dw Script_if_greater_than ; 0a
dw Script_if_less_than dw Script_if_less_than ; 0b
dw Script_jumpstd dw Script_jumpstd ; 0c
dw Script_callstd dw Script_callstd ; 0d
dw Script_callasm dw Script_callasm ; 0e
dw Script_special dw Script_special ; 0f
dw Script_ptcallasm dw Script_ptcallasm ; 10
dw Script_checkmaptriggers dw Script_checkmaptriggers ; 11
dw Script_domaptrigger dw Script_domaptrigger ; 12
dw Script_checktriggers dw Script_checktriggers ; 13
dw Script_dotrigger dw Script_dotrigger ; 14
dw Script_writebyte dw Script_writebyte ; 15
dw Script_addvar dw Script_addvar ; 16
dw Script_random dw Script_random ; 17
dw Script_checkver dw Script_checkver ; 18
dw Script_copybytetovar dw Script_copybytetovar ; 19
dw Script_copyvartobyte dw Script_copyvartobyte ; 1a
dw Script_loadvar dw Script_loadvar ; 1b
dw Script_checkcode dw Script_checkcode ; 1c
dw Script_writevarcode dw Script_writevarcode ; 1d
dw Script_writecode dw Script_writecode ; 1e
dw Script_giveitem dw Script_giveitem ; 1f
dw Script_takeitem dw Script_takeitem ; 20
dw Script_checkitem dw Script_checkitem ; 21
dw Script_givemoney dw Script_givemoney ; 22
dw Script_takemoney dw Script_takemoney ; 23
dw Script_checkmoney dw Script_checkmoney ; 24
dw Script_givecoins dw Script_givecoins ; 25
dw Script_takecoins dw Script_takecoins ; 26
dw Script_checkcoins dw Script_checkcoins ; 27
dw Script_addcellnum dw Script_addcellnum ; 28
dw Script_delcellnum dw Script_delcellnum ; 29
dw Script_checkcellnum dw Script_checkcellnum ; 2a
dw Script_checktime dw Script_checktime ; 2b
dw Script_checkpoke dw Script_checkpoke ; 2c
dw Script_givepoke dw Script_givepoke ; 2d
dw Script_giveegg dw Script_giveegg ; 2e
dw Script_givepokeitem dw Script_givepokeitem ; 2f
dw Script_checkpokeitem dw Script_checkpokeitem ; 30
dw Script_checkevent dw Script_checkevent ; 31
dw Script_clearevent dw Script_clearevent ; 32
dw Script_setevent dw Script_setevent ; 33
dw Script_checkflag dw Script_checkflag ; 34
dw Script_clearflag dw Script_clearflag ; 35
dw Script_setflag dw Script_setflag ; 36
dw Script_wildon dw Script_wildon ; 37
dw Script_wildoff dw Script_wildoff ; 38
dw Script_xycompare dw Script_xycompare ; 39
dw Script_warpmod dw Script_warpmod ; 3a
dw Script_blackoutmod dw Script_blackoutmod ; 3b
dw Script_warp dw Script_warp ; 3c
dw Script_readmoney dw Script_readmoney ; 3d
dw Script_readcoins dw Script_readcoins ; 3e
dw Script_RAM2MEM dw Script_RAM2MEM ; 3f
dw Script_pokenamemem dw Script_pokenamemem ; 40
dw Script_itemtotext dw Script_itemtotext ; 41
dw Script_mapnametotext dw Script_mapnametotext ; 42
dw Script_trainertotext dw Script_trainertotext ; 43
dw Script_stringtotext dw Script_stringtotext ; 44
dw Script_itemnotify dw Script_itemnotify ; 45
dw Script_pocketisfull dw Script_pocketisfull ; 46
dw Script_loadfont dw Script_loadfont ; 47
dw Script_refreshscreen dw Script_refreshscreen ; 48
dw Script_closetext dw Script_closetext ; 49
dw Script_loadbytec2cf dw Script_loadbytec2cf ; 4a
dw Script_farwritetext dw Script_farwritetext ; 4b
dw Script_writetext dw Script_writetext ; 4c
dw Script_repeattext dw Script_repeattext ; 4d
dw Script_yesorno dw Script_yesorno ; 4e
dw Script_loadmenudata dw Script_loadmenudata ; 4f
dw Script_writebackup dw Script_writebackup ; 50
dw Script_jumptextfaceplayer dw Script_jumptextfaceplayer ; 51
IF _CRYSTAL IF _CRYSTAL
dw Script_farjumptext dw Script_farjumptext ; 52
ENDC ENDC
dw Script_jumptext dw Script_jumptext ; 53
dw Script_waitbutton dw Script_waitbutton ; 54
dw Script_buttonsound dw Script_buttonsound ; 55
dw Script_pokepic dw Script_pokepic ; 56
dw Script_closepokepic dw Script_closepokepic ; 57
dw Script_interpretmenu dw Script_interpretmenu ; 58
dw Script_interpretmenu2 dw Script_interpretmenu2 ; 59
dw Script_loadpikachudata dw Script_loadpikachudata ; 5a
dw Script_randomwildmon dw Script_randomwildmon ; 5b
dw Script_loadmemtrainer dw Script_loadmemtrainer ; 5c
dw Script_loadwildmon dw Script_loadwildmon ; 5d
dw Script_loadtrainer dw Script_loadtrainer ; 5e
dw Script_startbattle dw Script_startbattle ; 5f
dw Script_returnafterbattle dw Script_returnafterbattle ; 60
dw Script_catchtutorial dw Script_catchtutorial ; 61
dw Script_trainertext dw Script_trainertext ; 62
dw Script_trainerflagaction dw Script_trainerflagaction ; 63
dw Script_winlosstext dw Script_winlosstext ; 64
dw Script_scripttalkafter dw Script_scripttalkafter ; 65
dw Script_end_if_just_battled dw Script_end_if_just_battled ; 66
dw Script_check_just_battled dw Script_check_just_battled ; 67
dw Script_setlasttalked dw Script_setlasttalked ; 68
dw Script_applymovement dw Script_applymovement ; 69
dw Script_applymovement2 dw Script_applymovement2 ; 6a
dw Script_faceplayer dw Script_faceplayer ; 6b
dw Script_faceperson dw Script_faceperson ; 6c
dw Script_variablesprite dw Script_variablesprite ; 6d
dw Script_disappear dw Script_disappear ; 6e
dw Script_appear dw Script_appear ; 6f
dw Script_follow dw Script_follow ; 70
dw Script_stopfollow dw Script_stopfollow ; 71
dw Script_moveperson dw Script_moveperson ; 72
dw Script_writepersonxy dw Script_writepersonxy ; 73
dw Script_loademote dw Script_loademote ; 74
dw Script_showemote dw Script_showemote ; 75
dw Script_spriteface dw Script_spriteface ; 76
dw Script_follownotexact dw Script_follownotexact ; 77
dw Script_earthquake dw Script_earthquake ; 78
dw Script_changemap dw Script_changemap ; 79
dw Script_changeblock dw Script_changeblock ; 7a
dw Script_reloadmap dw Script_reloadmap ; 7b
dw Script_reloadmappart dw Script_reloadmappart ; 7c
dw Script_writecmdqueue dw Script_writecmdqueue ; 7d
dw Script_delcmdqueue dw Script_delcmdqueue ; 7e
dw Script_playmusic dw Script_playmusic ; 7f
dw Script_encountermusic dw Script_encountermusic ; 80
dw Script_musicfadeout dw Script_musicfadeout ; 81
dw Script_playmapmusic dw Script_playmapmusic ; 82
dw Script_reloadmapmusic dw Script_reloadmapmusic ; 83
dw Script_cry dw Script_cry ; 84
dw Script_playsound dw Script_playsound ; 85
dw Script_waitsfx dw Script_waitsfx ; 86
dw Script_warpsound dw Script_warpsound ; 87
dw Script_specialsound dw Script_specialsound ; 88
dw Script_passtoengine dw Script_passtoengine ; 89
dw Script_newloadmap dw Script_newloadmap ; 8a
dw Script_pause dw Script_pause ; 8b
dw Script_deactivatefacing dw Script_deactivatefacing ; 8c
dw Script_priorityjump dw Script_priorityjump ; 8d
dw Script_warpcheck dw Script_warpcheck ; 8e
dw Script_ptpriorityjump dw Script_ptpriorityjump ; 8f
dw Script_return dw Script_return ; 90
dw Script_end dw Script_end ; 91
dw Script_reloadandreturn dw Script_reloadandreturn ; 92
dw Script_resetfuncs dw Script_end_all ; 93
dw Script_pokemart dw Script_pokemart ; 94
dw Script_elevator dw Script_elevator ; 95
dw Script_trade dw Script_trade ; 96
dw Script_askforphonenumber dw Script_askforphonenumber ; 97
dw Script_phonecall dw Script_phonecall ; 98
dw Script_hangup dw Script_hangup ; 99
dw Script_describedecoration dw Script_describedecoration ; 9a
dw Script_fruittree dw Script_fruittree ; 9b
dw Script_specialphonecall dw Script_specialphonecall ; 9c
dw Script_checkphonecall dw Script_checkphonecall ; 9d
dw Script_verbosegiveitem dw Script_verbosegiveitem ; 9e
dw Script_verbosegiveitem2 dw Script_verbosegiveitem2 ; 9f
dw Script_loadwilddata dw Script_swarm ; a0
dw Script_halloffame dw Script_halloffame ; a1
dw Script_credits dw Script_credits ; a2
dw Script_warpfacing dw Script_warpfacing ; a3
dw Script_battletowertext dw Script_battletowertext ; a4
dw Script_displaylocation dw Script_landmarktotext ; a5
dw Script_trainerclassname dw Script_trainerclassname ; a6
dw Script_name dw Script_name ; a7
dw Script_wait dw Script_wait ; a8
dw Script_check_save dw Script_check_save ; a9
; 96e05 ; 96e05
StartScript: ; 96e05 StartScript: ; 96e05
@ -836,7 +836,7 @@ Script_fruittree: ; 970ee
jp ScriptJump jp ScriptJump
; 970fc ; 970fc
Script_loadwilddata: ; 970fc Script_swarm: ; 970fc
; script command 0xa0 ; script command 0xa0
; parameters: ; parameters:
; flag (SingleByteParam) ; flag (SingleByteParam)
@ -849,7 +849,7 @@ Script_loadwilddata: ; 970fc
ld d, a ld d, a
call GetScriptByte call GetScriptByte
ld e, a ld e, a
callba LoadWildData callba StoreSwarmMapIndices
ret ret
; 9710f ; 9710f
@ -2186,7 +2186,7 @@ ConvertLandmarkToText: ; 976f4
jp ConvertMemToText jp ConvertMemToText
; 97701 ; 97701
Script_displaylocation: ; 97701 Script_landmarktotext: ; 97701
; script command 0xa5 ; script command 0xa5
; parameters: ; parameters:
; id (SingleByteParam) ; id (SingleByteParam)
@ -3187,7 +3187,7 @@ endr
ret ret
; 97bc0 ; 97bc0
Script_resetfuncs: ; 97bc0 Script_end_all: ; 97bc0
; script command 0x93 ; script command 0x93
xor a xor a
@ -3219,7 +3219,7 @@ Script_credits: ; 97bf3
callba RedCredits callba RedCredits
DisplayCredits: DisplayCredits:
call Script_resetfuncs call Script_end_all
ld a, $3 ld a, $3
call LoadMapStatus call LoadMapStatus
call StopScript call StopScript

View File

@ -498,22 +498,22 @@ Special_ActivateFishingSwarm: ; c3fc
; c403 ; c403
LoadWildData:: ; c403 StoreSwarmMapIndices:: ; c403
ld a, c ld a, c
and a and a
jr nz, .swarm_route35 jr nz, .yanma
; swarm dark cave violet entrance ; swarm dark cave violet entrance
ld a, d ld a, d
ld [wdfcc], a ld [wDunsparceMapGroup], a
ld a, e ld a, e
ld [wdfcd], a ld [wDunsparceMapNumber], a
ret ret
.swarm_route35 .yanma
ld a, d ld a, d
ld [wdc5a], a ld [wYanmaMapGroup], a
ld a, e ld a, e
ld [wdc5b], a ld [wYanmaMapNumber], a
ret ret
; c419 ; c419

View File

@ -146,7 +146,7 @@ endr
call MenuFunc_1e7f call MenuFunc_1e7f
call .DrawBugContestStatus call .DrawBugContestStatus
call UpdateSprites call UpdateSprites
call Functiond90 call ret_d90
call Function2b5c call Function2b5c
ret ret
; 126d3 ; 126d3

View File

@ -47,7 +47,7 @@ _TownMap: ; 9191c
and a and a
jr z, .sgb jr z, .sgb
ld a, $e4 ld a, $e4
call Functioncf8 call DmgToCgbObjPal0
call DelayFrame call DelayFrame
.sgb .sgb

View File

@ -371,7 +371,7 @@ Function2914e: ; 2914e
ld a, $e4 ld a, $e4
call DmgToCgbBGPals call DmgToCgbBGPals
ld a, $d0 ld a, $d0
call Functioncf8 call DmgToCgbObjPal0
call NextTradeAnim call NextTradeAnim
ld a, $5c ld a, $5c
ld [wcf64], a ld [wcf64], a
@ -1088,7 +1088,7 @@ TradeAnim_Poof: ; 29649
TradeAnim_BulgeThroughTube: ; 29660 TradeAnim_BulgeThroughTube: ; 29660
ld a, $e4 ld a, $e4
call Functioncf8 call DmgToCgbObjPal0
depixel 5, 11 depixel 5, 11
ld a, SPRITE_ANIM_INDEX_10 ld a, SPRITE_ANIM_INDEX_10
call _InitSpriteAnimStruct call _InitSpriteAnimStruct
@ -1379,7 +1379,7 @@ Function297ed: ; 297ed
ld a, $f0 ld a, $f0
.asm_297f6 .asm_297f6
call Functioncf8 call DmgToCgbObjPal0
ld a, $e4 ld a, $e4
call DmgToCgbBGPals call DmgToCgbBGPals
ret ret

View File

@ -1,30 +1,34 @@
LoadWildMonData: ; 29ff8 LoadWildMonData: ; 29ff8
call _GrassWildmonLookup call _GrassWildmonLookup
jr c, .copy jr c, .copy
ld hl, wd25a ld hl, wMornEncounterRate
xor a xor a
ld [hli], a ld [hli], a
ld [hli], a ld [hli], a
ld [hl], a ld [hl], a
jr .done_copy jr .done_copy
.copy .copy
inc hl inc hl
inc hl inc hl
ld de, wd25a ld de, wMornEncounterRate
ld bc, $3 ld bc, 3
call CopyBytes call CopyBytes
.done_copy .done_copy
call _WaterWildmonLookup call _WaterWildmonLookup
ld a, $0 ld a, 0
jr nc, .no_copy jr nc, .no_copy
inc hl inc hl
inc hl inc hl
ld a, [hl] ld a, [hl]
.no_copy .no_copy
ld [wd25d], a ld [wWaterEncounterRate], a
ret ret
Function2a01f: ; 2a01f FindNest: ; 2a01f
; Parameters:
; e: 0 = Johto, 1 = Kanto
; wNamedObjectIndexBuffer: species
hlcoord 0, 0 hlcoord 0, 0
ld bc, SCREEN_WIDTH * SCREEN_HEIGHT ld bc, SCREEN_WIDTH * SCREEN_HEIGHT
xor a xor a
@ -34,25 +38,24 @@ Function2a01f: ; 2a01f
jr nz, .kanto jr nz, .kanto
decoord 0, 0 decoord 0, 0
ld hl, JohtoGrassWildMons ld hl, JohtoGrassWildMons
call Function2a052 call .FindGrass
ld hl, JohtoWaterWildMons ld hl, JohtoWaterWildMons
call Function2a06e call .FindWater
call Function2a0b7 call .RoamMon1
call Function2a0cf call .RoamMon2
ret ret
.kanto .kanto
decoord 0, 0 decoord 0, 0
ld hl, KantoGrassWildMons ld hl, KantoGrassWildMons
call Function2a052 call .FindGrass
ld hl, KantoWaterWildMons ld hl, KantoWaterWildMons
jp Function2a06e jp .FindWater
; 2a052 ; 2a052
Function2a052: ; 2a052 .FindGrass: ; 2a052
.loop
ld a, [hl] ld a, [hl]
cp $ff cp -1
ret z ret z
push hl push hl
ld a, [hli] ld a, [hli]
@ -62,23 +65,22 @@ Function2a052: ; 2a052
rept 3 rept 3
inc hl inc hl
endr endr
ld a, $15 ld a, NUM_WILDMONS_PER_AREA_TIME_OF_DAY * 3
call Function2a088 call .SearchMapForMon
jr nc, .next jr nc, .next_grass
ld [de], a ld [de], a
inc de inc de
.next .next_grass
pop hl pop hl
ld bc, $2f ld bc, WILDMON_GRASS_STRUCTURE_LENGTH
add hl, bc add hl, bc
jr .loop jr .FindGrass
; 2a06e ; 2a06e
Function2a06e: ; 2a06e .FindWater: ; 2a06e
.loop
ld a, [hl] ld a, [hl]
cp $ff cp -1
ret z ret z
push hl push hl
ld a, [hli] ld a, [hli]
@ -86,24 +88,24 @@ Function2a06e: ; 2a06e
ld a, [hli] ld a, [hli]
ld c, a ld c, a
inc hl inc hl
ld a, $3 ld a, 3
call Function2a088 call .SearchMapForMon
jr nc, .next jr nc, .next_water
ld [de], a ld [de], a
inc de inc de
.next .next_water
pop hl pop hl
ld bc, 9 ld bc, 3 * 3
add hl, bc add hl, bc
jr .loop jr .FindWater
; 2a088 ; 2a088
Function2a088: ; 2a088 .SearchMapForMon: ; 2a088
inc hl inc hl
.loop .ScanMapLoop
push af push af
ld a, [wd265] ld a, [wNamedObjectIndexBuffer]
cp [hl] cp [hl]
jr z, .found jr z, .found
rept 2 rept 2
@ -111,68 +113,68 @@ rept 2
endr endr
pop af pop af
dec a dec a
jr nz, .loop jr nz, .ScanMapLoop
and a and a
ret ret
.found .found
pop af pop af
jp Function2a09c jp .AppendNest
; 2a09c ; 2a09c
Function2a09c: ; 2a09c .AppendNest: ; 2a09c
push de push de
call GetWorldMapLocation call GetWorldMapLocation
ld c, a ld c, a
hlcoord 0, 0 hlcoord 0, 0
ld de, SCREEN_WIDTH * SCREEN_HEIGHT ld de, SCREEN_WIDTH * SCREEN_HEIGHT
.loop .AppendNestLoop
ld a, [hli] ld a, [hli]
cp c cp c
jr z, .found jr z, .found_nest
dec de dec de
ld a, e ld a, e
or d or d
jr nz, .loop jr nz, .AppendNestLoop
ld a, c ld a, c
pop de pop de
scf scf
ret ret
.found .found_nest
pop de pop de
and a and a
ret ret
; 2a0b7 ; 2a0b7
Function2a0b7: ; 2a0b7 .RoamMon1: ; 2a0b7
ld a, [wRoamMon1Species] ld a, [wRoamMon1Species]
ld b, a ld b, a
ld a, [wd265] ld a, [wNamedObjectIndexBuffer]
cp b cp b
ret nz ret nz
ld a, [wRoamMon1MapGroup] ld a, [wRoamMon1MapGroup]
ld b, a ld b, a
ld a, [wRoamMon1MapNumber] ld a, [wRoamMon1MapNumber]
ld c, a ld c, a
call Function2a09c call .AppendNest
ret nc ret nc
ld [de], a ld [de], a
inc de inc de
ret ret
; 2a0cf ; 2a0cf
Function2a0cf: ; 2a0cf .RoamMon2: ; 2a0cf
ld a, [wRoamMon2Species] ld a, [wRoamMon2Species]
ld b, a ld b, a
ld a, [wd265] ld a, [wNamedObjectIndexBuffer]
cp b cp b
ret nz ret nz
ld a, [wRoamMon2MapGroup] ld a, [wRoamMon2MapGroup]
ld b, a ld b, a
ld a, [wRoamMon2MapNumber] ld a, [wRoamMon2MapNumber]
ld c, a ld c, a
call Function2a09c call .AppendNest
ret nc ret nc
ld [de], a ld [de], a
inc de inc de
@ -209,7 +211,7 @@ TryWildEncounter:: ; 2a0e7
; 2a111 ; 2a111
GetMapEncounterRate: ; 2a111 GetMapEncounterRate: ; 2a111
ld hl, wd25a ld hl, wMornEncounterRate
call CheckOnWater call CheckOnWater
ld a, 3 ld a, 3
jr z, .ok jr z, .ok
@ -446,10 +448,10 @@ _SwarmWildmonCheck
bit 2, [hl] bit 2, [hl]
pop hl pop hl
jr z, .CheckYanma jr z, .CheckYanma
ld a, [wdfcc] ld a, [wDunsparceMapGroup]
cp d cp d
jr nz, .CheckYanma jr nz, .CheckYanma
ld a, [wdfcd] ld a, [wDunsparceMapNumber]
cp e cp e
jr nz, .CheckYanma jr nz, .CheckYanma
call LookUpWildmonsForMapDE call LookUpWildmonsForMapDE
@ -463,10 +465,10 @@ _SwarmWildmonCheck
bit 3, [hl] bit 3, [hl]
pop hl pop hl
jr z, _NoSwarmWildmon jr z, _NoSwarmWildmon
ld a, [wdc5a] ld a, [wYanmaMapGroup]
cp d cp d
jr nz, _NoSwarmWildmon jr nz, _NoSwarmWildmon
ld a, [wdc5b] ld a, [wYanmaMapNumber]
cp e cp e
jr nz, _NoSwarmWildmon jr nz, _NoSwarmWildmon
call LookUpWildmonsForMapDE call LookUpWildmonsForMapDE
@ -702,11 +704,11 @@ UpdateRoamMons: ; 2a30d
rept 2 rept 2
add hl, bc add hl, bc
endr endr
ld a, [wdfe7] ld a, [wRoamMons_LastMapGroup]
cp [hl] cp [hl]
jr nz, .done jr nz, .done
inc hl inc hl
ld a, [wdfe6] ld a, [wRoamMons_LastMapNumber]
cp [hl] cp [hl]
jr z, .update_loop jr z, .update_loop
dec hl dec hl
@ -787,14 +789,14 @@ JumpRoamMon: ; 2a3cd
; 2a3f6 ; 2a3f6
_BackUpMapIndices: ; 2a3f6 _BackUpMapIndices: ; 2a3f6
ld a, [wdfe4] ld a, [wRoamMons_CurrentMapNumber]
ld [wdfe6], a ld [wRoamMons_LastMapNumber], a
ld a, [wdfe5] ld a, [wRoamMons_CurrentMapGroup]
ld [wdfe7], a ld [wRoamMons_LastMapGroup], a
ld a, [MapNumber] ld a, [MapNumber]
ld [wdfe4], a ld [wRoamMons_CurrentMapNumber], a
ld a, [MapGroup] ld a, [MapGroup]
ld [wdfe5], a ld [wRoamMons_CurrentMapGroup], a
ret ret
; 2a40f ; 2a40f
@ -892,7 +894,7 @@ endr
ld de, StringBuffer1 ld de, StringBuffer1
call CopyName1 call CopyName1
ld a, c ld a, c
ld [wd265], a ld [wNamedObjectIndexBuffer], a
call GetPokemonName call GetPokemonName
ld hl, UnknownText_0x2a51a ld hl, UnknownText_0x2a51a
call PrintText call PrintText
@ -945,7 +947,7 @@ rept 2
endr endr
inc hl inc hl
ld a, [hl] ld a, [hl]
ld [wd265], a ld [wNamedObjectIndexBuffer], a
call GetPokemonName call GetPokemonName
ld hl, StringBuffer1 ld hl, StringBuffer1
ld de, StringBuffer4 ld de, StringBuffer4
@ -1029,7 +1031,7 @@ endr
inc hl ; species inc hl ; species
ld a, BANK(Trainers) ld a, BANK(Trainers)
call GetFarByte call GetFarByte
ld [wd265], a ld [wNamedObjectIndexBuffer], a
call GetPokemonName call GetPokemonName
ld hl, StringBuffer1 ld hl, StringBuffer1
ld de, StringBuffer4 ld de, StringBuffer4

View File

@ -20,7 +20,7 @@ Script_Whiteout: ; 0x124ce
farscall Script_AbortBugContest farscall Script_AbortBugContest
special WarpToSpawnPoint special WarpToSpawnPoint
newloadmap MAPSETUP_WARP newloadmap MAPSETUP_WARP
resetfuncs end_all
.bug_contest .bug_contest
jumpstd bugcontestresultswarp jumpstd bugcontestresultswarp

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -2019,7 +2019,7 @@ CloseSubmenu:: ; 2b3c
call Function2bae call Function2bae
call UpdateSprites call UpdateSprites
call Call_ExitMenu call Call_ExitMenu
call Functiond90 call ret_d90
jr Function2b5c jr Function2b5c
; 2b4d ; 2b4d
@ -2028,7 +2028,7 @@ ExitAllMenus:: ; 2b4d
call Call_ExitMenu call Call_ExitMenu
call Function2bae call Function2bae
call UpdateSprites call UpdateSprites
call Functiond90 call ret_d90
Function2b5c:: ; 2b5c Function2b5c:: ; 2b5c
ld b, SCGB_09 ld b, SCGB_09
call GetSGBLayout call GetSGBLayout

View File

@ -35,10 +35,10 @@ ForceUpdateCGBPals:: ; c37
ld c, rBGPD % $100 ld c, rBGPD % $100
ld b, 4 ; NUM_PALS / 2 ld b, 4 ; NUM_PALS / 2
.bgp .bgp
rept $10 rept 2 palettes
ld a, [hli] ld a, [hli]
ld [$ff00+c], a ld [$ff00+c], a
endr endr
dec b dec b
jr nz, .bgp jr nz, .bgp
@ -48,13 +48,13 @@ ForceUpdateCGBPals:: ; c37
; copy 8 pals to obpd ; copy 8 pals to obpd
ld a, %10000000 ; auto increment, index 0 ld a, %10000000 ; auto increment, index 0
ld [rOBPI], a ld [rOBPI], a
ld c, rOBPD - rJOYP ld c, rOBPD % $100
ld b, 4 ; NUM_PALS / 2 ld b, 4 ; NUM_PALS / 2
.obp .obp
rept $10 rept 2 palettes
ld a, [hli] ld a, [hli]
ld [$ff00+c], a ld [$ff00+c], a
endr endr
dec b dec b
jr nz, .obp jr nz, .obp
@ -163,14 +163,14 @@ DmgToCgbObjPals:: ; ccb
; cf8 ; cf8
Functioncf8:: ; cf8 DmgToCgbObjPal0:: ; cf8
ld [rOBP0], a ld [rOBP0], a
push af push af
; Don't need to be here if CGB ; Don't need to be here if not CGB
ld a, [hCGB] ld a, [hCGB]
and a and a
jr z, .done jr z, .dmg
push hl push hl
push de push de
@ -185,9 +185,9 @@ Functioncf8:: ; cf8
ld de, UnknOBPals ld de, UnknOBPals
ld a, [rOBP0] ld a, [rOBP0]
ld b, a ld b, a
ld c, $1 ld c, 1
call CopyPals call CopyPals
ld a, $1 ld a, 1
ld [hCGBPalUpdate], a ld [hCGBPalUpdate], a
pop af pop af
@ -197,39 +197,45 @@ Functioncf8:: ; cf8
pop de pop de
pop hl pop hl
.done .dmg
pop af pop af
ret ret
; d24 ; d24
Functiond24:: ; d24 DmgToCgbObjPal1:: ; d24
ld [rOBP1], a ld [rOBP1], a
push af push af
ld a, [hCGB] ld a, [hCGB]
and a and a
jr z, .asm_d4e jr z, .dmg
push hl push hl
push de push de
push bc push bc
ld a, [rSVBK] ld a, [rSVBK]
push af push af
ld a, $5 ld a, 5 ; gfx
ld [rSVBK], a ld [rSVBK], a
ld hl, OBPals + 8
ld de, UnknOBPals + 8 ld hl, OBPals + 1 palettes
ld de, UnknOBPals + 1 palettes
ld a, [rOBP1] ld a, [rOBP1]
ld b, a ld b, a
ld c, $1 ld c, 1
call CopyPals call CopyPals
ld a, $1 ld a, 1
ld [hCGBPalUpdate], a ld [hCGBPalUpdate], a
pop af pop af
ld [rSVBK], a ld [rSVBK], a
pop bc pop bc
pop de pop de
pop hl pop hl
.asm_d4e .dmg
pop af pop af
ret ret
; d50 ; d50
@ -274,7 +280,7 @@ CopyPals:: ; d50
jr nz, .loop jr nz, .loop
; de += 8 (next pal) ; de += 8 (next pal)
ld a, 8 ; NUM_PAL_COLORS * 2 ; bytes per pal ld a, 1 palettes ; NUM_PAL_COLORS * 2 ; bytes per pal
add e add e
jr nc, .ok jr nc, .ok
inc d inc d
@ -308,7 +314,7 @@ ClearVBank1:: ; d79
; d90 ; d90
Functiond90:: ; d90 ret_d90:: ; d90
ret ret
; d91 ; d91

View File

@ -9,8 +9,7 @@ scall: macro
enum farscall_command enum farscall_command
farscall: macro farscall: macro
db farscall_command db farscall_command
db BANK(\1) dba \1
dw \1
endm endm
enum ptcall_command enum ptcall_command
@ -28,8 +27,7 @@ jump: macro
enum farjump_command enum farjump_command
farjump: macro farjump: macro
db farjump_command db farjump_command
db BANK(\1) dba \1
dw \1
endm endm
enum ptjump_command enum ptjump_command
@ -93,8 +91,7 @@ callstd: macro
enum callasm_command enum callasm_command
callasm: macro callasm: macro
db callasm_command db callasm_command
db BANK(\1) dba \1
dw \1
endm endm
@ -106,8 +103,7 @@ special: macro
add_special: MACRO add_special: MACRO
\1Special:: \1Special::
db BANK(\1) dba \1
dw \1
ENDM ENDM
@ -505,8 +501,7 @@ loadbytec2cf: macro
enum farwritetext_command enum farwritetext_command
farwritetext: macro farwritetext: macro
db farwritetext_command db farwritetext_command
db BANK(\1) dba \1
dw \1
endm endm
enum writetext_command enum writetext_command
@ -548,8 +543,7 @@ jumptextfaceplayer: macro
enum farjumptext_command enum farjumptext_command
farjumptext: macro farjumptext: macro
db farjumptext_command db farjumptext_command
db BANK(\1) dba \1
dw \1
endm endm
; ENDC ; ENDC
@ -928,9 +922,9 @@ reloadandreturn: macro
db \1 ; which_method db \1 ; which_method
endm endm
enum resetfuncs_command enum end_all_command
resetfuncs: macro end_all: macro
db resetfuncs_command db end_all_command
endm endm
enum pokemart_command enum pokemart_command
@ -1010,9 +1004,9 @@ verbosegiveitem2: macro
db \2 ; var db \2 ; var
endm endm
enum loadwilddata_command enum swarm_command
loadwilddata: macro swarm: macro
db loadwilddata_command db swarm_command
db \1 ; flag db \1 ; flag
map \2 ; map map \2 ; map
endm endm
@ -1042,9 +1036,9 @@ battletowertext: macro
db \1 ; memory db \1 ; memory
endm endm
enum displaylocation_command enum landmarktotext_command
displaylocation: macro landmarktotext: macro
db displaylocation_command db landmarktotext_command
db \1 ; id db \1 ; id
db \2 ; memory db \2 ; memory
endm endm

View File

@ -8,7 +8,7 @@ const_value set 2
const AZALEATOWN_SLOWPOKE3 const AZALEATOWN_SLOWPOKE3
const AZALEATOWN_SLOWPOKE4 const AZALEATOWN_SLOWPOKE4
const AZALEATOWN_FRUIT_TREE const AZALEATOWN_FRUIT_TREE
const AZALEATOWN_AZALEA_ROCKET2 const AZALEATOWN_SILVER
const AZALEATOWN_AZALEA_ROCKET3 const AZALEATOWN_AZALEA_ROCKET3
const AZALEATOWN_KURT_OUTSIDE const AZALEATOWN_KURT_OUTSIDE
@ -41,13 +41,13 @@ AzaleaTown_MapScriptHeader:
return return
UnknownScript_0x198018: UnknownScript_0x198018:
moveperson AZALEATOWN_AZALEA_ROCKET2, $b, $b moveperson AZALEATOWN_SILVER, $b, $b
spriteface PLAYER, RIGHT spriteface PLAYER, RIGHT
showemote EMOTE_SHOCK, PLAYER, 15 showemote EMOTE_SHOCK, PLAYER, 15
special Special_FadeOutMusic special Special_FadeOutMusic
pause 15 pause 15
appear AZALEATOWN_AZALEA_ROCKET2 appear AZALEATOWN_SILVER
applymovement AZALEATOWN_AZALEA_ROCKET2, MovementData_0x198134 applymovement AZALEATOWN_SILVER, MovementData_0x198134
spriteface PLAYER, DOWN spriteface PLAYER, DOWN
jump UnknownScript_0x198049 jump UnknownScript_0x198049
@ -56,8 +56,8 @@ UnknownScript_0x198034:
showemote EMOTE_SHOCK, PLAYER, 15 showemote EMOTE_SHOCK, PLAYER, 15
special Special_FadeOutMusic special Special_FadeOutMusic
pause 15 pause 15
appear AZALEATOWN_AZALEA_ROCKET2 appear AZALEATOWN_SILVER
applymovement AZALEATOWN_AZALEA_ROCKET2, MovementData_0x19813c applymovement AZALEATOWN_SILVER, MovementData_0x19813c
spriteface PLAYER, UP spriteface PLAYER, UP
UnknownScript_0x198049: UnknownScript_0x198049:
playmusic MUSIC_RIVAL_ENCOUNTER playmusic MUSIC_RIVAL_ENCOUNTER
@ -71,7 +71,7 @@ UnknownScript_0x198049:
checkevent EVENT_GOT_CHIKORITA_FROM_ELM checkevent EVENT_GOT_CHIKORITA_FROM_ELM
iftrue UnknownScript_0x198081 iftrue UnknownScript_0x198081
winlosstext UnknownText_0x1981e6, UnknownText_0x19835b winlosstext UnknownText_0x1981e6, UnknownText_0x19835b
setlasttalked $b setlasttalked AZALEATOWN_SILVER
loadtrainer RIVAL1, RIVAL1_6 loadtrainer RIVAL1, RIVAL1_6
startbattle startbattle
reloadmapmusic reloadmapmusic
@ -80,7 +80,7 @@ UnknownScript_0x198049:
UnknownScript_0x198071: UnknownScript_0x198071:
winlosstext UnknownText_0x1981e6, UnknownText_0x19835b winlosstext UnknownText_0x1981e6, UnknownText_0x19835b
setlasttalked $b setlasttalked AZALEATOWN_SILVER
loadtrainer RIVAL1, RIVAL1_4 loadtrainer RIVAL1, RIVAL1_4
startbattle startbattle
reloadmapmusic reloadmapmusic
@ -89,7 +89,7 @@ UnknownScript_0x198071:
UnknownScript_0x198081: UnknownScript_0x198081:
winlosstext UnknownText_0x1981e6, UnknownText_0x19835b winlosstext UnknownText_0x1981e6, UnknownText_0x19835b
setlasttalked $b setlasttalked AZALEATOWN_SILVER
loadtrainer RIVAL1, RIVAL1_5 loadtrainer RIVAL1, RIVAL1_5
startbattle startbattle
reloadmapmusic reloadmapmusic
@ -103,9 +103,9 @@ UnknownScript_0x198091:
waitbutton waitbutton
closetext closetext
spriteface PLAYER, LEFT spriteface PLAYER, LEFT
applymovement AZALEATOWN_AZALEA_ROCKET2, MovementData_0x198144 applymovement AZALEATOWN_SILVER, MovementData_0x198144
playsound SFX_EXIT_BUILDING playsound SFX_EXIT_BUILDING
disappear AZALEATOWN_AZALEA_ROCKET2 disappear AZALEATOWN_SILVER
dotrigger $0 dotrigger $0
waitsfx waitsfx
playmapmusic playmapmusic

View File

@ -72,7 +72,7 @@ UnknownScript_0x185c25:
checkevent EVENT_GOT_CHIKORITA_FROM_ELM checkevent EVENT_GOT_CHIKORITA_FROM_ELM
iftrue UnknownScript_0x185c70 iftrue UnknownScript_0x185c70
winlosstext UnknownText_0x185d9b, UnknownText_0x185e2c winlosstext UnknownText_0x185d9b, UnknownText_0x185e2c
setlasttalked $4 setlasttalked BURNEDTOWER1F_SILVER
loadtrainer RIVAL1, RIVAL1_9 loadtrainer RIVAL1, RIVAL1_9
startbattle startbattle
reloadmapmusic reloadmapmusic
@ -81,7 +81,7 @@ UnknownScript_0x185c25:
UnknownScript_0x185c60: UnknownScript_0x185c60:
winlosstext UnknownText_0x185d9b, UnknownText_0x185e2c winlosstext UnknownText_0x185d9b, UnknownText_0x185e2c
setlasttalked $4 setlasttalked BURNEDTOWER1F_SILVER
loadtrainer RIVAL1, RIVAL1_7 loadtrainer RIVAL1, RIVAL1_7
startbattle startbattle
reloadmapmusic reloadmapmusic
@ -90,7 +90,7 @@ UnknownScript_0x185c60:
UnknownScript_0x185c70: UnknownScript_0x185c70:
winlosstext UnknownText_0x185d9b, UnknownText_0x185e2c winlosstext UnknownText_0x185d9b, UnknownText_0x185e2c
setlasttalked $4 setlasttalked BURNEDTOWER1F_SILVER
loadtrainer RIVAL1, RIVAL1_8 loadtrainer RIVAL1, RIVAL1_8
startbattle startbattle
reloadmapmusic reloadmapmusic

View File

@ -125,7 +125,7 @@ UnknownScript_0x19c0ae:
checkevent EVENT_GOT_CHIKORITA_FROM_ELM checkevent EVENT_GOT_CHIKORITA_FROM_ELM
iftrue UnknownScript_0x19c104 iftrue UnknownScript_0x19c104
winlosstext UnknownText_0x19c57f, UnknownText_0x19c5e6 winlosstext UnknownText_0x19c57f, UnknownText_0x19c5e6
setlasttalked $3 setlasttalked CHERRYGROVECITY_SILVER
loadtrainer RIVAL1, RIVAL1_3 loadtrainer RIVAL1, RIVAL1_3
writecode VAR_BATTLETYPE, BATTLETYPE_CANLOSE writecode VAR_BATTLETYPE, BATTLETYPE_CANLOSE
startbattle startbattle
@ -136,7 +136,7 @@ UnknownScript_0x19c0ae:
UnknownScript_0x19c0ee: UnknownScript_0x19c0ee:
winlosstext UnknownText_0x19c57f, UnknownText_0x19c5e6 winlosstext UnknownText_0x19c57f, UnknownText_0x19c5e6
setlasttalked $3 setlasttalked CHERRYGROVECITY_SILVER
loadtrainer RIVAL1, RIVAL1_1 loadtrainer RIVAL1, RIVAL1_1
writecode VAR_BATTLETYPE, BATTLETYPE_CANLOSE writecode VAR_BATTLETYPE, BATTLETYPE_CANLOSE
startbattle startbattle
@ -147,7 +147,7 @@ UnknownScript_0x19c0ee:
UnknownScript_0x19c104: UnknownScript_0x19c104:
winlosstext UnknownText_0x19c57f, UnknownText_0x19c5e6 winlosstext UnknownText_0x19c57f, UnknownText_0x19c5e6
setlasttalked $3 setlasttalked CHERRYGROVECITY_SILVER
loadtrainer RIVAL1, RIVAL1_2 loadtrainer RIVAL1, RIVAL1_2
writecode VAR_BATTLETYPE, BATTLETYPE_CANLOSE writecode VAR_BATTLETYPE, BATTLETYPE_CANLOSE
startbattle startbattle

View File

@ -9,7 +9,7 @@ const_value set 2
const CIANWOODCITY_ROCK5 const CIANWOODCITY_ROCK5
const CIANWOODCITY_ROCK6 const CIANWOODCITY_ROCK6
const CIANWOODCITY_POKEFAN_F const CIANWOODCITY_POKEFAN_F
const CIANWOODCITY_SUPER_NERD const CIANWOODCITY_EUSINE
const CIANWOODCITY_SUICUNE const CIANWOODCITY_SUICUNE
CianwoodCity_MapScriptHeader: CianwoodCity_MapScriptHeader:
@ -37,7 +37,7 @@ CianwoodCity_MapScriptHeader:
setevent EVENT_EUSINE_IN_BURNED_TOWER setevent EVENT_EUSINE_IN_BURNED_TOWER
checkevent EVENT_FOUGHT_EUSINE checkevent EVENT_FOUGHT_EUSINE
iffalse UnknownScript_0x1a001d iffalse UnknownScript_0x1a001d
disappear CIANWOODCITY_SUPER_NERD disappear CIANWOODCITY_EUSINE
UnknownScript_0x1a001d: UnknownScript_0x1a001d:
return return
@ -60,14 +60,14 @@ UnknownScript_0x1a001e:
iftrue .Done iftrue .Done
setevent EVENT_FOUGHT_EUSINE setevent EVENT_FOUGHT_EUSINE
playmusic MUSIC_MYSTICALMAN_ENCOUNTER playmusic MUSIC_MYSTICALMAN_ENCOUNTER
appear CIANWOODCITY_SUPER_NERD appear CIANWOODCITY_EUSINE
applymovement CIANWOODCITY_SUPER_NERD, MovementData_0x1a00e7 applymovement CIANWOODCITY_EUSINE, MovementData_0x1a00e7
loadfont loadfont
writetext UnknownText_0x1a0433 writetext UnknownText_0x1a0433
waitbutton waitbutton
closetext closetext
winlosstext UnknownText_0x1a05a1, 0 winlosstext UnknownText_0x1a05a1, 0
setlasttalked $c setlasttalked CIANWOODCITY_EUSINE
loadtrainer MYSTICALMAN, EUSINE loadtrainer MYSTICALMAN, EUSINE
startbattle startbattle
reloadmapmusic reloadmapmusic
@ -77,8 +77,8 @@ UnknownScript_0x1a001e:
writetext UnknownText_0x1a05c3 writetext UnknownText_0x1a05c3
waitbutton waitbutton
closetext closetext
applymovement CIANWOODCITY_SUPER_NERD, MovementData_0x1a00ec applymovement CIANWOODCITY_EUSINE, MovementData_0x1a00ec
disappear CIANWOODCITY_SUPER_NERD disappear CIANWOODCITY_EUSINE
pause 20 pause 20
special Special_FadeOutMusic special Special_FadeOutMusic
playmapmusic playmapmusic

View File

@ -100,7 +100,7 @@ UnknownScript_0x1800ce:
checkevent EVENT_GOT_CHIKORITA_FROM_ELM checkevent EVENT_GOT_CHIKORITA_FROM_ELM
iftrue UnknownScript_0x180103 iftrue UnknownScript_0x180103
winlosstext UnknownText_0x180295, UnknownText_0x1802fd winlosstext UnknownText_0x180295, UnknownText_0x1802fd
setlasttalked $5 setlasttalked INDIGOPLATEAUPOKECENTER1F_SILVER
loadtrainer RIVAL2, 6 loadtrainer RIVAL2, 6
startbattle startbattle
reloadmapmusic reloadmapmusic
@ -109,7 +109,7 @@ UnknownScript_0x1800ce:
UnknownScript_0x1800f3: UnknownScript_0x1800f3:
winlosstext UnknownText_0x180295, UnknownText_0x1802fd winlosstext UnknownText_0x180295, UnknownText_0x1802fd
setlasttalked $5 setlasttalked INDIGOPLATEAUPOKECENTER1F_SILVER
loadtrainer RIVAL2, 4 loadtrainer RIVAL2, 4
startbattle startbattle
reloadmapmusic reloadmapmusic
@ -118,7 +118,7 @@ UnknownScript_0x1800f3:
UnknownScript_0x180103: UnknownScript_0x180103:
winlosstext UnknownText_0x180295, UnknownText_0x1802fd winlosstext UnknownText_0x180295, UnknownText_0x1802fd
setlasttalked $5 setlasttalked INDIGOPLATEAUPOKECENTER1F_SILVER
loadtrainer RIVAL2, 5 loadtrainer RIVAL2, 5
startbattle startbattle
reloadmapmusic reloadmapmusic

View File

@ -1,6 +1,6 @@
const_value set 2 const_value set 2
const LANCESROOM_LANCE const LANCESROOM_LANCE
const LANCESROOM_TEACHER const LANCESROOM_MARY
const LANCESROOM_OAK const LANCESROOM_OAK
LancesRoom_MapScriptHeader: LancesRoom_MapScriptHeader:
@ -63,7 +63,7 @@ LanceScript_0x180e7b:
waitbutton waitbutton
closetext closetext
winlosstext UnknownText_0x1810a4, 0 winlosstext UnknownText_0x1810a4, 0
setlasttalked $2 setlasttalked LANCESROOM_LANCE
loadtrainer CHAMPION, LANCE loadtrainer CHAMPION, LANCE
startbattle startbattle
reloadmapmusic reloadmapmusic
@ -84,16 +84,16 @@ LanceScript_0x180e7b:
spriteface LANCESROOM_LANCE, DOWN spriteface LANCESROOM_LANCE, DOWN
pause 10 pause 10
spriteface PLAYER, DOWN spriteface PLAYER, DOWN
appear LANCESROOM_TEACHER appear LANCESROOM_MARY
applymovement LANCESROOM_TEACHER, MovementData_0x180f41 applymovement LANCESROOM_MARY, MovementData_0x180f41
loadfont loadfont
writetext UnknownText_0x1811dd writetext UnknownText_0x1811dd
waitbutton waitbutton
closetext closetext
appear LANCESROOM_OAK appear LANCESROOM_OAK
applymovement LANCESROOM_OAK, MovementData_0x180f46 applymovement LANCESROOM_OAK, MovementData_0x180f46
follow LANCESROOM_TEACHER, LANCESROOM_OAK follow LANCESROOM_MARY, LANCESROOM_OAK
applymovement LANCESROOM_TEACHER, MovementData_0x180f49 applymovement LANCESROOM_MARY, MovementData_0x180f49
stopfollow stopfollow
spriteface LANCESROOM_OAK, UP spriteface LANCESROOM_OAK, UP
spriteface LANCESROOM_LANCE, LEFT spriteface LANCESROOM_LANCE, LEFT
@ -101,7 +101,7 @@ LanceScript_0x180e7b:
writetext UnknownText_0x18121b writetext UnknownText_0x18121b
waitbutton waitbutton
closetext closetext
applymovement LANCESROOM_TEACHER, MovementData_0x180f4c applymovement LANCESROOM_MARY, MovementData_0x180f4c
spriteface PLAYER, LEFT spriteface PLAYER, LEFT
loadfont loadfont
writetext UnknownText_0x18134b writetext UnknownText_0x18134b
@ -114,7 +114,7 @@ LanceScript_0x180e7b:
waitbutton waitbutton
closetext closetext
follow LANCESROOM_LANCE, PLAYER follow LANCESROOM_LANCE, PLAYER
spriteface LANCESROOM_TEACHER, UP spriteface LANCESROOM_MARY, UP
spriteface LANCESROOM_OAK, UP spriteface LANCESROOM_OAK, UP
applymovement LANCESROOM_LANCE, MovementData_0x180f53 applymovement LANCESROOM_LANCE, MovementData_0x180f53
stopfollow stopfollow
@ -123,13 +123,13 @@ LanceScript_0x180e7b:
applymovement PLAYER, MovementData_0x180f55 applymovement PLAYER, MovementData_0x180f55
playsound SFX_EXIT_BUILDING playsound SFX_EXIT_BUILDING
disappear PLAYER disappear PLAYER
applymovement LANCESROOM_TEACHER, MovementData_0x180f57 applymovement LANCESROOM_MARY, MovementData_0x180f57
showemote EMOTE_SHOCK, LANCESROOM_TEACHER, 15 showemote EMOTE_SHOCK, LANCESROOM_MARY, 15
loadfont loadfont
writetext UnknownText_0x1813c5 writetext UnknownText_0x1813c5
pause 30 pause 30
closetext closetext
applymovement LANCESROOM_TEACHER, MovementData_0x180f5b applymovement LANCESROOM_MARY, MovementData_0x180f5b
special FadeOutPalettes special FadeOutPalettes
pause 15 pause 15
warpfacing UP, HALL_OF_FAME, $4, $d warpfacing UP, HALL_OF_FAME, $4, $d

View File

@ -6,80 +6,80 @@ MountMoon_MapScriptHeader:
db 2 db 2
; triggers ; triggers
dw UnknownScript_0x74089, 0 dw .Trigger0, 0
dw UnknownScript_0x7408d, 0 dw .Trigger1, 0
.MapCallbacks: .MapCallbacks:
db 0 db 0
UnknownScript_0x74089: .Trigger0:
priorityjump UnknownScript_0x7408e priorityjump .RivalBattle
end end
UnknownScript_0x7408d: .Trigger1:
end end
UnknownScript_0x7408e: .RivalBattle:
spriteface PLAYER, RIGHT spriteface PLAYER, RIGHT
showemote EMOTE_SHOCK, PLAYER, 15 showemote EMOTE_SHOCK, PLAYER, 15
special Special_FadeOutMusic special Special_FadeOutMusic
pause 15 pause 15
applymovement MOUNTMOON_SILVER, MovementData_0x740f9 applymovement MOUNTMOON_SILVER, MountMoonSilverMovementBefore
playmusic MUSIC_RIVAL_ENCOUNTER playmusic MUSIC_RIVAL_ENCOUNTER
loadfont loadfont
writetext UnknownText_0x74105 writetext MountMoonSilverTextBefore
waitbutton waitbutton
closetext closetext
checkevent EVENT_GOT_TOTODILE_FROM_ELM checkevent EVENT_GOT_TOTODILE_FROM_ELM
iftrue UnknownScript_0x740c3 iftrue .Totodile
checkevent EVENT_GOT_CHIKORITA_FROM_ELM checkevent EVENT_GOT_CHIKORITA_FROM_ELM
iftrue UnknownScript_0x740d3 iftrue .Chikorita
winlosstext UnknownText_0x7419d, UnknownText_0x742e0 winlosstext MountMoonSilverTextWin, MountMoonSilverTextLoss
setlasttalked $2 setlasttalked MOUNTMOON_SILVER
loadtrainer RIVAL2, 3 loadtrainer RIVAL2, 3
startbattle startbattle
reloadmapmusic reloadmapmusic
returnafterbattle returnafterbattle
jump UnknownScript_0x740e3 jump .FinishBattle
UnknownScript_0x740c3: .Totodile:
winlosstext UnknownText_0x7419d, UnknownText_0x742e0 winlosstext MountMoonSilverTextWin, MountMoonSilverTextLoss
setlasttalked $2 setlasttalked MOUNTMOON_SILVER
loadtrainer RIVAL2, 1 loadtrainer RIVAL2, 1
startbattle startbattle
reloadmapmusic reloadmapmusic
returnafterbattle returnafterbattle
jump UnknownScript_0x740e3 jump .FinishBattle
UnknownScript_0x740d3: .Chikorita:
winlosstext UnknownText_0x7419d, UnknownText_0x742e0 winlosstext MountMoonSilverTextWin, MountMoonSilverTextLoss
setlasttalked $2 setlasttalked MOUNTMOON_SILVER
loadtrainer RIVAL2, 2 loadtrainer RIVAL2, 2
startbattle startbattle
reloadmapmusic reloadmapmusic
returnafterbattle returnafterbattle
jump UnknownScript_0x740e3 jump .FinishBattle
UnknownScript_0x740e3: .FinishBattle:
playmusic MUSIC_RIVAL_AFTER playmusic MUSIC_RIVAL_AFTER
loadfont loadfont
writetext UnknownText_0x741fa writetext MountMoonSilverTextAfter
waitbutton waitbutton
closetext closetext
applymovement MOUNTMOON_SILVER, MovementData_0x740fd applymovement MOUNTMOON_SILVER, MountMoonSilverMovementAfter
disappear MOUNTMOON_SILVER disappear MOUNTMOON_SILVER
dotrigger $1 dotrigger $1
setevent EVENT_BEAT_RIVAL_IN_MT_MOON setevent EVENT_BEAT_RIVAL_IN_MT_MOON
playmapmusic playmapmusic
end end
MovementData_0x740f9: MountMoonSilverMovementBefore:
step_left step_left
step_left step_left
step_left step_left
step_end step_end
MovementData_0x740fd: MountMoonSilverMovementAfter:
step_right step_right
step_right step_right
step_down step_down
@ -89,7 +89,7 @@ MovementData_0x740fd:
step_down step_down
step_end step_end
UnknownText_0x74105: MountMoonSilverTextBefore:
text "<......> <......> <......>" text "<......> <......> <......>"
para "It's been a while," para "It's been a while,"
@ -109,7 +109,7 @@ UnknownText_0x74105:
line "show you!" line "show you!"
done done
UnknownText_0x7419d: MountMoonSilverTextWin:
text "<......> <......> <......>" text "<......> <......> <......>"
para "I thought I raised" para "I thought I raised"
@ -122,7 +122,7 @@ UnknownText_0x7419d:
line "wasn't enough…" line "wasn't enough…"
done done
UnknownText_0x741fa: MountMoonSilverTextAfter:
text "<......> <......> <......>" text "<......> <......> <......>"
para "…You won, fair" para "…You won, fair"
@ -148,7 +148,7 @@ UnknownText_0x741fa:
line "beating you." line "beating you."
done done
UnknownText_0x742e0: MountMoonSilverTextLoss:
text "<......> <......> <......>" text "<......> <......> <......>"
para "I've repaid my" para "I've repaid my"

View File

@ -1,5 +1,5 @@
const_value set 2 const_value set 2
const RADIOTOWER5F_GENTLEMAN const RADIOTOWER5F_DIRECTOR
const RADIOTOWER5F_ROCKET const RADIOTOWER5F_ROCKET
const RADIOTOWER5F_ROCKET_GIRL const RADIOTOWER5F_ROCKET_GIRL
const RADIOTOWER5F_ROCKER const RADIOTOWER5F_ROCKER
@ -10,42 +10,42 @@ RadioTower5F_MapScriptHeader:
db 3 db 3
; triggers ; triggers
dw UnknownScript_0x6000e, 0 dw .Trigger0, 0
dw UnknownScript_0x6000f, 0 dw .Trigger1, 0
dw UnknownScript_0x60010, 0 dw .Trigger2, 0
.MapCallbacks: .MapCallbacks:
db 0 db 0
UnknownScript_0x6000e: .Trigger0:
end end
UnknownScript_0x6000f: .Trigger1:
end end
UnknownScript_0x60010: .Trigger2:
end end
UnknownScript_0x60011: FakeDirectorScript:
spriteface RADIOTOWER5F_GENTLEMAN, UP spriteface RADIOTOWER5F_DIRECTOR, UP
showemote EMOTE_SHOCK, RADIOTOWER5F_GENTLEMAN, 15 showemote EMOTE_SHOCK, RADIOTOWER5F_DIRECTOR, 15
loadfont loadfont
writetext UnknownText_0x60128 writetext FakeDirectorTextBefore1
waitbutton waitbutton
closetext closetext
applymovement RADIOTOWER5F_GENTLEMAN, MovementData_0x60109 applymovement RADIOTOWER5F_DIRECTOR, FakeDirectorMovement
playmusic MUSIC_ROCKET_ENCOUNTER playmusic MUSIC_ROCKET_ENCOUNTER
loadfont loadfont
writetext UnknownText_0x60147 writetext FakeDirectorTextBefore2
waitbutton waitbutton
closetext closetext
winlosstext UnknownText_0x60223, 0 winlosstext FakeDirectorWinText, 0
setlasttalked $2 setlasttalked RADIOTOWER5F_DIRECTOR
loadtrainer EXECUTIVEM, 3 loadtrainer EXECUTIVEM, 3
startbattle startbattle
returnafterbattle returnafterbattle
loadfont loadfont
writetext UnknownText_0x60246 writetext FakeDirectorTextAfter
buttonsound buttonsound
verbosegiveitem BASEMENT_KEY verbosegiveitem BASEMENT_KEY
closetext closetext
@ -57,14 +57,14 @@ Director:
faceplayer faceplayer
loadfont loadfont
checkevent EVENT_CLEARED_RADIO_TOWER checkevent EVENT_CLEARED_RADIO_TOWER
iftrue UnknownScript_0x60054 iftrue .TrueDirector
writetext UnknownText_0x60246 writetext FakeDirectorTextAfter
waitbutton waitbutton
closetext closetext
end end
UnknownScript_0x60054: .TrueDirector:
writetext UnknownText_0x60824 writetext RadioTower5FDirectorText
waitbutton waitbutton
closetext closetext
end end
@ -75,26 +75,26 @@ TrainerExecutivef1:
Executivef1Script: Executivef1Script:
end_if_just_battled end_if_just_battled
loadfont loadfont
writetext UnknownText_0x60358 writetext Executivef1AfterText
waitbutton waitbutton
closetext closetext
end end
UnknownScript_0x6006e: RadioTower5FRocketBossTrigger:
applymovement PLAYER, MovementData_0x60125 applymovement PLAYER, MovementData_0x60125
playmusic MUSIC_ROCKET_ENCOUNTER playmusic MUSIC_ROCKET_ENCOUNTER
spriteface RADIOTOWER5F_ROCKET, RIGHT spriteface RADIOTOWER5F_ROCKET, RIGHT
loadfont loadfont
writetext UnknownText_0x603d1 writetext RadioTower5FRocketBossBeforeText
waitbutton waitbutton
closetext closetext
winlosstext UnknownText_0x604f3, 0 winlosstext RadioTower5FRocketBossWinText, 0
setlasttalked $3 setlasttalked RADIOTOWER5F_ROCKET
loadtrainer EXECUTIVEM, 1 loadtrainer EXECUTIVEM, 1
startbattle startbattle
returnafterbattle returnafterbattle
loadfont loadfont
writetext UnknownText_0x6050e writetext RadioTower5FRocketBossAfterText
waitbutton waitbutton
closetext closetext
special Special_FadeBlackQuickly special Special_FadeBlackQuickly
@ -116,28 +116,28 @@ UnknownScript_0x6006e:
setevent EVENT_BLACKTHORN_CITY_SUPER_NERD_BLOCKS_GYM setevent EVENT_BLACKTHORN_CITY_SUPER_NERD_BLOCKS_GYM
clearevent EVENT_BLACKTHORN_CITY_SUPER_NERD_DOES_NOT_BLOCK_GYM clearevent EVENT_BLACKTHORN_CITY_SUPER_NERD_DOES_NOT_BLOCK_GYM
special PlayMapMusic special PlayMapMusic
disappear RADIOTOWER5F_GENTLEMAN disappear RADIOTOWER5F_DIRECTOR
moveperson RADIOTOWER5F_GENTLEMAN, $c, $0 moveperson RADIOTOWER5F_DIRECTOR, $c, $0
appear RADIOTOWER5F_GENTLEMAN appear RADIOTOWER5F_DIRECTOR
applymovement RADIOTOWER5F_GENTLEMAN, MovementData_0x6010f applymovement RADIOTOWER5F_DIRECTOR, RadioTower5FDirectorWalksIn
spriteface PLAYER, RIGHT spriteface PLAYER, RIGHT
loadfont loadfont
writetext UnknownText_0x605b2 writetext RadioTower5FDirectorThankYouText
buttonsound buttonsound
verbosegiveitem CLEAR_BELL verbosegiveitem CLEAR_BELL
writetext UnknownText_0x6062c writetext RadioTower5FDirectorDescribeClearBellText
waitbutton waitbutton
closetext closetext
dotrigger $2 dotrigger $2
domaptrigger ECRUTEAK_HOUSE, $0 domaptrigger ECRUTEAK_HOUSE, $0
setevent EVENT_GOT_CLEAR_BELL setevent EVENT_GOT_CLEAR_BELL
setevent EVENT_TEAM_ROCKET_DISBANDED setevent EVENT_TEAM_ROCKET_DISBANDED
jump UnknownScript_0x600f1 jump .UselessJump
UnknownScript_0x600f1: .UselessJump:
applymovement RADIOTOWER5F_GENTLEMAN, MovementData_0x6011a applymovement RADIOTOWER5F_DIRECTOR, RadioTower5FDirectorWalksOut
playsound SFX_EXIT_BUILDING playsound SFX_EXIT_BUILDING
disappear RADIOTOWER5F_GENTLEMAN disappear RADIOTOWER5F_DIRECTOR
end end
Ben: Ben:
@ -147,15 +147,15 @@ ItemFragment_0x600fe:
db ULTRA_BALL, 1 db ULTRA_BALL, 1
MapRadioTower5FSignpost0Script: MapRadioTower5FSignpost0Script:
jumptext UnknownText_0x608e0 jumptext SignpostRadioTower5FOffice
MapRadioTower5FSignpost2Script: MapRadioTower5FSignpost2Script:
jumptext UnknownText_0x608f9 jumptext SignpostRadioTower5FStudio
RadioTower5FBookshelf: RadioTower5FBookshelf:
jumpstd magazinebookshelf jumpstd magazinebookshelf
MovementData_0x60109: FakeDirectorMovement:
step_left step_left
step_left step_left
step_left step_left
@ -163,7 +163,7 @@ MovementData_0x60109:
step_up step_up
step_end step_end
MovementData_0x6010f: RadioTower5FDirectorWalksIn:
step_down step_down
step_down step_down
step_right step_right
@ -176,7 +176,7 @@ MovementData_0x6010f:
step_left step_left
step_end step_end
MovementData_0x6011a: RadioTower5FDirectorWalksOut:
step_right step_right
step_up step_up
step_up step_up
@ -194,12 +194,12 @@ MovementData_0x60125:
step_left step_left
step_end step_end
UnknownText_0x60128: FakeDirectorTextBefore1:
text "Y-you! You came to" text "Y-you! You came to"
line "rescue me?" line "rescue me?"
done done
UnknownText_0x60147: FakeDirectorTextBefore2:
text "Is that what you" text "Is that what you"
line "were expecting?" line "were expecting?"
@ -221,12 +221,12 @@ UnknownText_0x60147:
cont "you can beat me!" cont "you can beat me!"
done done
UnknownText_0x60223: FakeDirectorWinText:
text "OK, OK. I'll tell" text "OK, OK. I'll tell"
line "you where he is." line "you where he is."
done done
UnknownText_0x60246: FakeDirectorTextAfter:
text "We stashed the" text "We stashed the"
line "real DIRECTOR in" line "real DIRECTOR in"
@ -258,7 +258,7 @@ Executivef1BeatenText:
line "I still lost…" line "I still lost…"
done done
UnknownText_0x60358: Executivef1AfterText:
text "<PLAYER>, isn't it?" text "<PLAYER>, isn't it?"
para "A brat like you" para "A brat like you"
@ -272,7 +272,7 @@ UnknownText_0x60358:
cont "your power." cont "your power."
done done
UnknownText_0x603d1: RadioTower5FRocketBossBeforeText:
text "Oh? You managed to" text "Oh? You managed to"
line "get this far?" line "get this far?"
@ -301,12 +301,12 @@ UnknownText_0x603d1:
cont "our plans." cont "our plans."
done done
UnknownText_0x604f3: RadioTower5FRocketBossWinText:
text "No! Forgive me," text "No! Forgive me,"
line "GIOVANNI!" line "GIOVANNI!"
done done
UnknownText_0x6050e: RadioTower5FRocketBossAfterText:
text "How could this be?" text "How could this be?"
para "Our dreams have" para "Our dreams have"
@ -324,7 +324,7 @@ UnknownText_0x6050e:
para "Farewell." para "Farewell."
done done
UnknownText_0x605b2: RadioTower5FDirectorThankYouText:
text "DIRECTOR: <PLAY_G>," text "DIRECTOR: <PLAY_G>,"
line "thank you!" line "thank you!"
@ -339,7 +339,7 @@ UnknownText_0x605b2:
cont "take this." cont "take this."
done done
UnknownText_0x6062c: RadioTower5FDirectorDescribeClearBellText:
text "There used to be a" text "There used to be a"
line "tower right here" line "tower right here"
cont "in GOLDENROD CITY." cont "in GOLDENROD CITY."
@ -390,7 +390,7 @@ UnknownText_0x6062c:
line "my OFFICE." line "my OFFICE."
done done
UnknownText_0x60824: RadioTower5FDirectorText:
text "DIRECTOR: Hello," text "DIRECTOR: Hello,"
line "<PLAY_G>!" line "<PLAY_G>!"
@ -413,12 +413,12 @@ BenText:
line "to our music?" line "to our music?"
done done
UnknownText_0x608e0: SignpostRadioTower5FOffice:
text "5F DIRECTOR'S" text "5F DIRECTOR'S"
line " OFFICE" line " OFFICE"
done done
UnknownText_0x608f9: SignpostRadioTower5FStudio:
text "5F STUDIO 1" text "5F STUDIO 1"
done done
@ -433,8 +433,8 @@ RadioTower5F_MapEventHeader:
.XYTriggers: .XYTriggers:
db 2 db 2
xy_trigger 0, $3, $0, $0, UnknownScript_0x60011, $0, $0 xy_trigger 0, $3, $0, $0, FakeDirectorScript, $0, $0
xy_trigger 1, $5, $10, $0, UnknownScript_0x6006e, $0, $0 xy_trigger 1, $5, $10, $0, RadioTower5FRocketBossTrigger, $0, $0
.Signposts: .Signposts:
db 5 db 5

View File

@ -11,19 +11,19 @@ TeamRocketBaseB1F_MapScriptHeader:
db 1 db 1
; triggers ; triggers
dw UnknownScript_0x6c65a, 0 dw .Trigger1, 0
.MapCallbacks: .MapCallbacks:
db 1 db 1
; callbacks ; callbacks
dbw 2, UnknownScript_0x6c65b dbw 2, .Callback1
UnknownScript_0x6c65a: .Trigger1:
end end
UnknownScript_0x6c65b: .Callback1:
disappear TEAMROCKETBASEB1F_ROCKET1 disappear TEAMROCKETBASEB1F_ROCKET1
return return
@ -242,7 +242,7 @@ TrainerCameraGrunt1:
waitbutton waitbutton
closetext closetext
winlosstext CameraGrunt1BeatenText, 0 winlosstext CameraGrunt1BeatenText, 0
setlasttalked $2 setlasttalked TEAMROCKETBASEB1F_ROCKET1
loadtrainer GRUNTM, 20 loadtrainer GRUNTM, 20
startbattle startbattle
disappear TEAMROCKETBASEB1F_ROCKET1 disappear TEAMROCKETBASEB1F_ROCKET1
@ -255,7 +255,7 @@ TrainerCameraGrunt2:
waitbutton waitbutton
closetext closetext
winlosstext CameraGrunt2BeatenText, 0 winlosstext CameraGrunt2BeatenText, 0
setlasttalked $2 setlasttalked TEAMROCKETBASEB1F_ROCKET1
loadtrainer GRUNTM, 21 loadtrainer GRUNTM, 21
startbattle startbattle
disappear TEAMROCKETBASEB1F_ROCKET1 disappear TEAMROCKETBASEB1F_ROCKET1
@ -456,7 +456,7 @@ VoltorbExplodingTrap:
special FadeOutPalettes special FadeOutPalettes
cry VOLTORB cry VOLTORB
special FadeInPalettes special FadeInPalettes
setlasttalked $ff setlasttalked -1
writecode VAR_BATTLETYPE, BATTLETYPE_TRAP writecode VAR_BATTLETYPE, BATTLETYPE_TRAP
loadwildmon VOLTORB, 23 loadwildmon VOLTORB, 23
startbattle startbattle
@ -466,7 +466,7 @@ GeodudeExplodingTrap:
special FadeOutPalettes special FadeOutPalettes
cry GEODUDE cry GEODUDE
special FadeInPalettes special FadeInPalettes
setlasttalked $ff setlasttalked -1
writecode VAR_BATTLETYPE, BATTLETYPE_TRAP writecode VAR_BATTLETYPE, BATTLETYPE_TRAP
loadwildmon GEODUDE, 21 loadwildmon GEODUDE, 21
startbattle startbattle
@ -476,7 +476,7 @@ KoffingExplodingTrap:
special FadeOutPalettes special FadeOutPalettes
cry KOFFING cry KOFFING
special FadeInPalettes special FadeInPalettes
setlasttalked $ff setlasttalked -1
writecode VAR_BATTLETYPE, BATTLETYPE_TRAP writecode VAR_BATTLETYPE, BATTLETYPE_TRAP
loadwildmon KOFFING, 21 loadwildmon KOFFING, 21
startbattle startbattle

View File

@ -101,7 +101,7 @@ UnknownScript_0x6cfac:
applymovement TEAMROCKETBASEB2F_ROCKET1, MovementData_0x6d24a applymovement TEAMROCKETBASEB2F_ROCKET1, MovementData_0x6d24a
applymovement TEAMROCKETBASEB2F_ROCKET_GIRL, MovementData_0x6d248 applymovement TEAMROCKETBASEB2F_ROCKET_GIRL, MovementData_0x6d248
winlosstext UnknownText_0x6d45c, 0 winlosstext UnknownText_0x6d45c, 0
setlasttalked $3 setlasttalked TEAMROCKETBASEB2F_ROCKET_GIRL
loadtrainer EXECUTIVEF, 2 loadtrainer EXECUTIVEF, 2
startbattle startbattle
disappear TEAMROCKETBASEB2F_DRAGON disappear TEAMROCKETBASEB2F_DRAGON

View File

@ -108,7 +108,7 @@ UnknownScript_0x6e056:
closetext closetext
applymovement TEAMROCKETBASEB3F_ROCKET1, MovementData_0x6e142 applymovement TEAMROCKETBASEB3F_ROCKET1, MovementData_0x6e142
winlosstext UnknownText_0x6e511, 0 winlosstext UnknownText_0x6e511, 0
setlasttalked $3 setlasttalked TEAMROCKETBASEB3F_ROCKET1
loadtrainer EXECUTIVEM, 4 loadtrainer EXECUTIVEM, 4
startbattle startbattle
returnafterbattle returnafterbattle

View File

@ -7,76 +7,76 @@ TrainerHouseB1F_MapScriptHeader:
db 1 db 1
; triggers ; triggers
dw UnknownScript_0x9b38a, 0 dw Trigger0, 0
.MapCallbacks: .MapCallbacks:
db 0 db 0
UnknownScript_0x9b38a: Trigger0:
end end
UnknownScript_0x9b38b: TrainerHouseReceptionistScript:
spriteface PLAYER, UP spriteface PLAYER, UP
loadfont loadfont
checkflag ENGINE_FOUGHT_IN_TRAINER_HALL_TODAY checkflag ENGINE_FOUGHT_IN_TRAINER_HALL_TODAY
iftrue UnknownScript_0x9b3f7 iftrue .FoughtTooManyTimes
writetext UnknownText_0x9b420 writetext TrainerHouseB1FIntroText
buttonsound buttonsound
special SpecialTrainerHouse special SpecialTrainerHouse
iffalse UnknownScript_0x9b3a6 iffalse .GetCal3Name
trainertotext CAL, CAL2, $0 trainertotext CAL, CAL2, $0
jump UnknownScript_0x9b3aa jump .GotName
UnknownScript_0x9b3a6: .GetCal3Name:
trainertotext CAL, CAL3, $0 trainertotext CAL, CAL3, $0
UnknownScript_0x9b3aa: .GotName:
writetext UnknownText_0x9b46a writetext TrainerHouseB1FYourOpponentIsText
buttonsound buttonsound
writetext UnknownText_0x9b487 writetext TrainerHouseB1FAskWantToBattleText
yesorno yesorno
iffalse UnknownScript_0x9b3ed iffalse .Declined
setflag ENGINE_FOUGHT_IN_TRAINER_HALL_TODAY setflag ENGINE_FOUGHT_IN_TRAINER_HALL_TODAY
writetext UnknownText_0x9b4a2 writetext TrainerHouseB1FGoRightInText
waitbutton waitbutton
closetext closetext
applymovement PLAYER, MovementData_0x9b401 applymovement PLAYER, Movement_EnterTrainerHouseBattleRoom
loadfont loadfont
writetext UnknownText_0x9b587 writetext TrainerHouseB1FCalBeforeText
waitbutton waitbutton
closetext closetext
special SpecialTrainerHouse special SpecialTrainerHouse
iffalse UnknownScript_0x9b3dc iffalse .NoSpecialBattle
winlosstext UnknownText_0x9b578, 0 winlosstext TrainerHouseB1FCalBeatenText, 0
setlasttalked $3 setlasttalked TRAINERHOUSEB1F_CHRIS
loadtrainer CAL, CAL2 loadtrainer CAL, CAL2
startbattle startbattle
returnafterbattle returnafterbattle
iffalse UnknownScript_0x9b3e8 iffalse .End
UnknownScript_0x9b3dc: .NoSpecialBattle:
winlosstext UnknownText_0x9b578, 0 winlosstext TrainerHouseB1FCalBeatenText, 0
setlasttalked $3 setlasttalked TRAINERHOUSEB1F_CHRIS
loadtrainer CAL, CAL3 loadtrainer CAL, CAL3
startbattle startbattle
returnafterbattle returnafterbattle
UnknownScript_0x9b3e8: .End:
applymovement PLAYER, MovementData_0x9b40f applymovement PLAYER, Movement_ExitTrainerHouseBattleRoom
end end
UnknownScript_0x9b3ed: .Declined:
writetext UnknownText_0x9b4d6 writetext TrainerHouseB1FPleaseComeAgainText
waitbutton waitbutton
closetext closetext
applymovement PLAYER, MovementData_0x9b41d applymovement PLAYER, Movement_TrainerHouseTurnBack
end end
UnknownScript_0x9b3f7: .FoughtTooManyTimes:
writetext UnknownText_0x9b51d writetext TrainerHouseB1FSecondChallengeDeniedText
waitbutton waitbutton
closetext closetext
applymovement PLAYER, MovementData_0x9b41d applymovement PLAYER, Movement_TrainerHouseTurnBack
end end
MovementData_0x9b401: Movement_EnterTrainerHouseBattleRoom:
step_left step_left
step_left step_left
step_left step_left
@ -92,7 +92,7 @@ MovementData_0x9b401:
turn_head_right turn_head_right
step_end step_end
MovementData_0x9b40f: Movement_ExitTrainerHouseBattleRoom:
step_up step_up
step_up step_up
step_up step_up
@ -108,12 +108,12 @@ MovementData_0x9b40f:
step_right step_right
step_end step_end
MovementData_0x9b41d: Movement_TrainerHouseTurnBack:
step_right step_right
turn_head_left turn_head_left
step_end step_end
UnknownText_0x9b420: TrainerHouseB1FIntroText:
text "Hi. Welcome to our" text "Hi. Welcome to our"
line "TRAINING HALL." line "TRAINING HALL."
@ -122,18 +122,18 @@ UnknownText_0x9b420:
cont "day." cont "day."
done done
UnknownText_0x9b46a: TrainerHouseB1FYourOpponentIsText:
text_from_ram StringBuffer3 text_from_ram StringBuffer3
text " is your" text " is your"
line "opponent today." line "opponent today."
done done
UnknownText_0x9b487: TrainerHouseB1FAskWantToBattleText:
text "Would you like to" text "Would you like to"
line "battle?" line "battle?"
done done
UnknownText_0x9b4a2: TrainerHouseB1FGoRightInText:
text "Please go right" text "Please go right"
line "through." line "through."
@ -141,7 +141,7 @@ UnknownText_0x9b4a2:
line "right away." line "right away."
done done
UnknownText_0x9b4d6: TrainerHouseB1FPleaseComeAgainText:
text "Sorry. Only those" text "Sorry. Only those"
line "trainers who will" line "trainers who will"
@ -149,7 +149,7 @@ UnknownText_0x9b4d6:
line "allowed to go in." line "allowed to go in."
done done
UnknownText_0x9b51d: TrainerHouseB1FSecondChallengeDeniedText:
text "I'm sorry." text "I'm sorry."
line "This would be your" line "This would be your"
@ -160,12 +160,12 @@ UnknownText_0x9b51d:
line "a day." line "a day."
done done
UnknownText_0x9b578: TrainerHouseB1FCalBeatenText:
text "I lost…" text "I lost…"
line "Darn…" line "Darn…"
done done
UnknownText_0x9b587: TrainerHouseB1FCalBeforeText:
text "I traveled out" text "I traveled out"
line "here just so I" line "here just so I"
cont "could battle you." cont "could battle you."
@ -181,7 +181,7 @@ TrainerHouseB1F_MapEventHeader:
.XYTriggers: .XYTriggers:
db 1 db 1
xy_trigger 0, $3, $7, $0, UnknownScript_0x9b38b, $0, $0 xy_trigger 0, $3, $7, $0, TrainerHouseReceptionistScript, $0, $0
.Signposts: .Signposts:
db 0 db 0

File diff suppressed because it is too large Load Diff

View File

@ -65,7 +65,7 @@ UnknownScript_0x744d4:
checkevent EVENT_GOT_CHIKORITA_FROM_ELM checkevent EVENT_GOT_CHIKORITA_FROM_ELM
iftrue UnknownScript_0x7450f iftrue UnknownScript_0x7450f
winlosstext UnknownText_0x7463d, UnknownText_0x747aa winlosstext UnknownText_0x7463d, UnknownText_0x747aa
setlasttalked $2 setlasttalked VICTORYROAD_SILVER
loadtrainer RIVAL1, RIVAL1_15 loadtrainer RIVAL1, RIVAL1_15
startbattle startbattle
reloadmapmusic reloadmapmusic
@ -74,7 +74,7 @@ UnknownScript_0x744d4:
UnknownScript_0x744ff: UnknownScript_0x744ff:
winlosstext UnknownText_0x7463d, UnknownText_0x747aa winlosstext UnknownText_0x7463d, UnknownText_0x747aa
setlasttalked $2 setlasttalked VICTORYROAD_SILVER
loadtrainer RIVAL1, RIVAL1_13 loadtrainer RIVAL1, RIVAL1_13
startbattle startbattle
reloadmapmusic reloadmapmusic
@ -83,7 +83,7 @@ UnknownScript_0x744ff:
UnknownScript_0x7450f: UnknownScript_0x7450f:
winlosstext UnknownText_0x7463d, UnknownText_0x747aa winlosstext UnknownText_0x7463d, UnknownText_0x747aa
setlasttalked $2 setlasttalked VICTORYROAD_SILVER
loadtrainer RIVAL1, RIVAL1_14 loadtrainer RIVAL1, RIVAL1_14
startbattle startbattle
reloadmapmusic reloadmapmusic

View File

@ -1181,7 +1181,7 @@ Function10893d: ; 10893d
sla a sla a
sla a sla a
call DmgToCgbBGPals call DmgToCgbBGPals
call Functioncf8 call DmgToCgbObjPal0
ld c, $4 ld c, $4
call DelayFrames call DelayFrames
jr .asm_10893d jr .asm_10893d
@ -1189,7 +1189,7 @@ Function10893d: ; 10893d
.asm_108953 .asm_108953
xor a xor a
call DmgToCgbBGPals call DmgToCgbBGPals
call Functioncf8 call DmgToCgbObjPal0
call Function1082b7 call Function1082b7
ret ret
; 10895e ; 10895e
@ -1446,7 +1446,7 @@ Function108af4: ; 108af4
pop af pop af
ld [rSVBK], a ld [rSVBK], a
ld a, $e4 ld a, $e4
call Functioncf8 call DmgToCgbObjPal0
ld a, $e4 ld a, $e4
call DmgToCgbBGPals call DmgToCgbBGPals
call DelayFrame call DelayFrame

View File

@ -5694,7 +5694,7 @@ Function11a9ce: ; 11a9ce
call Call_ExitMenu call Call_ExitMenu
callba MobileFunc_106462 callba MobileFunc_106462
callba Function106464 callba Function106464
call Functiond90 call ret_d90
callba Function2b5c callba Function2b5c
call UpdateSprites call UpdateSprites
ret ret
@ -6030,7 +6030,7 @@ Function11ad95: ; 11ad95
ld de, String_11ae40 ld de, String_11ae40
call PlaceString call PlaceString
hlcoord 10, 10, AttrMap hlcoord 10, 10, AttrMap
ld bc, $0808 lb bc, 8, 8
call Function11afd6 call Function11afd6
callba ReloadMapPart callba ReloadMapPart
call Function11ad8a call Function11ad8a
@ -6346,20 +6346,20 @@ Unknown_11afd2:
; 11afd6 ; 11afd6
Function11afd6: ; 11afd6 Function11afd6: ; 11afd6
ld de, $0014 ld de, SCREEN_WIDTH
ld a, $3 ld a, $3
.asm_11afdb .row
push bc push bc
push hl push hl
.asm_11afdd .col
ld [hli], a ld [hli], a
dec c dec c
jr nz, .asm_11afdd jr nz, .col
pop hl pop hl
add hl, de add hl, de
pop bc pop bc
dec b dec b
jr nz, .asm_11afdb jr nz, .row
ret ret
; 11afe8 ; 11afe8
@ -6416,55 +6416,55 @@ Function11b03d: ; 11b03d
push hl push hl
push af push af
ld c, $1 ld c, $1
.asm_11b041 .loop
ld a, [hli] ld a, [hli]
cp $ef cp "♂"
jr z, .asm_11b051 jr z, .gender
cp $f5 cp "♀"
jr z, .asm_11b051 jr z, .gender
cp $50 cp "@"
jr z, .asm_11b055 jr z, .done
inc c inc c
jr .asm_11b041 jr .loop
.asm_11b051 .gender
dec hl dec hl
ld a, $50 ld a, "@"
ld [hli], a ld [hli], a
.asm_11b055 .done
dec hl dec hl
push hl push hl
ld e, $4 ld e, 4
ld d, $0 ld d, 0
add hl, de add hl, de
ld e, l ld e, l
ld d, h ld d, h
pop hl pop hl
.asm_11b05f .loop2
ld a, [hld] ld a, [hld]
ld [de], a ld [de], a
dec de dec de
dec c dec c
jr nz, .asm_11b05f jr nz, .loop2
pop af pop af
pop de pop de
cp $1 cp $1
jr nz, .asm_11b070 jr nz, .female
ld hl, String_11b07a ld hl, .MaleString
jr .asm_11b073 jr .got_string
.asm_11b070 .female
ld hl, String_11b07e ld hl, .FemaleString
.asm_11b073 .got_string
ld bc, 4 ld bc, 4 ; string length
call CopyBytes call CopyBytes
ret ret
; 11b07a ; 11b07a
String_11b07a: db "ォスの " .MaleString: db "ォスの "
String_11b07e: db "メスの " .FemaleString: db "メスの "
Function11b082: ; 11b082 Function11b082: ; 11b082
call Function11b242 call Function11b242
@ -6488,36 +6488,38 @@ Function11b099: ; 11b099
ld a, [wc7d0] ld a, [wc7d0]
ld e, a ld e, a
ld d, $0 ld d, $0
ld hl, $c6d0 ld hl, wc6d0
add hl, de add hl, de
ld e, l ld e, l
ld d, h ld d, h
hlcoord 11, 2 hlcoord 11, 2
ld a, [wc7d3] ld a, [wc7d3]
.asm_11b0b9 .loop
push af push af
ld a, [de] ld a, [de]
ld [wd265], a ld [wd265], a
push de push de
push hl push hl
call Function11b0cf call .PlaceMonNameOrPlaceholderString
pop hl pop hl
ld de, $0028 ld de, 2 * SCREEN_WIDTH
add hl, de add hl, de
pop de pop de
inc de inc de
pop af pop af
dec a dec a
jr nz, .asm_11b0b9 jr nz, .loop
ret ret
; 11b0cf ; 11b0cf
Function11b0cf: ; 11b0cf .PlaceMonNameOrPlaceholderString: ; 11b0cf
and a and a
ret z ret z
call Function11b0ec
call .CheckSeenFlag
ret c ret c
call Function11b0e1
call .SetCaughtFlag
push hl push hl
call GetPokemonName call GetPokemonName
pop hl pop hl
@ -6525,29 +6527,30 @@ Function11b0cf: ; 11b0cf
ret ret
; 11b0e1 ; 11b0e1
Function11b0e1: ; 11b0e1 .SetCaughtFlag: ; 11b0e1
call Function11b21e call CheckCaughtMemMon
jr nz, .asm_11b0e8 jr nz, .okay
inc hl inc hl
ret ret
.asm_11b0e8 .okay
ld a, $1 ld a, $1
ld [hli], a ld [hli], a
ret ret
; 11b0ec ; 11b0ec
Function11b0ec: ; 11b0ec .CheckSeenFlag: ; 11b0ec
call Function11b22a call CheckSeenMemMon
ret nz ret nz
inc hl inc hl
ld de, String_11b0f9 ld de, .EmptySlot
call PlaceString call PlaceString
scf scf
ret ret
; 11b0f9 ; 11b0f9
String_11b0f9: ; 11b0f9 .EmptySlot: ; 11b0f9
db "ーーーーー@" db "ーーーーー@"
; 11b0ff ; 11b0ff
@ -6583,7 +6586,7 @@ Function11b0ff: ; 11b0ff
.asm_11b131 .asm_11b131
call Function11b20b call Function11b20b
call Function11b22a call CheckSeenMemMon
jr z, .asm_11b13d jr z, .asm_11b13d
ld a, $1 ld a, $1
jr .asm_11b148 jr .asm_11b148
@ -6767,7 +6770,7 @@ Function11b20b: ; 11b20b
ret ret
; 11b21e ; 11b21e
Function11b21e: ; 11b21e CheckCaughtMemMon: ; 11b21e
push de push de
push hl push hl
ld a, [wd265] ld a, [wd265]
@ -6778,7 +6781,7 @@ Function11b21e: ; 11b21e
ret ret
; 11b22a ; 11b22a
Function11b22a: ; 11b22a CheckSeenMemMon: ; 11b22a
push de push de
push hl push hl
ld a, [wd265] ld a, [wd265]
@ -6849,7 +6852,7 @@ Function11b275: ; 11b275
Function11b279: ; 11b279 Function11b279: ; 11b279
ld a, [wd265] ld a, [wd265]
ld [CurSpecies], a ld [CurSpecies], a
call Function11b22a call CheckSeenMemMon
jr z, .asm_11b28f jr z, .asm_11b28f
call GetBaseData call GetBaseData
ld a, [BaseGender] ld a, [BaseGender]
@ -6872,7 +6875,7 @@ Function11b295: ; 11b295
ld de, String_11b308 ld de, String_11b308
call PlaceString call PlaceString
call Function11b20b call Function11b20b
call Function11b22a call CheckSeenMemMon
jr z, .asm_11b2d1 jr z, .asm_11b2d1
ld a, [$c608] ld a, [$c608]
ld c, a ld c, a
@ -6946,106 +6949,106 @@ Function11b314: ; 11b314
; 11b31b ; 11b31b
Function11b31b: ; 11b31b Function11b31b: ; 11b31b
ld hl, Unknown_11b350 ld hl, .Coords
ld a, [wJumptableIndex] ld a, [wJumptableIndex]
cp $2 cp 2
jr c, .asm_11b349 jr c, .tilemap_1
ld a, [wc7d1] ld a, [wc7d1]
cp $4 cp 4
jr nc, .asm_11b344 jr nc, .tilemap_3
cp $3 cp 3
jr c, .asm_11b349 jr c, .tilemap_1
ld a, [wJumptableIndex] ld a, [wJumptableIndex]
cp $2 cp 2
jr z, .asm_11b349 jr z, .tilemap_1
cp $3 cp 3
jr z, .asm_11b349 jr z, .tilemap_1
cp $6 cp 6
jr z, .asm_11b349 jr z, .tilemap_1
ld bc, Unknown_11b37b ld bc, .Tilemap2
jr .asm_11b34c jr .load_sprites
.asm_11b344 .tilemap_3
ld bc, Unknown_11b389 ld bc, .Tilemap3
jr .asm_11b34c jr .load_sprites
.asm_11b349 .tilemap_1
ld bc, Unknown_11b36d ld bc, .Tilemap1
.asm_11b34c .load_sprites
call Function11b397 call Function11b397
ret ret
; 11b350 ; 11b350
Unknown_11b350: .Coords:
dbpixel 3, 11, 2, 6 dbpixel 3, 11, 2, 6 ; 0
dbpixel 3, 12, 2, 6 dbpixel 3, 12, 2, 6 ; 1
dbpixel 3, 13, 2, 6 dbpixel 3, 13, 2, 6 ; 2
dbpixel 3, 14, 2, 6 dbpixel 3, 14, 2, 6 ; 3
dbpixel 3, 15, 2, 6 dbpixel 3, 15, 2, 6 ; 4
dbpixel 3, 16, 2, 6 dbpixel 3, 16, 2, 6 ; 5
dbpixel 3, 17, 2, 6 dbpixel 3, 17, 2, 6 ; 6
dbpixel 4, 11, 2, 6 dbpixel 4, 11, 2, 6 ; 7
dbpixel 4, 12, 2, 6 dbpixel 4, 12, 2, 6 ; 8
dbpixel 4, 13, 2, 6 dbpixel 4, 13, 2, 6 ; 9
dbpixel 4, 14, 2, 6 dbpixel 4, 14, 2, 6 ; 10
dbpixel 4, 15, 2, 6 dbpixel 4, 15, 2, 6 ; 11
dbpixel 4, 16, 2, 6 dbpixel 4, 16, 2, 6 ; 12
dbpixel 4, 17, 2, 6 dbpixel 4, 17, 2, 6 ; 13
db -1 db -1
Unknown_11b36d: .Tilemap1: ; vtiles
db $30 db $30 ; 0
db $31 db $31 ; 1
db $31 db $31 ; 2
db $31 db $31 ; 3
db $31 db $31 ; 4
db $31 db $31 ; 5
db $32 db $32 ; 6
db $40 db $40 ; 7
db $41 db $41 ; 8
db $41 db $41 ; 9
db $41 db $41 ; 10
db $41 db $41 ; 11
db $41 db $41 ; 12
db $42 db $42 ; 13
Unknown_11b37b: .Tilemap2: ; vtiles
db $30 db $30 ; 0
db $31 db $31 ; 1
db $31 db $31 ; 2
db $39 db $39 ; 3
db $39 db $39 ; 4
db $39 db $39 ; 5
db $39 db $39 ; 6
db $40 db $40 ; 7
db $41 db $41 ; 8
db $41 db $41 ; 9
db $39 db $39 ; 10
db $39 db $39 ; 11
db $39 db $39 ; 12
db $39 db $39 ; 13
Unknown_11b389: .Tilemap3: ; vtiles
db $39 db $39 ; 0
db $39 db $39 ; 1
db $39 db $39 ; 2
db $39 db $39 ; 3
db $39 db $39 ; 4
db $39 db $39 ; 5
db $39 db $39 ; 6
db $39 db $39 ; 7
db $39 db $39 ; 8
db $39 db $39 ; 9
db $39 db $39 ; 10
db $39 db $39 ; 11
db $39 db $39 ; 12
db $39 db $39 ; 13
Function11b397: ; 11b397 Function11b397: ; 11b397
ld de, Sprites ld de, Sprites
.asm_11b39a .loop
ld a, [hl] ld a, [hl]
cp $ff cp $ff
ret z ret z
@ -7065,16 +7068,17 @@ Function11b397: ; 11b397
inc bc inc bc
ld [de], a ld [de], a
inc de inc de
ld a, $5 ld a, $5 ; OBPal 5
ld [de], a ld [de], a
inc de inc de
jr .asm_11b39a jr .loop
; 11b3b6 ; 11b3b6
Function11b3b6: ; 11b3b6 Function11b3b6: ; 11b3b6
.asm_11b3b6 ; unreferenced
.loop
ld a, [hl] ld a, [hl]
cp $ff cp -1
ret z ret z
ld a, [wcd4d] ld a, [wcd4d]
and $7 and $7
@ -7098,11 +7102,11 @@ Function11b3b6: ; 11b3b6
ld a, $5 ld a, $5
ld [de], a ld [de], a
inc de inc de
jr .asm_11b3b6 jr .loop
; 11b3d9 ; 11b3d9
Function11b3d9: ; 11b3d9 Function11b3d9: ; 11b3d9
ld de, Sprites + $70 ld de, Sprites + 28 * 4
push de push de
ld a, [wc7d2] ld a, [wc7d2]
dec a dec a
@ -7111,51 +7115,51 @@ Function11b3d9: ; 11b3d9
ld hl, wc7d0 ld hl, wc7d0
add [hl] add [hl]
cp e cp e
jr z, .asm_11b40d jr z, .skip
ld hl, 0 ld hl, 0
ld bc, $0070 ld bc, $70
call AddNTimes call AddNTimes
ld e, l ld e, l
ld d, h ld d, h
ld b, $0 ld b, 0
ld a, d ld a, d
or e or e
jr z, .asm_11b40f jr z, .load_sprites
ld a, [wc7d2] ld a, [wc7d2]
ld c, a ld c, a
.asm_11b401 .loop1
ld a, e ld a, e
sub c sub c
ld e, a ld e, a
ld a, d ld a, d
sbc $0 sbc $0
ld d, a ld d, a
jr c, .asm_11b40f jr c, .load_sprites
inc b inc b
jr .asm_11b401 jr .loop1
.asm_11b40d .skip
ld b, $70 ld b, 14 * 8
.asm_11b40f .load_sprites
ld a, $15 ld a, 2 * 8 + 5
add b add b
pop hl pop hl
ld [hli], a ld [hli], a
cp $41 cp $41
jr c, .asm_11b42b jr c, .version1
ld a, [wJumptableIndex] ld a, [wJumptableIndex]
cp $4 cp 4
jr z, .asm_11b43b jr z, .version2
cp $5 cp 5
jr z, .asm_11b43b jr z, .version2
cp $7 cp 7
jr z, .asm_11b43b jr z, .version2
cp $8 cp 8
jr z, .asm_11b43b jr z, .version2
.asm_11b42b .version1
ld a, $9b ld a, 19 * 8 + 3
ld [hli], a ld [hli], a
ld a, [wcd4c] ld a, [wcd4c]
add $3c add $3c
@ -7165,8 +7169,8 @@ Function11b3d9: ; 11b3d9
ld [hl], a ld [hl], a
ret ret
.asm_11b43b .version2
ld a, $9b ld a, 19 * 8 + 3
ld [hli], a ld [hli], a
ld a, $39 ld a, $39
ld [hli], a ld [hli], a
@ -7192,12 +7196,12 @@ Function11b44b: ; 11b44b
; 11b45c ; 11b45c
Function11b45c: ; 11b45c Function11b45c: ; 11b45c
.asm_11b45c .loop
call Function11b46a call Function11b46a
call DelayFrame call DelayFrame
ld a, [wJumptableIndex] ld a, [wJumptableIndex]
cp $4 cp 4
jr nz, .asm_11b45c jr nz, .loop
ret ret
; 11b46a ; 11b46a
@ -7220,14 +7224,14 @@ Jumptable_11b479: ; 11b479
dw Function11b570 dw Function11b570
dw Function11b5c0 dw Function11b5c0
dw Function11b5e0 dw Function11b5e0
dw Function11b5e7 dw Function11b5e7 ; unused
; 11b483 ; 11b483
Function11b483: ; 11b483 Function11b483: ; 11b483
call Function11b538 call Function11b538
ld hl, PlayerName ld hl, PlayerName
ld a, $5 ld a, $5 ; Japanese Name Length
.asm_11b48b .loop1
push af push af
ld a, [hli] ld a, [hli]
ld [bc], a ld [bc], a
@ -7235,23 +7239,24 @@ Function11b483: ; 11b483
pop af pop af
dec a dec a
and a and a
jr nz, .asm_11b48b jr nz, .loop1
ld de, $0030
ld de, PARTYMON_STRUCT_LENGTH
ld hl, PartyMon1Species ld hl, PartyMon1Species
ld a, [wcd82] ld a, [wcd82]
dec a dec a
push af push af
.asm_11b49f .loop2
and a and a
jr z, .asm_11b4a6 jr z, .okay
add hl, de add hl, de
dec a dec a
jr .asm_11b49f jr .loop2
.asm_11b4a6 .okay
push bc push bc
ld a, $30 ld a, PARTYMON_STRUCT_LENGTH
.asm_11b4a9 .loop3
push af push af
ld a, [hli] ld a, [hli]
ld [bc], a ld [bc], a
@ -7259,24 +7264,25 @@ Function11b483: ; 11b483
pop af pop af
dec a dec a
and a and a
jr nz, .asm_11b4a9 jr nz, .loop3
pop de pop de
push bc push bc
ld a, [de] ld a, [de]
ld [CurSpecies], a ld [CurSpecies], a
call GetBaseData call GetBaseData
ld hl, $001f ld hl, MON_LEVEL
add hl, de add hl, de
ld a, [hl] ld a, [hl]
ld [CurPartyLevel], a ld [CurPartyLevel], a
ld hl, $0024 ld hl, MON_MAXHP
add hl, de add hl, de
push hl push hl
ld hl, $000a ld hl, MON_EXP + 2
add hl, de add hl, de
pop de pop de
push de push de
ld b, $1 ld b, OTPARTYMON
predef CalcPkmnStats predef CalcPkmnStats
pop de pop de
ld h, d ld h, d
@ -7290,20 +7296,20 @@ endr
ld a, [de] ld a, [de]
ld [hl], a ld [hl], a
pop bc pop bc
ld de, $000b ld de, NAME_LENGTH
ld hl, PartyMonOT ld hl, PartyMonOT
pop af pop af
push af push af
.asm_11b4e8 .loop4
and a and a
jr z, .asm_11b4ef jr z, .okay2
add hl, de add hl, de
dec a dec a
jr .asm_11b4e8 jr .loop4
.asm_11b4ef .okay2
ld a, $a ld a, NAME_LENGTH - 1
.asm_11b4f1 .loop5
push af push af
ld a, [hli] ld a, [hli]
ld [bc], a ld [bc], a
@ -7311,21 +7317,21 @@ endr
pop af pop af
dec a dec a
and a and a
jr nz, .asm_11b4f1 jr nz, .loop5
ld de, $000b ld de, NAME_LENGTH
ld hl, PartyMonNicknames ld hl, PartyMonNicknames
pop af pop af
push af push af
.asm_11b502 .loop6
and a and a
jr z, .asm_11b509 jr z, .okay3
add hl, de add hl, de
dec a dec a
jr .asm_11b502 jr .loop6
.asm_11b509 .okay3
ld a, $a ld a, NAME_LENGTH - 1
.asm_11b50b .loop7
push af push af
ld a, [hli] ld a, [hli]
ld [bc], a ld [bc], a
@ -7333,22 +7339,22 @@ endr
pop af pop af
dec a dec a
and a and a
jr nz, .asm_11b50b jr nz, .loop7
ld de, $002f ld de, MAIL_STRUCT_LENGTH
ld hl, $a600 ld hl, sPartyMail
pop af pop af
.asm_11b51b .loop8
and a and a
jr z, .asm_11b522 jr z, .okay4
add hl, de add hl, de
dec a dec a
jr .asm_11b51b jr .loop8
.asm_11b522 .okay4
ld a, $0 ld a, $0 ; BANK(sPartyMail)
call GetSRAMBank call GetSRAMBank
ld a, $2f ld a, MAIL_STRUCT_LENGTH
.asm_11b529 .loop9
push af push af
ld a, [hli] ld a, [hli]
ld [bc], a ld [bc], a
@ -7356,38 +7362,45 @@ endr
pop af pop af
dec a dec a
and a and a
jr nz, .asm_11b529 jr nz, .loop9
call CloseSRAM call CloseSRAM
jp Function11ad8a jp Function11ad8a
; 11b538 ; 11b538
Function11b538: ; 11b538 Function11b538: ; 11b538
ld bc, BattleMonNick + 5 ld bc, wc626
ld a, [PlayerID] ld a, [PlayerID]
ld [wcd2a], a ld [wcd2a], a
ld [bc], a ld [bc], a
inc bc inc bc
ld a, [PlayerID + 1] ld a, [PlayerID + 1]
ld [wcd2b], a ld [wcd2b], a
ld [bc], a ld [bc], a
inc bc inc bc
ld a, [wSecretID] ld a, [wSecretID]
ld [wcd2c], a ld [wcd2c], a
ld [bc], a ld [bc], a
inc bc inc bc
ld a, [wSecretID + 1] ld a, [wSecretID + 1]
ld [wcd2d], a ld [wcd2d], a
ld [bc], a ld [bc], a
inc bc inc bc
ld a, [wcd2e] ld a, [wcd2e]
ld [bc], a ld [bc], a
inc bc inc bc
ld a, [wcd2f] ld a, [wcd2f]
ld [bc], a ld [bc], a
inc bc inc bc
ld a, [wcd30] ld a, [wcd30]
ld [bc], a ld [bc], a
inc bc inc bc
ld a, [wd265] ld a, [wd265]
ld [bc], a ld [bc], a
inc bc inc bc
@ -7398,11 +7411,11 @@ Function11b570: ; 11b570
call Function118007 call Function118007
ld a, [ScriptVar] ld a, [ScriptVar]
and a and a
jr nz, .asm_11b57f jr nz, .exit
call Function11b585 call Function11b585
jp Function11ad8a jp Function11ad8a
.asm_11b57f .exit
ld a, $4 ld a, $4
ld [wJumptableIndex], a ld [wJumptableIndex], a
ret ret
@ -7413,7 +7426,7 @@ Function11b585: ; 11b585
ld [rSVBK], a ld [rSVBK], a
ld hl, w3_d800 ld hl, w3_d800
ld de, $c608 ld de, $c608
ld bc, $008f ld bc, w3_d88f - w3_d800
call CopyBytes call CopyBytes
ld a, $1 ld a, $1
ld [rSVBK], a ld [rSVBK], a
@ -7424,7 +7437,7 @@ Function11b585: ; 11b585
ld [de], a ld [de], a
inc de inc de
ld hl, $c608 ld hl, $c608
ld bc, $008f ld bc, w3_d88f - w3_d800
call CopyBytes call CopyBytes
push de push de
pop hl pop hl
@ -7445,7 +7458,7 @@ Function11b5c0: ; 11b5c0
dec a dec a
ld [CurPartyMon], a ld [CurPartyMon], a
xor a xor a
ld [wd10b], a ld [wPokemonWithdrawDepositParameter], a
callba Functione039 callba Functione039
callba Function170807 callba Function170807
callba Function14a58 callba Function14a58

View File

@ -561,6 +561,8 @@ EnemyMonNick:: ds PKMN_NAME_LENGTH ; c616
ds -5 ds -5
wInitHourBuffer:: ds 5 wInitHourBuffer:: ds 5
BattleMonNick:: ds PKMN_NAME_LENGTH ; c621 BattleMonNick:: ds PKMN_NAME_LENGTH ; c621
ds -6
wc626:: ds 6
BattleMon:: battle_struct BattleMon ; c62c BattleMon:: battle_struct BattleMon ; c62c
@ -2170,8 +2172,10 @@ CurDamage:: ; d256
ds 2 ds 2
ds 2 ds 2
wd25a:: ds 3 wMornEncounterRate:: ds 1
wd25d:: ds 1 wDayEncounterRate:: ds 1
wNiteEncounterRate:: ds 1
wWaterEncounterRate:: ds 1
wListMoves_MoveIndicesBuffer:: ds 4 wListMoves_MoveIndicesBuffer:: ds 4
wPutativeTMHMMove:: ds 1 wPutativeTMHMMove:: ds 1
wd263:: ds 1 wd263:: ds 1
@ -2792,8 +2796,8 @@ wDailyRematchFlags:: ds 4
wDailyPhoneItemFlags:: ds 4 wDailyPhoneItemFlags:: ds 4
wDailyPhoneTimeOfDayFlags:: ds 4 wDailyPhoneTimeOfDayFlags:: ds 4
wKenjiBreakTimer:: ds 2 ; Kenji wKenjiBreakTimer:: ds 2 ; Kenji
wdc5a:: ds 1 wYanmaMapGroup:: ds 1
wdc5b:: ds 1 wYanmaMapNumber:: ds 1
wdc5c:: ds 3 wdc5c:: ds 3
wdc5f:: ds 1 wdc5f:: ds 1
wdc60:: ds 19 wdc60:: ds 19
@ -2944,8 +2948,8 @@ wBugContestSecondPartySpecies:: ds 1
wdf9c:: wdf9c::
wContestMon:: party_struct wContestMon ; df9c wContestMon:: party_struct wContestMon ; df9c
wdfcc:: ds 1 wDunsparceMapGroup:: ds 1
wdfcd:: ds 1 wDunsparceMapNumber:: ds 1
wFishingSwarmFlag:: ds 1 wFishingSwarmFlag:: ds 1
roam_struct: MACRO roam_struct: MACRO
@ -2961,10 +2965,10 @@ wRoamMon1:: roam_struct wRoamMon1 ; dfcf
wRoamMon2:: roam_struct wRoamMon2 ; dfd6 wRoamMon2:: roam_struct wRoamMon2 ; dfd6
wRoamMon3:: roam_struct wRoamMon3 ; dfdd wRoamMon3:: roam_struct wRoamMon3 ; dfdd
wdfe4:: ds 1 wRoamMons_CurrentMapNumber:: ds 1
wdfe5:: ds 1 wRoamMons_CurrentMapGroup:: ds 1
wdfe6:: ds 1 wRoamMons_LastMapNumber:: ds 1
wdfe7:: ds 1 wRoamMons_LastMapGroup:: ds 1
wBestMagikarpLengthFeet:: ds 1 wBestMagikarpLengthFeet:: ds 1
wBestMagikarpLengthInches:: ds 1 wBestMagikarpLengthInches:: ds 1
wMagikarpRecordHoldersName:: ds NAME_LENGTH wMagikarpRecordHoldersName:: ds NAME_LENGTH
@ -3042,7 +3046,8 @@ w3_d742:: battle_tower_struct w3_d742
wBTChoiceOfLvlGroup:: wBTChoiceOfLvlGroup::
w3_d800:: ds $69 w3_d800:: ds $69
w3_d869:: ds $2c w3_d869:: ds $26
w3_d88f:: ds 6
w3_d895:: ds $36b w3_d895:: ds $36b
w3_dc00:: ds $168 w3_dc00:: ds $168
w3_dd68:: ds $294 w3_dd68:: ds $294