Others may have more specifics on that event. However, since it's been a while, you would probably not have to alter that much to change the code from beginning a wild Pokémon battle to a different kind, a trainer battle, although this might be slightly longer (that said, you could even shorten earlier parts of the event if needed.) That much is down to scripting. However, as far as the rest, that may be vague, as you might wish to change the Zigzagoon sprite, and perhaps also the movements made prior to that, and as such what you may want to do there will vary. Having Birch be chased around by a trainer would be totally legit, though. Especially if their name was Drew, and the trainer was your in-game rival, May. I think there's a canonical basis for this change.