A much more advanced trainer AI API following the Run and Bun 1.07 community doc and beyond. Dependent on Radical Cobblemon Trainers and COBBLEMON 1.7 Replaces RCT API
Message me for questions, requests, and bugs (check out known issues at the bottom).
This mod is built off of the Cobblemon and Radical Trainers mod and follows the Run and Bun AI documentation, and goes in more depth than even that.
-Dynamic Decision-Making: Evaluates moves and switches in real-time based on damage, type matchups, speed, and opponent potential.
-Damage Calcs: Prioritizes OHKOs, 2HKOs, and high-damage opportunities while following a greedy algorithm.
-Intelligent Switching Logic: Scores potential party swaps, preferring faster counters, safer pivots, and even special picks like Ditto or Wobbuffet/Wynaut.
-Move Scoring System: Assigns smart scores to each move based on type effectiveness, status potential, hazards, stat drops, and tons of special cases, allowing the trainer to pick the potential best move.
-Room Awareness: Tracks Spikes, Stealth rocks, Trick room, Weather affects, etc. Allowing for a more complete understanding of the current battle context for better move scoring.
-Speed Control Mechanics: Recognizes when to set up Tailwind, Trick Room, etc.
-Mega-Showdown: Mega transformations are used instantly. Tera is more complex with the new update. You can now choose who to tera in your JSON, and the first Cobblemon matching that name will tera. Tera is also a toggle to turn on and is off by default. Check out the changelog for version 0.14.6 for Tera Logic. (No Z-moves, No Dynamax)
-Singles and Doubles Format
Check out the changelog for all the details
If you have any suggestions, please let me know. I will consider all and let you know my thoughts. (Please leave a basic reason for each suggestion, as I am more likely to add it)
Cobblemon 1.7
Radical Cobblemon Trainers 0.17.x
DOUBLE BATTLES ARE NOW OPERATIONAL!!!
Tons of special circumstances have already been accounted for, and the list will keep on growing as we test and add in more features.
If you like what we are making, feel free to leave a donation; any amount is appreciated and allows us to continue working on this project.
Radical Cobblemon Trainers 0.17.x will require 0.14.x version of Radical Cobblemon Trainers API. We have made this mod to replace the 0.14.x version of Radical Cobblemon Trainers API mod while keeping all original functionality and adding our own trainer code. The reason we do this is that Radical API interferes with our code because there cannot be two API libraries of "similar" builds.
/*Strings are lowercase for a reason because cobblemon will not recognize them otherwise*/
{
"name": "Brock",
"ai": {
"type": "rb", //our AI tag
"data": {
"canTera": true, //this will turn on Tera logic
"teraTarget": "geodude" //this will make it so the first geodude will tera
}
},
"battleFormat": "GEN_9_SINGLES", //("GEN_9_DOUBLES")
"team": [
{
"species": "geodude",
"gender": "MALE",
"level": 12,
"nature": "adamant",
"ability": "sturdy",
"moveset": [
"rollout",
"magnitude"
],
"ivs": {
"hp": 31,
"atk": 31,
"def": 31,
"spa": 31,
"spd": 31,
"spe": 31
},
"evs": {"atk": 252,"hp": 252},
"heldItem": "eviolite",
"gimmicks" { "tera": "rock" } //specifies that this will tera into rock
}, //end of geodude
{
"species": "absol",
"gender": "MALE",
"level": 15,
"nature": "adamant",
"ability": "pressure",
"moveset": [
"nightslash"
],
"heldItem": "mega_showdown:absolite" // how to get mega in your team, this mirrors /give
}
] //end of team
}
Some scenarios have some null pointers when calling for stat maps (fixing for next update)
EXP shares are crashing the fights? (Looking into it)