- 31
- Posts
- 13
- Years
- Seen Nov 14, 2017
I used JPAN's clearing patch to clear the rom I'm working on. I was trying to recreate the mom script to something else but there are some parts I don't understand. Here's the entire script:
I'm lost on this part:
What does this do?
'-----------
' Movements
'-----------
#org 0x1A75E5
#raw 0x5A 'mov5A
#raw 0xFE 'End of Movements
Also, I see no script to set mom as respawn point (or heal location) before a poke center was visited.
My problem is that when I white out before going to a pokecenter I get teleported to Cinnabar Gym.
I want to make I didn't break the rom before pursuing the hack I'm making. Thanks!
Spoiler:
#org 0x168C09
lock
faceplayer
checkflag 0x258
if 0x1 goto 0x8168C4A
checkgender
compare LASTRESULT 0x0
if 0x1 call 0x8168C38
compare LASTRESULT 0x1
if 0x1 call 0x8168C41
closeonkeypress
applymovement 0x1 0x81A75E5
waitmovement 0x0
release
end
'---------------
#org 0x168C4A
msgbox 0x818D3D1 MSG_KEEPOPEN '"MOM: [player]!\nYou should take a ..."
closeonkeypress
call 0x81A6C26
msgbox 0x818D3F8 MSG_KEEPOPEN '"MOM: Oh, good! You and your\nPOK?M..."
release
end
'---------------
#org 0x168C38
msgbox 0x818D2F0 MSG_KEEPOPEN '"MOM: [.]Right.\nAll boys leave hom..."
return
'---------------
#org 0x168C41
msgbox 0x818D360 MSG_KEEPOPEN '"MOM: [.]Right.\nAll girls dream of..."
return
'---------------
#org 0x1A6C26
fadescreen 0x1
fanfare 0x100
waitfanfare
special 0x0
fadescreen 0x0
return
'---------
' Strings
'---------
#org 0x18D3D1
= MOM: [player]!\nYou should take a quick rest.
#org 0x18D3F8
= MOM: Oh, good! You and your\nPOK?MON are looking great.\lTake care now!
#org 0x18D2F0
= MOM: [.]Right.\nAll boys leave home someday.\lIt said so on TV.\pOh, yes. PROF. OAK, next door, was\nlooking for you.
#org 0x18D360
= MOM: [.]Right.\nAll girls dream of traveling.\lIt said so on TV.\pOh, yes. PROF. OAK, next door, was\nlooking for you.
'-----------
' Movements
'-----------
#org 0x1A75E5
#raw 0x5A 'mov5A
#raw 0xFE 'End of Movements
lock
faceplayer
checkflag 0x258
if 0x1 goto 0x8168C4A
checkgender
compare LASTRESULT 0x0
if 0x1 call 0x8168C38
compare LASTRESULT 0x1
if 0x1 call 0x8168C41
closeonkeypress
applymovement 0x1 0x81A75E5
waitmovement 0x0
release
end
'---------------
#org 0x168C4A
msgbox 0x818D3D1 MSG_KEEPOPEN '"MOM: [player]!\nYou should take a ..."
closeonkeypress
call 0x81A6C26
msgbox 0x818D3F8 MSG_KEEPOPEN '"MOM: Oh, good! You and your\nPOK?M..."
release
end
'---------------
#org 0x168C38
msgbox 0x818D2F0 MSG_KEEPOPEN '"MOM: [.]Right.\nAll boys leave hom..."
return
'---------------
#org 0x168C41
msgbox 0x818D360 MSG_KEEPOPEN '"MOM: [.]Right.\nAll girls dream of..."
return
'---------------
#org 0x1A6C26
fadescreen 0x1
fanfare 0x100
waitfanfare
special 0x0
fadescreen 0x0
return
'---------
' Strings
'---------
#org 0x18D3D1
= MOM: [player]!\nYou should take a quick rest.
#org 0x18D3F8
= MOM: Oh, good! You and your\nPOK?MON are looking great.\lTake care now!
#org 0x18D2F0
= MOM: [.]Right.\nAll boys leave home someday.\lIt said so on TV.\pOh, yes. PROF. OAK, next door, was\nlooking for you.
#org 0x18D360
= MOM: [.]Right.\nAll girls dream of traveling.\lIt said so on TV.\pOh, yes. PROF. OAK, next door, was\nlooking for you.
'-----------
' Movements
'-----------
#org 0x1A75E5
#raw 0x5A 'mov5A
#raw 0xFE 'End of Movements
I'm lost on this part:
What does this do?
Spoiler:
'-----------
' Movements
'-----------
#org 0x1A75E5
#raw 0x5A 'mov5A
#raw 0xFE 'End of Movements
Also, I see no script to set mom as respawn point (or heal location) before a poke center was visited.
My problem is that when I white out before going to a pokecenter I get teleported to Cinnabar Gym.
I want to make I didn't break the rom before pursuing the hack I'm making. Thanks!