This is really neat. Had the feeling it was possible, but didn't want to bother with all the complication. Really wish GB Studio had a way to write scripts rather than having to handle the GUI, which can get clunky when it's this complicated.
Still, excellent work!