Good news! I've figured out the basics of adding pokemon, trainers, and events. Even with faulty data, the system was stable enough to hold a simple battle:
http://i1225.photobucket.com/albums/...creenshot1.png
I still haven't tweaked the interface so the sprites are a bit small.