If it's just an normal battle with the battlers on the right and enemies on the left there's really a *lot* of scripts that already do this, for both animated and non-animated battlers
Some search before asking would be great, and somo more info too.