I'm working on scripting the rival encounter after applying JPAN's patch, which means I'm doing it all from scrap. I've figured out how to place the 3 pokeballs, how to pick 1, and then how to make it so the rival takes the appropriate one.
Now, I want to start a rival battle under an entirely new script. What I can't figure out how to do is how to make a script that uses the appropriate rival (146, 147, or 148) against me based on the starter I chose. I've tried looking through the original rival game scripts for answers, but those giant walls of text are too much for a noob like me.
So, how do I make the game use the right rival against me?
Also, I'm randomly getting a pokemon cry when I navigate the game world. No clue why or what the cry is. Any ideas? It happens infrequently, maybe on minute marks or so.