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.