Not completely sure I understand you so I'll answer what I think you mean. Feel free to PM me with questions.
First of all, the engine for pokemon games is called Pokemon Essentials. You can google it to find the wikia. The following pokemon is a separate script, made by Help-14 and edited by Zingzangs, with a couple little bug fixes by me.