• 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.

Need help. Making an Emerald ROM and the leader won't give me the badge.

  • 2
    Posts
    4
    Years
    • Seen Apr 7, 2021
    Be easy on me, this is my first time doing a rom. I just changed the battle and gave her six pokemon and made the boss one of my friends IRL. I also used a script editor to change her dialogue, and I assume this is what ruined the 'flag' for her giving you the Boulder Badge. Now the game can't progress. Does anyone know how to fix this?
     
    Be easy on me, this is my first time doing a rom. I just changed the battle and gave her six pokemon and made the boss one of my friends IRL. I also used a script editor to change her dialogue, and I assume this is what ruined the 'flag' for her giving you the Boulder Badge. Now the game can't progress. Does anyone know how to fix this?

    are you using binary hack tools i.e advance map & XSE for script editing?
    and yes it was the script change.

    What you need to do is reference the part in the old script that gave the badge.

    Obviously you wouldn't know what the offset is now to look, but if you have a copy of your rom from before you made the changes.
    then just open it in advance map goto their sprite, and copy down the offset listed for them.


    Open your current rom back up. Copy all the script you have for that gym leader into a notepad doc. THen change the offset in the box from what you have, back to the original , (but make sure you write down where you have your stuff because you'll want to be able to get back to it.)

    Again copy all the original script and paste in a separate notepad doc.

    Compare the two until you know the part that gives the gym badge; edit your redone script so it has the important part in it.

    Then make a new offset and paste the new edited script in for that gym leader. save advance map.


    Oh actually you need one more thing, in the script for the gym leader you should see something like this...
    trainerbattle 0x1 0x1A0

    what I want you to pay attention to is this part "0x1A0"
    that is a trainer flag. It tells the game what
    battle it should do with this npc.

    Since you've already fought them, so you can progress and not have to start over, you're gonna need to be able to redo the battle.
    To do that we need to clear the flag set for the gym leader.

    So simplest way to do this is to add clear flag 0x--- to the end of the script for the guy standing by the front of the gym.
    That way talking with him will reset the gym leader.

    You need to do a conversion first to get the hex value shown in trainerbattle to convert to the right trainer flag.

    The trick is, to take the value shown in the trainerbattle script and add 500.

    For example in the script excerpt that I showed.

    0x1A0 would be trainer flag 0x6A0,

    so in the gym guys script right before "end" I would add this.

    clearflag 0x6A0


    Ok that aught to do what you need.
     
    I was actually using pksvui. That's probably dumb but I just got XSE now and AdvanceMap (like it said with Pksvui) still won't recognize it. I know this is a dumb question but how do I actually get Advance Map to not say 'script editor not found' when they're both open?
     
    In AdvanceMap, there's an option to choose a script editor. There, you can tell Advance Map to auto open XSE when clicking on a script.
     
    Back
    Top