You could probably just copy the M&F battle code to accomplish this, if I'm being honest. It's already written to support N-sides, character info is hard-coded, and it has obvious hooks for how to output information.
That said, it's also like 2000 lines long, has a bunch of extra stuff, and would require me to sit down and strip out the extra bits as I'm the only person who has comprehensive knowledge of it's workings after the last rewrite.
That said, it's also like 2000 lines long, has a bunch of extra stuff, and would require me to sit down and strip out the extra bits as I'm the only person who has comprehensive knowledge of it's workings after the last rewrite.