I can't provide you with addresses, but there was a function which executed battle script functions. I hooked into that and had it execute some of my own code which did the whole sliding in thing. Looking back at it, I should've just made my own battle script commands and had it execute normally instead of hooking into that.