Hi, it's me again. Sorry to bother you, but I found a problem here:
It's the line with //r0. You probably made a typo here. Just can you say what it should be there? By the way, it's part of your regional pokedex routine.
Spoiler:
It's the line with //r0. You probably made a typo here. Just can you say what it should be there? By the way, it's part of your regional pokedex routine.