ROM Hack Need help scripting Pokemon Emerald

Pnt101

Active Member
OP
Newcomer
Joined
Apr 9, 2009
Messages
33
Trophies
0
Location
Dumpster
XP
102
Country
United States
So far I've been using AdvanceMap along with XSE to mod Pokemon Emerald. Now I'm stuck at a problem. I can't find where the script for this event:
XR8zA.png


That scene is where you are after you go down the stairs after setting the clock time. That script is no where to be seen in this map:
5g9GC.png


I've even checked the surrounding maps to look for a related script but to no avail.
 

Zerosuit connor

Baby I'm Back ♥
Member
Joined
Sep 17, 2010
Messages
1,848
Trophies
1
Location
Eorzea
XP
703
Country
What about the above level? The stairs leading down?

I've already checked the surrounding maps to see if there were any related scripts.

You'd think it would have it's own special one for a one time use, I was never too good with scripting, but go through absolutely everything to see if you can find it, it's just like sprite or sound replacement, it has to be there.
 

Pnt101

Active Member
OP
Newcomer
Joined
Apr 9, 2009
Messages
33
Trophies
0
Location
Dumpster
XP
102
Country
United States
What about the above level? The stairs leading down?

I've already checked the surrounding maps to see if there were any related scripts.

You'd think it would have it's own special one for a one time use, I was never too good with scripting, but go through absolutely everything to see if you can find it, it's just like sprite or sound replacement, it has to be there.

You wouldn't happen to know of a program that would let me decompile the rom and then view it as a file system then recompile it do you?
 

windwakr

Well-Known Member
Member
Joined
Sep 13, 2009
Messages
502
Trophies
1
Website
windwakr.github.io
XP
1,790
Country
United States
I have pretty much no Pokemon scripting knowledge, but if you look at the scripts in the map header, one of them has this:
Code:
#org 0x81F77EA
'-----------------------------------
checkmoney 0x340 0x0 0x783C
comparefarbytetobyte 0x5409208 0x0
copyscriptbanks 0x78 0x1F
jumpstd 0x92

Could the "copyscriptbanks" have something to do with it?


EDIT: Through manually incrementing the script location by 1 repeatedly, I found it: 0x81F784D. No clue how it gets called, though.
 

Pnt101

Active Member
OP
Newcomer
Joined
Apr 9, 2009
Messages
33
Trophies
0
Location
Dumpster
XP
102
Country
United States
I have pretty much no Pokemon scripting knowledge, but if you look at the scripts in the map header, one of them has this:
Code:
#org 0x81F77EA
'-----------------------------------
checkmoney 0x340 0x0 0x783C
comparefarbytetobyte 0x5409208 0x0
copyscriptbanks 0x78 0x1F
jumpstd 0x92

Could the "copyscriptbanks" have something to do with it?


EDIT: Through manually incrementing the script location by 1 repeatedly, I found it: 0x81F784D. No clue how it gets called, though.

From what I know that command is just a redirect for another script? How would I get to that other script?
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    Xdqwerty @ Xdqwerty: good night