Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.
The only way you can code that is by adding it to the pokemon's code. If you have an ARDS, I suggest using PokeSav. Google it cause I don't think I'm allowed to post links to that. :) I hope I'm being useful.