It takes a lot of explanation so here is just a link:
http://www.serebii.net/platinum/tornworld.shtml