The script works really well. Among other things, I did a comparison battle between the standard AI and the new one and I can confirm that it plays much better. Especially in combination with the Improved Battle AI, which I also find very cool.
But there is certainly still room for improvement in many small things. To name one example: The AI chooses Counter as its best move, even if I don't attack with any physical attack for five turns in a row. However, this can also happen in Standard Essentials, so it's not a big deal.
In any case, thanks for this great script and I appreciate the work behind it.