During the initial stages of Arbiters From Another World, I was looking into side-battle scripts, favoring continuous turn-based battles (CTB) over active time battles (ATB). I recall looking at the code for Melody and Tenkatai (or whatever it's called), and trying to figure out how they did what they did. I'm not sure I gleaned anything from that research, to be honest.