• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Which Pokémon Masters protagonist do you like most? Let us know by casting a vote in our Masters favorite protagonist poll here!
  • Red, Hilda, Paxton, or Kellyn - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

Emerald: Where to find the script where your rival gives you Pokeballs.

  • 13
    Posts
    4
    Years
    I'm using Advance Map and XSE to change some of the scripts in Emerald.

    After you beat your rival the first time and return to Prof. Birch's lab he lets you nickname your starter and your rival gives you Pokeballs.

    I've checked all the script tiles and all the map scripts but none of them seem to contain the code relating to that whole event.

    I did find one script inside the Lab's Header tab that looks like this:
    Spoiler:

    It's called when entering the map so I imagine it has something to do with it, but it doesn't seem to contain any applymovements that force the player to move up when entering the building.

    Am I missing something? Also is there any other way to find scripts with like a search function or something?
     
    Even though you're not using pokemerald to make your hack, you can still use it to find scripts like this. You can see here that these scripts are found at 0x81FA352 for May and 0x81FA37F for Brendan. XSE can go to those offsets and then edit them like any other script.

    IDK why they don't show up in the old binary tools, but there are a few other scripts with the same issue. Using the decomp as a reference is the easiest way to find them.
     
    Even though you're not using pokemerald to make your hack, you can still use it to find scripts like this. You can see here that these scripts are found at 0x81FA352 for May and 0x81FA37F for Brendan. XSE can go to those offsets and then edit them like any other script.

    Thank you. I knew about that git repo, but didn't know how it could be used. Side note: Is there a good resource for how it can be used to make a hack?
     
    Thank you. I knew about that git repo, but didn't know how it could be used. Side note: Is there a good resource for how it can be used to make a hack?
    No problem! Yeah, there are a few good resources over in the decomp and disassembly part of the forum; I'd recommend taking a look at Lunos' guide to setting up the decomp and the simple modifications thread as starting points. There are also Dizzy Egg's repos if you want expanded Pokemon, items, a modern battle engine, etc. If you ever need help the PRET or Pokecommunity discords are also good places to ask.

    To actually make changes all you'll need is a text editor (or better, an IDE like VS Code) Porymap and an image editor that can handle indexed images. After changing something you build the ROM to test it.
     
    Back
    Top