YouTube2Text

The Complete Guide to Gen4's Battle AI — Transcript

by Magpie Labs · 24,024 words · 3,383 segments · language en · Watch on YouTube

Full transcript

  1. 0:00So, almost every guide on the Gen 4 AI
  2. 0:02gets things wrong. Most of them probably
  3. 0:04have copied each other, and a lot of
  4. 0:05them miss out on very important bugs and
  5. 0:07game interactions. I'm particularly
  6. 0:09aware of this video, which definitely
  7. 0:10needs correcting. So, this is an attempt
  8. 0:12to fix that. It's my attempt to put
  9. 0:14multiple years of experience into a um
  10. 0:17short video. We'll go over exactly how
  11. 0:19the AI switches, the special Gen 4
  12. 0:22doubles AI behaviors, and a condensed
  13. 0:23list of what I picked out as the most
  14. 0:25important AI behaviors to know for the
  15. 0:27Frontier, and any difficult ROM hacks.
  16. 0:29Each section is clearly marked and a
  17. 0:30full transcript with examples is linked
  18. 0:32in the description. If there are any
  19. 0:34mistakes, this document will get
  20. 0:35updated. If you're experienced with
  21. 0:37generation 4, you might want to skip
  22. 0:38ahead to some of the trap and bug
  23. 0:39sections. That's probably what's going
  24. 0:41to be new for you. Or treat this like a
  25. 0:43quick test or recap as I go through
  26. 0:44examples. If you are new, this might be
  27. 0:46a bit overwhelming, but I hope that the
  28. 0:48examples help. And this write up and
  29. 0:50video is largely based on the PR demp
  30. 0:52and also Mo's excellent websites. I'm
  31. 0:54going to have links for both. So, the
  32. 0:55most essential thing to the game is
  33. 0:57understanding that after you carry an
  34. 0:58enemy Pokemon, what Pokemon is going to
  35. 1:00come in next? This logic also applies if
  36. 1:02an enemy uses U-turn or a few other
  37. 1:04cases in mid-turn switch AI, which we'll
  38. 1:06look at in the next section. An
  39. 1:07important thing about switch AI is that
  40. 1:09it's universal. It doesn't matter if the
  41. 1:10enemy trainer has smart AI or no AI.
  42. 1:12It's always going to work the same. You
  43. 1:14can understand post KO switch AI as two
  44. 1:16steps. The best Pokémon with a super
  45. 1:18effective move and the most damage
  46. 1:20possible. Both of these steps have a lot
  47. 1:22of detail and a lot of bugs involved.
  48. 1:24So, let's talk about the best Pokemon
  49. 1:25with a super effective move. This is the
  50. 1:27first check and is the simpler one. In
  51. 1:29this in this step, the AI will check all
  52. 1:31its remaining non-fated Pokemon it could
  53. 1:32switch in. The question is, do they have
  54. 1:34a super effective move or not? This
  55. 1:36brings us to the simplest case. Let's
  56. 1:38say I'm using Garchomp and I just
  57. 1:40knocked out a Rapid Dash. In the back,
  58. 1:42the enemy has two Pokémon they could
  59. 1:44switch to. Ambiom 4 and Absol 4. Ambi
  60. 1:47Pump obviously has Ice Punch, which is
  61. 1:49super effective move against Garchomp.
  62. 1:51Absol has no super effective move
  63. 1:53because only Ambiom has a super
  64. 1:54effective move against Garchomp. Ambi
  65. 1:56Pom is going to be the Pokemon chosen to
  66. 1:58switch in. So obviously the next
  67. 1:59question is what if multiple Pokemon
  68. 2:01have a super effective move. Who gets
  69. 2:03chosen then? Let's expand the previous
  70. 2:05example to include another Pokémon which
  71. 2:07is Latios one. So once again am Ambiom
  72. 2:11has Ice Punch which is super effective
  73. 2:13but this time Latio also has a super
  74. 2:14effective move with Dragon Pulse. So, we
  75. 2:17need to perform the following check. For
  76. 2:19each of AmbiPom and Latios' types, note
  77. 2:22their type matchup against Garchomp, and
  78. 2:24then multiply this number by 40. The
  79. 2:26Pokemon with the highest score wins. An
  80. 2:28important thing to note here, and a
  81. 2:30weird part of the Gen 4 switch AI, is
  82. 2:32that Amy Pom only has one type. It is
  83. 2:34obviously only normal type. If Pokémon
  84. 2:36has only one type, you must pretend it
  85. 2:38secondary type is the same as its normal
  86. 2:39type. This is how it's actually coded in
  87. 2:41the game's code. So, let's do this
  88. 2:43example. Ambi pom is obviously neutral
  89. 2:45against Garchomp with normal type and
  90. 2:47it's also neutral against Garchomp with
  91. 2:48the secondary normal type we assign.
  92. 2:50Then we do 1 plus 1 is two and 2 * 40 is
  93. 2:5380. So ambiom score against Garchomp is
  94. 2:5680. Latio obviously is dragon psychic.
  95. 2:59Dragon has a two times super effective
  96. 3:00multiply against Garchomp and Psychic
  97. 3:02has a neutral type matchup. So we get 2
  98. 3:04+ 1 is three and then 3 * 40 is 120. And
  99. 3:08this is Latio's type matchup against
  100. 3:09Garchomp. So at the end we check these
  101. 3:11two numbers. We see that 120 is bigger
  102. 3:13than 80 and so 120 wins and Latios is
  103. 3:17chosen as a switch in against Garchomp.
  104. 3:19An important thing to note here is that
  105. 3:21yes, Ice Punch has a better type
  106. 3:23effective matchup into Garchomp. It's
  107. 3:24four times super effective and Dragon
  108. 3:27Pulse is only two times super effective,
  109. 3:28but this doesn't matter. The AI is
  110. 3:30simply checking whether or not the
  111. 3:31Pokemon has any kind of super effective
  112. 3:33move. And Dragon Pulse and Ice Punch are
  113. 3:35both score the same here. Now, Pokémon
  114. 3:38of a single type are also quite
  115. 3:39important to consider. Let's look at one
  116. 3:41where it actually matters. So this is
  117. 3:42Shogun 2. Shogun is obviously only a
  118. 3:45dragon type. Since it's a dragon mono
  119. 3:46type, both of its types are considered
  120. 3:48to be dragon. So if Shogun was a
  121. 3:50possible switching option here, Shogun
  122. 3:52will get two times for dragon versus
  123. 3:54dragon ground and another two times for
  124. 3:56dragon versus dragon ground. It would
  125. 3:58then score four and then that four would
  126. 4:00be multiplied by 40 to get 160. Because
  127. 4:03160 is higher than 120, Shaun beats
  128. 4:05Latios in the switch in AI and the AI
  129. 4:07would choose a switch in Shaun. We can
  130. 4:09understand this that Latio's dragon
  131. 4:11psychic typing is kind of wasting the
  132. 4:13super effective type matchup where
  133. 4:14Shiaon is technically dragon dragon and
  134. 4:16both of those are super effective
  135. 4:17matchups. This is relatively intuitive.
  136. 4:20Now the next question is what if
  137. 4:22multiple Pokémon have the same type
  138. 4:23matchup score into Garchomp and they all
  139. 4:25have a super effective move. So let's
  140. 4:27give a new example. This time we could
  141. 4:28switch into Beaon or Shellon against
  142. 4:31Garchomp. Beeon is first in the party
  143. 4:33order. Both Pokemon obviously have the
  144. 4:35same two effective move in dragon breath
  145. 4:37and they have the same type matchup
  146. 4:39because they're both the dragon type. So
  147. 4:40the tiebreaker here is that because Beon
  148. 4:42is first in the party order, Beeon will
  149. 4:44be switched in before Shellon. So that's
  150. 4:46the basics of super effective switching
  151. 4:48AI, but there are a few traps here.
  152. 4:50Let's talk about ability adjustment,
  153. 4:51which is a really important thing to
  154. 4:53consider because Pokémon isn't just
  155. 4:54about type matchups. So big one is
  156. 4:56normalize. Essentially, the AI will
  157. 4:59correctly account for normalize. If the
  158. 5:01Pokemon that just fainted has
  159. 5:02normalized, that doesn't matter for the
  160. 5:04Pokemon that's about to switch in. And
  161. 5:05if it's looking at a Pokemon switching
  162. 5:06in, if that Pokemon has normalized and
  163. 5:09it has a move like Ice Beam, Ice Beam is
  164. 5:11considered to be a normal type move. So,
  165. 5:13it's correctly adjusting for normalize.
  166. 5:14Here, let's also talk about levitate.
  167. 5:16This is probably the most famous one.
  168. 5:18Obviously, your Pokemon can be weak to
  169. 5:20earthquake. For example, it could be a
  170. 5:22Bronzong, but it could also have
  171. 5:23levitate, which means it's technically
  172. 5:24being immune to earthquake. The AI does
  173. 5:27understand this. It will cheat to see
  174. 5:29your exact ability. If you have
  175. 5:31levitate, it will know on this step.
  176. 5:33It'll also correctly check for things
  177. 5:34which break levitate. For example, if
  178. 5:36the attacker has mold breaker, it will
  179. 5:38understand it can hit levitate. It'll
  180. 5:39also understand if gravity or iron ball
  181. 5:41are currently in use, which will also
  182. 5:42let a Pokemon with levitate be hit by
  183. 5:44ground moves. A similar thing happens
  184. 5:46with scrappy and foresight. So, if the
  185. 5:48player is using a ghost Pokemon like
  186. 5:49spiriting, which is ghost dark, then a
  187. 5:51Pokemon with scrappy in the back and
  188. 5:53brick break or another fighting move
  189. 5:55will see that it can hit spiritine for
  190. 5:56super effective damage with that brick
  191. 5:57break. And finally, Wonder Guard is also
  192. 5:59correctly considered for the switching
  193. 6:01calculation. Of course, this doesn't
  194. 6:02really matter since the check is a super
  195. 6:04effective moves anyway. But what's
  196. 6:05important here is all other abilities
  197. 6:07are not considered. And as an example of
  198. 6:09this, let's say I somehow get volt
  199. 6:11absorb onto Lapras. Say it's doubles or
  200. 6:13I have some obscure string of inputs. So
  201. 6:16I have a volta absorb lapras which is
  202. 6:17immune to electric. The A will not
  203. 6:19understand that lapras is immune to volt
  204. 6:21absorb here and it will happily send in
  205. 6:22a thunderbolting enemy thinking that
  206. 6:24thunderbolt can hit lapras super
  207. 6:25effectively. In this sense, the switch
  208. 6:27AI is a bit flawed. Let's talk about
  209. 6:29another trap, which is status moves. So,
  210. 6:32say we have the following example of
  211. 6:33Pokemon. We can switch to Ambiom one and
  212. 6:35Gyarados 4. Again, we're going to be
  213. 6:37switching into Garchomp.
  214. 6:39So, it might look like both of these
  215. 6:41Pokémon have no attacks which are super
  216. 6:42effective against Garchomp. They don't
  217. 6:44have any kind of dragon or ice attacks.
  218. 6:46However, there is a problem here, which
  219. 6:47is that Gyarados's Dragon Dance is
  220. 6:49technically considered a super effective
  221. 6:51move. Of course, dragon dance has no
  222. 6:53damage, but it's technically dragon
  223. 6:55type, and dragon type is technically
  224. 6:56super effective against Garchomp. So,
  225. 6:58Gyus is going to be chosen as a
  226. 6:59switching against Garchomp here simply
  227. 7:01because it has the move dragon dance.
  228. 7:03Another thing to be really careful about
  229. 7:04is variable type moves. These are
  230. 7:06obviously fairly rare, but they are
  231. 7:08important to account for. So, hidden
  232. 7:10power can easily exist in the back. The
  233. 7:11AI does understand what the exact hidden
  234. 7:13power of the Pokémon is. It will not
  235. 7:15assume that hidden power is normal type.
  236. 7:17The same adjustments happen for
  237. 7:18Weatherable, Judgment, and Natural Gift.
  238. 7:21and those all get correctly adjusted to
  239. 7:22be the correct type. Of course, this is
  240. 7:24quite rare. Probably the most common one
  241. 7:26you'll see in the game is Weberball, but
  242. 7:27other ROM hacks could easily bring in
  243. 7:29something else. So, that's the basics of
  244. 7:31switching AI when it comes to the super
  245. 7:33effective step. But, let's talk about
  246. 7:35two really important bugs that interfere
  247. 7:37with this. The first one is what we call
  248. 7:39type check overflow. This is a bug the
  249. 7:41community is aware of, but let me
  250. 7:42explain it in full. So again, pretend I
  251. 7:45have a Garchomp out and the AI can
  252. 7:47switch into either ambip 4 or red ice
  253. 7:50one. Both of these have a super
  254. 7:51effective ice move against Garchomp. Now
  255. 7:54obviously even without doing any kind of
  256. 7:56calculation, you should know that Red
  257. 7:58Ice is ice type. It has a better super
  258. 7:59effective matchup into Garchomp than
  259. 8:01Ambiom's normal type. And Red Ice should
  260. 8:03be switched in. If we do the full maths
  261. 8:05of this, we do get this. 320 is Red
  262. 8:08Ice's score and 80 is Ambiom score. So
  263. 8:11red ice is going to win and is going to
  264. 8:13be switched in. However, there is a bug
  265. 8:15here. This combined type score cannot
  266. 8:18get a value higher than 255 for
  267. 8:20programming reasons. This is an overflow
  268. 8:23error on the type check. This means red
  269. 8:25ice's true score is not 320 but is 320
  270. 8:28mod 256 which is 320us 256 which is 64.
  271. 8:33So red ice's true value against Garcho
  272. 8:35is 64. It's actually loses to ambip. So
  273. 8:38this scenario where you have a four
  274. 8:40times too effective matchup on both
  275. 8:42enemy switchins actually means that it
  276. 8:44loses out to neutral type matchups, but
  277. 8:46it could still beat something worse. For
  278. 8:48example, if we had some kind of electric
  279. 8:50type and ground is obviously immune to
  280. 8:51electric because that would score zero,
  281. 8:53red ice would still beat that. So the
  282. 8:55fact that red ice is overflowing here
  283. 8:57doesn't mean red ice can never be chosen
  284. 8:58as the best switch in candidate. But it
  285. 9:00does mean that red ice dramatically
  286. 9:02falls down the chain in terms of what
  287. 9:03should be switched in next. And I also
  288. 9:05want you to notice that this is only
  289. 9:06triggered if both type matchups are
  290. 9:08times four. For example, swamp versus
  291. 9:10golem is a very good type match up as
  292. 9:12well. This is a four times interaction
  293. 9:14on water and a two times interaction on
  294. 9:16ground. And this scores 6* 40 which is
  295. 9:18240. And this does not overflow. The
  296. 9:21only way to overflow is to have a 8
  297. 9:23interaction overall. I will also say
  298. 9:25this is a common bug. A lot of Pokemon
  299. 9:27you can use will have four times
  300. 9:29weaknesses and a lot of Pokemon in the
  301. 9:31frontier or any kind of difficult ROM
  302. 9:32hack could easily have coverage for
  303. 9:34them. So here in the document I also
  304. 9:35mentioned that the red eye switching is
  305. 9:36not impossible. Again we got to remember
  306. 9:39we're always checking for super
  307. 9:40effective type matchups. So here ambiom
  308. 9:43and red ice are being considered again.
  309. 9:45Yes, ambipom has a better type matchup
  310. 9:47but red ice is the only Pokemon here
  311. 9:48with a super effective move in ice beam.
  312. 9:50So we'll always go to red ice in this
  313. 9:52scenario. The second bug is much rarer
  314. 9:54and much more obscure. It's a variant of
  315. 9:56a famous Gen 3 bug, but this is pretty
  316. 9:58recent discovery. So, let's bring in a
  317. 10:00new example for this. Let's say I'm
  318. 10:01using Glycore, which is a ground flying
  319. 10:03type. The opponent is considering
  320. 10:05sending in Stantler and Red Ice. Now, on
  321. 10:07first glance, it looks like Scatler
  322. 10:09doesn't have any kind of super effective
  323. 10:10moves. And looks like Red Ice does have
  324. 10:12super effective move in Ice Beam. So,
  325. 10:14Red Ice should be chosen here, right?
  326. 10:17Well, that's not quite how this works.
  327. 10:19You see, Glisk is immune to Thunder Wave
  328. 10:21on its ground typing, but its flying
  329. 10:22typing is actually weak to Thunder Wave.
  330. 10:25And this means that Thunderwave is seen
  331. 10:26as super effective against Gliscor even
  332. 10:28though obviously Glycor is actually
  333. 10:30immune to it in the real battle. But the
  334. 10:32switching AI does not understand this.
  335. 10:34The switching AI thinks that Glyscore is
  336. 10:36weak to electric. So for example, if
  337. 10:38there's a Jolon in here and Jolon is the
  338. 10:40only Pokemon with a super effective
  339. 10:41move, Jolon will be switched in instead.
  340. 10:43So then I mention again here in the
  341. 10:45document that because Red Ice has got a
  342. 10:46eight times interaction to Glisor, it
  343. 10:48overflows just like it did against
  344. 10:49Garchomp and Santa Cl will be chosen to
  345. 10:51switch in. Santa has Thunder Wave. Now,
  346. 10:53this bug was rare, and this bug was
  347. 10:54covered in a video by DRX. However, the
  348. 10:56list of Pokémon he provides there are
  349. 10:58badly wrong. I don't know how we got
  350. 11:00this wrong, but it is badly wrong. I've
  351. 11:02mentioned how you can check this in the
  352. 11:03code yourself. It's the way the AI
  353. 11:05considers the type ordering in the
  354. 11:06game's code. Essentially, the thing you
  355. 11:08need to know is that the only Pokémon
  356. 11:09affected by this in Gen 4 are Gliger and
  357. 11:12Glycor, which are weak to electric,
  358. 11:14Aerodactyl, which is weak to ground,
  359. 11:16scar me, which is weak to ground, and
  360. 11:17graphic, which is weak to ghost. As far
  361. 11:19as I can see, there are no other Pokémon
  362. 11:21in the game that can trigger this. This
  363. 11:22can be quite an important bug actually.
  364. 11:24Gliscore, Aerodactyl, and Scari Al all
  365. 11:26benefit from this quite a lot as they
  366. 11:28will often be forcing in Pokemon to
  367. 11:29switch in that don't actually have a
  368. 11:31super effective move against them.
  369. 11:32Aerodactyl is probably the weakest one
  370. 11:34of these because in the frontier, if a
  371. 11:36Pokemon has a ground type attack, it
  372. 11:37probably has another coverage type
  373. 11:38attack that can hit Aerodactyl. But
  374. 11:40Glycor forcing and electric types and
  375. 11:42scar me forcing in ground types can be
  376. 11:44really good for you. And I want to make
  377. 11:46a note here that if you're playing a ROM
  378. 11:48hack, of course, the switch AI can
  379. 11:49change. I'm saying this for vanilla
  380. 11:51games and games that do not change the
  381. 11:52eye. But if you're playing in a ROM hack
  382. 11:54that adds a type like fairy, then this
  383. 11:55could easily be very different. And
  384. 11:57also, the ROM hack creator could easily
  385. 11:59have fixed the bugs mentioned above. So,
  386. 12:01we now move on to the second part of the
  387. 12:02Switch AI, which is what happens if the
  388. 12:04AI sees that it has no super effective
  389. 12:06moves against your Pokémon. Obviously,
  390. 12:08when it has no super effective move, it
  391. 12:09still wants to pick a good switch in
  392. 12:10against you. This brings us on to most
  393. 12:12damage possible. This is the second part
  394. 12:14of the switching check. This is a pure
  395. 12:16damage calculation, but what's really
  396. 12:18important here is to understand exactly
  397. 12:20how this works. So, let's say I have
  398. 12:22Garchomp one and I just knocked out
  399. 12:24Gastradon 2. What the AI is going to do
  400. 12:27here is take Gastradon 2, take its exact
  401. 12:30stats, its exact ability, its exact
  402. 12:32item, and make Gastraodon 2 use every
  403. 12:35single move in the enemy party against
  404. 12:38Garchomp.
  405. 12:39It is then going to pick the move that
  406. 12:41does the most possible damage against
  407. 12:43Garchomp. So, let's do a real example of
  408. 12:45that. Let's say in the back, the AI can
  409. 12:47either switch to Gold Duck one, which
  410. 12:49has surf and psychic as damaging moves,
  411. 12:51or Venusaur one, which has leaf storm
  412. 12:53and sludge bomb as damaging moves. So,
  413. 12:55if we put these into a damage
  414. 12:57calculator, and remember, we're putting
  415. 12:58in these damage calcs for Gastadon
  416. 13:00against Garchomp, not for the other
  417. 13:02Pokémon. So, we give Gastadon Gold's
  418. 13:05moves of Surf and Psychic. And Surf
  419. 13:07comes out as doing 88 max damage. We
  420. 13:10then do the same for Venusaur. We put in
  421. 13:12leaftorm and sludge bomb and leaftorm
  422. 13:14comes out to do 86 damage. And because
  423. 13:1788 is larger than 86, Surf does more
  424. 13:20damage than Leaftorm. And Surf wins this
  425. 13:22check, which means that Golduck is going
  426. 13:24to be sent out against Garchomp. Golduck
  427. 13:26is the Pokemon that had the attack that
  428. 13:28does the most damage against Garchomp
  429. 13:30when it's used by Gastradon. Now, that
  430. 13:32is not completely intuitive, and it does
  431. 13:34take a second for that to sink in, and
  432. 13:36it does mean if you want to do this
  433. 13:37precisely, you might have to mess around
  434. 13:38in the cows quite a lot. Now, despite
  435. 13:40that sounding simple, there are quite a
  436. 13:41lot of traps and bugs associated with
  437. 13:43this part of the switching AI as well.
  438. 13:45Let's first talk about non-standard
  439. 13:47attacks. So, basically, moves that the
  440. 13:49AI thinks that have variable base power
  441. 13:51are not included. But this list can be a
  442. 13:53bit arbitrary. For example, the move
  443. 13:56Weatherball technically can change its
  444. 13:58power. It has variable power depending
  445. 14:00on the weather. However, Weatherball is
  446. 14:02actually correctly included in this
  447. 14:04damage check. But if we think about a
  448. 14:06move like a low kick or reversal, which
  449. 14:08also have variable power, these are not
  450. 14:10included. They will not be part of the
  451. 14:12calculation used to determine who the
  452. 14:13best Pokemon to switch into is. The key
  453. 14:15is that the moves the AI is going to
  454. 14:17ignore, are moves in the game's code
  455. 14:18which have a base power of one. Now, you
  456. 14:20don't need to look these up yourself.
  457. 14:22I've listed them here. So, these are Oko
  458. 14:24moves. These always get ignored. B
  459. 14:26always gets ignored. Superfank always
  460. 14:28gets ignored. These are quite big
  461. 14:29because they would often be the best
  462. 14:30move. Remember, the Pokemon obviously
  463. 14:31has max power flail or reversal if it's
  464. 14:33just fainted. The move present gets
  465. 14:36ignored. Magnitude gets ignored.
  466. 14:38Endeavor gets ignored. Counter, miracle,
  467. 14:41metal burst get ignored. Fling, trump
  468. 14:43card, and split up. And I forgot to add
  469. 14:45low kick and cross not as well. I just
  470. 14:46realized. I hope this is a full list of
  471. 14:48moves that get ignored. However, I could
  472. 14:50easily be missing a few. So remember, if
  473. 14:51a Pokémon has one of these moves, it is
  474. 14:53not part of the switching AI. Do not put
  475. 14:55it in the damage calc. Do not think that
  476. 14:57the AI is going to factor it in. Now, I
  477. 14:59said that some moves do have changeable
  478. 15:00base power, but they still get correctly
  479. 15:02factored in. And these moves to give a
  480. 15:04brief example. Explosion and
  481. 15:06self-destruct. These are big ones. They
  482. 15:07often win. Eruption and war spout get
  483. 15:10correctly adjusted for as well. Dream
  484. 15:12meter, revenge, payback, and avalanche.
  485. 15:15These moves assume that they have the
  486. 15:16base power, not the doubled power, but
  487. 15:18they do get included in the switch AI.
  488. 15:20Sucker punch, weather ball, and facade.
  489. 15:22So these moves all get included in the
  490. 15:23damage calc. So here's a more obscure
  491. 15:26bug. Variable type moves in the base
  492. 15:28game are going to be vulnerable to
  493. 15:30something called a variable ability type
  494. 15:32adjustment. That sounds a bit weird.
  495. 15:34Let's have a direct look at an example.
  496. 15:36Say our switching Pokemon has hidden
  497. 15:38power fire. Hidden power fire is
  498. 15:40obviously a firet type attack. And let's
  499. 15:43say it's switching in into a Pokemon
  500. 15:44with dry skin or heat proof. A Pokemon
  501. 15:47with that ability is not going to adjust
  502. 15:48the damage for that hidden power fire
  503. 15:51check. So that means a Pokemon with dry
  504. 15:52skin is meant to take more damage from a
  505. 15:54firet type move. But if it's hidden
  506. 15:56power fire, it will not.
  507. 15:58The damage calculator almost certainly
  508. 16:00will not take this into account when
  509. 16:02considering the switch in AI. The same
  510. 16:03thing could happen with sunny day
  511. 16:05weather ball or something like firet
  512. 16:06type judgment or as we mentioned earlier
  513. 16:09potentially something like natural gift.
  514. 16:11Now these are somewhat rare. Obviously
  515. 16:13talking about things like dry skin thick
  516. 16:15fat and heat proof, but they're not
  517. 16:16unheard of. You could have Pokémon with
  518. 16:18these and it will affect what the AI
  519. 16:19chooses to switch in. Also be really
  520. 16:21careful of HP dependent abilities like
  521. 16:23swarm or blaze. These will also get
  522. 16:25factored in. If the Pokemon has just
  523. 16:27fainted, it is technically in blaze or
  524. 16:29swarm. And remember, the same applies to
  525. 16:30items. So, in our early example, if the
  526. 16:33Pokemon that just fainted, Gastron, had
  527. 16:34a choice band, it would increase the
  528. 16:36power of physical moves against Garchomp
  529. 16:38when considering all the switchins. This
  530. 16:40isn't really a trap that's really
  531. 16:41important to notice. If the opponent has
  532. 16:43no moves that can deal damage, and
  533. 16:44you've got to remember that moves with
  534. 16:46variable power that we mentioned earlier
  535. 16:48don't actually deal damage on this
  536. 16:49check, then the game is just going to
  537. 16:51send out the next Pokémon in party
  538. 16:52order. This is another common trap or
  539. 16:54misconception, which is the fact that
  540. 16:56the AI checks for a kill. The AI does
  541. 16:58not care if it kills or not with a move.
  542. 17:01So, let's say I have a Pokemon with one
  543. 17:02HP left, and I just knocked out an
  544. 17:04enemy. The AI could switch to a Pokemon
  545. 17:06that does 200 damage to me, or it could
  546. 17:08switch to a Pokemon that does one damage
  547. 17:09to me. It does not care that both kill.
  548. 17:11It'll go for the Pokemon that does the
  549. 17:13most damage in this check. Whether or
  550. 17:15not the move can kill your Pokemon is
  551. 17:16absolutely irrelevant. Okay, so to no
  552. 17:18one's surprise, there is a big bug in
  553. 17:20the damage calc, which is damage
  554. 17:21overflow.
  555. 17:23This is fairly rare in typical gameplay.
  556. 17:26Basically, to go above 255 damage is
  557. 17:28quite rare. You probably see this in
  558. 17:30factory level 100. You also probably see
  559. 17:31it in a late game ROM hack potentially.
  560. 17:33Or it could be possible when using a
  561. 17:35very lopsided Pokémon or when facing a
  562. 17:36very lopsided Pokémon. For example, if
  563. 17:38you're using Blissy, which has naturally
  564. 17:40low defense. The important part here is
  565. 17:42that the maximum damage the AI can score
  566. 17:44is 255. It cannot go higher than this.
  567. 17:47Of course, in this check, there'll be no
  568. 17:49super effective damage multiplier
  569. 17:50because if the move is super effective,
  570. 17:52the AI would have already chosen it as a
  571. 17:53switch in. So, let's do an example.
  572. 17:55Level 100 Ryon just knocked out level
  573. 17:58100 Latios. And let's say the switch in
  574. 18:00has a move psychic. So, perhaps it's a
  575. 18:02Pokemon like Alakazam. When Latio tries
  576. 18:04to use Psychic against Ryon, Psychic is
  577. 18:06going to do 268 damage. So, if we adjust
  578. 18:09for 255 being the max score, we get 268
  579. 18:12minus 256, which is 12. Obviously, 12
  580. 18:15damage is horrible. This is a level 100
  581. 18:17Pokémon. Probably every other Pokemon on
  582. 18:19the team has a stronger move than this.
  583. 18:21So, this kind of damage overflow can
  584. 18:23matter, but we've got to remember that
  585. 18:24in a real battle, it might not matter.
  586. 18:27Let's say, for example, the switching
  587. 18:28Pokemon we're considering has psychic,
  588. 18:29but it also has a move like Dark Pulse.
  589. 18:31Well, Dark Pulse is still going to do a
  590. 18:33lot of damage to Rydon. In the example
  591. 18:35I've listed here, it does 159 damage to
  592. 18:37Rydon. 159 is going to score higher than
  593. 18:40the 12 damage that it thinks psychic
  594. 18:41does. And 159 is still probably quite
  595. 18:44likely to win the switch in damage
  596. 18:45check. For example, if the other Pokemon
  597. 18:48is some kind of physical type, Latio
  598. 18:49probably doesn't do much damage with a
  599. 18:51physical move into Ryon. And so this
  600. 18:53dark pulse might still win. And a
  601. 18:55Pokemon we expect to come in if there
  602. 18:56was no bug might still be the Pokemon
  603. 18:58that comes in anyway. You got to be
  604. 18:59really careful with this that when you
  605. 19:00see a move that does more than 256
  606. 19:02damage, you got to check that the other
  607. 19:04moves aren't also very high scoring and
  608. 19:06aren't better switch options than the
  609. 19:08other Pokémon on the bench. Now, in some
  610. 19:10rare cases, you might see something like
  611. 19:11this, which for example is Machamp using
  612. 19:14double-edged on Blissey. Here, the
  613. 19:16damage from the damage calc will be 711.
  614. 19:18Now, 7-Eleven minus 256 is still a
  615. 19:21number bigger than 255. So, we keep
  616. 19:23subtracting 256 from this number until
  617. 19:25we get an acceptable number lower than
  618. 19:26255. And in here that would be 199. This
  619. 19:30might seem obvious, but it's just
  620. 19:31something I want to include to cover all
  621. 19:32the bases. Now, I said that overflow is
  622. 19:34quite rare, but there's one case where
  623. 19:36overflow isn't that rare, which is
  624. 19:37explosion. You got to remember that
  625. 19:39explosion is technically a 500 base
  626. 19:40power move in generation 4 because of
  627. 19:42the h havinging of the opponent's
  628. 19:43defense. So, even at lower levels, it's
  629. 19:46quite easy for explosion to overflow in
  630. 19:47a damage check. The one insight I'd have
  631. 19:50here is that for the frontier, it's
  632. 19:51quite unlikely to matter. Most explosion
  633. 19:54Pokémon also have very strong physical
  634. 19:55moves anyway. So, in an example,
  635. 19:58Fortress 4 might overflow of explosion,
  636. 20:00but Double Edge, Earthquake, and
  637. 20:01Rocklide are quite likely to win the
  638. 20:03switch in check anyway, but in the
  639. 20:05Frontier, particularly playing at level
  640. 20:0750, you should probably expecting the
  641. 20:08Explosion Pokémon to come in second.
  642. 20:10Explosion does usually win this step or
  643. 20:12it causes overflow in this step. So,
  644. 20:14let's look at the next bug. This is
  645. 20:16variable damage carryover. Now, this is
  646. 20:18very rare. Back in trap one, I said that
  647. 20:20non-standard damage moves ignored. These
  648. 20:22would be moves like reversal or low
  649. 20:24kick. However, this is not completely
  650. 20:26true. When the AI calculates how much
  651. 20:28damage a move does, it correctly does
  652. 20:30this for all other moves and it
  653. 20:32correctly does this for status moves. It
  654. 20:33understands that status moves will do
  655. 20:35zero damage. However, moves with a power
  656. 20:37of one, which are the variable damage
  657. 20:39moves we mentioned before, are
  658. 20:40technically skipped. And this means the
  659. 20:42AI believes that for variable damage
  660. 20:44moves, the amount of damage they do is
  661. 20:46actually whatever was just calculated.
  662. 20:48Now, usually this is fine. Consider Val
  663. 20:51Plume 2 for example. When the AI is
  664. 20:53trying to score Val plume for how much
  665. 20:55damage it does with its best move, it'll
  666. 20:57use toxic. Toxic will deal zero zero
  667. 20:59damage, it'll then use grassnot. It
  668. 21:02skips grass knot and grass knots takes
  669. 21:04the value from toxic, which is also zero
  670. 21:06damage. And then double team and attract
  671. 21:08all do zero damage as well. So the AI
  672. 21:10correctly understands in the switch part
  673. 21:12of the AI that vloom 2 has no attacking
  674. 21:14moves. It's also fine in most other
  675. 21:16cases. So let's look at Alakazam 3.
  676. 21:19Alakazam 3 will have its psychic scored
  677. 21:21normally. It'll have charge beam scored
  678. 21:23normally and it'll have signal beam
  679. 21:25scored normally. Grassnot is technically
  680. 21:27skipped, but what that means is that
  681. 21:29grassnot is seen as doing the same
  682. 21:30amount of damage as signal beam. This
  683. 21:32does not affect the chance of switching
  684. 21:34in Alakazam 3 at all. Alakazam 3 will
  685. 21:37obviously just be taking one of these
  686. 21:38three moves as most damage. If signal
  687. 21:40beam happens to be the best move, it
  688. 21:42doesn't matter that Grassnot did the
  689. 21:43same amount of damage because doing the
  690. 21:44same amount of damage does not change a
  691. 21:46switch in AI at all. But for both Val
  692. 21:48plume and Alakazam, you might be
  693. 21:49wondering, what if Grassnob is in slot
  694. 21:51one? What happens then? And this is the
  695. 21:55bug. Let's do a real example to show
  696. 21:57this. I have Garchomp. I'm playing at
  697. 21:59level 50 and Blastoise just fainted. The
  698. 22:02AI is considering switching into one of
  699. 22:04the following Pokémon. So, we've got
  700. 22:05Agron and Ludy Colo. Now, if Blastoise
  701. 22:09uses Earthquake against Garchomp, it's
  702. 22:11going to do 37 damage. If Blastoise uses
  703. 22:14waterfall against Garchomp, it's going
  704. 22:16to do 44 damage. So, Ludy Colo should
  705. 22:19win best damaging move. This this is
  706. 22:21because Blastoise sees the waterfall
  707. 22:23from Ludic Colo as having stab damage.
  708. 22:25So, basically, Waterfall has 120 power,
  709. 22:27which is more than Earthquakes's 100,
  710. 22:29which is why it does more damage against
  711. 22:30Garchomp here. So, the AI should want to
  712. 22:32switch into Ludic Colo. However, it's
  713. 22:35not going to do this. Agron's first move
  714. 22:37is Metal Burst. Metal Burst is a
  715. 22:39variable damage move. It's going to be
  716. 22:41skipped. is going to have to take the
  717. 22:43value of whatever the AI last calculated
  718. 22:46in the type switch in AI. Now, it just
  719. 22:49so happens the last thing the AI
  720. 22:51calculated in switch AI was from the
  721. 22:54previous step when we were doing super
  722. 22:55effective checks. It had to calculate
  723. 22:57the type matchup of Ludic Colo against
  724. 22:59Garchomp.
  725. 23:01Now, we did this before. The way you do
  726. 23:04this is that Ludicello's types are
  727. 23:05scored against Garchomp. So, Ludy Kell
  728. 23:07is water grass. Water has a neutral type
  729. 23:10matchup. It's time 1. Grass has a
  730. 23:12neutral type matchup. It's time 1. 1 + 1
  731. 23:15is 2. And 2 * 40 is 80. So Ludy Colo had
  732. 23:19an 80 matchup score against Garchomp.
  733. 23:22Obviously, the AI did not pick Aggron or
  734. 23:25Ludy Colo for the switch AI for super
  735. 23:27effective checks. They both don't have a
  736. 23:29super effective move against Garchomp.
  737. 23:31However, this value of 80 is still in
  738. 23:34memory in the AI. And so when the AI
  739. 23:37tries to calculate Metal Burst against
  740. 23:38Garchomp, it thinks that Metal Burst is
  741. 23:41going to do 80 damage against Garchomp,
  742. 23:43which is Ludic's type matchup against
  743. 23:44Garchomp. Obviously, 80 damage from
  744. 23:47Metal Burst beats Earthquake and it
  745. 23:49beats Waterfall. And so the AI is going
  746. 23:52to choose to switch Aggron in against
  747. 23:53Garchomp, even though it shouldn't. This
  748. 23:56is the bug. When it triggers, it has to
  749. 23:59be the first Pokemon the AI is
  750. 24:00considering switching to has to have a
  751. 24:02variable damage move in slot one. and
  752. 24:05the last Pokemon in the party will have
  753. 24:07to have some kind of non-immune matchup
  754. 24:09into your Pokemon. If both of those
  755. 24:11checks pass though, it's quite likely to
  756. 24:13switch it in. Obviously, Ludy Colola had
  757. 24:15a neutral type match up against
  758. 24:16Garchomp, but if we imagine a Pokemon
  759. 24:18like Lapras, it would have done 120
  760. 24:20damage in the hallucination against
  761. 24:22Garchomp, and it could be even worse. 80
  762. 24:24damage is a lot. Unless you get above
  763. 24:27level 70 to 80, this probably dominates
  764. 24:29the way that the AI switching works at
  765. 24:32very high levels. And we're probably
  766. 24:33specifically talking about level 100.
  767. 24:35This probably doesn't happen quite so
  768. 24:37much. So at level 100, Blastoise using
  769. 24:39Waterfall with Ludic Colo probably does
  770. 24:41score more than 80 against Garchomp and
  771. 24:43then Ludic Colo would be correctly
  772. 24:45chosen as a switch in instead. So I also
  773. 24:47want to quickly talk about in Frontier
  774. 24:48the way the Pokeball icon is displayed
  775. 24:50in the game. This will not matter if
  776. 24:52you're playing against opponent where
  777. 24:53you know their exact team, but if you
  778. 24:55don't know their exact team, this can be
  779. 24:56really important. So let's say I knock
  780. 24:58out the first Pokémon. The AI has to
  781. 25:00switch to one of its two options in the
  782. 25:02back since this is a 3v3 battle. So, I'm
  783. 25:04either going to get an image that looks
  784. 25:06like this where the grade out Pokeball
  785. 25:08is in the middle or I could get one that
  786. 25:09looks like this where the grade out
  787. 25:11Pokeball is on the left. Now, here it
  788. 25:14means that the AI switched a Pokémon in
  789. 25:15slot two in. And in here, it means the
  790. 25:17AI switch a Pokémon in slot three in.
  791. 25:19This might seem like a minor detail, but
  792. 25:21actually this is a fairly important
  793. 25:22critical part of information. We can say
  794. 25:24a few things about this once we know
  795. 25:26that it's slot two instead of slot
  796. 25:27three. So, let me bring in an example.
  797. 25:29Let's say I have Garchomp out again and
  798. 25:31Ambiom 4 switches in. Ambiom 4 is quite
  799. 25:34like to switch in against Garchomp
  800. 25:36because it's got the super effective
  801. 25:37move. Now, if Ambiom 4 was in slot
  802. 25:40three, which is when it looks like this,
  803. 25:43it means that slot two cannot have a
  804. 25:45Pokémon with a move that is super
  805. 25:46effective against Garchomp that has an
  806. 25:48equal or better type backdrop against
  807. 25:50Garchomp than Ambiom does. For example,
  808. 25:53if slot two was another normal type with
  809. 25:55an ice move, that would be impossible.
  810. 25:57the AI would have chosen to go to that
  811. 25:59Pokemon first. It also means that slot
  812. 26:01two, for example, could not be a water
  813. 26:02type with an ice beam as well as water
  814. 26:05also has a neutral type match up against
  815. 26:06Garchomp and Ambon would then win the
  816. 26:08switching. Now, however, if Ambon 4 was
  817. 26:10in slot two when it came out, which
  818. 26:12looks like this, this is not true. The
  819. 26:15Pokémon in slot three might be a water
  820. 26:17type, it might be a normal type and so
  821. 26:18on. We don't know because Ambon will win
  822. 26:21the twitching decision against Garchomp
  823. 26:22based on the party order then. So, we
  824. 26:24can also take this a bit further. Let's
  825. 26:26say Milt Tank 4 switches in. Once
  826. 26:28Miltank 4 switches in, I know a few
  827. 26:30things for certain. I know that the
  828. 26:32other Pokemon that the AI could have
  829. 26:33switched to does not have a super
  830. 26:35effective move against Garchomp. I also
  831. 26:37know that the AI does not have a Pokémon
  832. 26:40that that does more damage against
  833. 26:41Garchomp than one of Miltank's moves
  834. 26:43used by the Pokemon that just fainted.
  835. 26:45However, once again, we can say a bit
  836. 26:47more than this. If Miltank is in slot
  837. 26:49two, then the Pokemon in slot three
  838. 26:51might have a move that ties strongest
  839. 26:53damage. For example, it might also have
  840. 26:55the move Giga Impact and but if Miltech
  841. 26:58is in slot three, then we know that slot
  842. 27:00two has lost against Miltank. It is not
  843. 27:02tied Miltank for strongest move. Now, of
  844. 27:05course, in the frontier, we often deal
  845. 27:06with incomplete information. We won't
  846. 27:08know exactly what the Pokémon's going to
  847. 27:09be. So, let's do an example. Let's say
  848. 27:11the AI sends in Reggi Rock second
  849. 27:12against Garchomp. So, these are the
  850. 27:14Reggi Rock sets. If you're not a
  851. 27:15Frontier player, don't worry about this.
  852. 27:17We can say a few things here because of
  853. 27:18the switch AI. First up, the most likely
  854. 27:21Reirock to switch into Garchomp would be
  855. 27:23Reggi Rock 2. This is because Reggirock
  856. 27:252 is the only Regi Rock with a super
  857. 27:27effective move against Garchomp with Ice
  858. 27:28Punch. Regiro Rock 2 is therefore most
  859. 27:31likely. And if Regirock 2 does come in,
  860. 27:34then the other Pokemon in the back might
  861. 27:35also have a super effective move against
  862. 27:37Garchomp. However, because Reggi Rock is
  863. 27:39obviously a rock type and rock is not
  864. 27:41very effective against ground, the last
  865. 27:43Pokemon, if it does have if it does have
  866. 27:45a super effective move, cannot have a
  867. 27:47better type matchup into Garchomp than
  868. 27:49Reggiro does. And this is quite
  869. 27:50important information because it means,
  870. 27:52for example, the last Pokémon couldn't
  871. 27:54be a Gold Duck with Ice Beam, as Golduck
  872. 27:56with ice beam would have been switched
  873. 27:57in first. Now, if it's not Reggi Rock 2,
  874. 28:00the next most likely Reggi Rock to
  875. 28:01switch in is actually Reggi Rock 4. Why
  876. 28:03is this? Once again, we covered it
  877. 28:05before. It's because of explosion and
  878. 28:07it's because of the other strong
  879. 28:08damaging moves. Reggirok 4 is just more
  880. 28:10likely to be picked in as a switchin
  881. 28:12compared to the other Regi Rocks.
  882. 28:14However, it's not a lot more likely.
  883. 28:16Reggirock 1 and Reggi Rock 3 still have
  884. 28:18strong moves. They still have Hammer Arm
  885. 28:20and Earthquake respectively. These moves
  886. 28:22are quite likely to tie or beat a number
  887. 28:24of the other sets in the frontier. So,
  888. 28:26we wouldn't be surprised to see Reiok 1
  889. 28:28or Readyok 3 come in. However, if Reok
  890. 28:301, three, or four come in, we now know a
  891. 28:32little bit more. We know that the
  892. 28:33Pokemon the back cannot have a super
  893. 28:35effective move against Garchomp, which
  894. 28:37is quite big information, particularly
  895. 28:38if you're playing Factory. And we also
  896. 28:40know the Pokemon the back must have lost
  897. 28:42the strongest damaging move against
  898. 28:44Garchomp over Reggi Rock. It has a
  899. 28:46weaker move against Garcho against
  900. 28:48Garchomp than Reggiro does. And this
  901. 28:50brings us to a fundamental truth of how
  902. 28:52to play the factory, which is that after
  903. 28:54you knock a Pokemon out in the factory,
  904. 28:56by default, you're probably going to
  905. 28:58switch. the AI probably switch in a
  906. 29:00Pokemon that has a good move against you
  907. 29:01and a good type matchup or has a
  908. 29:03powerful move against you. Quite often
  909. 29:05the factory you want to switch out. This
  910. 29:07is quite a big difference with Gen 4
  911. 29:08factory compared to Gen 3 factory
  912. 29:10because in Gen 3 the switch AI does not
  913. 29:12operate like this at all and a way picks
  914. 29:14the best type against you is actually
  915. 29:15backwards. So let's do another example
  916. 29:17that is a bit more illuminating. Let's
  917. 29:19do Metacham switching in against
  918. 29:20Garchomp. Now if Metacham switches
  919. 29:22against Garchomp, the most likely
  920. 29:24Metacham set would be Metacham 4. Again,
  921. 29:26if it's not Medachcham 4, we know that
  922. 29:28the last Pokemon cannot have a super
  923. 29:30effective move against Garchomp. But we
  924. 29:32actually get even more information from
  925. 29:33Metacham. Because Metacham 3 is a
  926. 29:35special set, I'm probably going to know
  927. 29:36a bit more about the Pokemon the back
  928. 29:38being either special or physical based
  929. 29:40on the fact that Metacham 3 has a
  930. 29:41different move category, which is
  931. 29:43special than Metacham 1 and Metacham 2.
  932. 29:45On top of this, Metacham 2 does not have
  933. 29:47a very strong move against Garchomp. If
  934. 29:49Metacham 2 comes in, we probably get
  935. 29:51quite a lot of information about what
  936. 29:52the last Pokémon possibly could be. It
  937. 29:54has to have a move that's weaker than
  938. 29:55drain punch. Men shaman is a bit
  939. 29:57different. Zen headbutt does quite good
  940. 29:58damage against Garchomp, but it still
  941. 30:00gives us a bit of information. For
  942. 30:01example, we would then know that last
  943. 30:03Pokémon can't have the move earthquake
  944. 30:05as Earthquake does more damage to
  945. 30:06Garchomp than Zen Headbutt does. There's
  946. 30:08also a very extreme example which could
  947. 30:10be 2. What if 2 comes out against
  948. 30:13Garchomp second out? Because Whirl 2 did
  949. 30:16not trigger super effective AI and Whirl
  950. 30:182's strongest move is Whirlpool, which
  951. 30:20only has 15 power. The list of Pokemon
  952. 30:22that could be in the back is now tiny.
  953. 30:25Whirlpool is obviously an incredibly
  954. 30:26weak attack and it's a good chance that
  955. 30:28the final Pokemon has no actual
  956. 30:29attacking moves. It's quite likely the
  957. 30:31final Pokémon could be something like
  958. 30:32Miloic 2. Again, if you're a factory
  959. 30:35player, you want to be thinking about
  960. 30:36this kind of stuff a lot. Obviously, the
  961. 30:38general truth here is is if the Pokemon
  962. 30:40in slot three was sent out and it
  963. 30:42doesn't have a terrible type match up
  964. 30:43against you, the second Pokemon out
  965. 30:44probably doesn't have a super effective
  966. 30:46move. You want to be careful about
  967. 30:47assuming this always, but it is quite
  968. 30:49often true in the way that the game
  969. 30:50operates.
  970. 30:52It also depends a lot on your Pokemon
  971. 30:53that just knocked them out. If you've
  972. 30:55read my Gen 4 factory guide, you'll be
  973. 30:56familiar that in factory, I often
  974. 30:58recommend leading off for a Pokémon
  975. 30:59which has very few weaknesses or a lot
  976. 31:02of weaknesses because this triggers a
  977. 31:03switch AI a lot more often or a lot more
  978. 31:06rarely. And this also gives you much
  979. 31:08more information on average. And that's
  980. 31:09part of why electric types, for example,
  981. 31:11are often quite good leads in the
  982. 31:12factory. Now, obviously, if you're in
  983. 31:14the frontier and you're playing Factory
  984. 31:16or Tower, you also get more information
  985. 31:17from the type hint or from knowing the
  986. 31:19exact trainers roster of possible
  987. 31:21Pokémon. You can combine this with the
  988. 31:22Pokeball sent out and team knowledge and
  989. 31:25often get quite a lot of information. It
  990. 31:27is not rare to be able to narrow down
  991. 31:28the last possible Pokémon to only two or
  992. 31:30three possibilities, or in some rare
  993. 31:32cases, you might know the exact last
  994. 31:34Pokémon before you've even seen it come
  995. 31:36out. So, let's do a full recap on Post
  996. 31:38KO Switch AI. The following is the exact
  997. 31:40sequence of how it works. Calculate the
  998. 31:42type matchup score of every single
  999. 31:44Pokemon the AI could send in against
  1000. 31:46you. If it's a monotype Pokémon, pretend
  1001. 31:48its secondary type is also its primary
  1002. 31:50type. Multiply this type matchup score
  1003. 31:52by 40. If this number is greater than
  1004. 31:54255, take 256 away from the number. Now,
  1005. 31:57starting with the Pokemon with the
  1006. 31:58highest score in step one, check if it
  1007. 32:00has any super effective move against the
  1008. 32:02player's Pokemon. This includes all
  1009. 32:04status moves. It also includes moves in
  1010. 32:06the super effective immunity bug
  1011. 32:07checklist. This was back when we talked
  1012. 32:09about how glycore is seen as weak to
  1013. 32:10thunderbolt. If a Pokemon with a super
  1014. 32:12effective move is found, switch to it
  1015. 32:14immediately. And if multiple Pokemon tie
  1016. 32:17on the best type matchup score and they
  1017. 32:19all have super effective moves, the one
  1018. 32:21first in the party order is going to
  1019. 32:22win. So if step two didn't result in any
  1020. 32:24kind of switch, which means no Pokemon
  1021. 32:26has a super effective move, then
  1022. 32:28calculate the damage for each switch
  1023. 32:30candidate you could do into the player's
  1024. 32:32Pokemon with all of their moves, as if
  1025. 32:34the move was just used by the Pokemon
  1026. 32:36which just fainted.
  1027. 32:37If a move does more than 255 damage,
  1028. 32:40subtract 256 from that damage until it
  1029. 32:42is 255 or lower. And then this is to be
  1030. 32:45considered the damage for that move. If
  1031. 32:47the first move of the first Pokémon
  1032. 32:49being considered is a variable power
  1033. 32:50move, set the damage of this move equal
  1034. 32:52to the final Pokémon type matchup score
  1035. 32:54from step one. Then outside of this,
  1036. 32:56ignore all the variable power moves in
  1037. 32:58terms of damage. Then in step four, find
  1038. 33:01a Pokemon that has the most damage dealt
  1039. 33:02in step three and switch to it. If
  1040. 33:05multiple Pokemon tie for the strongest
  1041. 33:06move, then tiebreaker is party order
  1042. 33:08again. The first Pokemon with the
  1043. 33:10strongest move gets to be switched in.
  1044. 33:12If no Pokemon has a super effective
  1045. 33:13move, which is a step two failure, and
  1046. 33:15no Pokemon has any move that does
  1047. 33:17damage, which is a step four failure,
  1048. 33:19send out the first Pokemon in party
  1049. 33:21order. So, that's a lot, but what does
  1050. 33:23it actually mean in plain English? I
  1051. 33:25would say the Gen 4 switch AI actually
  1052. 33:26makes a lot of sense. It tries to pick a
  1053. 33:28Pokemon strong into you with a super
  1054. 33:30effective move. If it can't do that, it
  1055. 33:32tries to pick a Pokemon that probably
  1056. 33:34does the most damage against you. Of
  1057. 33:35course, this isn't always exactly what
  1058. 33:37happens, and we should be very careful
  1059. 33:38with the most damage that there is a
  1060. 33:40bias for the AI to switch in a Pokemon
  1061. 33:42that has the same type as a Pokemon that
  1062. 33:43just fainted, since the Pokemon that
  1063. 33:45just fainted is going to use its moves
  1064. 33:47with stab still applied. And there's
  1065. 33:48also a bias to switch in the Pokemon
  1066. 33:50with the same category as a Pokemon that
  1067. 33:51just fainted. For example, if a physical
  1068. 33:53attacker just fainted, it's a bit more
  1069. 33:55likely the physical attack is going to
  1070. 33:56switch in. And it's also a bit more
  1071. 33:58likely that if your Pokemon is very weak
  1072. 34:00to either physical or special moves, the
  1073. 34:02AI is a bit more likely to send in a
  1074. 34:04physical or special attacker,
  1075. 34:05respectively. However, when I say
  1076. 34:07likely, of course, all this can be
  1077. 34:09calculated in terms of exact damage
  1078. 34:11calculations. In terms of the bugs, the
  1079. 34:13most important bug to be aware of is the
  1080. 34:15overflow type check bug in the first
  1081. 34:17stage of the AI and then later at very
  1082. 34:19high levels, you also want to be aware
  1083. 34:21of the overflow bug in terms of the
  1084. 34:23damage AI as well. The other bugs are
  1085. 34:25somewhat rare, but they can spring up if
  1086. 34:27you're going for a very big streak in
  1087. 34:28the frontier or if you're trying to beat
  1088. 34:30a very difficult ROM hack. These are
  1089. 34:31likely going to be things that you are
  1090. 34:33tested on. Okay, so let's now talk about
  1091. 34:35mid turn switch AI. Midterm switch AI is
  1092. 34:38when the AI switches to another Pokémon
  1093. 34:40while its current Pokémon is still
  1094. 34:41alive. This would be an unexpected
  1095. 34:44switch in terms of casual play. Midterm
  1096. 34:47switch AI is very different to post KO
  1097. 34:48AI. It's also something that's really
  1098. 34:50important to be aware of as it's the
  1099. 34:52most humanlike the AI can behave. If
  1100. 34:54you're caught unaware by switch AI, it
  1101. 34:56can easily lead to a loss. Now, the
  1102. 34:58midterm switch AI is one big algorithm.
  1103. 35:00And we're going to go over it in the
  1104. 35:01same order as the code does. So, the
  1105. 35:03first thing to be aware of is that
  1106. 35:04switch AI does not care about move AI.
  1107. 35:07Let's say I'm in some kind of scenario.
  1108. 35:09Let's say I've got a Shuckle at one HP
  1109. 35:11against a Jolon and Jolon has a really
  1110. 35:13powerful move and it's always going to
  1111. 35:14kill me. Obviously, a human would stay
  1112. 35:17in with Jolon and attack Shuckle. But it
  1113. 35:19doesn't matter for mid-turn switch AI.
  1114. 35:21If midturn switch AI wants to switch,
  1115. 35:23the move AI does not matter. Midturn
  1116. 35:26switch AI is going to overrule it, and
  1117. 35:27the game is going to switch instead of
  1118. 35:29attack. So, it doesn't matter how
  1119. 35:30logical it would be to Saiyan and use
  1120. 35:32the move. The midturn switch AI runs
  1121. 35:34independently. The next thing it does is
  1122. 35:36check whether or not switching would be
  1123. 35:38illegal. This check isn't particularly
  1124. 35:40clever, though. So, let's look at what
  1125. 35:42the AI does. If the AI is trapped by a
  1126. 35:44move like sandum or bind, the AI is
  1127. 35:47never going to switch. If the AI has
  1128. 35:48used ingrain, the AI will also never
  1129. 35:50switch. If you have the ability shadow
  1130. 35:53tag, the AI is never going to switch. If
  1131. 35:55you have the ability arena trap, the AI
  1132. 35:57is never going to switch. And if any
  1133. 35:59other Pokemon on the field, including
  1134. 36:00the AI's alley Pokémon, has Magnet Pool
  1135. 36:03and the Pokemon is a steel type, the AI
  1136. 36:05will never try and switch that steel
  1137. 36:06type. So, obviously, there's a few bugs
  1138. 36:08here and a few huge gaps. The first one
  1139. 36:11is that the AI does not fact whether or
  1140. 36:12not it's a flying or levitating Pokemon
  1141. 36:14against arena trap. That means if you
  1142. 36:16have an arena trap duck trio and you're
  1143. 36:18facing an Aerodactyl, Aerodactyl is
  1144. 36:20going to think it's arena trapped and it
  1145. 36:22can't switch out. The AI also doesn't
  1146. 36:24factor in the fact that if you have
  1147. 36:25shadow tag and it also has shadow tag,
  1148. 36:27then shadow tag isn't actually trapping
  1149. 36:28that Pokemon anymore. It doesn't run
  1150. 36:30this check. The AI also doesn't factor
  1151. 36:32in that it can never trap its teammate
  1152. 36:34with magnet pool. It should only be
  1153. 36:35enemies that can be trapped with magnet
  1154. 36:37pool. And the AI also doesn't understand
  1155. 36:38that the item shed shell always lets it
  1156. 36:40switch. And then one of a bonus one, the
  1157. 36:42AI has to have a valid Pokemon to switch
  1158. 36:44to in order to be able to switch. Okay,
  1159. 36:46so let's talk about perishong. This is
  1160. 36:48the most predictable way to see the AI
  1161. 36:50switch. If the AI's perishong count is
  1162. 36:52one, it's always going to switch.
  1163. 36:54There's no randomness involved here.
  1164. 36:55Once the switch is triggered, it's going
  1165. 36:57to run the post KO switch AI to decide
  1166. 36:59what to switch to. Now, because of this,
  1167. 37:00a perong AI is one of the easiest ways
  1168. 37:02to abuse a free attack against the
  1169. 37:04enemy. Let's say the enemy starts off
  1170. 37:05with a completely innocent Pokemon that
  1171. 37:06does no damage. If you perish against it
  1172. 37:09and then switch out, the Pokemon you
  1173. 37:11switch out to is guaranteed to get a
  1174. 37:12free hit on a Pokemon the AI will have
  1175. 37:14to switch in against it with post KO
  1176. 37:15switch AI. Okay, let's talk about Wonder
  1177. 37:17Guard. So, Wonder Guard has a very
  1178. 37:18strange check. This is specifically a
  1179. 37:20check for the player is using Wonder
  1180. 37:21Guard, of course. So, first up, the AI
  1181. 37:24will never switch against Wonder Guard
  1182. 37:25if this is a doubles match. Next, the AI
  1183. 37:28checks it currently active Pokémon. Does
  1184. 37:30it have a move that hits the player's
  1185. 37:31wonder Pokémon super effectively? Any
  1186. 37:34kind of variable type move will use its
  1187. 37:35correct typing here. That includes
  1188. 37:36things like hidden power. If the AI does
  1189. 37:38not have an attack that hits Wonder
  1190. 37:40Guard, search the party for non-fainted
  1191. 37:42Pokémon. And then we search for moves
  1192. 37:44that can hit Wonder Guard super
  1193. 37:45effectively. Again, variable type moves
  1194. 37:47will use the correct type here. And then
  1195. 37:50each time the AI finds a move that hits
  1196. 37:52Wonder Guard super effectively, it has a
  1197. 37:54two/3 chance to switch to it. It will
  1198. 37:56repeat this check until there are no
  1199. 37:57Pokemon left to check. So that means if
  1200. 37:59the enemy team has a Pokemon with two
  1201. 38:00super effective moves against one guard,
  1202. 38:02it would have an 8 ninth chance to
  1203. 38:04switch to it because both of the moves
  1204. 38:05trigger the two/3s chance. Now, if the
  1205. 38:08switch activates on any of these checks,
  1206. 38:10the AI is guaranteed to switch to that
  1207. 38:12Pokémon with that move. It will not run
  1208. 38:14regular post KO switch AI. Crucially
  1209. 38:17though, the AI is never guaranteed to
  1210. 38:19switch out against Wonder Guard. And
  1211. 38:20this makes this somewhat unreliable. You
  1212. 38:22cannot know exactly when it's going to
  1213. 38:24switch out. It's just very likely to
  1214. 38:26switch out if it is possible. The next
  1215. 38:28part of switch AI is midter. The next
  1216. 38:30part of midturn switch AI is no damaging
  1217. 38:32moves. This sounds like a rather simple
  1218. 38:33check, but it's actually quite
  1219. 38:34complicated.
  1220. 38:36First, the AI checks if it can hit any
  1221. 38:38of your Pokemon with a damaging move in
  1222. 38:39doubles. This includes both of your
  1223. 38:41Pokémon. It detects damage based on the
  1224. 38:43same immunity check. Remember, this
  1225. 38:45immunity check is more than just a type
  1226. 38:46check. It does include normalize,
  1227. 38:48levitate, things that affect levitate,
  1228. 38:50scrappy, and so on. It does not include
  1229. 38:52a PP check, though. Moves that are out
  1230. 38:54of PP are still seen as being able to do
  1231. 38:56damage. If any move deals damage, it
  1232. 38:58won't switch in this section. It also
  1233. 39:00won't switch if it only has zero or one
  1234. 39:02attacking moves. Otherwise, meaning it
  1235. 39:04has two or more damaging moves and none
  1236. 39:06of those moves deal damage, it looks for
  1237. 39:09the entire party for non-fainted
  1238. 39:10Pokémon. Every single time you find a
  1239. 39:13move on that Pokémon, if that move is
  1240. 39:15super effective, it has a two/3 chance
  1241. 39:17to switch to that Pokémon. This stacks
  1242. 39:19with every single move that the Pokémon
  1243. 39:20has. If step one did not cause a switch,
  1244. 39:23loot through the entire team again and
  1245. 39:25look through all their moves again. If
  1246. 39:27the move does neutral damage against the
  1247. 39:28player, there's a 50% chance to switch
  1248. 39:30to it. Obviously, again, if switching is
  1249. 39:32chosen, we always switch the Pokémon
  1250. 39:34that triggered the switch. We do not run
  1251. 39:35regular postki switch AI. So, next up is
  1252. 39:38ability absorbing. This is a bit of a
  1253. 39:40strange but logical check. I'm going to
  1254. 39:42go through this one a bit faster. First
  1255. 39:43up, the AI is unlikely to switch if it
  1256. 39:45has a super effective move. It stops
  1257. 39:47two/3s of the time. Then we next check
  1258. 39:50if the AI has been hit by a damaging
  1259. 39:51move in the last turn. We also check the
  1260. 39:54type of that damaging move that was just
  1261. 39:56used. If the damaging move was fire,
  1262. 39:58water, or electric, we set the ability
  1263. 40:00to check to be flash fire, water absorb,
  1264. 40:02or volt absorb respectively. So
  1265. 40:05basically, this ability absorbing check
  1266. 40:06is entirely about fire, water, electric,
  1267. 40:09flash fire, water absorb, volt absorb,
  1268. 40:11and it must be a damaging move. Now, if
  1269. 40:13the current Pokemon out has the correct
  1270. 40:15ability, for example, if the player just
  1271. 40:17used a fire attack and the AI has a
  1272. 40:18flashfire Pokemon, it won't switch. This
  1273. 40:21might sound like a useless check, but
  1274. 40:22it's actually not because the player
  1275. 40:24could easily have mold breaker. Or
  1276. 40:26otherwise, if all these checks pass, the
  1277. 40:27AI looks for its team to find a Pokémon
  1278. 40:29with a viable switch that has the
  1279. 40:31correct absorb ability into your last
  1280. 40:33attack. So, for example, we just use
  1281. 40:35Thunderbolt against the enemy. The enemy
  1282. 40:37has a Jolon in the back. it has a 50%
  1283. 40:40chance to switch to Jolon because Jolon
  1284. 40:42has the ability volta absorb. So next up
  1285. 40:44is natural cure. You'll be careful about
  1286. 40:45this one. Natural cure is really just a
  1287. 40:47sleep check. So the AI is never going to
  1288. 40:49trigger this switch unless it has
  1289. 40:52natural cure and it is asleep
  1290. 40:54specifically. No other status triggers
  1291. 40:56this and it has more than 50% HP
  1292. 40:59remaining. It then runs a separate check
  1293. 41:00if the last move was non-damaging.
  1294. 41:02There's a 50% chance to trigger post KO
  1295. 41:04switch AI. Next, if the last move was
  1296. 41:07damaging, we run the immune and switch
  1297. 41:09procedures, which I'm about to talk
  1298. 41:10about in a second. And for the immune
  1299. 41:12and switch resist, there's a 50% chance
  1300. 41:14to run on the Pokémon found. And
  1301. 41:17finally, if all of that fails, it still
  1302. 41:19has a 50% chance to switch anyway,
  1303. 41:21triggering regular post KO switch AI.
  1304. 41:24So, basically, if a Pokémon with natural
  1305. 41:26cure is asleep and at high HP, it's very
  1306. 41:28likely to switch. There's a brief
  1307. 41:30interlude here, which is the AI in
  1308. 41:32mid-turn switch now runs a very specific
  1309. 41:34check. It tries to see if it has a super
  1310. 41:36effective move against the player. Every
  1311. 41:38time it sees a move that's super
  1312. 41:39effective against the player, there's a
  1313. 41:4090% chance to stop. Now, stop here means
  1314. 41:43that we can't switch anymore. Nothing
  1315. 41:45beyond this in the document is going to
  1316. 41:47cause a switch. And this stacks for
  1317. 41:49every attack. So, if it has multiple
  1318. 41:50super effective moves, it has multiple
  1319. 41:52chances to trigger a 90% stop. But
  1320. 41:55critically, this is not 100% reliable,
  1321. 41:57which means even if the AI has a super
  1322. 41:59effective move against you, it can still
  1323. 42:00switch out if later checks are met.
  1324. 42:03Next, the AI counts all the positive
  1325. 42:05stat boost it has. If these add up to
  1326. 42:07four or more, the AI is never going to
  1327. 42:09switch. This is a really important one
  1328. 42:11to remember. It means that, for example,
  1329. 42:13if the AI is boosted to plus three
  1330. 42:14attack, plus two speed, and even if it
  1331. 42:17has minus 6 defense and minus 6 special
  1332. 42:19defense, it will still never switch
  1333. 42:21because the positive stat boosts of plus
  1334. 42:23three and plus two add up to plus five,
  1335. 42:26which is higher than four. So, an
  1336. 42:27opponent with a lot of stat boost will
  1337. 42:29never trigger switches past this in the
  1338. 42:31document. So, next up is what's called
  1339. 42:33immune switching. For this check to run,
  1340. 42:36the AI must have been hit by a move.
  1341. 42:38That move must be attacking, and it must
  1342. 42:40have acted first in the last turn. In
  1343. 42:42other words, the player acted second. It
  1344. 42:45does not have to be fast in the player
  1345. 42:46fist to trigger. For example, if the AI
  1346. 42:48uses quick attack and then you use
  1347. 42:50flamethrower, obviously you acted
  1348. 42:52second, even if your Pokemon was faster.
  1349. 42:54It can also trigger if the player uses a
  1350. 42:56move like counter or miracote or
  1351. 42:57avalanche, which has decreased priority.
  1352. 43:00It has to be an attack. So if it's a
  1353. 43:01status move, this stops. We then search
  1354. 43:03the party for Pokémon which is immune to
  1355. 43:05last attack used against the AI. This
  1356. 43:09includes all the previous checks
  1357. 43:10identifying normalize, mold breaker,
  1358. 43:12levitate, wondergard, and so on. But it
  1359. 43:14does not include abilities like a vault
  1360. 43:15absorb. So as an example, the player
  1361. 43:18just used the move earthquake and went
  1362. 43:20second. And in the back, the AI has a
  1363. 43:22Pokemon like Zatu, which is immune to
  1364. 43:24earthquake. Now, for any Now, for any
  1365. 43:26Pokemon we find in the back which has an
  1366. 43:28immunity to that move, we find moves
  1367. 43:30that are super effective against the
  1368. 43:31player. For each move found, there's a
  1369. 43:3450% chance to swap to that Pokemon. So,
  1370. 43:36again, let's say we have Zatu in the
  1371. 43:37back. I've used Earthquake and Zatu has
  1372. 43:39a move that's super effective against
  1373. 43:41me. Let's say it has drill peek. There's
  1374. 43:43a 50% chance it can switch Zatu right
  1375. 43:45then and there. And the super effective
  1376. 43:47check also correctly checks the right
  1377. 43:48abilities in the same way as above. Now,
  1378. 43:50as with many cases with switch AI,
  1379. 43:52because this is per move, it stacks. So,
  1380. 43:54let's say the AI has a Swamper in the
  1381. 43:56back and I've just used Thunderbolt.
  1382. 43:58Let's say Swamper has Earthquake and
  1383. 43:59Mudshot. Because Earthquake and Mudshot
  1384. 44:01are both super effective against me,
  1385. 44:03there's a 50% chance it runs checks for
  1386. 44:05both of them and a 75% chance to switch
  1387. 44:07to Swampert overall. This check repeats
  1388. 44:09for every Pokemon in the enemy party,
  1389. 44:11which is immune to the move the player
  1390. 44:12just used. And of course, it has to have
  1391. 44:14a super effective move against that
  1392. 44:15Pokemon. We then move on to the resist
  1393. 44:17switch. This is exactly the same as the
  1394. 44:19immune switch, except instead of
  1395. 44:21checking for a Pokemon that is immune to
  1396. 44:22the move that you just used, it checks
  1397. 44:24for a Pokemon that resists the move that
  1398. 44:25you last used. And every time it finds a
  1399. 44:27super effective move, there's a 1/3
  1400. 44:29chance to switch instead of 50% chance
  1401. 44:31to switch. Resist switches are of course
  1402. 44:33a lot more likely to happen. Whenever
  1403. 44:35you use an attacking move when you're
  1404. 44:36slower, it's quite likely there is a
  1405. 44:38Pokemon on the enemy team that has
  1406. 44:39resist switch into that, particularly in
  1407. 44:416v6 singles. Now, as I said in the
  1408. 44:43natural cure section, the natural cure
  1409. 44:45checks run resist and immune switches,
  1410. 44:47and the chance to switch per move is 50%
  1411. 44:49instead. Okay, so in plain English, what
  1412. 44:51can we learn about midturn switch AI? I
  1413. 44:54would say mid-turn switch AI in general
  1414. 44:56works quite well. Its checks aren't
  1415. 44:58perfect, but it does correctly
  1416. 44:59understand typing, and it does correctly
  1417. 45:01apply abilities such as mold breaker and
  1418. 45:03levitate. However, so long as you go
  1419. 45:06first in a turn, switching is actually
  1420. 45:08very rare. You're very unlikely to have
  1421. 45:10a Pokemon with the ability Wonder Guard.
  1422. 45:12Parachong is obviously very rare.
  1423. 45:14Players don't use Parachong very often
  1424. 45:16and the enemy sets with Parachong are
  1425. 45:17not very deadly at all. And against a
  1426. 45:19strong opponent, the no damaging moves
  1427. 45:21check passing is rare. In the Frontier,
  1428. 45:23most Pokémon have quite good type
  1429. 45:25coverage. And also in the main game,
  1430. 45:26you'll quite like to face an enemy
  1431. 45:27trainer with decent type coverage. Being
  1432. 45:29able to do no damage at all is quite
  1433. 45:31rare. It would probably be exclusive to
  1434. 45:32a Pokémon with only ground moves, for
  1435. 45:34example. I would also say the natural
  1436. 45:36cure sleep switch option is quite rare
  1437. 45:38as well. It probably only happens when
  1438. 45:40an enemy Pokemon with natural cure uses
  1439. 45:41rest. The one that comes to mind in the
  1440. 45:43frontier, of course, is Alaria. So, this
  1441. 45:46leaves one major way the AI can switch
  1442. 45:48mid turn, which is the immunity and
  1443. 45:50resist switching. You can avoid this
  1444. 45:53simply by being faster or by not
  1445. 45:55attacking until you're ready to attack.
  1446. 45:57Generally, of course, it's important to
  1447. 45:59go first as much as possible anyway,
  1448. 46:00just like it's generally advised to kill
  1449. 46:02enemies as fast as possible anyway. When
  1450. 46:04a player does use a slower Pokémon,
  1451. 46:06typically these are stool and setup
  1452. 46:08Pokémon, and you aren't likely to be
  1453. 46:09attacking them for quite a while, which
  1454. 46:11means you can't trigger the immune or
  1455. 46:12resist switch anyway. I will say it's a
  1456. 46:14bit of a shame that Pokémon already
  1457. 46:16punishes players for using slow
  1458. 46:17offensive Pokemon like Rydon, but
  1459. 46:19mid-turn switch AI just gives you
  1460. 46:20another reason to avoid them. But, and
  1461. 46:23this is probably the most important
  1462. 46:24point, sometimes going second is
  1463. 46:26unavoidable. Fast enemies do exist. You
  1464. 46:29could be facing a Jolon or an
  1465. 46:31Aerodactyl. In these scenarios, it's
  1466. 46:34very important to get into the habit of
  1467. 46:35clicking different moves when possible.
  1468. 46:38So, for example, if you're facing a fast
  1469. 46:40enemy Pokemon and you have two moves,
  1470. 46:42both moves will two KO the enemy. You
  1471. 46:44want to use a different move on the
  1472. 46:45second turn. That way, you're going to
  1473. 46:47catch an immune or resist switch trying
  1474. 46:49to switch into your first move. This is
  1475. 46:51a small but worthwhile habit to develop.
  1476. 46:53I also want to say remember that the
  1477. 46:55immune AI does not check for abilities
  1478. 46:58like volta absorb that is run separately
  1479. 47:00earlier on. I also want to say there are
  1480. 47:02holes in the switch AI. You might
  1481. 47:04realize that earlier we didn't mention
  1482. 47:05dry skin against water moves. The AI
  1483. 47:07does not consider this in ability
  1484. 47:09immunity and also does not consider this
  1485. 47:11in regular immunity. So you are not
  1486. 47:13going to force in a dry skin Pokémon by
  1487. 47:15using a water type move. Now it is
  1488. 47:17possible to abuse the switch AI in other
  1489. 47:19ways but it can be quite difficult. Now
  1490. 47:21abusing the switch AI is possible but
  1491. 47:22the randomness makes it hard. Let's say
  1492. 47:25I'm face let's say I'm facing the
  1493. 47:26following team or powdon 2 and tokiss 3.
  1494. 47:30I could bring Mantine to this battle.
  1495. 47:32Mantine has surf and ice beam. Normally,
  1496. 47:34when Hippowon is out, we'd want to use
  1497. 47:36Surf against it as Surf does the most
  1498. 47:37damage. However, we check this and we
  1499. 47:39realize that Earthquake and Sandum are
  1500. 47:41both attacks which do not do any damage
  1501. 47:43at all against Mantine. This triggers no
  1502. 47:46damaging moves in the switch AI and so
  1503. 47:48the switch AI is able to randomly switch
  1504. 47:50to Togekiss on every turn. Because the
  1505. 47:52AI is quite to switch to Togekiss and
  1506. 47:53Togekiss has two neutral moves against
  1507. 47:56Mantine, it's about 75% chance to switch
  1508. 47:58to in. And we might want to use ice beam
  1509. 48:00or confuse rate instead of surf half
  1510. 48:03protecting tokus to come in each turn.
  1511. 48:05Now this sounds very clever where we're
  1512. 48:07trying to predict tokus coming in and we
  1513. 48:08want to use a move that's better against
  1514. 48:09tokus than it is against. However, we
  1515. 48:12want to be careful about not being too
  1516. 48:13clever here. Obviously Hippowon might
  1517. 48:15stay in. A 25% chance to stay in is
  1518. 48:18quite real. If it does stay in is either
  1519. 48:20going to use swagger or yawn. Both of
  1520. 48:22these moves can be problems for Mantine.
  1521. 48:24So even though Hippowon is quite likely
  1522. 48:25to be switched out, we might want to use
  1523. 48:27surf anyway. just hedging on the idea
  1524. 48:29that it might be staying in. Okay, so to
  1525. 48:31understand the rest of this guide,
  1526. 48:32you're going to have to have a bit of a
  1527. 48:33basic idea about how move AI selection
  1528. 48:36works. So, let's start off with a quick
  1529. 48:38example. I have the Pokemon Gengar 1 and
  1530. 48:41I'm facing an enemy with a Pokemon
  1531. 48:42Gaston one. The way this works with
  1532. 48:44Smart AI is that each of Gastradon's
  1533. 48:46moves gets a score. Let's see what that
  1534. 48:49looks like. First up, Waterfall gets a
  1535. 48:51score of plus zero. This is no change.
  1536. 48:54Earthwick gets a score of minus3.
  1537. 48:57Recover gets a score of minus 11 and
  1538. 48:59miracode could get a score of plus zero.
  1539. 49:02I explain why these I explain why these
  1540. 49:04scores happen here. It's to do with how
  1541. 49:06basic and smart AI work. You can also
  1542. 49:08find the AI procedures for all moves on
  1543. 49:10those website. The way this works though
  1544. 49:12is that after scoring each move, the AI
  1545. 49:14is going to pick a move with the highest
  1546. 49:16score. Obviously, in the table above,
  1547. 49:18there are two moves that scored highest.
  1548. 49:20Waterfall and Miraote both got plus
  1549. 49:22zero. Since they both scored plus zero,
  1550. 49:24it's going to randomly pick between one
  1551. 49:26of those moves. Now, an important thing
  1552. 49:28to understand about the AI is it is not
  1553. 49:30deterministic. We could repeat the same
  1554. 49:32example. This time, Mira gets a plus4
  1555. 49:34score. This is also possible and simply
  1556. 49:37due to the fact that a smart AI might
  1557. 49:39give Mirat a plus4 score against Gengar.
  1558. 49:41Of course, if Miraote does get a plus4
  1559. 49:43score, it will beat Waterfall a plus
  1560. 49:45zero and Miroot is going to be used
  1561. 49:47against Gengar. Because both of these
  1562. 49:49scenarios are see are somewhat likely
  1563. 49:51and because the chance of getting a
  1564. 49:52plus4 score in the smart AI is around
  1565. 49:5450%. We can say that overall the chance
  1566. 49:56that Gastron uses Miracle on turn one is
  1567. 49:58about 75% chance and the chance it uses
  1568. 50:01Waterfall on turn one is about a 25%
  1569. 50:03chance.
  1570. 50:05This is obviously a very powerful
  1571. 50:06conclusion. It might mean that we don't
  1572. 50:08want to use Shadow Ball against Gastadon
  1573. 50:10as Miraode is quite likely and instead
  1574. 50:12of going for Shadow Ball, we could
  1575. 50:13instead go for confuse Ray. Indeed,
  1576. 50:16confuse me would be a much better idea
  1577. 50:17here. Of course, if smart AI is not
  1578. 50:19active for this trainer, Miraote can
  1579. 50:21never get plus4, and so it would be
  1580. 50:2350/50 to Miradeote or Waterfall, and it
  1581. 50:25then might be a bit hard to know what
  1582. 50:26move to use. If the basic AI flag is
  1583. 50:29also not active for this trainer, then
  1584. 50:31Gastroadon is simply going to be at plus
  1585. 50:32zero on every move, and it's going to
  1586. 50:34randomly pick one of its four moves.
  1587. 50:36Let's do another example to try and hit
  1588. 50:38this home. I have Gengar one out again,
  1589. 50:40and this time I'm facing Aerodactyl 2.
  1590. 50:42Here, Aerodactyl is going to score plus
  1591. 50:44zero on bite. The strongest move of the
  1592. 50:47AI is often going to score plus zero.
  1593. 50:49The moves fire fang, thunder fang, and
  1594. 50:51ice fang all score minus one against
  1595. 50:53Gengar. And they do this because they
  1596. 50:55see that bite does more damage than
  1597. 50:57them. The way we rationalize this is
  1598. 51:00that the AI likes to dep prioritize
  1599. 51:01using attacks that don't do as much
  1600. 51:03damage as one of its other attacks. This
  1601. 51:05is generally true, but we need to be
  1602. 51:07really careful about the exceptions, and
  1603. 51:08we will talk about the exceptions in the
  1604. 51:10later part of this guide. Some moves
  1605. 51:12like explosion are ignored in this step.
  1606. 51:14This means that if the AI's best move is
  1607. 51:16explosion, its next strongest attack
  1608. 51:17after explosion will not get minus one
  1609. 51:19in the AI here. I will also say that if
  1610. 51:22two or more moves do the exact same
  1611. 51:24damage against Gengar with their max
  1612. 51:26damage roll, then all those moves we
  1613. 51:28left at plus zero. None of them are
  1614. 51:30going to be dep prioritized as being
  1615. 51:31weaker than anything else. Now, for the
  1616. 51:34rest of this guide, I'm going to assume
  1617. 51:35that basic and smart AI are both active.
  1618. 51:38This is usually true for the frontier
  1619. 51:39outside of the very early game. It's
  1620. 51:41also usually true for ROM hacks and very
  1621. 51:43difficult boss fights. Something to be
  1622. 51:45really something really important to be
  1623. 51:47aware of is that in-game fights might
  1624. 51:49have additional flags like risky AI.
  1625. 51:51These do not exist in the frontier, but
  1626. 51:53they can easily exist in various
  1627. 51:54different ROM hacks. If these flags are
  1628. 51:57active, you're also going to have to
  1629. 51:58account for them. They're also going to
  1630. 51:59change the way that the AI scores moves.
  1631. 52:02However, the fundamental logic of how
  1632. 52:03this guide is still going to apply. So,
  1633. 52:06I'm going to do a quick run through of
  1634. 52:07some important AI notes and bugs. These
  1635. 52:09are things that newer players quite
  1636. 52:11often get wrong. So, first, as I said
  1637. 52:13before, the mid turn switch AI always
  1638. 52:15runs before and prioritizes over move
  1639. 52:18AI. The second thing is that the AI
  1640. 52:19almost never cares about how much damage
  1641. 52:21the player can deal to it. This might be
  1642. 52:23slightly counterintuitive. For example,
  1643. 52:25perhaps you easily twoot the enemy with
  1644. 52:27a move like surf, and this would mean
  1645. 52:29that it's pointless to use a move like
  1646. 52:30iron defense. The AI is still going to
  1647. 52:33properly use iron defense in this
  1648. 52:34scenario, though. As humans, we know
  1649. 52:36that would be a huge mistake. But this
  1650. 52:38is just how the AI operates. It's more a
  1651. 52:40set of algorithms than any kind of true
  1652. 52:42intelligence.
  1653. 52:43Next up, the AI will almost always cheat
  1654. 52:45to see your exact item. For example, if
  1655. 52:47you have a choice scarf, it will know
  1656. 52:49that it is slower than you. The AI also
  1657. 52:51cheats to see your exact stats, your
  1658. 52:53defense, special defense, HP, attack,
  1659. 52:55and everything, and will cheat to see
  1660. 52:57your current HP as well. This is never
  1661. 52:59information that is hidden from the AI.
  1662. 53:01Even though, of course, in regular
  1663. 53:03gameplay, your Infernape might have a
  1664. 53:05lot of defense EVs or might not have a
  1665. 53:07lot of defense EVs, and a regular human
  1666. 53:09wouldn't know before facing you. Next up
  1667. 53:11is that the AI does not know any of your
  1668. 53:13moves until you use them. This can
  1669. 53:15matter in a few scenarios where the AI
  1670. 53:17quite often looks up if you have a move
  1671. 53:18like protect before it uses sky attack.
  1672. 53:20The next one is a big one. The AI almost
  1673. 53:23never knows what your exact ability is.
  1674. 53:25The AI is going to assume that you have
  1675. 53:27a regular ability for that Pokemon. So,
  1676. 53:29for example, if you have a Jolon, it's
  1677. 53:31going to assume that it has Volt Absorb
  1678. 53:32because the only legal ability on Jolon
  1679. 53:34is Vault Absorb. The AI will only change
  1680. 53:37this information once it sees text being
  1681. 53:39printed out. For example, if it tries to
  1682. 53:42use Earthquake on Bronzong and it sees
  1683. 53:44text like Levitate makes ground moves
  1684. 53:46miss, it will now know that Bronzong has
  1685. 53:49levitate. However, if you switch out
  1686. 53:51Bronzong, it will immediately forget
  1687. 53:53that Bronzong has levitate. even if you
  1688. 53:55switch it back in in the same fight. For
  1689. 53:58Pokemon that could have multiple
  1690. 53:59abilities, for example, Bronzong could
  1691. 54:01have levitate or it could have heat
  1692. 54:02proof. Every single time it runs a
  1693. 54:05check, it's going to randomly guess
  1694. 54:06whether or not you have levitate. As
  1695. 54:08another example, against Honkrow,
  1696. 54:10Honchko can have super luck or insomnia.
  1697. 54:12Half the time it's going to guess you
  1698. 54:14have insomnia, and half the time it's
  1699. 54:15going to guess you don't have insomnia,
  1700. 54:17and then it could use a move like
  1701. 54:18hypnosis. There are a few very rare
  1702. 54:20cases where the AI will cheat to see
  1703. 54:22your exact ability before it knows it.
  1704. 54:24These are usually for damage altering
  1705. 54:25abilities like solid rock or for
  1706. 54:27trapping abilities like shadow tag. Next
  1707. 54:30one is unlike in generation 3, the AI
  1708. 54:32does not foresee when a quick claw is
  1709. 54:34going to be activated in a turn. It also
  1710. 54:36cannot know who's about to win any kind
  1711. 54:38of speed tie. However, if a Pokemon does
  1712. 54:40have quick claw, the AI is going to
  1713. 54:42assume that 20% of the time that that
  1714. 54:44Pokemon is going to move first and that
  1715. 54:46could change the behavior of procedures
  1716. 54:48in the AI that care about who is going
  1717. 54:49to move first in terms of speed. Next
  1718. 54:52up, the AI always knows its exact stats,
  1719. 54:54moves, items, ability, and the stats
  1720. 54:56move items and abilities of any of its
  1721. 54:58allies. Even if you are the ally in a
  1722. 55:00tag battle, the AI is never going to be
  1723. 55:02in the dark about this. Next up, and
  1724. 55:05this is a big misconception, the AI does
  1725. 55:07not care about accuracy at all. Let's
  1726. 55:09say, for example, that it could use Zap
  1727. 55:10cannon or it could use a lace. If both
  1728. 55:12of these moves score plus zero, it will
  1729. 55:15randomly pick between both moves. It
  1730. 55:17doesn't care that obviously Zap cannon
  1731. 55:19has a much higher chance to miss than
  1732. 55:20air release does. You also want to be
  1733. 55:22really careful around AI effectiveness
  1734. 55:24checks. I won't go into this in detail
  1735. 55:26in the video, but in the guide you can
  1736. 55:28read more about this. Basically, things
  1737. 55:30like adaptability and tinted lens and
  1738. 55:32solid rock can change how these
  1739. 55:33interactions work. There are also a few
  1740. 55:35cases where the AI is going to refuse to
  1741. 55:37use a move, and these are mostly to make
  1742. 55:39sure it's acting legally. For example,
  1743. 55:41it cannot use a move once that move is
  1744. 55:42out of PP. It also can't use a different
  1745. 55:45move if it is choice locked itself into
  1746. 55:47a different move. And it can't use a
  1747. 55:48move where it is unselectable because of
  1748. 55:50torment or disable or a move like taunt
  1749. 55:53or a move like encore. But, and this is
  1750. 55:56really important to understand, even if
  1751. 55:57a move is impossible to select, it will
  1752. 55:59still be assumed as valid in other
  1753. 56:01checks. For example, let's say a choice
  1754. 56:04band Pokémon is locked into earthquake
  1755. 56:05and I have a Straptor out. Strap is
  1756. 56:08immune to earthquake and that choiceband
  1757. 56:10Pokémon cannot touch strap at all.
  1758. 56:13However, the AI does not understand
  1759. 56:14this. If the AI sees that it also has
  1760. 56:16Rock Slide, it'll think, "Oh, I can just
  1761. 56:18use Rock Slide against the Seraptor, and
  1762. 56:20it won't trigger any other different
  1763. 56:22parts of the AI." Finally, there's also
  1764. 56:24another note here that the immune super
  1765. 56:26effective bug mentioned earlier in the
  1766. 56:27Switch AI section also applies to
  1767. 56:29various super effective checks. So,
  1768. 56:31quite often it'll think that Thunderway,
  1769. 56:32for example, is super effective against
  1770. 56:34Gliscore. However, this is not
  1771. 56:36completely consistent and I recommend
  1772. 56:37checking Mo's website to be completely
  1773. 56:39sure about interactions around this.
  1774. 56:41Okay, so we just talked a lot about the
  1775. 56:42AI and talked a lot about how
  1776. 56:44unpredictable it can be. So the real
  1777. 56:45question that nuzlockers want to answer
  1778. 56:47and a lot of frontiers want to know the
  1779. 56:49answer to as well is when is the AI
  1780. 56:51going to be predictable? The absolute
  1781. 56:53top one and the most common example is
  1782. 56:55what's called kill AI. This is the main
  1783. 56:57source of predictability from the AI.
  1784. 57:00And this is in generation 4. If the AI's
  1785. 57:03maximum damage roll on a move can kill
  1786. 57:05your Pokémon, that move is going to get
  1787. 57:07a plus4 score in kill AI. Plus four
  1788. 57:10score is usually enough to win higher
  1789. 57:12scoring move and be chosen by the AI.
  1790. 57:14This can then lead to a lot of strategy.
  1791. 57:16For example, if we know that
  1792. 57:18Earthquake's going to KO our Heatran,
  1793. 57:20then we can simply swap out to a flying
  1794. 57:21Pokémon, being safe in the knowledge
  1795. 57:23that the enemy AI is about to use
  1796. 57:25Earthquake. A question then becomes,
  1797. 57:27what if multiple moves all kill your
  1798. 57:29Pokémon? Let's say I have a Metapod with
  1799. 57:31one HP remaining. Obviously, every
  1800. 57:33single attack in the game is going to
  1801. 57:34kill Metapod. So any attack that the
  1802. 57:37enemy AI has is all going to get a plus4
  1803. 57:39score. So long as it's a move that
  1804. 57:41considers itself to be a move that can
  1805. 57:43kill under kill AI, which is most
  1806. 57:45damaging attacks. And of course, if all
  1807. 57:46these moves are going to score a plus4
  1808. 57:48in the kill AI, they're all going to be
  1809. 57:50randomly chosen against. So for example,
  1810. 57:52flamethrower scores plus4 against
  1811. 57:54Metapod, and so does tackle. This means
  1812. 57:56that we don't know for certain whether
  1813. 57:57or not it's going to use flamethrower or
  1814. 57:59tackle when it tries to kill Metapod.
  1815. 58:01Now, there are quite a lot of quirks,
  1816. 58:03bugs, and exceptions to the way that the
  1817. 58:04killi works in Gen 4. Let's go over a
  1818. 58:06few big points to make quickly. First
  1819. 58:08up, the AI never assumes or checks or
  1820. 58:10whether or not it's going to get a
  1821. 58:11critical hit against the player. Next
  1822. 58:12up, the AI never includes any kind of
  1823. 58:14random damage variants, which is a roll
  1824. 58:16or range commonly referred to. Of
  1825. 58:17course, the Gen 3 AI does include this,
  1826. 58:19but the Gen 4 AI does not. This is a big
  1827. 58:22one. If you have a super effective
  1828. 58:23damage reduction berry, like a yachi
  1829. 58:25berry, the AI does not see this as
  1830. 58:27reducing damage. So if ice beam does
  1831. 58:29150% damage to Garchomp without Yachi
  1832. 58:31Berry and it does 75% with Yachi Berry
  1833. 58:33included, the AI is going to think that
  1834. 58:35it does 150%. Focus sash meaning that
  1835. 58:38Pokemon survive moves is completely
  1836. 58:39ignored. Another big one is priority
  1837. 58:42kill AI. So these moves gets plus six
  1838. 58:44and not plus four. For example, extreme
  1839. 58:46speed, acrojet, quick attack. These
  1840. 58:48moves get used instead of regular kill
  1841. 58:50moves if both kill. Another big one to
  1842. 58:52understand if the move has other AI
  1843. 58:54running on it. For example, the AI likes
  1844. 58:56using icy wind based on who is faster.
  1845. 58:58This is included in the scoring. This
  1846. 59:00means that if the AI is slower and icy
  1847. 59:02wind kills, it might score plus six
  1848. 59:04instead of plus4. But if the AI is
  1849. 59:07faster than the player and Icy wind
  1850. 59:08kills, it might only score plus one
  1851. 59:10instead of plus4. This is a big bug. The
  1852. 59:13AI does not see the life orb damage
  1853. 59:15boost. So, if a life orb attack is meant
  1854. 59:17to do 120% damage with life orb included
  1855. 59:20and 92% without life orb included, the
  1856. 59:23AI is going to think that the attack
  1857. 59:25does 92%. It does not see the life orb
  1858. 59:27damage boost. It also does not see the
  1859. 59:29damage from the item metronome boosting
  1860. 59:31the damage. The AI also cheats to see
  1861. 59:34the abilities you have that alter the
  1862. 59:35damage output here. For example, if you
  1863. 59:37have heat proof, dry skin, or thick fat,
  1864. 59:40the AI will cheat to see that they do
  1865. 59:42more or less damage respectively. Next
  1866. 59:44up, unless otherwise stated, the AI does
  1867. 59:47correctly handle most other damage
  1868. 59:49multipliers. So things like stab
  1869. 59:51boosting, choice specs, magnet, reflect,
  1870. 59:53blaze, huge power, etc. These all work
  1871. 59:56and do get correctly accounted for in
  1872. 59:58the AI. The AI will also correctly
  1873. 1:00:00calculate the damage of moves like
  1874. 1:00:02seismic toss and dragon rage. Now, as we
  1875. 1:00:04said earlier, a lot of moves could have
  1876. 1:00:06their power boosted under certain
  1877. 1:00:07circumstances. The AI in general does
  1878. 1:00:10not understand how this increased damage
  1879. 1:00:11applies. This matters a lot for kill AI
  1880. 1:00:13and when the AI tries to understand what
  1881. 1:00:15moves are the strongest. In particular,
  1882. 1:00:17multi-hit moves, so for example,
  1883. 1:00:19something like double slap are only
  1884. 1:00:21assumed to hit once in terms of the kill
  1885. 1:00:23AI and the highest damage AI. Moves like
  1886. 1:00:25payback, avalanche, and revenge are all
  1887. 1:00:27assumed to use their regular base power
  1888. 1:00:29and never double in power, even if the
  1889. 1:00:31AI sees that it is slower. The reckless
  1890. 1:00:33and recoil damage boost is not
  1891. 1:00:34calculated correctly. Facade and status
  1892. 1:00:36is also not doubled correctly in damage.
  1893. 1:00:39There's also a lot of moves that double
  1894. 1:00:40power based on a particular scenario
  1895. 1:00:41happening, such as using Brian versus a
  1896. 1:00:43low HP target or using wake up slap on
  1897. 1:00:45an opponent that is sleeping or using
  1898. 1:00:47earthquake or magnitude against a target
  1899. 1:00:49that is underground. The AI never
  1900. 1:00:51understands to double the damage in
  1901. 1:00:53these scenarios. Future Sight and Doom
  1902. 1:00:55Desire do not correctly use Typus damage
  1903. 1:00:57in Gen 4, but instead the AI thinks that
  1904. 1:00:59they use stab and effectiveness like
  1905. 1:01:00normal attacks. Sigh uses random damage.
  1906. 1:01:04consecutive hit power moves like roll
  1907. 1:01:06out or fury cutter are not getting their
  1908. 1:01:08damage boost increased. And finally,
  1909. 1:01:10Weatherball is very broken in the
  1910. 1:01:11damaging AI. It does not understand how
  1911. 1:01:13to adjust type adjustment on a damage
  1912. 1:01:15step specifically, although the other
  1913. 1:01:17checks do understand its typing. This
  1914. 1:01:19makes Weatherball extremely weird and
  1915. 1:01:21extremely random. So, next, and most
  1916. 1:01:24importantly, some moves are not included
  1917. 1:01:26in kill AI damage calculations. None of
  1918. 1:01:28these moves ever get plus four, even if
  1919. 1:01:31they result in a guaranteed kill on the
  1920. 1:01:33player. They also never adjust the
  1921. 1:01:34priority of regular damaging moves on
  1922. 1:01:36that set. So, for example, if a set has
  1923. 1:01:39explosion and earthquake, earthquake
  1924. 1:01:41will never get a minus one score for
  1925. 1:01:43being weaker than explosion. You'll find
  1926. 1:01:45a full list of the moves here. There are
  1927. 1:01:47a few big ones I want to point out for
  1928. 1:01:48the video. So, flail and reversal are
  1929. 1:01:50ignored for kill AI. Fling is ignored
  1930. 1:01:52for kill AI. Self-destruct and explosion
  1931. 1:01:55aren't included. Dream Eater is
  1932. 1:01:56included. Hyperbeam, hydro, hyperbeam,
  1933. 1:01:59and hyperbeam like moves are not
  1934. 1:02:00included. Solar beam is not included.
  1935. 1:02:03Focus punch is not included. And
  1936. 1:02:04superpower is not included. So, if you
  1937. 1:02:06got this far, you'll probably have a
  1938. 1:02:08good basic understanding of how the air
  1939. 1:02:09operates. It's time to talk about
  1940. 1:02:10doubles. Doubles is obviously quite a
  1941. 1:02:12lot more complicated than singles. So,
  1942. 1:02:14let's start off with a continuation of
  1943. 1:02:16an earlier example. Let's say I have two
  1944. 1:02:18Pokémon, Gengar 1 and Gardivoir one, and
  1945. 1:02:21I'm facing an enemy with Gastradon one.
  1946. 1:02:24For simplicity, we're just going to say
  1947. 1:02:25that Guard is synchronized and both of
  1948. 1:02:27my Pokemon are full HP. So, here's the
  1949. 1:02:29question. What is the AI going to do
  1950. 1:02:30with Gastraodon here? The basic way
  1951. 1:02:32doubles works is actually quite simple.
  1952. 1:02:34Gastradon has both its moves scored
  1953. 1:02:36against both Gengar and Gardevoir. We
  1954. 1:02:38saw that earlier. Its highest scoring
  1955. 1:02:40moves against Gengar are waterfall and
  1956. 1:02:41Miraote. And against Gardavar, its
  1957. 1:02:44strongest scoring moves are Earthquake
  1958. 1:02:45and Miraote. The doubles AI then does
  1959. 1:02:47what the singles AI does. It has to pick
  1960. 1:02:49one of the moves with the highest score.
  1961. 1:02:52So in this example, it's either randomly
  1962. 1:02:53going to choose Waterfall or Miraote
  1963. 1:02:55against Gengar, and it's going to
  1964. 1:02:56randomly choose Earthquake or Miraote
  1965. 1:02:58against Gardevoir. Up until now,
  1966. 1:03:00everything is the same as singles,
  1967. 1:03:01except we've considered both targets.
  1968. 1:03:03Now that we've chosen Waterfall against
  1969. 1:03:04Gengar, and Miradeote against Gardivoir
  1970. 1:03:07as the strongest moves, and they both
  1971. 1:03:08score plus zero, what Gastadon is then
  1972. 1:03:11going to do is pick the move that has
  1973. 1:03:13the best overall score considering both
  1974. 1:03:15targets. Since both targets are stuck at
  1975. 1:03:17plus zero, it's obviously randomly going
  1976. 1:03:19to choose between using waterfall on
  1977. 1:03:21Gengar or using Miraote on Gardevoir.
  1978. 1:03:24Now, because the AI is
  1979. 1:03:25non-deterministic, this could have
  1980. 1:03:26easily come out in a different way. For
  1981. 1:03:28example, let's say Miraote scored plus4
  1982. 1:03:31against Gengar. Well, now it sees that
  1983. 1:03:32Miraote has a highest score against
  1984. 1:03:34Gengar of plus4. And because plus4 beats
  1985. 1:03:36all the moves on Gardevoir, because it's
  1986. 1:03:38best move against Gardavar, it's only
  1987. 1:03:40plus zero. Plus four is going to beat
  1988. 1:03:42plus zero in the doubles AI step. The
  1989. 1:03:45doubles AI is going to see that miracote
  1990. 1:03:46is a better move to use against Gengar
  1991. 1:03:48than any move is to use against
  1992. 1:03:49Gardevoir. And because of this,
  1993. 1:03:51Gastroadon is guaranteed to use Miracote
  1994. 1:03:53in this scenario. Things can get even
  1995. 1:03:56more complicated, though. Consider
  1996. 1:03:57facing the following enemies in doubles:
  1997. 1:03:59Arcanine one and Ursing one. Both
  1998. 1:04:02Arcanine 1 and Ursing One are going to
  1999. 1:04:04score all of their moves against both of
  2000. 1:04:06the players Pokémon, and all these moves
  2001. 1:04:08can get a score. However, Arcanine and
  2002. 1:04:10Ursing will also score all their moves
  2003. 1:04:12against each other. Usually when the AI
  2004. 1:04:14tries to use a move on its partner, it
  2005. 1:04:16results in a score of minus30, which is
  2006. 1:04:18essentially never pick this. However, if
  2007. 1:04:21Ursing has guts, then Arkine's Willow
  2008. 1:04:23Wisp is actually going to score plus
  2009. 1:04:24three into its partner Ursing. In other
  2010. 1:04:27words, the AI likes to activate Guts
  2011. 1:04:29using Willowisp when it possibly can.
  2012. 1:04:31Plus three as a score is quite like to
  2013. 1:04:33win as high score overall, even
  2014. 1:04:35including the players Pokémon as
  2015. 1:04:36targets. And so Arkline one using
  2016. 1:04:38Willow-hisp against Ursing One is
  2017. 1:04:40actually quite likely here. Activating
  2018. 1:04:42guts on your ally like this is an
  2019. 1:04:44example of something we're going to call
  2020. 1:04:45tag strategy in doubles. And there are
  2021. 1:04:47quite a lot of tag strategies in
  2022. 1:04:49generation 4 doubles. Now for the
  2023. 1:04:51frontier, the most important one to be
  2024. 1:04:53aware of by far is the move earthquake.
  2025. 1:04:56Earthquake is a really important move to
  2026. 1:04:57understand how it score changes in
  2027. 1:04:59doubles. Most of the time in generation
  2028. 1:05:014, the AI is going to check to see if it
  2029. 1:05:02all has fainted, but there are some big
  2030. 1:05:04exceptions to this. So let's quickly
  2031. 1:05:06talk about earthquake and magnitude in
  2032. 1:05:07doubles. As a special note, this check
  2033. 1:05:10is going to run even if its most recent
  2034. 1:05:12ally has fainted. So, for example, if an
  2035. 1:05:15earthquaking enemy just had its fire
  2036. 1:05:16type ally faint, it's very likely it can
  2037. 1:05:19never use earthquake again in the match,
  2038. 1:05:21even though that fire type has now
  2039. 1:05:22fainted. So, the earthquake tag strategy
  2040. 1:05:24AI is that if the ally is immune to
  2041. 1:05:26earthquake, meaning it's a flying type,
  2042. 1:05:28it has levitate or it has magnet rise,
  2043. 1:05:30earthquake or magnitude will get a score
  2044. 1:05:32of plus two. On the other hand, if the
  2045. 1:05:34ally has a fire, electric, poison, or
  2046. 1:05:36rock typing, earthquake or magnitude
  2047. 1:05:38will get a score of minus 10. Obviously,
  2048. 1:05:41this is a bit of a bug. Earthquake
  2049. 1:05:42should check for steel typing, but it
  2050. 1:05:44does not. Another bug here is that
  2051. 1:05:46earthquake does not check for the
  2052. 1:05:47overall type matchup into its ally. So,
  2053. 1:05:50for example, Shuckle is neutral to
  2054. 1:05:52earthquake because while rock is weak to
  2055. 1:05:54earthquake, shuckle is also bug type and
  2056. 1:05:56bug resists ground. So Shuckle is
  2057. 1:05:59neutral to Earthquake, but because
  2058. 1:06:00Shuckle specifically has a rock type,
  2059. 1:06:03Earthquake is still going to get a score
  2060. 1:06:04of minus 10 when Shuckle is on the
  2061. 1:06:06field. So an enemy Pokémon will almost
  2062. 1:06:08never use the move Earthquake when
  2063. 1:06:09Shuckle is its ally. Another really big
  2064. 1:06:12one is skill swap. So the AI runs
  2065. 1:06:14special skill swap checks in both
  2066. 1:06:16singles and doubles. In doubles, it's a
  2067. 1:06:18bit more complicated though. The
  2068. 1:06:20important abilities here are basically
  2069. 1:06:21truent and slow start. It'll try and
  2070. 1:06:24skill swap these abilities off any kind
  2071. 1:06:26of partner and always try and skill swap
  2072. 1:06:28these abilities onto any kind of enemy.
  2073. 1:06:30It also does some weird checks like like
  2074. 1:06:32it checks if his ally is pure electric
  2075. 1:06:33type and does not have levitate. And if
  2076. 1:06:35the user does have levitate, it'll give
  2077. 1:06:37it a score plus two. These kind of skill
  2078. 1:06:39swap scenarios are not very common
  2079. 1:06:41though. The biggest one you're going to
  2080. 1:06:42run into is that you might sometimes see
  2081. 1:06:43skill swap be used against slaking or
  2082. 1:06:46griggy gigas when those are the ally of
  2083. 1:06:48the AI. So next up is future sight and
  2084. 1:06:50dubiaire. So, the AI is not going to use
  2085. 1:06:52this if the AI's partner also is faster
  2086. 1:06:55than it and has the same move. There are
  2087. 1:06:57also a lot of checks for weather in
  2088. 1:06:59generation 4. The way these weather
  2089. 1:07:00checks work is they check both the
  2090. 1:07:02Pokémon using the move and its ally for
  2091. 1:07:04any kind of indication to boost the
  2092. 1:07:06chance of using that move. Gravity is
  2093. 1:07:07another big one. The AI checks all
  2094. 1:07:09Pokemon on the field for gravity, and it
  2095. 1:07:11checks to see whether or not they're
  2096. 1:07:12levitate on the flying type. If enemies
  2097. 1:07:14are levitating or flying, it likes to
  2098. 1:07:15use gravity. And if allies are levitate
  2099. 1:07:17or flying, it likes to not use gravity.
  2100. 1:07:19So, Trick Room is fairly
  2101. 1:07:21straightforward. This is just a speed
  2102. 1:07:22check. It tries to rank all the Pokemon
  2103. 1:07:24on the field in terms of speed and then
  2104. 1:07:25work out whether or not Trick Room would
  2105. 1:07:27be advantageous for the AI to use.
  2106. 1:07:30Follow Me is a very complicated check
  2107. 1:07:31based on the HP of the attacker and the
  2108. 1:07:33partner, which is the ally to the AI.
  2109. 1:07:36Next up are checks for electric, fire,
  2110. 1:07:38and water moves. These are very similar
  2111. 1:07:40to those checks we saw earlier. So, in
  2112. 1:07:42generation 4, discharge, lava plume, and
  2113. 1:07:45surf hit all Pokémon on the field. The
  2114. 1:07:47AI runs a very similar check to
  2115. 1:07:49Earthquake to see if its partner is
  2116. 1:07:50either going to have a type that's weak
  2117. 1:07:52into this move or if its partner has an
  2118. 1:07:54ability that makes it immune to this
  2119. 1:07:56move. Obviously, when it does, this
  2120. 1:07:57makes the move more likely to be used.
  2121. 1:07:59Outside of these spread moves, there's
  2122. 1:08:01also moves like thunderbolt or fire
  2123. 1:08:03blast. If the ally has a specific
  2124. 1:08:05ability like motor drive or flash fire,
  2125. 1:08:08the AI really likes trying to activate
  2126. 1:08:09the ability on its partner. It'll often
  2127. 1:08:12do this in situations which do not make
  2128. 1:08:13a lot of sense at all. A similar thing
  2129. 1:08:15happens for vault absorb, water absorb,
  2130. 1:08:17and dry skin, where the AI really likes
  2131. 1:08:20trying to heal its ally with these
  2132. 1:08:21moves. This is one of the most abusable
  2133. 1:08:23parts of generation 4 AI, and it is also
  2134. 1:08:25a rare case in doubles where the AI can
  2135. 1:08:27be quite predictable. There's also
  2136. 1:08:29helping hand. If the AI's partner knows
  2137. 1:08:32helping at hand, all of the AI's
  2138. 1:08:33damaging moves get a score of plus one.
  2139. 1:08:36I mention this specifically because
  2140. 1:08:37there are some fights in the frontier
  2141. 1:08:39and in the actual game where you're
  2142. 1:08:41playing alongside the AI. So, the player
  2143. 1:08:43is controlling one Pokemon and the AI is
  2144. 1:08:45controlling one Pokemon on your side and
  2145. 1:08:46you're facing two AI opponents. There is
  2146. 1:08:49a real reason to teach your Pokemon
  2147. 1:08:51helping hand if you want to boost the
  2148. 1:08:53chance of your AI ally using damaging
  2149. 1:08:55moves more often, which you probably do.
  2150. 1:08:58This actually makes Helping Hand quite a
  2151. 1:08:59good move to teach your Pokemon even if
  2152. 1:09:01you never intend to use it. So,
  2153. 1:09:03Willowis, we went over the example with
  2154. 1:09:05Guts earlier. This also applies to
  2155. 1:09:07flashfire. Thunderwave has a similar
  2156. 1:09:09check where it treats Thunderwave
  2157. 1:09:10similar to most damaging electric moves,
  2158. 1:09:12but it also checks for lightning rod and
  2159. 1:09:14it checks for ground. There's also toxic
  2160. 1:09:16or any kind of poison status. It's
  2161. 1:09:18important to note that this does not
  2162. 1:09:20activate for guts AI like it does in Gen
  2163. 1:09:223. The only thing that triggers guts is
  2164. 1:09:24willowisp. In generation 4, toxic or any
  2165. 1:09:27kind of poison status move used on the
  2166. 1:09:29ally only gets used to activate poison
  2167. 1:09:31heal, which is obviously quite a rare
  2168. 1:09:33ability. There's also swagger. The AI
  2169. 1:09:36loves to swagger its ally as long as its
  2170. 1:09:38ally is holding either a lum or a pers
  2171. 1:09:41to cure the confusion. Note that swagger
  2172. 1:09:44does not check for any kind [music] of
  2173. 1:09:45own temper ability on its ally. There's
  2174. 1:09:48also gastro acid which is very very
  2175. 1:09:50similar to skill swap. The AI does like
  2176. 1:09:52to try and remove the ability of its
  2177. 1:09:53ally if its ally has a very bad ability
  2178. 1:09:56which is defined as truent or slow
  2179. 1:09:57start. The final one is acupressure.
  2180. 1:10:00Acupressure is a bit weird. It likes to
  2181. 1:10:01use acupressure on its ally in certain
  2182. 1:10:03situations. It depends on the allies HP
  2183. 1:10:06and it also depends on if any of the
  2184. 1:10:07ally stats have been boosted to plus six
  2185. 1:10:09yet. That's a quick crash course in
  2186. 1:10:11double in tag strategies and doubles
  2187. 1:10:13though part of doubles AI which is the
  2188. 1:10:15fact that it does not do ally move
  2189. 1:10:17prediction at all. Here's a famous
  2190. 1:10:18example. Consider the AI has slowb bro
  2191. 1:10:20and slow king. These Pokémon both have
  2192. 1:10:22trick room. They both want to use trick
  2193. 1:10:24room because they both see each other as
  2194. 1:10:26slower than both of the enemies.
  2195. 1:10:28Critical to understand here is that both
  2196. 1:10:29a slowb bro and slow king can use trick
  2197. 1:10:31room on the same turn. Obviously, it's a
  2198. 1:10:34bad idea to do this. This essentially
  2199. 1:10:35removes Trick Room on the same turn it's
  2200. 1:10:37used. Both Pokemon have wasted their
  2201. 1:10:39turn. However, the AI does not check
  2202. 1:10:41what its AI partner is going to use. So,
  2203. 1:10:44Slowbo does not check that Sloking is
  2204. 1:10:46about to use Trick Room and vice versa.
  2205. 1:10:48This can lead to some very funny
  2206. 1:10:49situations. For example, it is also not
  2207. 1:10:51rare to see an enemy Pokémon use Sunny
  2208. 1:10:53Day and its partner also use Sunny Day
  2209. 1:10:55or for an enemy Pokémon to use Sandstorm
  2210. 1:10:57and then for its partner to use Sunny
  2211. 1:10:59Day or indeed both enemies might use the
  2212. 1:11:01move Gravity. It also applies if the AI
  2213. 1:11:03is your ally. It can easily do something
  2214. 1:11:05you don't want it to do. You've got to
  2215. 1:11:07be very careful in tag battles when
  2216. 1:11:09you're teamed up with the AI. This is a
  2217. 1:11:11small point, but it's something that
  2218. 1:11:12newer players quite often wrongly assume
  2219. 1:11:13about how the AI operates in doubles.
  2220. 1:11:16Okay, so something I talk about a lot in
  2221. 1:11:18Frontier Streams is how deadly the Gen 4
  2222. 1:11:20doubles AI is. I've never fully
  2223. 1:11:22explained why this is, but the next few
  2224. 1:11:24sections are going to explain it in
  2225. 1:11:25detail. So, let's have a look. So, first
  2226. 1:11:27up, we have something called strongest
  2227. 1:11:28move. And this might be the single
  2228. 1:11:30scariest part of Gen 4 doubles AI. The
  2229. 1:11:33logic is actually quite simple. Is
  2230. 1:11:35applied on top of all the regular
  2231. 1:11:36singles logic. And it states that if the
  2232. 1:11:39attack does the most damage to the
  2233. 1:11:41target when compared to all of the users
  2234. 1:11:42moves and all of the users allies moves
  2235. 1:11:45when used by the ally, 50% chance of a
  2236. 1:11:48score plus one. Let's do an example. So
  2237. 1:11:50this is more obvious. Let's say I'm
  2238. 1:11:52using Blissey 1. I'm facing Gengar 1 and
  2239. 1:11:55Aerodactyl one. Gengar's best move is
  2240. 1:11:57Sludge Bomb and Aerodactyl's best move
  2241. 1:11:58is Aerial Ace. Obviously, Aerase does a
  2242. 1:12:01lot more damage than Sludgebomb. So,
  2243. 1:12:03when Gengar is scoring Sludge Bomb,
  2244. 1:12:04it'll never get a plus one score in this
  2245. 1:12:06part of the AI against Blissey. Sludge
  2246. 1:12:09Bomb is going to be stuck at plus zero.
  2247. 1:12:11However, Aerodactyl is going to see that
  2248. 1:12:12Aerase is the strongest move against
  2249. 1:12:13Blissey that Aerodactyl can do and
  2250. 1:12:15Gengar can do. And therefore, Aerase has
  2251. 1:12:18a 50% chance to get a plus one score
  2252. 1:12:20against Blissey. This can lead to a
  2253. 1:12:22table like this. So obviously Gengar's
  2254. 1:12:24moves are being stuck at plus zero, but
  2255. 1:12:25Aerodactyl can get promoted to plus one.
  2256. 1:12:28This is very rare for a regular attack
  2257. 1:12:30to do and it means the AI is
  2258. 1:12:32specifically encouraging the use of the
  2259. 1:12:34strongest attack in doubles. What is so
  2260. 1:12:36deadly about this is the fact that the
  2261. 1:12:3750% chance is not deterministic. It's
  2262. 1:12:40aggression, but it's random aggression.
  2263. 1:12:42It's extremely difficult to play against
  2264. 1:12:43this on equal footing. This also has
  2265. 1:12:46another quiet consequence which makes
  2266. 1:12:47the AI quite a lot more deadly in
  2267. 1:12:49doubles. Let's return to the Aerodactyl
  2268. 1:12:51versus Blissy scenario again. Let's say
  2269. 1:12:53Blissey is around 190 HP. In other
  2270. 1:12:56words, it's definitely going to die to
  2271. 1:12:57air, but if Aerodactyl uses a weaker
  2272. 1:13:00move like a spread damage Rock Slide,
  2273. 1:13:02Blissey is quite likely to survive. In
  2274. 1:13:04singles, because both of these moves can
  2275. 1:13:06kill Blissey, Aerodactyl will be 50/50
  2276. 1:13:08to either choose Rock Slide or Aerial
  2277. 1:13:10Ace in this scenario. But in doubles, we
  2278. 1:13:13have this plus one score for the overall
  2279. 1:13:15strongest attack. And because plus one
  2280. 1:13:17score is being applied to aerial aace
  2281. 1:13:18and not rock slide, Aerodactyl is a lot
  2282. 1:13:21more likely to use a lace against
  2283. 1:13:22Blissey. In other words, Aerial Ace is
  2284. 1:13:25quite likely to get a plus five score
  2285. 1:13:26instead of a plus4 score. You've also
  2286. 1:13:28got to be really careful when this
  2287. 1:13:30applies to moves like Trick. So earlier
  2288. 1:13:32we said that the AI really likes using
  2289. 1:13:33Trick with a Pokemon like Pygon Z2.
  2290. 1:13:36Porygon Z2's trick is going to score
  2291. 1:13:38plus five. In singles, it is regular Tri
  2292. 1:13:40attack can never score more than plus
  2293. 1:13:42four. But in doubles, obviously, if
  2294. 1:13:44triac is the strongest move on the
  2295. 1:13:45field, try attack can score plus five.
  2296. 1:13:48This makes polygon Z2 a lot more random
  2297. 1:13:50in doubles. I will say I think this kind
  2298. 1:13:53of behavior is very deadly, but also
  2299. 1:13:55unintentional from Game Freak. I think
  2300. 1:13:57what GameFreak wants to do was something
  2301. 1:13:59like, let's say it has Pokemon A and can
  2302. 1:14:01deal 20% damage to Pokemon C or 50%
  2303. 1:14:03damage to Pokemon D. Obviously, it's
  2304. 1:14:05better to deal 50% damage to Pokemon D.
  2305. 1:14:07We're doing more damage overall then.
  2306. 1:14:09And let's say if Pokémon B is the
  2307. 1:14:10inverse, we want it to attack Pokémon C.
  2308. 1:14:13I think this is the intent of the code.
  2309. 1:14:15However, what the code actually does is
  2310. 1:14:17it makes the AI a lot more aggressive in
  2311. 1:14:19doubles and it also makes the AI quite a
  2312. 1:14:21lot more random in doubles. And you've
  2313. 1:14:23got to be really careful because this
  2314. 1:14:24check can run even when the ally has
  2315. 1:14:26fainted. So even if Aerodactyl is
  2316. 1:14:28fainted, Gengar is not going to see a
  2317. 1:14:30plus one score into Blissey. That might
  2318. 1:14:32be a blessing and it might be a curse.
  2319. 1:14:34It's very difficult to play around this.
  2320. 1:14:36So next big one is doubles AI type
  2321. 1:14:38effectiveness. This is also a really
  2322. 1:14:40really big deal in doubles. The AI
  2323. 1:14:42effectively runs two checks in this
  2324. 1:14:44pass. First up, so long as the move
  2325. 1:14:46doesn't kill the target, it will
  2326. 1:14:48sometimes reduce the score of moves that
  2327. 1:14:50are not very effective against that
  2328. 1:14:52target. Another check which is different
  2329. 1:14:54is it sometimes increases the chance of
  2330. 1:14:56using a super effective move whether or
  2331. 1:14:58not that move is going to kill the
  2332. 1:14:59target. Now, the doubles AI sometimes
  2333. 1:15:01reducing the chance of not very
  2334. 1:15:02effective moves is a pretty innocent
  2335. 1:15:04most of the time, but it can lead to
  2336. 1:15:05some pretty funny moments. So consider
  2337. 1:15:07the following matchup. Let's say we have
  2338. 1:15:09Agron and we're facing slacking.
  2339. 1:15:11Obviously slacking's facade and shadow
  2340. 1:15:13claw are not very effective against
  2341. 1:15:14Aggron. So how does a not very effective
  2342. 1:15:16AI actually work? So first up, if the
  2343. 1:15:18move is regular not very effective, a
  2344. 1:15:190.5 times multiplier, 75% chance for a
  2345. 1:15:22score of minus one. This would apply to
  2346. 1:15:24Shadow Claw. And then if it's double not
  2347. 1:15:26very effective, whoops. And then if it's
  2348. 1:15:29double not very effective, then you get
  2349. 1:15:32a 75% chance for a score of minus two.
  2350. 1:15:34This would apply to facade against
  2351. 1:15:35Agrron. This can lead to some pretty
  2352. 1:15:38weird tables. For example, slacking
  2353. 1:15:40might be ending up with something like
  2354. 1:15:41this, where Yawn has a score of plus
  2355. 1:15:43zero, but both the attacks get the 75%
  2356. 1:15:45chance for a minus one score. In a
  2357. 1:15:47scenario like this, slacking is
  2358. 1:15:49obviously incredibly likely to use Yawn
  2359. 1:15:51and almost nothing else. This kind of
  2360. 1:15:53scenario isn't that common, but let's
  2361. 1:15:54imagine for a second that Slacking does
  2362. 1:15:56not have the move Yawn, but instead just
  2363. 1:15:58has a blank move slot here. Slacking's
  2364. 1:16:01moves all score minus one into Aggron
  2365. 1:16:03for being not very effective. And this
  2366. 1:16:05means that Slacking is much more likely
  2367. 1:16:06to score a plus zero into Aggron's ally.
  2368. 1:16:09In other words, because Slacking does
  2369. 1:16:11not want to attack Agron here, Agron's
  2370. 1:16:13ally is in a much higher danger of being
  2371. 1:16:14hit by a move from slacking one. And
  2372. 1:16:16also, unfortunately, 75% chance is not
  2373. 1:16:19100% chance. It is very difficult to
  2374. 1:16:21safely play around this. You just got to
  2375. 1:16:23keep it in mind and hedge your bets
  2376. 1:16:24based on the probability of these kind
  2377. 1:16:26of scenarios.
  2378. 1:16:27So, next up is a much more evil one.
  2379. 1:16:29This is super effective attack AI. A
  2380. 1:16:32special note here. When we previously
  2381. 1:16:34talked about the highest damage on our
  2382. 1:16:35side to an enemy in the previous
  2383. 1:16:37section, if that scored plus one, this
  2384. 1:16:40check can't also pass. In more precise
  2385. 1:16:42terms, what this logic does is that if
  2386. 1:16:44it sees that an attack deals damage and
  2387. 1:16:46attack did not get plus one score in the
  2388. 1:16:48previous check, if the type
  2389. 1:16:50effectiveness is two times, 61% chance
  2390. 1:16:53of a score plus one. And the type
  2391. 1:16:55effectiveness is four times 75% chance
  2392. 1:16:58of a score plus one. And as a reminder,
  2393. 1:17:00this effectiveness check is a little bit
  2394. 1:17:01bugged. Let's look at an example. Let's
  2395. 1:17:03say I have Vesprin 4 against XPloud 4.
  2396. 1:17:07Now in singles, this is a very simple
  2397. 1:17:09scenario. XP 4 is going to use overheat.
  2398. 1:17:12Is the strongest move against
  2399. 1:17:13Vesperquen. In doubles, something
  2400. 1:17:15slightly different can happen.
  2401. 1:17:18Because overheat and ice beam are both
  2402. 1:17:20super effective, there is a chance,
  2403. 1:17:21although not very likely, that overheat
  2404. 1:17:24does not score the plus one for super
  2405. 1:17:25effective. And that ice beam goes to
  2406. 1:17:28minus one for being weaker than
  2407. 1:17:29overheat, but then it scores plus one
  2408. 1:17:31again for being super effective against
  2409. 1:17:32Vespuen.
  2410. 1:17:35The chance of this is not very high.
  2411. 1:17:36It's about 24%. And then if both moves
  2412. 1:17:39score plus zero, XBA has to randomly
  2413. 1:17:42pick between the plus zero scoring
  2414. 1:17:43moves. So it's a 50/50 to pick Ice Beam
  2415. 1:17:45or Overheat. but it can pick Ice Beam.
  2416. 1:17:49Overall, we can say there's about a 12%
  2417. 1:17:50chance in doubles explain
  2418. 1:17:53against Vespuen instead of overheat
  2419. 1:17:55against Vespicquin.
  2420. 1:17:58This might sound like a good thing, but
  2421. 1:17:59it's actually probably not a good thing.
  2422. 1:18:01Again, we want the AI to behave
  2423. 1:18:03deterministically.
  2424. 1:18:05For example, perhaps we want to switch
  2425. 1:18:07out and bring a Pokémon like Hounding
  2426. 1:18:08with Flashfire in so it takes no damage
  2427. 1:18:10from overheat. Of course, in singles,
  2428. 1:18:12this is safe to do. In doubles, it's
  2429. 1:18:14not. 12% chance of ice beam, 10% chance
  2430. 1:18:17of ice beam freeze. Everyone who has
  2431. 1:18:19played the frontier knows that these
  2432. 1:18:21kind of 1% scenarios do occasionally
  2433. 1:18:22happen and it can easily lead to a loss.
  2434. 1:18:25Now, there is a reason I call a super
  2435. 1:18:26effective doubles AI actually evil.
  2436. 1:18:29Consider a matchup like this. Let's say
  2437. 1:18:31we have Donfan 2 and we're facing
  2438. 1:18:33Blastoise 2. Now, on the face of it, you
  2439. 1:18:36might think this is a pretty bad matchup
  2440. 1:18:38and you're kind of right. Blastoise 2 is
  2441. 1:18:41very likely to twoot Donfan with
  2442. 1:18:43Waterfall. That's not good news for
  2443. 1:18:44Donfan. Blastoise is also faster than
  2444. 1:18:47Donfan. So you might think this is
  2445. 1:18:49almost a guaranteed loss for Donfan.
  2446. 1:18:51However, in singles, Donfan is actually
  2447. 1:18:52quite likely to win this.
  2448. 1:18:55This is because in singles, double team
  2449. 1:18:56and acquing both have a good chance of
  2450. 1:18:58getting a boosted score against Donfan,
  2451. 1:19:00particularly when Blastoise is in higher
  2452. 1:19:02HP. The chance of Donfan using three
  2453. 1:19:04earthquakes while Blastoise wastes its
  2454. 1:19:06time not using two wards is actually
  2455. 1:19:09decently high. Donfan has a real chance
  2456. 1:19:11of coming out of this matchup with a
  2457. 1:19:13win.
  2458. 1:19:14In doubles, it's very different.
  2459. 1:19:17Unfortunately, Waterfall is obviously
  2460. 1:19:19super effective as an attack against
  2461. 1:19:20Donfan. This means that Waterfall has a
  2462. 1:19:22chance of getting a plus one score
  2463. 1:19:24against Donfan and potentially beating
  2464. 1:19:26acquing or double team in certain
  2465. 1:19:28scenarios. Obviously, the earlier
  2466. 1:19:30Blastoise One uses Waterfall, the
  2467. 1:19:31earlier it will use a second Waterfall,
  2468. 1:19:33the more likely Donfan is to fate. And
  2469. 1:19:35this also works in tandem with the
  2470. 1:19:37strongest overall move against Donfan on
  2471. 1:19:39the field on Blastoise's side. There's a
  2472. 1:19:41good chance that Waterfall is the
  2473. 1:19:42strongest move on Blastoise and in
  2474. 1:19:43Blastoise's ally against Donfan. And
  2475. 1:19:45therefore, Waterfall can also get a plus
  2476. 1:19:47one score from this. In other words,
  2477. 1:19:50there's probably about an 80% chance
  2478. 1:19:51that Waterfall scores plus one against
  2479. 1:19:52Donfan 2 in doubles. And remember, in
  2480. 1:19:55singles, it would never score plus one.
  2481. 1:19:57So, I go over this more in the document,
  2482. 1:19:59but basically in doubles, Donfan is
  2483. 1:20:01dramatically more likely to lose this 1
  2484. 1:20:02v one against Blastoise.
  2485. 1:20:05So, what does this mean? It basically
  2486. 1:20:07means the AI is more likely to use
  2487. 1:20:09attacks in doubles than it is in
  2488. 1:20:11singles. And because for most players,
  2489. 1:20:13you want deterministic behavior from the
  2490. 1:20:15enemy AI, or you want the AI to waste
  2491. 1:20:17its turn on moves like acroing or taunt,
  2492. 1:20:20this is often a really bad thing for the
  2493. 1:20:21player. It's the reason why the doubles
  2494. 1:20:23AI in Gen 4 is a lot more deadly than
  2495. 1:20:25the singles AI in Gen 4. Now, I want to
  2496. 1:20:27say for frontier players, this doubles
  2497. 1:20:29check is independent to smart AI and
  2498. 1:20:32independent basic AI. If you've ever
  2499. 1:20:34played a Gen 4 factory doubles, you'll
  2500. 1:20:36be aware of how deadly the very early
  2501. 1:20:38rounds are. There's a reason for this.
  2502. 1:20:40The doubles AI is still running in the
  2503. 1:20:42background. It's still prioritizing the
  2504. 1:20:44use of super effective attacks, and it's
  2505. 1:20:46still prioritizing use of the most
  2506. 1:20:47damaging attack possible on the field.
  2507. 1:20:49In other words, the AI at the start of
  2508. 1:20:50the factory double streak is often
  2509. 1:20:52pseudo random. It's biased towards using
  2510. 1:20:54favorable attacks, but it still has a
  2511. 1:20:57good pinch of randomness. This kind of
  2512. 1:20:58randomness is horrible to play against,
  2513. 1:21:00and it's part of why I really hate
  2514. 1:21:01fracture doubles in generation 4. Now, I
  2515. 1:21:04mentioned it a little bit earlier with
  2516. 1:21:05Porygon Z2, but you need to be really
  2517. 1:21:07careful about singles assumptions. Let's
  2518. 1:21:09consider the following Pokémon. So,
  2519. 1:21:11Metacham 1 in singles is actually quite
  2520. 1:21:13a well- behaved Pokémon. It's very, very
  2521. 1:21:15likely to use Fake Out on turn one, then
  2522. 1:21:17use Zen Headbutt, and then when it's low
  2523. 1:21:19on HP, use Endure. in doubles. This is
  2524. 1:21:22not true because Zen Headbutt is very
  2525. 1:21:24likely to score the highest damaging
  2526. 1:21:26move and Zen Headbutt can also score
  2527. 1:21:27super effective AI against one of the
  2528. 1:21:29enemies. This means that Zen headbutt
  2529. 1:21:31can be used over fake out on turn one
  2530. 1:21:33even if Zen headbutt doesn't kill the
  2531. 1:21:35enemy. This dramatically changes how you
  2532. 1:21:37would want to play against Metasham. And
  2533. 1:21:38I will say that Metacham one is one of
  2534. 1:21:40the Pokemon that changes the most in
  2535. 1:21:41doubles compared to singles. Let's also
  2536. 1:21:43look at another example. So Quantico 4
  2537. 1:21:46is somewhat famous for almost never
  2538. 1:21:47using the move Pucker Punch.
  2539. 1:21:50And this is true in singles. In doubles,
  2540. 1:21:52because of super effective AI, sucker
  2541. 1:21:54punch actually becomes quite a lot more
  2542. 1:21:56likely. Of course, when super effective
  2543. 1:21:57doubles AI's active sucker punch, it'll
  2544. 1:22:00also be triggering the smart AI for
  2545. 1:22:01night slash on high crit moves. But the
  2546. 1:22:03overall effect of this calculation is
  2547. 1:22:04that sucker punch is more likely to be
  2548. 1:22:06used. And of course, the fear when
  2549. 1:22:07facing Honko 4 is indeed the fear that
  2550. 1:22:09sucker punch is used at all against the
  2551. 1:22:11player. And it's made even worse by the
  2552. 1:22:12fact that we know that sucker punch is
  2553. 1:22:14only prioritized in doubles against
  2554. 1:22:15super effective matchups. In other
  2555. 1:22:17words, when you most want sucker punch
  2556. 1:22:18not to happen against you. So, next up
  2557. 1:22:21is what I'm going to call priority
  2558. 1:22:22preference. This is very rare in the
  2559. 1:22:23frontier, but it's probably less rare in
  2560. 1:22:25certain ROM hacks. The way this works is
  2561. 1:22:27if the priority attack is the strongest
  2562. 1:22:29attack into that target in doubles,
  2563. 1:22:31instead of a 50% chance of a plus one
  2564. 1:22:33score we saw earlier, it's actually
  2565. 1:22:34going to be an 80.5% chance of a plus
  2566. 1:22:37one score. Now, this is rare because
  2567. 1:22:39priority attacks are quite weak. A
  2568. 1:22:40Pokémon like Lapas one obviously never
  2569. 1:22:42is going to see ice shard as doing the
  2570. 1:22:44most damage, but it's not unheard of.
  2571. 1:22:46For example, Cal is very very likely to
  2572. 1:22:48be scoring plus one in these kind of
  2573. 1:22:50checks early on in the factory. Now, I
  2574. 1:22:52don't want to repeat myself, but
  2575. 1:22:52multi-target moves are really, really
  2576. 1:22:54important doubles. Of course, this
  2577. 1:22:56includes earthquake, discharge, lava,
  2578. 1:22:58plume, and surf. These are the moves
  2579. 1:22:59with special AI and doubles. They're
  2580. 1:23:01really important to be aware of because
  2581. 1:23:02in a lot of cases, the AI is almost
  2582. 1:23:04forced to use them or forced to not use
  2583. 1:23:06them depending on what the ally is
  2584. 1:23:08doing. So, I want to do a special shout
  2585. 1:23:09out to the best moves in doubles. These
  2586. 1:23:11are protect, endure, and fake out. Why
  2587. 1:23:14are these moves so good? They're
  2588. 1:23:16basically the only time you're actually
  2589. 1:23:17going to buy free turns against the AI
  2590. 1:23:19in doubles. Of these, Fake Out is most
  2591. 1:23:22flexible and reliable. Obviously, you
  2592. 1:23:24can use Fake Out against a very deadly
  2593. 1:23:25opponent and make sure that opponent is
  2594. 1:23:27not going to get an action in on that
  2595. 1:23:29turn. On the same turn, your ally is
  2596. 1:23:31going to hopefully take out that
  2597. 1:23:32opponent or them in some way.
  2598. 1:23:34Another thing I want to mention about
  2599. 1:23:35fake out, and this is not really viable
  2600. 1:23:37in the frontier, is that if you have at
  2601. 1:23:38least three Pokemon and they all have
  2602. 1:23:40the move fake out, you can use fake out
  2603. 1:23:42on one of them against an opponent,
  2604. 1:23:43switch the other one out, and then keep
  2605. 1:23:45repeating this forever. You'll
  2606. 1:23:47essentially always be using Fake Out
  2607. 1:23:48against the enemy. They'll always be
  2608. 1:23:50flinching. You can only do this when
  2609. 1:23:51there is one enemy left, of course. Now,
  2610. 1:23:53I want to shout out Peach. I did see
  2611. 1:23:54this in one of his YouTube shorts, and
  2612. 1:23:56this is where I got the idea from. In
  2613. 1:23:58general, I would say protect and endure
  2614. 1:24:00are potentially better moves in doubles,
  2615. 1:24:02though. If you have a Pokemon that is
  2616. 1:24:03about to die or some kind of underlevel
  2617. 1:24:05Pokemon or just a very weak Pokemon, if
  2618. 1:24:08you teach it endure or protect, you can
  2619. 1:24:10likely bait attacks from both enemies
  2620. 1:24:13into it. So long as your partner also
  2621. 1:24:15isn't vulnerable to being KO'ed.
  2622. 1:24:16Obviously, this buys an entire free turn
  2623. 1:24:19against both enemies. And even after
  2624. 1:24:20protect is used, it can be maybe used
  2625. 1:24:22again. On that turn, you might be able
  2626. 1:24:24to set up a way to get two kills in one
  2627. 1:24:25turn, making sure the protected Pokemon
  2628. 1:24:27has more time. or you might be able to
  2629. 1:24:29use a move like trick room, making sure
  2630. 1:24:30that your weaker Pokemon is potentially
  2631. 1:24:32able to act first and then you can knock
  2632. 1:24:33out both Pokemon in the same turn. This
  2633. 1:24:35is famously what the best battle tower
  2634. 1:24:37double teams do with a level one
  2635. 1:24:38smearle. Want to add a note though, you
  2636. 1:24:41want to be careful of using protect and
  2637. 1:24:42thinking you're always safe doing it.
  2638. 1:24:44Let's say we have a Pokemon like Rose 2
  2639. 1:24:46and a Pokemon using protect is a flying
  2640. 1:24:48type. Even if Gigadrain sees a kill into
  2641. 1:24:50that flying type Pokemon, Giga Train is
  2642. 1:24:52only going to get a plus one score
  2643. 1:24:54because Gigadrain gets depprioritized
  2644. 1:24:55into targets that resist the move.
  2645. 1:24:57Obviously, Giga Drain at plus one is
  2646. 1:24:59still going to be used over any other
  2647. 1:25:01move unless the ally to your Pokemon is
  2648. 1:25:03also weak to grass. Suddenly, then super
  2649. 1:25:06effective AI can get triggered in
  2650. 1:25:07doubles and gigrain can get plus one to
  2651. 1:25:09that target as well. So, as an example,
  2652. 1:25:11let's say I have a level two tokiss and
  2653. 1:25:14a level 50 slowb bro. Rose 2 is going to
  2654. 1:25:17see Giga Drain as plus one into tokiss
  2655. 1:25:19because it can kill, but it's also going
  2656. 1:25:21to see Giga Drain as plus one into
  2657. 1:25:22slowbow sometimes because Giga Drain is
  2658. 1:25:24super effective into slowb bro. So yeah,
  2659. 1:25:26always double check that the bait is
  2660. 1:25:28going to work if you're going to go for
  2661. 1:25:29these kind of endure protect strategies.
  2662. 1:25:31Now the doubles spread damage bug is the
  2663. 1:25:34most important bug in Gen 4 doubles and
  2664. 1:25:36I do not see this get discussed enough.
  2665. 1:25:38This bug is basically the entire reason
  2666. 1:25:40why my doubles castle team works so
  2667. 1:25:41well. I'll leave a link to this in the
  2668. 1:25:43description. Let's do a cleaner example
  2669. 1:25:45for the sake of this guide. Let's say
  2670. 1:25:47I'm using Golem 4 in doubles. Golem 4
  2671. 1:25:50obviously has a move earthquake and
  2672. 1:25:51explosion. Let's say I'm facing Tort
  2673. 1:25:53Terra 2 and Ente 4.
  2674. 1:25:56Now, for the purpose of this guide,
  2675. 1:25:58let's pretend that Golem isn't slower
  2676. 1:26:00than these two. Or let's pretend that if
  2677. 1:26:02these two use a move, Golem is going to
  2678. 1:26:04survive the move. Let's say Golem's ally
  2679. 1:26:06is going to choose protect. And let's
  2680. 1:26:07say that I want to explode with Golem.
  2681. 1:26:09Let's do the damage calc for that. So,
  2682. 1:26:11first up, Golem's explosion is not
  2683. 1:26:14guaranteed to kill Tort Terra. The
  2684. 1:26:16spread damage nerf on explosion slightly
  2685. 1:26:18reduces the damage below the threshold
  2686. 1:26:19needed to kill. But on the other hand,
  2687. 1:26:22my explosion is guaranteed to kill Ente.
  2688. 1:26:24Ente 4 of course is slightly less bulky
  2689. 1:26:26than Torta 2.
  2690. 1:26:28So, you might expect that I explode,
  2691. 1:26:30Ente will die, and Tort Terra might live
  2692. 1:26:33or it might die depending on this damage
  2693. 1:26:35roll. So, what actually happens is very
  2694. 1:26:38different to this. First up, Golem dies.
  2695. 1:26:41It uses explosion. Its HP gets set to
  2696. 1:26:44zero instantly. It has fainted. Next up,
  2697. 1:26:47the fastest Pokemon on the field is
  2698. 1:26:49going to get hit by explosion. For
  2699. 1:26:51argument sake, let's say this is Ente.
  2700. 1:26:54Ente gets hit first by explosion. Ente
  2701. 1:26:56faints. The only Pokemon on the field
  2702. 1:26:58left now are my partner Pokemon that use
  2703. 1:27:01that has used protect and the enemy Tort
  2704. 1:27:03Terra.
  2705. 1:27:05Next, Explosion hits Tort Terra. and
  2706. 1:27:08Tort Terra 2 is going to die. The
  2707. 1:27:10explosion spread damage nerf is not
  2708. 1:27:12applied to Tort Terra as it gets hit by
  2709. 1:27:14explosion. So why does this happen? This
  2710. 1:27:16is a really important bug. It happens
  2711. 1:27:19because the spread damage calculation is
  2712. 1:27:21actually dynamic. When we use a spread
  2713. 1:27:23damage move in doubles, the doubles
  2714. 1:27:25engine checks whether or not this is
  2715. 1:27:27currently doubles. And if it is doubles,
  2716. 1:27:29it applies a spread damage nerf. Now the
  2717. 1:27:32question is, how do we decide if it's a
  2718. 1:27:33doubles battle or not? It's actually
  2719. 1:27:35very simple. If there are three or four
  2720. 1:27:38unfated Pokemon on the field, it's a
  2721. 1:27:40doubles battle. All of the spread
  2722. 1:27:41attacks will be nerfed by 25% damage as
  2723. 1:27:43always. But if the count of unfainted
  2724. 1:27:46Pokemon is two, it's actually going to
  2725. 1:27:47be singles. And there is no spread
  2726. 1:27:49penalty in singles. Golem and ente faint
  2727. 1:27:52first. There are now two Pokémon left
  2728. 1:27:54and Terra is going to take the max
  2729. 1:27:56damage from explosion. It's not going to
  2730. 1:27:58have the spread damage nerf. It doesn't
  2731. 1:27:59matter that Golem used the move. Golem
  2732. 1:28:01has now fainted. It's really important
  2733. 1:28:03to notice as well, this does not just
  2734. 1:28:05apply to explosion. It also applies to
  2735. 1:28:07any kind of spread damage move. And it
  2736. 1:28:09also applies when the enemy or when the
  2737. 1:28:11player is using these moves. So, there's
  2738. 1:28:13a few things that are really important
  2739. 1:28:14to be aware of with spread damage. First
  2740. 1:28:16up, the fastest Pokemon on the field
  2741. 1:28:17gets hit first. But quick claw can
  2742. 1:28:20interfere with this. If a Pokemon has a
  2743. 1:28:22quick claw, there's a 20% chance quick
  2744. 1:28:24activates during the explosion and that
  2745. 1:28:26Pokemon gets hit first by the attack.
  2746. 1:28:29So, if Tortara 2 had the item quick, 20%
  2747. 1:28:32of the time, my explosion hits Tortara 2
  2748. 1:28:34before Ente and Torta 2 takes a spread
  2749. 1:28:36damage nerf explosion. A similar thing
  2750. 1:28:39happens in the case of a speed tie. If
  2751. 1:28:40two Pokémon speed tie, it's going to be
  2752. 1:28:42random which one the spread damage
  2753. 1:28:44target is going to hit first. Trick Room
  2754. 1:28:46operates similarly under trick room.
  2755. 1:28:48Tortar will be hit before ent by
  2756. 1:28:50explosion. Tortar will be considered the
  2757. 1:28:52fast Pokemon under trick room. This is
  2758. 1:28:54not unique to explosion. Let's say I use
  2759. 1:28:56Surf and I knock out my ally and I also
  2760. 1:28:58knock out an enemy. In this case, my
  2761. 1:29:00Pokemon with Surf and the final enemy
  2762. 1:29:02are the only Pokemon on the field in
  2763. 1:29:03doubles and Surf does full damage to
  2764. 1:29:05that single target. The same would apply
  2765. 1:29:07to something like Discharge or something
  2766. 1:29:09like Lava Plume or indeed something like
  2767. 1:29:11Magnitude or Earthquake. You need to be
  2768. 1:29:13really, really careful this interaction.
  2769. 1:29:15It comes up a lot of the time in any
  2770. 1:29:17kind of close match. Perhaps in a
  2771. 1:29:19nuzlock, your Pokemon isn't fainting
  2772. 1:29:20quite as much, but in Frontier, this
  2773. 1:29:22kind of interaction where a lot of
  2774. 1:29:23Pokemon faint is very common. You want
  2775. 1:29:25to be very careful, particularly with
  2776. 1:29:26the move explosion used by enemies. So,
  2777. 1:29:29that's the end of the double section. I
  2778. 1:29:30will say doubles in Gen 4 is really
  2779. 1:29:32hard. You probably understand a bit more
  2780. 1:29:34why I say this now on stream so much. I
  2781. 1:29:37want to end out this video with my top
  2782. 1:29:3920 battle tips and insights from years
  2783. 1:29:41of play. This applies to both singles
  2784. 1:29:43and doubles, but it's really more
  2785. 1:29:44applying to singles. What's really
  2786. 1:29:46important to understand is that this is
  2787. 1:29:47not a complete list of every single
  2788. 1:29:49interaction with the AI. It's just a
  2789. 1:29:50list of things I feel like come up very
  2790. 1:29:52often. So, first up, I'm repeating
  2791. 1:29:54myself slightly here. Remember strongest
  2792. 1:29:56move. Remember the fundamental law of
  2793. 1:29:58kill AI. And remember that there are
  2794. 1:29:59moves ignore this. Let's look at two
  2795. 1:30:01famous examples from the frontier. So,
  2796. 1:30:03here's Dragonite 4. It has a choice
  2797. 1:30:05band. It has four very powerful moves.
  2798. 1:30:08However, Dragonite 4 is never going to
  2799. 1:30:11use Giga Impact or Superpower at full
  2800. 1:30:13HP. These are not kill moves and they're
  2801. 1:30:15also moves that get dep prioritize at
  2802. 1:30:17high HP. Dragonite 4 is always going to
  2803. 1:30:19use outrage or earthquake which makes it
  2804. 1:30:21a lot more predictable even if it's
  2805. 1:30:22still quite deadly. A similar thing
  2806. 1:30:25happens with rampardos 4. Rampardos 4 is
  2807. 1:30:27either going to head smash or earthquake
  2808. 1:30:29in almost every scenario. It'll never
  2809. 1:30:31use gig impact. It'll almost never use
  2810. 1:30:33superpower. Now the reason why rampardos
  2811. 1:30:35and dragonite is so predictable is
  2812. 1:30:37because of their choice items. They get
  2813. 1:30:38locked into the move on the early turns.
  2814. 1:30:41But consider a Pokémon like Impolon 4.
  2815. 1:30:43So Impolon 4 can't use Hydrocanon at max
  2816. 1:30:46HP. However, Impolon 4 does not have any
  2817. 1:30:48kind of choice item. If you get Impolon
  2818. 1:30:514 low on HP, it can very easily use
  2819. 1:30:53hydrocanon against you. The next thing,
  2820. 1:30:55and I'm slightly repeating myself again,
  2821. 1:30:56is on kill AI specifically. Remember the
  2822. 1:30:58moves that beat kill AI. Trick plus
  2823. 1:31:01choice scarf is an example of a move
  2824. 1:31:03that will always beat Kill AI. So Proon
  2825. 1:31:05Z2 is always going to use trick. It'll
  2826. 1:31:07never use tri attack on the first turn
  2827. 1:31:09of a match. And here's another case. So,
  2828. 1:31:12Afro versus Pelipa. You might be
  2829. 1:31:14wondering, surely Afro just uses
  2830. 1:31:16Thunderbolt against Pelipa. Thunderbolt
  2831. 1:31:18is going to kill Peliper. Isn't that the
  2832. 1:31:20best thing to do? Doesn't it have kill
  2833. 1:31:21AI? You've got to be really careful in
  2834. 1:31:23situations like this. Pelper is fast in
  2835. 1:31:25Afro. This means that Thunderwave is
  2836. 1:31:28going to get a plus three score. The AI
  2837. 1:31:30likes using Thunderwave when it's
  2838. 1:31:31slower. However, Thunderwave is also
  2839. 1:31:34four times super effective against
  2840. 1:31:35Peliper. Yes, Thunderwave is a status
  2841. 1:31:38move, but no, it doesn't matter. It can
  2842. 1:31:40still get a plus two score from being
  2843. 1:31:42four times super effective. If it gets
  2844. 1:31:44that plus two score and that plus three
  2845. 1:31:46score, Thunderwave can score plus five
  2846. 1:31:48against Peliper, beating Thunderbell to
  2847. 1:31:50only plus four. This is quite common,
  2848. 1:31:53particularly with the Pokemon Gyarados
  2849. 1:31:54in the frontier. A similar thing can
  2850. 1:31:56happen with other status moves. So,
  2851. 1:31:58pretend for a second that Mammoth has
  2852. 1:31:59the ability Ice Body. The move Hail can
  2853. 1:32:01get a plus two score when it's four
  2854. 1:32:02times super effective against a Pokemon
  2855. 1:32:04like Garchomp. And hail can also stack
  2856. 1:32:06with ice body in smart AI. This can
  2857. 1:32:08bring hail up to a plus4 score in some
  2858. 1:32:10scenarios. The next one is flaws in the
  2859. 1:32:12kill AI. Again, I'm retreading familiar
  2860. 1:32:14ground, but I just want to say this
  2861. 1:32:15again. So, for example, if we have
  2862. 1:32:16Glyscore and the enemy has Frostlass,
  2863. 1:32:19Frostas does not understand that ice
  2864. 1:32:21punch does not kill Glycore. It does not
  2865. 1:32:23understand that GLCore has a Yachi berry
  2866. 1:32:25and that this reduces the damage of ice
  2867. 1:32:26punch. It is always going to go for ice
  2868. 1:32:28punch here because ice punch is seen as
  2869. 1:32:30a kill move against Glore. Another
  2870. 1:32:32really important one to be aware of is
  2871. 1:32:34Life Orb. There are a few Pokémon with
  2872. 1:32:36Life Orb in the frontier. They quite
  2873. 1:32:37regularly catch newer players out by not
  2874. 1:32:39using kill moves. Ambiom free is a good
  2875. 1:32:42example of this life orb example. It's
  2876. 1:32:44also a good example of double hit. So,
  2877. 1:32:46technician life orbomb free's double hit
  2878. 1:32:48does massive damage. It's very scary to
  2879. 1:32:50face in the factory. However, you've got
  2880. 1:32:52to remember that ambipom does not
  2881. 1:32:54understand the double hit hits twice.
  2882. 1:32:55It's actually extremely rare for ambiom
  2883. 1:32:57to use the move double hit. So, the next
  2884. 1:32:59big generalization I'm going to do is
  2885. 1:33:01setup AI. Setup AI works quite well in
  2886. 1:33:03general. This includes moves like sword
  2887. 1:33:05stance, double team, and calm mind. The
  2888. 1:33:07way the AI works is it prefers to use
  2889. 1:33:09these moves at higher HP, and it
  2890. 1:33:11generally becomes impossible to use
  2891. 1:33:12these moves when it's at very low HP.
  2892. 1:33:15Playing a setup AI is very important,
  2893. 1:33:16but not always completely intuitive. A
  2894. 1:33:19broad rule for Pokémon is you want to
  2895. 1:33:20switch into your good type matchups, but
  2896. 1:33:22this can be an exception to that.
  2897. 1:33:25Let's say we're facing a Pokémon with
  2898. 1:33:26double team. We know it's going to use
  2899. 1:33:28double team. We might want to attack it
  2900. 1:33:30first just so we get it low on HP and
  2901. 1:33:32reduce the chance it uses more double
  2902. 1:33:34teams in the future. If we take the
  2903. 1:33:36opportunity to switch and then also use
  2904. 1:33:38a move that would be two turns it's
  2905. 1:33:40sitting at full HP. Two turns it's very
  2906. 1:33:41likely to use double team. You want to
  2907. 1:33:43be really careful about ordering moves
  2908. 1:33:45correctly against setup opponents. And I
  2909. 1:33:47will say part of the big difficulty of
  2910. 1:33:49the Frontier and the Factory in
  2911. 1:33:51particular is jungling the chance of the
  2912. 1:33:52enemy Pokémon being a setup set versus
  2913. 1:33:54the chance of them just being a regular
  2914. 1:33:56attacking set. It is very difficult to
  2915. 1:33:57assess the outcome and assess the
  2916. 1:33:59branching paths of probability here and
  2917. 1:34:01try and come up with the overall best
  2918. 1:34:02plan against many possible outcomes. Now
  2919. 1:34:05I talked about setup AI. There is one
  2920. 1:34:07major major exception to setup AI which
  2921. 1:34:09is curse. So curse is kind of broken. It
  2922. 1:34:12does not actually look at the user's HP
  2923. 1:34:13when it's considering whether or not
  2924. 1:34:15they want to use curse. This can be both
  2925. 1:34:17a blessing and a curse for the player.
  2926. 1:34:19It can lead to easy wins when enemy
  2927. 1:34:21Pokémon with curse uses curse at very
  2928. 1:34:23low HP just before it's about to die.
  2929. 1:34:25But it also can lead to some extremely
  2930. 1:34:27scary scenarios. When the AI is using
  2931. 1:34:29curse at middling HP, denying you a
  2932. 1:34:31kill, and then going into recovery
  2933. 1:34:32moves. I also mentioned this before, but
  2934. 1:34:35again, ability checking, you must know
  2935. 1:34:37how this works. Most of the time, the AI
  2936. 1:34:40does not know your ability. It's going
  2937. 1:34:41to guess you have a random ability.
  2938. 1:34:43Let's look at the example. Let's say
  2939. 1:34:44we've got Glisor. Let's say the AI is
  2940. 1:34:47considering using charm against Glycore.
  2941. 1:34:49So 50% of the time the AI will assume
  2942. 1:34:51that Glisor is hyper cutter and it won't
  2943. 1:34:53use charm against hyper cutter and 50%
  2944. 1:34:56of the time the AI might assume that
  2945. 1:34:57Glor is Sanvil and it can potentially
  2946. 1:34:59use charm against Sanvil.
  2947. 1:35:02It will continue to do this randomly
  2948. 1:35:03until it sees text like charm fail
  2949. 1:35:06because of hyper cutter. Once it sees
  2950. 1:35:08this text, it now knows your Glisll has
  2951. 1:35:11hyper cutter. Of course, if you switch
  2952. 1:35:13glow out, it will completely forget that
  2953. 1:35:15your glitch has hyper cutter in the
  2954. 1:35:17frontier. This is probably most relevant
  2955. 1:35:19for scarry. So scar me isn't guaranteed
  2956. 1:35:22to have sturdy. So even if you're in
  2957. 1:35:23against an enemy Pokemon with an oo
  2958. 1:35:25move, you cannot safely switch out. At
  2959. 1:35:28least you cannot safely switch out until
  2960. 1:35:29the enemy uses an oo move against scary
  2961. 1:35:32hits the oo move and the text appears
  2962. 1:35:34that the oo move failed because of
  2963. 1:35:36sturdy. Once this happens, the AI is
  2964. 1:35:38never going to use an ok move on scari
  2965. 1:35:40again while it's still in. It's also
  2966. 1:35:42really important to know that the AI
  2967. 1:35:43does not do any kind of deductive
  2968. 1:35:44reasoning. Let's say I've got a heat
  2969. 1:35:46proof bronzong. Let's say the enemy uses
  2970. 1:35:49a fire move against my bronzong and it
  2971. 1:35:50doesn't do very much damage. Now, if the
  2972. 1:35:53enemy was a human, they'd look at that
  2973. 1:35:55and go, "Oh, it must be a heat proof
  2974. 1:35:57bronzong. It must not have levitate."
  2975. 1:35:59The AI is not going to do this. The AI
  2976. 1:36:02does not look at the reduced damage from
  2977. 1:36:03heat proof and say that this must be a
  2978. 1:36:05heat proof bronzong and it can't be
  2979. 1:36:06levitate. This means my heat proof
  2980. 1:36:08bronzong is always going to be randomly
  2981. 1:36:10guessed as being levitate 50% of the
  2982. 1:36:12time. And this actually leads us to
  2983. 1:36:14quite an important conclusion for the
  2984. 1:36:15frontier. Even if your Pokemon has the
  2985. 1:36:18wrong ability, it gets bit of protection
  2986. 1:36:20from the fact that it might have an
  2987. 1:36:21ability. A famous example of this is
  2988. 1:36:23lantern. Vault absorb lantern is way
  2989. 1:36:26better than illuminate lantern, of
  2990. 1:36:27course. But against the enemy AI, even
  2991. 1:36:30if you have illuminate, about half the
  2992. 1:36:33time, the AI is going to assume that
  2993. 1:36:34you're actually volt absorb. So lantern
  2994. 1:36:37is kind of protected against electric
  2995. 1:36:38attacks just because the AI thinks that
  2996. 1:36:40you might be vault absorb even though
  2997. 1:36:42you're not it. So here's another one
  2998. 1:36:44which might be a little bit dangerous to
  2999. 1:36:45include. So as a general rule, most
  3000. 1:36:48status moves in the game sit at plus
  3001. 1:36:50zero. Most status moves don't have any
  3002. 1:36:52kind of check apart from checking that
  3003. 1:36:53they're useless. So if you don't want to
  3004. 1:36:56spend ages looking at guides and
  3005. 1:36:57websites, you can probably assume that
  3006. 1:36:58most status moves are going to be stuck
  3007. 1:36:59at plus zero as long as they're not any
  3008. 1:37:01kind of setup move or any kind of other
  3009. 1:37:03move listed in this article. Okay, so
  3010. 1:37:05this is the really big one. Let's talk
  3011. 1:37:07about substitute. This is probably the
  3012. 1:37:09most famous frontier exploit. The AI is
  3013. 1:37:12basically completely blind to the fact
  3014. 1:37:14that you have a substitute in every way
  3015. 1:37:15that matters. This means if I have a
  3016. 1:37:18substitute up against an enemy, the
  3017. 1:37:19enemy might spam thunderwave 10 turns in
  3018. 1:37:22a row against me. It will never learn
  3019. 1:37:24this. It will never realize that
  3020. 1:37:25Thunderwave is failing because of my
  3021. 1:37:27substitute. It will just continue
  3022. 1:37:28stupidly spamming Thunderwave against
  3023. 1:37:30me. This probably makes substitute the
  3024. 1:37:31best move in the entire game against the
  3025. 1:37:33enemy AI. It just buys you so much free
  3026. 1:37:35turns. And combined with the fact that
  3027. 1:37:37so many Pokemon can learn substitute, it
  3028. 1:37:39makes substitute probably the single
  3029. 1:37:40most used move in the entire frontier.
  3030. 1:37:43Now, this also applies to damage. Let's
  3031. 1:37:45say I have a suic with one HP left. It's
  3032. 1:37:47going to die to any move. I'm facing an
  3033. 1:37:49enemy which has an attack that deals 60
  3034. 1:37:51damage to Suicun and another attack that
  3035. 1:37:53deals 20 damage to Suicun. Because both
  3036. 1:37:56of these moves would kill Suicun if I
  3037. 1:37:57did not have a substitute, it's going to
  3038. 1:37:59be random which one can be picked. Even
  3039. 1:38:01though as humans we can see this and
  3040. 1:38:03know that the weaker move isn't going to
  3041. 1:38:04break the suicun substitute and
  3042. 1:38:05therefore the stronger move should be
  3043. 1:38:07picked. The AI does not understand that
  3044. 1:38:09has a substitute here. It just thinks I
  3045. 1:38:11have a one HP sweun. And of course, and
  3046. 1:38:13this more applies to Nuzlocks,
  3047. 1:38:15substitute is an incredibly safe way of
  3048. 1:38:16dealing damage to yourself. As you
  3049. 1:38:18substitute down lower and lower in HP,
  3050. 1:38:21you will eventually enter kill range for
  3051. 1:38:22one of these enemies moves. Once it sees
  3052. 1:38:24that kill, you can then safely switch
  3053. 1:38:26into a Pokemon that can either resist or
  3054. 1:38:27is immune to that attack. Substitute is
  3055. 1:38:30also just the best safety net ever in
  3056. 1:38:31the game. It's the best protection you
  3057. 1:38:33have against quick claw while trying to
  3058. 1:38:34sweep is also the best protection you
  3059. 1:38:35have against something like a bright
  3060. 1:38:36powder miss. The fact that you get
  3061. 1:38:38another turn as they break the
  3062. 1:38:39substitute is huge. So another big
  3063. 1:38:42example is speed control. As a
  3064. 1:38:44generalization, the AI loves to be fast.
  3065. 1:38:48If it has any kind of move that
  3066. 1:38:49influences speed, it loves to use it.
  3067. 1:38:52moves like thunderwave, scary face,
  3068. 1:38:54agility, icy wind, trick room, these are
  3069. 1:38:56all incredibly likely to be used if they
  3070. 1:38:58can make the enemy faster. Generally,
  3071. 1:39:00these moves can only be beaten by kill
  3072. 1:39:02AI. So, we mentioned it before, but some
  3073. 1:39:05moves are impossible to use at high
  3074. 1:39:07health. Very important on this list are
  3075. 1:39:09hyperbeam and hyperbeam like moves and
  3076. 1:39:11superpower. You should be very afraid of
  3077. 1:39:13being hit by these moves, but these
  3078. 1:39:14moves cannot be chosen at full HP on an
  3079. 1:39:16enemy unless the enemy has no other
  3080. 1:39:18viable moves that can score decently
  3081. 1:39:20against the player. I'll also put in a
  3082. 1:39:22quick note about true end plus recharge,
  3083. 1:39:23which do have a special interaction in
  3084. 1:39:24the AI. Let's also talk about Oko AI.
  3085. 1:39:27This is probably the most infamous AI in
  3086. 1:39:29the frontier. Unfortunately, unlike Gen
  3087. 1:39:313, these moves do run smart AI in Gen 4.
  3088. 1:39:3425% of the time, they give a score of
  3089. 1:39:36plus one. This means for a Pokemon like
  3090. 1:39:38Donfan 4, Fishcher is actually quite
  3091. 1:39:40likely to be used. It'll be around 60%
  3092. 1:39:43chance to use Fisher unless Earthquake
  3093. 1:39:44or another move already kills the enemy.
  3094. 1:39:47There is not a lot you can do about Okus
  3095. 1:39:49in the frontier. Sturdy, of course, is
  3096. 1:39:51quite rare and is not on many good
  3097. 1:39:52Pokémon in Gen 4. Your best chance
  3098. 1:39:54against Okus is probably either to get
  3099. 1:39:56an immunity against them or to use the
  3100. 1:39:58move substitute. Here's another
  3101. 1:40:00incredibly annoying one. So, high crit
  3102. 1:40:02AI is a bit notorious. If a high crit
  3103. 1:40:04move is neutral, it has a 25% chance for
  3104. 1:40:06a plus one score. If they are super
  3105. 1:40:08effective, they have a 50% chance for a
  3106. 1:40:10plus one score. So, for example,
  3107. 1:40:12Machamp, even if dynamic punch is the
  3108. 1:40:14strongest move against the enemy, it can
  3109. 1:40:16still sometimes use stone edge because
  3110. 1:40:18stone edge is weaker, but can also get a
  3111. 1:40:20plus one score for being high crit. A
  3112. 1:40:23similar thing can happen with Machamp 4
  3113. 1:40:24and cross chop instead of Earthquake.
  3114. 1:40:27It is really difficult to play against
  3115. 1:40:28these Pokémon. Again, you have to weigh
  3116. 1:40:30up the exact odds of them picking what
  3117. 1:40:31move and decide on what the best overall
  3118. 1:40:33course of action is against these
  3119. 1:40:35Pokemon. But be really careful about
  3120. 1:40:36high crit AI when it comes to switches.
  3121. 1:40:38A Pokémon with Stone Edge can easily
  3122. 1:40:40randomly use this move when you're not
  3123. 1:40:42expecting it to. Another big one is
  3124. 1:40:44Counter Coat. So, Counter Coat is
  3125. 1:40:45famously very bugged in generation 3,
  3126. 1:40:47and this bug still exists in generation
  3127. 1:40:494. And the bug is this. Before the
  3128. 1:40:51physical special split, counter and
  3129. 1:40:53mirror coat are supposed to check your
  3130. 1:40:54type and match it against the type of
  3131. 1:40:56known special and physical types. For
  3132. 1:40:59example, what is intended to happen is
  3133. 1:41:01to use counter more often against Taurus
  3134. 1:41:03since Taurus is a normal type and normal
  3135. 1:41:05type is a physical type in generations 1
  3136. 1:41:07to three. But this check is actually
  3137. 1:41:09backwards. So in so instead of
  3138. 1:41:11encouraging counter against Taurus,
  3139. 1:41:12Miraatote is going to be encouraged
  3140. 1:41:14versus Taurus. Obviously Gen 4 is after
  3141. 1:41:16the physical special split, but this
  3142. 1:41:18still remains somewhat useful. It means
  3143. 1:41:20that for example on turn one if Latio is
  3144. 1:41:23out and remember Latio is dragon and
  3145. 1:41:25psychic which are two special types in
  3146. 1:41:27generation 3. An enemy with counter is
  3147. 1:41:29very likely to use counter and
  3148. 1:41:30potentially waste the turn. The AI also
  3149. 1:41:33prefers to use counter or miraote after
  3150. 1:41:34using attack of the correct category.
  3151. 1:41:36This check is not bugged. You want to be
  3152. 1:41:39careful about counter cut though because
  3153. 1:41:40it's very rarely truly predictable. You
  3154. 1:41:42can only identify scenarios where it's
  3155. 1:41:43quite unlikely to be picked or quite
  3156. 1:41:45likely to be picked. So let's quickly
  3157. 1:41:47talk about explosion and destiny bond.
  3158. 1:41:49These moves are obviously incredibly
  3159. 1:41:50dangerous in Nuzlocks. They're obviously
  3160. 1:41:52incredibly dangerous in the frontier as
  3161. 1:41:53well. We don't want to trade with the
  3162. 1:41:55enemy on their terms. Sometimes trading
  3163. 1:41:58is fine, particularly in the factory,
  3164. 1:42:00but we want to trade on our terms. So,
  3165. 1:42:02let's talk about explosion and
  3166. 1:42:03self-destruct first. First up, they have
  3167. 1:42:05a bit of an update from Gen 3. A full
  3168. 1:42:07health explosion is now very rare. It's
  3169. 1:42:09around 2%. Although 2% might sound
  3170. 1:42:11terrifyingly high if you're going for a
  3171. 1:42:13very, very long streak. So, the things
  3172. 1:42:15to become aware for explosion. First up,
  3173. 1:42:17explosion becomes more likely the low in
  3174. 1:42:19HP the enemy gets. And the really big
  3175. 1:42:22turning point is 50% HP. If possible, do
  3176. 1:42:24not hit the enemy below 50% HP unless
  3177. 1:42:27you know you can kill them on the
  3178. 1:42:28following turn. Next up, the AI does
  3179. 1:42:30check how many Pokémon are left on both
  3180. 1:42:32sides. If the AI is on their last
  3181. 1:42:34Pokémon and you are not on your last
  3182. 1:42:36Pokémon, they're very unlikely to
  3183. 1:42:37explode. However, you need to be very
  3184. 1:42:40careful about doubles. In a 2v2
  3185. 1:42:42scenario, the AI will think that it
  3186. 1:42:44still has an ally alive even though the
  3187. 1:42:45ally is on the field. Of course, in
  3188. 1:42:48reality, if it explodes here, it
  3189. 1:42:49probably kills everything, but the
  3190. 1:42:51rather simple AI algorithm does not care
  3191. 1:42:53about that. So, be very careful
  3192. 1:42:55explosion in endgame double scenarios.
  3193. 1:42:57So, next up is Destiny Bond. I think
  3194. 1:42:59Destiny Bond is in many ways much
  3195. 1:43:01scarier than explosion. Luckily, the
  3196. 1:43:03distribution of the move Destiny Bond is
  3197. 1:43:04much rarer in the frontier and it's
  3198. 1:43:06quite rare on Pokemon that also have the
  3199. 1:43:08item quick claw. Some quick points about
  3200. 1:43:10Destiny Bond. The AI will almost never
  3201. 1:43:12Destiny Bond at full HP. The Destiny
  3202. 1:43:14Bond is stuck at a minus one score. Like
  3203. 1:43:17Explosion, Destiny Bond does get more
  3204. 1:43:19likely at lower HP. The most important
  3205. 1:43:21thing though, Destiny Bond does not
  3206. 1:43:23check if this is the AI's final Pokemon.
  3207. 1:43:25The AI does not explode very often on
  3208. 1:43:27its final Pokemon, but if it's got one
  3209. 1:43:28Pokemon left, it's very likely to still
  3210. 1:43:30use Destiny Bond. This means in an
  3211. 1:43:32endgame 1 v one scenario in the factory,
  3212. 1:43:34if you're facing an enemy that is faster
  3213. 1:43:35and has to move destiny bond, you need
  3214. 1:43:37to be very careful about how you kill
  3215. 1:43:38this. And finally, the AI will happily
  3216. 1:43:40spam Destiny Bond. Of course, Destiny
  3217. 1:43:42Bond doesn't fail if used in succession.
  3218. 1:43:44But there's no logic like, oh, the
  3219. 1:43:46player didn't attack me last turn, so
  3220. 1:43:48I'm not going to use Destiny Bond this
  3221. 1:43:49turn. The AI Destiny Bond logic is
  3222. 1:43:51purely run on the remaining HP
  3223. 1:43:52percentage. So, my voice is dying. I'm
  3224. 1:43:54not sure if I can get through these fast
  3225. 1:43:55enough. So, let's talk about raw and
  3226. 1:43:57haze. This is a very useful move to know
  3227. 1:43:59because the player does like setting up
  3228. 1:44:00against raw and haze. Basically, haze
  3229. 1:44:02and war both check if you've been
  3230. 1:44:04boosted to plus three in one or more of
  3231. 1:44:06your stats. Now, you can still boost to
  3232. 1:44:08plus three. For example, you could use
  3233. 1:44:10free dragon dances. But just make sure
  3234. 1:44:12after you use free dragon dances on the
  3235. 1:44:14following turn that you can immediately
  3236. 1:44:15kill the enemy because on that turn is a
  3237. 1:44:18turn they're very likely to use haze or
  3238. 1:44:19raw. Raw also has an additional check.
  3239. 1:44:22Basically, it checks if you've been in
  3240. 1:44:23for four or more turns. Once you've been
  3241. 1:44:25in for four or more turns, raw becomes
  3242. 1:44:27incredibly likely. It's an 87.5% chance
  3243. 1:44:30that raw gets a score above plus zero.
  3244. 1:44:33So, some quick notes on healing.
  3245. 1:44:34Probably one of the biggest bugs in the
  3246. 1:44:36entire game is the fact that if the
  3247. 1:44:38enemy is faster than you, the enemy is
  3248. 1:44:40not going to use 50% healing moves. So,
  3249. 1:44:42for example, if the enemy has Cresselia
  3250. 1:44:44and Cresselia has Moonlight, the enemy
  3251. 1:44:47Cresselia is not going to use Moonlight
  3252. 1:44:48if it is faster than your Pokémon. You
  3253. 1:44:51can abuse this as long as you have a
  3254. 1:44:52Pokemon that is slower than them. The
  3255. 1:44:53same check does not apply to rest,
  3256. 1:44:55though. Rest does have different
  3257. 1:44:56behavior based on whether or not the AI
  3258. 1:44:58is faster or slower than the player,
  3259. 1:44:59though. When it is faster, the key HP
  3260. 1:45:01percentage is 40%. And when it is
  3261. 1:45:04slower, the key percentage is 60%. This
  3262. 1:45:06is quite easy to take advantage of. It's
  3263. 1:45:08quite easy to knock a Pokemon below 60%
  3264. 1:45:10and therefore force them to use rest
  3265. 1:45:12again. In the time they're using rest,
  3266. 1:45:13you can potentially use a setup move or
  3267. 1:45:15you can potentially switch to another
  3268. 1:45:16Pokémon. So, here's a big one. Endure
  3269. 1:45:18reversal. Endure reversal sets are very
  3270. 1:45:21deadly because most of them also run the
  3271. 1:45:23item sele. There's two big key insights
  3272. 1:45:26here. First up, reversal does not have
  3273. 1:45:29kill AI. Reversal doesn't even do a
  3274. 1:45:31proper damage comparison. Instead,
  3275. 1:45:33reversal just gets more likely at lower
  3276. 1:45:35HP. You want to be very, very careful
  3277. 1:45:37about dealing damage to an enemy
  3278. 1:45:38reversal or flail set if damage would
  3279. 1:45:40bring them close to 20% or lower HP.
  3280. 1:45:43Endure also has very dumb AI. Endure AI
  3281. 1:45:47does not check whether or not the
  3282. 1:45:48Pokemon just use Endure. This means the
  3283. 1:45:50enemy can easily endure for three or
  3284. 1:45:52four turns in a row. Endure just becomes
  3285. 1:45:55more likely at lower HP. Between four
  3286. 1:45:57and 35% specifically is a time when
  3287. 1:45:59Endure is much more likely. However,
  3288. 1:46:01Endure is never deterministic in the
  3289. 1:46:03same way that reversal is at low HP. Of
  3290. 1:46:05all the sets in the frontier, this is
  3291. 1:46:07probably the most punching set to
  3292. 1:46:08misplay into. So U-turn is another big
  3293. 1:46:10one. U-turn is just very complicated.
  3294. 1:46:12Let's go over some quick pointers on it.
  3295. 1:46:14So, the AI is not going to use U-turn if
  3296. 1:46:16U-turn is resisted. U-turn does have
  3297. 1:46:19regular kill AI though, it can be used
  3298. 1:46:20as a regular kill move. If the user has
  3299. 1:46:23a super effective move versus the
  3300. 1:46:25target, including the move U-turn,
  3301. 1:46:26U-turn becomes very unlikely.
  3302. 1:46:30And also, U-turn is more likely at
  3303. 1:46:31higher HP. The more damage you deal to a
  3304. 1:46:34Pokemon with U-turn, the less likely it
  3305. 1:46:36is to U-turn against you. And U-turn is
  3306. 1:46:39also a lot more likely if the AI is
  3307. 1:46:41faster than the target. What makes
  3308. 1:46:43U-turn very complicated is the fact that
  3309. 1:46:44U-turn also runs a comparison between
  3310. 1:46:46the damage on all moves in the back when
  3311. 1:46:48used by the user. Similar to similar to
  3312. 1:46:50what we saw in Switch AI, this can make
  3313. 1:46:52predicting U-turn, particularly against
  3314. 1:46:53an unknown team, exceptionally difficult
  3315. 1:46:55to do. Luckily, I will say that most
  3316. 1:46:57U-turn Pokémon in the frontier are
  3317. 1:46:59pretty bad, and the one very good U-turn
  3318. 1:47:01in the frontier is very unlikely to use
  3319. 1:47:03U-turn because close combat is so likely
  3320. 1:47:05to score as the highest damaging move.
  3321. 1:47:07So, let's go over facade quickly. Facade
  3322. 1:47:09is broken in two ways. First up, the
  3323. 1:47:11damage check is broken. It doesn't
  3324. 1:47:13double properly, but also facade does
  3325. 1:47:15have special smart AI that it checks if
  3326. 1:47:17the target has a status condition and
  3327. 1:47:19not the user. This is quite a big bug
  3328. 1:47:21obviously because facade almost never
  3329. 1:47:24win strongest damage stack without stab.
  3330. 1:47:26The facade users that you're going to
  3331. 1:47:27run into are pretty much exclusively
  3332. 1:47:29Pokémon like Xloud 2, which only use
  3333. 1:47:31Facade because it's already the
  3334. 1:47:32strongest move. Using a status move
  3335. 1:47:35against a Pokemon with facade is
  3336. 1:47:36actually quite unlikely to be punished
  3337. 1:47:38unless it already sees facade as the
  3338. 1:47:39strongest move against you. So next up,
  3339. 1:47:42weather and solar beam. Some important
  3340. 1:47:44points here. Solar beam does not have
  3341. 1:47:46kill AI in Gen 4. It is not considered a
  3342. 1:47:48kill move. The Gen 3 weather bug does
  3343. 1:47:50not exist in Gen 4. And also the AI can
  3344. 1:47:52be really stupid with Solar Beam. A
  3345. 1:47:54human would almost always use sunny day
  3346. 1:47:56and then Solar Beam. The AI can easily
  3347. 1:47:58just ignore this and just use Solar Beam
  3348. 1:48:00before sunny day, even if it already has
  3349. 1:48:01Sunny Day on the same set. So disable
  3350. 1:48:04and encore are very very annoying moves.
  3351. 1:48:06Disable is just incredibly likely to be
  3352. 1:48:07spammed for reasons I won't get into in
  3353. 1:48:09depth here. Encore is also much more
  3354. 1:48:11likely if the enemy user is faster than
  3355. 1:48:13you or if you've just been disabled. Of
  3356. 1:48:16course with disable on Encore, we're
  3357. 1:48:18really talking about Dong 2
  3358. 1:48:19specifically. Dong 2 is quite evil and
  3359. 1:48:22actually ironically it's a Pokemon that
  3360. 1:48:23is better the better your team is,
  3361. 1:48:25particularly in a facility like the
  3362. 1:48:26battle tower. And finally, I'm going to
  3363. 1:48:28mention Protect. Gen 4 fixes the famous
  3364. 1:48:31Gen 3 protect counter bug and it also
  3365. 1:48:33removes a guaranteed plus one score when
  3366. 1:48:35the protect counter is at zero. So
  3367. 1:48:37basically Gen 3's broken protect does
  3368. 1:48:40not apply in Gen 4. Protect of course is
  3369. 1:48:42a very annoying move to face and it has
  3370. 1:48:43two very notable uses an Earth ring free
  3371. 1:48:45and swamp one. Outside of this, protect
  3372. 1:48:47is not a very relevant move. I am
  3373. 1:48:49rushing this video to try and help all
  3374. 1:48:50of the platinum Kaiso players. I am
  3375. 1:48:52probably not playing Kaiso, but I also
  3376. 1:48:55appreciate there isn't great
  3377. 1:48:56documentation on the Gen 4 AI so far on
  3378. 1:48:58the internet, and hopefully this can be
  3379. 1:48:59that for them. I suspect because of
  3380. 1:49:01that, this video is going to have
  3381. 1:49:02minimal editing, and I do apologize for
  3382. 1:49:04that. I'm going to return to regular
  3383. 1:49:06videos after this.

About this transcript

This page contains the full transcript of The Complete Guide to Gen4's Battle AI by Magpie Labs, generated from the public captions YouTube serves with the video. The transcript has 24,024 words across 3,383 segments, with the original timestamps preserved so you can click any line to jump to that moment in the embedded player.

What you can do with it

Use the transcript to take notes, quote the speaker, build a study guide, generate a summary with ChatGPT or Claude via the YouTube Summary tool, or export it as a timed subtitle file with YouTube to SRT. You can also re-open it in the transcriber to choose a caption track available on the video.

Free YouTube transcript tool

YouTube2Text is a free YouTube transcript generator — no signup, no daily limit. Paste any YouTube link and get the full transcript instantly, with timestamps, click-to-jump, caption language selection, AI prompts for ChatGPT, Claude, and Gemini, and exports to TXT, SRT, VTT, or Markdown.