The enemies already have AI scripts for combat and they can presumably be made realtime. The sparring soldiers are likely proof of that (Cyseal), although not a very complicated one. Like you said the biggest problem is party AI. There is a solution for that though. Seeing as how their scripting languages work a basic system of if then rules can be used to define behaviours. See also the helpful dogs in Cyseal. So something like the cambit system from final fantasy 12, I think would be more than a workable solution. Although UI is not moddable atm I think.