Well, if you want me to, I can send you my half-finished turn-based RPG fight system which uses stats as parameters.
To make it work, you have to make each enemy a hero so wc3 can read it's atk/agi/int (that, or you rely on internal values to create an AP-based combat system).
It's based on dialogs and cinematic spells, things you see in Golden Sun, Grandia 2 and the likes.
It also includes a half-done camera rotation system which needs some limits in terms of the maximum angle on the x-axis but it's workable...