Need help scripting Pokemon Emerald

Discussion in 'GBA - Game Development, ROM Hacks and Translations' started by Pnt101, Sep 9, 2012.

Sep 9, 2012
  1. Pnt101
    OP

    Newcomer Pnt101 Member

    Joined:
    Apr 9, 2009
    Messages:
    33
    Location:
    Dumpster
    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:
    [​IMG]

    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:
    [​IMG]

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

    Member Rydian Resident Furvert™

    Joined:
    Feb 4, 2010
    Messages:
    27,883
    Location:
    Cave Entrance, Watching Cyan Write Letters
    Country:
    United States
    What about the above level? The stairs leading down?

     
  3. Pnt101
    OP

    Newcomer Pnt101 Member

    Joined:
    Apr 9, 2009
    Messages:
    33
    Location:
    Dumpster
    Country:
    United States
    I've already checked the surrounding maps to see if there were any related scripts.
     
  4. Zerosuit connor

    Member Zerosuit connor Baby I'm Back ♥

    Joined:
    Sep 17, 2010
    Messages:
    1,847
    Location:
    Eorzea
    Country:
    Australia
    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.
     
  5. Pnt101
    OP

    Newcomer Pnt101 Member

    Joined:
    Apr 9, 2009
    Messages:
    33
    Location:
    Dumpster
    Country:
    United States
    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?
     
  6. Rydian

    Member Rydian Resident Furvert™

    Joined:
    Feb 4, 2010
    Messages:
    27,883
    Location:
    Cave Entrance, Watching Cyan Write Letters
    Country:
    United States
    IIRC unlike DS games, GBA games don't use any sort of filesystem.
     
  7. Pnt101
    OP

    Newcomer Pnt101 Member

    Joined:
    Apr 9, 2009
    Messages:
    33
    Location:
    Dumpster
    Country:
    United States
    So what would be the best way to find that script then?
     
  8. Rydian

    Member Rydian Resident Furvert™

    Joined:
    Feb 4, 2010
    Messages:
    27,883
    Location:
    Cave Entrance, Watching Cyan Write Letters
    Country:
    United States
    I wouldn't know.
     
  9. windwakr

    Member windwakr GBAtemp Fan

    Joined:
    Sep 13, 2009
    Messages:
    463
    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.
     
  10. Pnt101
    OP

    Newcomer Pnt101 Member

    Joined:
    Apr 9, 2009
    Messages:
    33
    Location:
    Dumpster
    Country:
    United States
    From what I know that command is just a redirect for another script? How would I get to that other script?
     
  11. windwakr

    Member windwakr GBAtemp Fan

    Joined:
    Sep 13, 2009
    Messages:
    463
    Country:
    United States
    The one for the girl is at: 0x81F899D

    Boy: 0x81F784D
     
  12. Pnt101
    OP

    Newcomer Pnt101 Member

    Joined:
    Apr 9, 2009
    Messages:
    33
    Location:
    Dumpster
    Country:
    United States
    Thanks, you don't happen to know how to accept that file do you? Also how did you find that information?
     

Share This Page