I spent 4 or so hours working on a semi-clone of the default battle system. It's all commented and easy to understand.
I'd like some feedback on it.
Here's a link to it on Dropbox
It's not anything special, though I'm sure someone could use it for something.
Rat image courtesy of this article.