Click here to join us on IRC (#charas on irc.freenode.net)!
There is an option in the battle preferences which allows you to do other things when there is a gameover. You could tick that box and code there a swapping thing? Or is it what you did when you say "coding in battle events"? In which case I don't think it's possible otherwise without messing with DynRPG or CBS :/