The Complete Guide to Gen4's Battle AI

My document used in this video (this is what will be updated when errors are found): https://docs.google.com/document/d/1I... Links: Mow's website - https://pokemow.com/Gen4/TrainerAI/ PRET decomp (and specifically most of the AI logic) - https://github.com/pret/pokeplatinum/... -- I am not part of the "Platinum Kaizo" team - this video is agnostic to that, I have heard it will use vanilla gen4 AI - if so, this video should be useful -- Pchal short, mentioned in the video:    • Hack Pokémon Double Battles With Fake Out   Example Castle Doubles VOD, mentioned in the video:    • Battle Castle Doubles - 371-406   I do anticipate that mistakes and typos are inevitable, this guide was rushed out. If you spot any mistakes and want to be constructive about it, probably best to bring it up in my discord:   / discord   If you want to add or expand sections (in a way that is not overwhelming or confusing) - I'd also be happy to accept that. Again, via discord. I am aware that in this video I make statements like "it will always use X" or "it will never Y" - of course, there is a counterexample to basically every scenario that can be cooked up, this is a limitation of language and a way to make information accessible, condensed and more easily understood for newer players. 0:00:00 - This is a short video 0:00:55 - Post-KO Switch AI 0:01:25 - Best Pokemon, SE Move 0:01:59 - Type-Matchup Scoring 0:04:47 - Trap #1 - Ability Adjustment 0:06:29 - Trap #2 - Status Moves 0:07:03 - Trap #3 - Variable Type Moves 0:07:38 - Bug #1 - Type Check Overflow 0:09:53 - Bug #2 - Immunity Failure 0:12:00 - Most Damage Possible 0:13:45 - Trap #4 - Non-standard attacks 0:15:24 - Trap #5 - Variable Type Adjustment 0:16:40 - Trap #6 - No Valid Attacks 0:16:53 - Trap #7 - Switch-In Kills 0:17:18 - Bug #3 - Damage Overflow 0:20:14 - Bug #4 - Variable Damage Carry-Over 0:24:48 - Frontier Pokeball Information 0:31:37 - Full Post-KO Switch AI Recap 0:33:21 - PostKO Switch AI Takeaways 0:34:33 - Mid-turn Switch AI 0:35:03 - Switch AI beats Move AI 0:35:35 - Impossible Switch Check 0:36:07 - Bug #5 - Switch Checks 0:36:46 - Perish Song 0:37:16 - Wonder Guard 0:38:28 - No Damaging Moves 0:39:37 - Ability Absorbing 0:40:44 - Natural Cure 0:41:29 - Super Effective And Stat Boosts 0:42:32 - Immune Switching 0:44:16 - Resist Switching 0:44:50 - Mid-turn switch AI lessons 0:48:30 - Move AI Fundamentals 0:52:06 - General AI Bugs and Notes 0:56:41 - Kill AI 0:58:00 - Kill AI Bugs & Weirdness 1:02:14 - Doubles Target Consideration 1:04:42 - Doubles Tag Synergies 1:10:14 - Doubles Ally Prediction 1:11:16 - Doubles AI - Strongest Move 1:14:36 - Doubles AI - Type Effectiveness 1:21:04 - Beware Singles Assumptions 1:22:20 - Doubles AI - Priority Preference 1:22:52 - Doubles AI - Spread Moves 1:23:09 - Doubles AI - Protect/Endure 1:25:32 - Bug #6 - Doubles - Spread Damage 1:29:37 - Magpie Top 20 AI Tips 1:29:53 - Strongest Move 1:32:59 - Setup AI 1:34:04 - Curse 1:34:34 - Ability Checking 1:36:43 - Most Status Moves 1:37:05 - Substitute 1:38:42 - Speed Control 1:39:04 - Impossible Max HP Moves 1:39:25 - OHKO AI 1:39:59 - High-Crit AI 1:40:43 - Countercoat 1:41:47 - Destiny Bond & Explosion 1:43:56 - Roar & Haze 1:44:33 - AI Healing 1:45:17 - Endure Reversal 1:46:09 - U-Turn 1:47:07 - Facade 1:47:41 - Weather/ Solarbeam 1:48:03 - Disable & Encore 1:48:27 - Protect 1:48:49 - Platinum Kaizo Note