Great tutorial, learned a lot :)
By the way, did you answer the guy on the first page about the legendary battles? I get that remove sprite thingie, but if you lose the battle against a one-time script, will it still go through? And is it possible to check if the pokemon fainted, was caught or...