Ok I have a pokemon game that is in the beta version and I don't trust players with gym leader anymore. So I'm looking for someone that knows how to make an AI gym leader system that knows when it wins and loses and has a certain level cap also has different pokemon in it's party and drops a badge after it loses. Oh and also gives money to the winner. I need it to lock the gym when someone challenges. And when an opponent loses it sends you to the nearest pokemon center location. If anyone can make 1 please leave a message with the code for it.