The Complete Guide to Gen4's Battle AI — Transcript
Full transcript
- 0:00So, almost every guide on the Gen 4 AI
- 0:02gets things wrong. Most of them probably
- 0:04have copied each other, and a lot of
- 0:05them miss out on very important bugs and
- 0:07game interactions. I'm particularly
- 0:09aware of this video, which definitely
- 0:10needs correcting. So, this is an attempt
- 0:12to fix that. It's my attempt to put
- 0:14multiple years of experience into a um
- 0:17short video. We'll go over exactly how
- 0:19the AI switches, the special Gen 4
- 0:22doubles AI behaviors, and a condensed
- 0:23list of what I picked out as the most
- 0:25important AI behaviors to know for the
- 0:27Frontier, and any difficult ROM hacks.
- 0:29Each section is clearly marked and a
- 0:30full transcript with examples is linked
- 0:32in the description. If there are any
- 0:34mistakes, this document will get
- 0:35updated. If you're experienced with
- 0:37generation 4, you might want to skip
- 0:38ahead to some of the trap and bug
- 0:39sections. That's probably what's going
- 0:41to be new for you. Or treat this like a
- 0:43quick test or recap as I go through
- 0:44examples. If you are new, this might be
- 0:46a bit overwhelming, but I hope that the
- 0:48examples help. And this write up and
- 0:50video is largely based on the PR demp
- 0:52and also Mo's excellent websites. I'm
- 0:54going to have links for both. So, the
- 0:55most essential thing to the game is
- 0:57understanding that after you carry an
- 0:58enemy Pokemon, what Pokemon is going to
- 1:00come in next? This logic also applies if
- 1:02an enemy uses U-turn or a few other
- 1:04cases in mid-turn switch AI, which we'll
- 1:06look at in the next section. An
- 1:07important thing about switch AI is that
- 1:09it's universal. It doesn't matter if the
- 1:10enemy trainer has smart AI or no AI.
- 1:12It's always going to work the same. You
- 1:14can understand post KO switch AI as two
- 1:16steps. The best Pokémon with a super
- 1:18effective move and the most damage
- 1:20possible. Both of these steps have a lot
- 1:22of detail and a lot of bugs involved.
- 1:24So, let's talk about the best Pokemon
- 1:25with a super effective move. This is the
- 1:27first check and is the simpler one. In
- 1:29this in this step, the AI will check all
- 1:31its remaining non-fated Pokemon it could
- 1:32switch in. The question is, do they have
- 1:34a super effective move or not? This
- 1:36brings us to the simplest case. Let's
- 1:38say I'm using Garchomp and I just
- 1:40knocked out a Rapid Dash. In the back,
- 1:42the enemy has two Pokémon they could
- 1:44switch to. Ambiom 4 and Absol 4. Ambi
- 1:47Pump obviously has Ice Punch, which is
- 1:49super effective move against Garchomp.
- 1:51Absol has no super effective move
- 1:53because only Ambiom has a super
- 1:54effective move against Garchomp. Ambi
- 1:56Pom is going to be the Pokemon chosen to
- 1:58switch in. So obviously the next
- 1:59question is what if multiple Pokemon
- 2:01have a super effective move. Who gets
- 2:03chosen then? Let's expand the previous
- 2:05example to include another Pokémon which
- 2:07is Latios one. So once again am Ambiom
- 2:11has Ice Punch which is super effective
- 2:13but this time Latio also has a super
- 2:14effective move with Dragon Pulse. So, we
- 2:17need to perform the following check. For
- 2:19each of AmbiPom and Latios' types, note
- 2:22their type matchup against Garchomp, and
- 2:24then multiply this number by 40. The
- 2:26Pokemon with the highest score wins. An
- 2:28important thing to note here, and a
- 2:30weird part of the Gen 4 switch AI, is
- 2:32that Amy Pom only has one type. It is
- 2:34obviously only normal type. If Pokémon
- 2:36has only one type, you must pretend it
- 2:38secondary type is the same as its normal
- 2:39type. This is how it's actually coded in
- 2:41the game's code. So, let's do this
- 2:43example. Ambi pom is obviously neutral
- 2:45against Garchomp with normal type and
- 2:47it's also neutral against Garchomp with
- 2:48the secondary normal type we assign.
- 2:50Then we do 1 plus 1 is two and 2 * 40 is
- 2:5380. So ambiom score against Garchomp is
- 2:5680. Latio obviously is dragon psychic.
- 2:59Dragon has a two times super effective
- 3:00multiply against Garchomp and Psychic
- 3:02has a neutral type matchup. So we get 2
- 3:04+ 1 is three and then 3 * 40 is 120. And
- 3:08this is Latio's type matchup against
- 3:09Garchomp. So at the end we check these
- 3:11two numbers. We see that 120 is bigger
- 3:13than 80 and so 120 wins and Latios is
- 3:17chosen as a switch in against Garchomp.
- 3:19An important thing to note here is that
- 3:21yes, Ice Punch has a better type
- 3:23effective matchup into Garchomp. It's
- 3:24four times super effective and Dragon
- 3:27Pulse is only two times super effective,
- 3:28but this doesn't matter. The AI is
- 3:30simply checking whether or not the
- 3:31Pokemon has any kind of super effective
- 3:33move. And Dragon Pulse and Ice Punch are
- 3:35both score the same here. Now, Pokémon
- 3:38of a single type are also quite
- 3:39important to consider. Let's look at one
- 3:41where it actually matters. So this is
- 3:42Shogun 2. Shogun is obviously only a
- 3:45dragon type. Since it's a dragon mono
- 3:46type, both of its types are considered
- 3:48to be dragon. So if Shogun was a
- 3:50possible switching option here, Shogun
- 3:52will get two times for dragon versus
- 3:54dragon ground and another two times for
- 3:56dragon versus dragon ground. It would
- 3:58then score four and then that four would
- 4:00be multiplied by 40 to get 160. Because
- 4:03160 is higher than 120, Shaun beats
- 4:05Latios in the switch in AI and the AI
- 4:07would choose a switch in Shaun. We can
- 4:09understand this that Latio's dragon
- 4:11psychic typing is kind of wasting the
- 4:13super effective type matchup where
- 4:14Shiaon is technically dragon dragon and
- 4:16both of those are super effective
- 4:17matchups. This is relatively intuitive.
- 4:20Now the next question is what if
- 4:22multiple Pokémon have the same type
- 4:23matchup score into Garchomp and they all
- 4:25have a super effective move. So let's
- 4:27give a new example. This time we could
- 4:28switch into Beaon or Shellon against
- 4:31Garchomp. Beeon is first in the party
- 4:33order. Both Pokemon obviously have the
- 4:35same two effective move in dragon breath
- 4:37and they have the same type matchup
- 4:39because they're both the dragon type. So
- 4:40the tiebreaker here is that because Beon
- 4:42is first in the party order, Beeon will
- 4:44be switched in before Shellon. So that's
- 4:46the basics of super effective switching
- 4:48AI, but there are a few traps here.
- 4:50Let's talk about ability adjustment,
- 4:51which is a really important thing to
- 4:53consider because Pokémon isn't just
- 4:54about type matchups. So big one is
- 4:56normalize. Essentially, the AI will
- 4:59correctly account for normalize. If the
- 5:01Pokemon that just fainted has
- 5:02normalized, that doesn't matter for the
- 5:04Pokemon that's about to switch in. And
- 5:05if it's looking at a Pokemon switching
- 5:06in, if that Pokemon has normalized and
- 5:09it has a move like Ice Beam, Ice Beam is
- 5:11considered to be a normal type move. So,
- 5:13it's correctly adjusting for normalize.
- 5:14Here, let's also talk about levitate.
- 5:16This is probably the most famous one.
- 5:18Obviously, your Pokemon can be weak to
- 5:20earthquake. For example, it could be a
- 5:22Bronzong, but it could also have
- 5:23levitate, which means it's technically
- 5:24being immune to earthquake. The AI does
- 5:27understand this. It will cheat to see
- 5:29your exact ability. If you have
- 5:31levitate, it will know on this step.
- 5:33It'll also correctly check for things
- 5:34which break levitate. For example, if
- 5:36the attacker has mold breaker, it will
- 5:38understand it can hit levitate. It'll
- 5:39also understand if gravity or iron ball
- 5:41are currently in use, which will also
- 5:42let a Pokemon with levitate be hit by
- 5:44ground moves. A similar thing happens
- 5:46with scrappy and foresight. So, if the
- 5:48player is using a ghost Pokemon like
- 5:49spiriting, which is ghost dark, then a
- 5:51Pokemon with scrappy in the back and
- 5:53brick break or another fighting move
- 5:55will see that it can hit spiritine for
- 5:56super effective damage with that brick
- 5:57break. And finally, Wonder Guard is also
- 5:59correctly considered for the switching
- 6:01calculation. Of course, this doesn't
- 6:02really matter since the check is a super
- 6:04effective moves anyway. But what's
- 6:05important here is all other abilities
- 6:07are not considered. And as an example of
- 6:09this, let's say I somehow get volt
- 6:11absorb onto Lapras. Say it's doubles or
- 6:13I have some obscure string of inputs. So
- 6:16I have a volta absorb lapras which is
- 6:17immune to electric. The A will not
- 6:19understand that lapras is immune to volt
- 6:21absorb here and it will happily send in
- 6:22a thunderbolting enemy thinking that
- 6:24thunderbolt can hit lapras super
- 6:25effectively. In this sense, the switch
- 6:27AI is a bit flawed. Let's talk about
- 6:29another trap, which is status moves. So,
- 6:32say we have the following example of
- 6:33Pokemon. We can switch to Ambiom one and
- 6:35Gyarados 4. Again, we're going to be
- 6:37switching into Garchomp.
- 6:39So, it might look like both of these
- 6:41Pokémon have no attacks which are super
- 6:42effective against Garchomp. They don't
- 6:44have any kind of dragon or ice attacks.
- 6:46However, there is a problem here, which
- 6:47is that Gyarados's Dragon Dance is
- 6:49technically considered a super effective
- 6:51move. Of course, dragon dance has no
- 6:53damage, but it's technically dragon
- 6:55type, and dragon type is technically
- 6:56super effective against Garchomp. So,
- 6:58Gyus is going to be chosen as a
- 6:59switching against Garchomp here simply
- 7:01because it has the move dragon dance.
- 7:03Another thing to be really careful about
- 7:04is variable type moves. These are
- 7:06obviously fairly rare, but they are
- 7:08important to account for. So, hidden
- 7:10power can easily exist in the back. The
- 7:11AI does understand what the exact hidden
- 7:13power of the Pokémon is. It will not
- 7:15assume that hidden power is normal type.
- 7:17The same adjustments happen for
- 7:18Weatherable, Judgment, and Natural Gift.
- 7:21and those all get correctly adjusted to
- 7:22be the correct type. Of course, this is
- 7:24quite rare. Probably the most common one
- 7:26you'll see in the game is Weberball, but
- 7:27other ROM hacks could easily bring in
- 7:29something else. So, that's the basics of
- 7:31switching AI when it comes to the super
- 7:33effective step. But, let's talk about
- 7:35two really important bugs that interfere
- 7:37with this. The first one is what we call
- 7:39type check overflow. This is a bug the
- 7:41community is aware of, but let me
- 7:42explain it in full. So again, pretend I
- 7:45have a Garchomp out and the AI can
- 7:47switch into either ambip 4 or red ice
- 7:50one. Both of these have a super
- 7:51effective ice move against Garchomp. Now
- 7:54obviously even without doing any kind of
- 7:56calculation, you should know that Red
- 7:58Ice is ice type. It has a better super
- 7:59effective matchup into Garchomp than
- 8:01Ambiom's normal type. And Red Ice should
- 8:03be switched in. If we do the full maths
- 8:05of this, we do get this. 320 is Red
- 8:08Ice's score and 80 is Ambiom score. So
- 8:11red ice is going to win and is going to
- 8:13be switched in. However, there is a bug
- 8:15here. This combined type score cannot
- 8:18get a value higher than 255 for
- 8:20programming reasons. This is an overflow
- 8:23error on the type check. This means red
- 8:25ice's true score is not 320 but is 320
- 8:28mod 256 which is 320us 256 which is 64.
- 8:33So red ice's true value against Garcho
- 8:35is 64. It's actually loses to ambip. So
- 8:38this scenario where you have a four
- 8:40times too effective matchup on both
- 8:42enemy switchins actually means that it
- 8:44loses out to neutral type matchups, but
- 8:46it could still beat something worse. For
- 8:48example, if we had some kind of electric
- 8:50type and ground is obviously immune to
- 8:51electric because that would score zero,
- 8:53red ice would still beat that. So the
- 8:55fact that red ice is overflowing here
- 8:57doesn't mean red ice can never be chosen
- 8:58as the best switch in candidate. But it
- 9:00does mean that red ice dramatically
- 9:02falls down the chain in terms of what
- 9:03should be switched in next. And I also
- 9:05want you to notice that this is only
- 9:06triggered if both type matchups are
- 9:08times four. For example, swamp versus
- 9:10golem is a very good type match up as
- 9:12well. This is a four times interaction
- 9:14on water and a two times interaction on
- 9:16ground. And this scores 6* 40 which is
- 9:18240. And this does not overflow. The
- 9:21only way to overflow is to have a 8
- 9:23interaction overall. I will also say
- 9:25this is a common bug. A lot of Pokemon
- 9:27you can use will have four times
- 9:29weaknesses and a lot of Pokemon in the
- 9:31frontier or any kind of difficult ROM
- 9:32hack could easily have coverage for
- 9:34them. So here in the document I also
- 9:35mentioned that the red eye switching is
- 9:36not impossible. Again we got to remember
- 9:39we're always checking for super
- 9:40effective type matchups. So here ambiom
- 9:43and red ice are being considered again.
- 9:45Yes, ambipom has a better type matchup
- 9:47but red ice is the only Pokemon here
- 9:48with a super effective move in ice beam.
- 9:50So we'll always go to red ice in this
- 9:52scenario. The second bug is much rarer
- 9:54and much more obscure. It's a variant of
- 9:56a famous Gen 3 bug, but this is pretty
- 9:58recent discovery. So, let's bring in a
- 10:00new example for this. Let's say I'm
- 10:01using Glycore, which is a ground flying
- 10:03type. The opponent is considering
- 10:05sending in Stantler and Red Ice. Now, on
- 10:07first glance, it looks like Scatler
- 10:09doesn't have any kind of super effective
- 10:10moves. And looks like Red Ice does have
- 10:12super effective move in Ice Beam. So,
- 10:14Red Ice should be chosen here, right?
- 10:17Well, that's not quite how this works.
- 10:19You see, Glisk is immune to Thunder Wave
- 10:21on its ground typing, but its flying
- 10:22typing is actually weak to Thunder Wave.
- 10:25And this means that Thunderwave is seen
- 10:26as super effective against Gliscor even
- 10:28though obviously Glycor is actually
- 10:30immune to it in the real battle. But the
- 10:32switching AI does not understand this.
- 10:34The switching AI thinks that Glyscore is
- 10:36weak to electric. So for example, if
- 10:38there's a Jolon in here and Jolon is the
- 10:40only Pokemon with a super effective
- 10:41move, Jolon will be switched in instead.
- 10:43So then I mention again here in the
- 10:45document that because Red Ice has got a
- 10:46eight times interaction to Glisor, it
- 10:48overflows just like it did against
- 10:49Garchomp and Santa Cl will be chosen to
- 10:51switch in. Santa has Thunder Wave. Now,
- 10:53this bug was rare, and this bug was
- 10:54covered in a video by DRX. However, the
- 10:56list of Pokémon he provides there are
- 10:58badly wrong. I don't know how we got
- 11:00this wrong, but it is badly wrong. I've
- 11:02mentioned how you can check this in the
- 11:03code yourself. It's the way the AI
- 11:05considers the type ordering in the
- 11:06game's code. Essentially, the thing you
- 11:08need to know is that the only Pokémon
- 11:09affected by this in Gen 4 are Gliger and
- 11:12Glycor, which are weak to electric,
- 11:14Aerodactyl, which is weak to ground,
- 11:16scar me, which is weak to ground, and
- 11:17graphic, which is weak to ghost. As far
- 11:19as I can see, there are no other Pokémon
- 11:21in the game that can trigger this. This
- 11:22can be quite an important bug actually.
- 11:24Gliscore, Aerodactyl, and Scari Al all
- 11:26benefit from this quite a lot as they
- 11:28will often be forcing in Pokemon to
- 11:29switch in that don't actually have a
- 11:31super effective move against them.
- 11:32Aerodactyl is probably the weakest one
- 11:34of these because in the frontier, if a
- 11:36Pokemon has a ground type attack, it
- 11:37probably has another coverage type
- 11:38attack that can hit Aerodactyl. But
- 11:40Glycor forcing and electric types and
- 11:42scar me forcing in ground types can be
- 11:44really good for you. And I want to make
- 11:46a note here that if you're playing a ROM
- 11:48hack, of course, the switch AI can
- 11:49change. I'm saying this for vanilla
- 11:51games and games that do not change the
- 11:52eye. But if you're playing in a ROM hack
- 11:54that adds a type like fairy, then this
- 11:55could easily be very different. And
- 11:57also, the ROM hack creator could easily
- 11:59have fixed the bugs mentioned above. So,
- 12:01we now move on to the second part of the
- 12:02Switch AI, which is what happens if the
- 12:04AI sees that it has no super effective
- 12:06moves against your Pokémon. Obviously,
- 12:08when it has no super effective move, it
- 12:09still wants to pick a good switch in
- 12:10against you. This brings us on to most
- 12:12damage possible. This is the second part
- 12:14of the switching check. This is a pure
- 12:16damage calculation, but what's really
- 12:18important here is to understand exactly
- 12:20how this works. So, let's say I have
- 12:22Garchomp one and I just knocked out
- 12:24Gastradon 2. What the AI is going to do
- 12:27here is take Gastradon 2, take its exact
- 12:30stats, its exact ability, its exact
- 12:32item, and make Gastraodon 2 use every
- 12:35single move in the enemy party against
- 12:38Garchomp.
- 12:39It is then going to pick the move that
- 12:41does the most possible damage against
- 12:43Garchomp. So, let's do a real example of
- 12:45that. Let's say in the back, the AI can
- 12:47either switch to Gold Duck one, which
- 12:49has surf and psychic as damaging moves,
- 12:51or Venusaur one, which has leaf storm
- 12:53and sludge bomb as damaging moves. So,
- 12:55if we put these into a damage
- 12:57calculator, and remember, we're putting
- 12:58in these damage calcs for Gastadon
- 13:00against Garchomp, not for the other
- 13:02Pokémon. So, we give Gastadon Gold's
- 13:05moves of Surf and Psychic. And Surf
- 13:07comes out as doing 88 max damage. We
- 13:10then do the same for Venusaur. We put in
- 13:12leaftorm and sludge bomb and leaftorm
- 13:14comes out to do 86 damage. And because
- 13:1788 is larger than 86, Surf does more
- 13:20damage than Leaftorm. And Surf wins this
- 13:22check, which means that Golduck is going
- 13:24to be sent out against Garchomp. Golduck
- 13:26is the Pokemon that had the attack that
- 13:28does the most damage against Garchomp
- 13:30when it's used by Gastradon. Now, that
- 13:32is not completely intuitive, and it does
- 13:34take a second for that to sink in, and
- 13:36it does mean if you want to do this
- 13:37precisely, you might have to mess around
- 13:38in the cows quite a lot. Now, despite
- 13:40that sounding simple, there are quite a
- 13:41lot of traps and bugs associated with
- 13:43this part of the switching AI as well.
- 13:45Let's first talk about non-standard
- 13:47attacks. So, basically, moves that the
- 13:49AI thinks that have variable base power
- 13:51are not included. But this list can be a
- 13:53bit arbitrary. For example, the move
- 13:56Weatherball technically can change its
- 13:58power. It has variable power depending
- 14:00on the weather. However, Weatherball is
- 14:02actually correctly included in this
- 14:04damage check. But if we think about a
- 14:06move like a low kick or reversal, which
- 14:08also have variable power, these are not
- 14:10included. They will not be part of the
- 14:12calculation used to determine who the
- 14:13best Pokemon to switch into is. The key
- 14:15is that the moves the AI is going to
- 14:17ignore, are moves in the game's code
- 14:18which have a base power of one. Now, you
- 14:20don't need to look these up yourself.
- 14:22I've listed them here. So, these are Oko
- 14:24moves. These always get ignored. B
- 14:26always gets ignored. Superfank always
- 14:28gets ignored. These are quite big
- 14:29because they would often be the best
- 14:30move. Remember, the Pokemon obviously
- 14:31has max power flail or reversal if it's
- 14:33just fainted. The move present gets
- 14:36ignored. Magnitude gets ignored.
- 14:38Endeavor gets ignored. Counter, miracle,
- 14:41metal burst get ignored. Fling, trump
- 14:43card, and split up. And I forgot to add
- 14:45low kick and cross not as well. I just
- 14:46realized. I hope this is a full list of
- 14:48moves that get ignored. However, I could
- 14:50easily be missing a few. So remember, if
- 14:51a Pokémon has one of these moves, it is
- 14:53not part of the switching AI. Do not put
- 14:55it in the damage calc. Do not think that
- 14:57the AI is going to factor it in. Now, I
- 14:59said that some moves do have changeable
- 15:00base power, but they still get correctly
- 15:02factored in. And these moves to give a
- 15:04brief example. Explosion and
- 15:06self-destruct. These are big ones. They
- 15:07often win. Eruption and war spout get
- 15:10correctly adjusted for as well. Dream
- 15:12meter, revenge, payback, and avalanche.
- 15:15These moves assume that they have the
- 15:16base power, not the doubled power, but
- 15:18they do get included in the switch AI.
- 15:20Sucker punch, weather ball, and facade.
- 15:22So these moves all get included in the
- 15:23damage calc. So here's a more obscure
- 15:26bug. Variable type moves in the base
- 15:28game are going to be vulnerable to
- 15:30something called a variable ability type
- 15:32adjustment. That sounds a bit weird.
- 15:34Let's have a direct look at an example.
- 15:36Say our switching Pokemon has hidden
- 15:38power fire. Hidden power fire is
- 15:40obviously a firet type attack. And let's
- 15:43say it's switching in into a Pokemon
- 15:44with dry skin or heat proof. A Pokemon
- 15:47with that ability is not going to adjust
- 15:48the damage for that hidden power fire
- 15:51check. So that means a Pokemon with dry
- 15:52skin is meant to take more damage from a
- 15:54firet type move. But if it's hidden
- 15:56power fire, it will not.
- 15:58The damage calculator almost certainly
- 16:00will not take this into account when
- 16:02considering the switch in AI. The same
- 16:03thing could happen with sunny day
- 16:05weather ball or something like firet
- 16:06type judgment or as we mentioned earlier
- 16:09potentially something like natural gift.
- 16:11Now these are somewhat rare. Obviously
- 16:13talking about things like dry skin thick
- 16:15fat and heat proof, but they're not
- 16:16unheard of. You could have Pokémon with
- 16:18these and it will affect what the AI
- 16:19chooses to switch in. Also be really
- 16:21careful of HP dependent abilities like
- 16:23swarm or blaze. These will also get
- 16:25factored in. If the Pokemon has just
- 16:27fainted, it is technically in blaze or
- 16:29swarm. And remember, the same applies to
- 16:30items. So, in our early example, if the
- 16:33Pokemon that just fainted, Gastron, had
- 16:34a choice band, it would increase the
- 16:36power of physical moves against Garchomp
- 16:38when considering all the switchins. This
- 16:40isn't really a trap that's really
- 16:41important to notice. If the opponent has
- 16:43no moves that can deal damage, and
- 16:44you've got to remember that moves with
- 16:46variable power that we mentioned earlier
- 16:48don't actually deal damage on this
- 16:49check, then the game is just going to
- 16:51send out the next Pokémon in party
- 16:52order. This is another common trap or
- 16:54misconception, which is the fact that
- 16:56the AI checks for a kill. The AI does
- 16:58not care if it kills or not with a move.
- 17:01So, let's say I have a Pokemon with one
- 17:02HP left, and I just knocked out an
- 17:04enemy. The AI could switch to a Pokemon
- 17:06that does 200 damage to me, or it could
- 17:08switch to a Pokemon that does one damage
- 17:09to me. It does not care that both kill.
- 17:11It'll go for the Pokemon that does the
- 17:13most damage in this check. Whether or
- 17:15not the move can kill your Pokemon is
- 17:16absolutely irrelevant. Okay, so to no
- 17:18one's surprise, there is a big bug in
- 17:20the damage calc, which is damage
- 17:21overflow.
- 17:23This is fairly rare in typical gameplay.
- 17:26Basically, to go above 255 damage is
- 17:28quite rare. You probably see this in
- 17:30factory level 100. You also probably see
- 17:31it in a late game ROM hack potentially.
- 17:33Or it could be possible when using a
- 17:35very lopsided Pokémon or when facing a
- 17:36very lopsided Pokémon. For example, if
- 17:38you're using Blissy, which has naturally
- 17:40low defense. The important part here is
- 17:42that the maximum damage the AI can score
- 17:44is 255. It cannot go higher than this.
- 17:47Of course, in this check, there'll be no
- 17:49super effective damage multiplier
- 17:50because if the move is super effective,
- 17:52the AI would have already chosen it as a
- 17:53switch in. So, let's do an example.
- 17:55Level 100 Ryon just knocked out level
- 17:58100 Latios. And let's say the switch in
- 18:00has a move psychic. So, perhaps it's a
- 18:02Pokemon like Alakazam. When Latio tries
- 18:04to use Psychic against Ryon, Psychic is
- 18:06going to do 268 damage. So, if we adjust
- 18:09for 255 being the max score, we get 268
- 18:12minus 256, which is 12. Obviously, 12
- 18:15damage is horrible. This is a level 100
- 18:17Pokémon. Probably every other Pokemon on
- 18:19the team has a stronger move than this.
- 18:21So, this kind of damage overflow can
- 18:23matter, but we've got to remember that
- 18:24in a real battle, it might not matter.
- 18:27Let's say, for example, the switching
- 18:28Pokemon we're considering has psychic,
- 18:29but it also has a move like Dark Pulse.
- 18:31Well, Dark Pulse is still going to do a
- 18:33lot of damage to Rydon. In the example
- 18:35I've listed here, it does 159 damage to
- 18:37Rydon. 159 is going to score higher than
- 18:40the 12 damage that it thinks psychic
- 18:41does. And 159 is still probably quite
- 18:44likely to win the switch in damage
- 18:45check. For example, if the other Pokemon
- 18:48is some kind of physical type, Latio
- 18:49probably doesn't do much damage with a
- 18:51physical move into Ryon. And so this
- 18:53dark pulse might still win. And a
- 18:55Pokemon we expect to come in if there
- 18:56was no bug might still be the Pokemon
- 18:58that comes in anyway. You got to be
- 18:59really careful with this that when you
- 19:00see a move that does more than 256
- 19:02damage, you got to check that the other
- 19:04moves aren't also very high scoring and
- 19:06aren't better switch options than the
- 19:08other Pokémon on the bench. Now, in some
- 19:10rare cases, you might see something like
- 19:11this, which for example is Machamp using
- 19:14double-edged on Blissey. Here, the
- 19:16damage from the damage calc will be 711.
- 19:18Now, 7-Eleven minus 256 is still a
- 19:21number bigger than 255. So, we keep
- 19:23subtracting 256 from this number until
- 19:25we get an acceptable number lower than
- 19:26255. And in here that would be 199. This
- 19:30might seem obvious, but it's just
- 19:31something I want to include to cover all
- 19:32the bases. Now, I said that overflow is
- 19:34quite rare, but there's one case where
- 19:36overflow isn't that rare, which is
- 19:37explosion. You got to remember that
- 19:39explosion is technically a 500 base
- 19:40power move in generation 4 because of
- 19:42the h havinging of the opponent's
- 19:43defense. So, even at lower levels, it's
- 19:46quite easy for explosion to overflow in
- 19:47a damage check. The one insight I'd have
- 19:50here is that for the frontier, it's
- 19:51quite unlikely to matter. Most explosion
- 19:54Pokémon also have very strong physical
- 19:55moves anyway. So, in an example,
- 19:58Fortress 4 might overflow of explosion,
- 20:00but Double Edge, Earthquake, and
- 20:01Rocklide are quite likely to win the
- 20:03switch in check anyway, but in the
- 20:05Frontier, particularly playing at level
- 20:0750, you should probably expecting the
- 20:08Explosion Pokémon to come in second.
- 20:10Explosion does usually win this step or
- 20:12it causes overflow in this step. So,
- 20:14let's look at the next bug. This is
- 20:16variable damage carryover. Now, this is
- 20:18very rare. Back in trap one, I said that
- 20:20non-standard damage moves ignored. These
- 20:22would be moves like reversal or low
- 20:24kick. However, this is not completely
- 20:26true. When the AI calculates how much
- 20:28damage a move does, it correctly does
- 20:30this for all other moves and it
- 20:32correctly does this for status moves. It
- 20:33understands that status moves will do
- 20:35zero damage. However, moves with a power
- 20:37of one, which are the variable damage
- 20:39moves we mentioned before, are
- 20:40technically skipped. And this means the
- 20:42AI believes that for variable damage
- 20:44moves, the amount of damage they do is
- 20:46actually whatever was just calculated.
- 20:48Now, usually this is fine. Consider Val
- 20:51Plume 2 for example. When the AI is
- 20:53trying to score Val plume for how much
- 20:55damage it does with its best move, it'll
- 20:57use toxic. Toxic will deal zero zero
- 20:59damage, it'll then use grassnot. It
- 21:02skips grass knot and grass knots takes
- 21:04the value from toxic, which is also zero
- 21:06damage. And then double team and attract
- 21:08all do zero damage as well. So the AI
- 21:10correctly understands in the switch part
- 21:12of the AI that vloom 2 has no attacking
- 21:14moves. It's also fine in most other
- 21:16cases. So let's look at Alakazam 3.
- 21:19Alakazam 3 will have its psychic scored
- 21:21normally. It'll have charge beam scored
- 21:23normally and it'll have signal beam
- 21:25scored normally. Grassnot is technically
- 21:27skipped, but what that means is that
- 21:29grassnot is seen as doing the same
- 21:30amount of damage as signal beam. This
- 21:32does not affect the chance of switching
- 21:34in Alakazam 3 at all. Alakazam 3 will
- 21:37obviously just be taking one of these
- 21:38three moves as most damage. If signal
- 21:40beam happens to be the best move, it
- 21:42doesn't matter that Grassnot did the
- 21:43same amount of damage because doing the
- 21:44same amount of damage does not change a
- 21:46switch in AI at all. But for both Val
- 21:48plume and Alakazam, you might be
- 21:49wondering, what if Grassnob is in slot
- 21:51one? What happens then? And this is the
- 21:55bug. Let's do a real example to show
- 21:57this. I have Garchomp. I'm playing at
- 21:59level 50 and Blastoise just fainted. The
- 22:02AI is considering switching into one of
- 22:04the following Pokémon. So, we've got
- 22:05Agron and Ludy Colo. Now, if Blastoise
- 22:09uses Earthquake against Garchomp, it's
- 22:11going to do 37 damage. If Blastoise uses
- 22:14waterfall against Garchomp, it's going
- 22:16to do 44 damage. So, Ludy Colo should
- 22:19win best damaging move. This this is
- 22:21because Blastoise sees the waterfall
- 22:23from Ludic Colo as having stab damage.
- 22:25So, basically, Waterfall has 120 power,
- 22:27which is more than Earthquakes's 100,
- 22:29which is why it does more damage against
- 22:30Garchomp here. So, the AI should want to
- 22:32switch into Ludic Colo. However, it's
- 22:35not going to do this. Agron's first move
- 22:37is Metal Burst. Metal Burst is a
- 22:39variable damage move. It's going to be
- 22:41skipped. is going to have to take the
- 22:43value of whatever the AI last calculated
- 22:46in the type switch in AI. Now, it just
- 22:49so happens the last thing the AI
- 22:51calculated in switch AI was from the
- 22:54previous step when we were doing super
- 22:55effective checks. It had to calculate
- 22:57the type matchup of Ludic Colo against
- 22:59Garchomp.
- 23:01Now, we did this before. The way you do
- 23:04this is that Ludicello's types are
- 23:05scored against Garchomp. So, Ludy Kell
- 23:07is water grass. Water has a neutral type
- 23:10matchup. It's time 1. Grass has a
- 23:12neutral type matchup. It's time 1. 1 + 1
- 23:15is 2. And 2 * 40 is 80. So Ludy Colo had
- 23:19an 80 matchup score against Garchomp.
- 23:22Obviously, the AI did not pick Aggron or
- 23:25Ludy Colo for the switch AI for super
- 23:27effective checks. They both don't have a
- 23:29super effective move against Garchomp.
- 23:31However, this value of 80 is still in
- 23:34memory in the AI. And so when the AI
- 23:37tries to calculate Metal Burst against
- 23:38Garchomp, it thinks that Metal Burst is
- 23:41going to do 80 damage against Garchomp,
- 23:43which is Ludic's type matchup against
- 23:44Garchomp. Obviously, 80 damage from
- 23:47Metal Burst beats Earthquake and it
- 23:49beats Waterfall. And so the AI is going
- 23:52to choose to switch Aggron in against
- 23:53Garchomp, even though it shouldn't. This
- 23:56is the bug. When it triggers, it has to
- 23:59be the first Pokemon the AI is
- 24:00considering switching to has to have a
- 24:02variable damage move in slot one. and
- 24:05the last Pokemon in the party will have
- 24:07to have some kind of non-immune matchup
- 24:09into your Pokemon. If both of those
- 24:11checks pass though, it's quite likely to
- 24:13switch it in. Obviously, Ludy Colola had
- 24:15a neutral type match up against
- 24:16Garchomp, but if we imagine a Pokemon
- 24:18like Lapras, it would have done 120
- 24:20damage in the hallucination against
- 24:22Garchomp, and it could be even worse. 80
- 24:24damage is a lot. Unless you get above
- 24:27level 70 to 80, this probably dominates
- 24:29the way that the AI switching works at
- 24:32very high levels. And we're probably
- 24:33specifically talking about level 100.
- 24:35This probably doesn't happen quite so
- 24:37much. So at level 100, Blastoise using
- 24:39Waterfall with Ludic Colo probably does
- 24:41score more than 80 against Garchomp and
- 24:43then Ludic Colo would be correctly
- 24:45chosen as a switch in instead. So I also
- 24:47want to quickly talk about in Frontier
- 24:48the way the Pokeball icon is displayed
- 24:50in the game. This will not matter if
- 24:52you're playing against opponent where
- 24:53you know their exact team, but if you
- 24:55don't know their exact team, this can be
- 24:56really important. So let's say I knock
- 24:58out the first Pokémon. The AI has to
- 25:00switch to one of its two options in the
- 25:02back since this is a 3v3 battle. So, I'm
- 25:04either going to get an image that looks
- 25:06like this where the grade out Pokeball
- 25:08is in the middle or I could get one that
- 25:09looks like this where the grade out
- 25:11Pokeball is on the left. Now, here it
- 25:14means that the AI switched a Pokémon in
- 25:15slot two in. And in here, it means the
- 25:17AI switch a Pokémon in slot three in.
- 25:19This might seem like a minor detail, but
- 25:21actually this is a fairly important
- 25:22critical part of information. We can say
- 25:24a few things about this once we know
- 25:26that it's slot two instead of slot
- 25:27three. So, let me bring in an example.
- 25:29Let's say I have Garchomp out again and
- 25:31Ambiom 4 switches in. Ambiom 4 is quite
- 25:34like to switch in against Garchomp
- 25:36because it's got the super effective
- 25:37move. Now, if Ambiom 4 was in slot
- 25:40three, which is when it looks like this,
- 25:43it means that slot two cannot have a
- 25:45Pokémon with a move that is super
- 25:46effective against Garchomp that has an
- 25:48equal or better type backdrop against
- 25:50Garchomp than Ambiom does. For example,
- 25:53if slot two was another normal type with
- 25:55an ice move, that would be impossible.
- 25:57the AI would have chosen to go to that
- 25:59Pokemon first. It also means that slot
- 26:01two, for example, could not be a water
- 26:02type with an ice beam as well as water
- 26:05also has a neutral type match up against
- 26:06Garchomp and Ambon would then win the
- 26:08switching. Now, however, if Ambon 4 was
- 26:10in slot two when it came out, which
- 26:12looks like this, this is not true. The
- 26:15Pokémon in slot three might be a water
- 26:17type, it might be a normal type and so
- 26:18on. We don't know because Ambon will win
- 26:21the twitching decision against Garchomp
- 26:22based on the party order then. So, we
- 26:24can also take this a bit further. Let's
- 26:26say Milt Tank 4 switches in. Once
- 26:28Miltank 4 switches in, I know a few
- 26:30things for certain. I know that the
- 26:32other Pokemon that the AI could have
- 26:33switched to does not have a super
- 26:35effective move against Garchomp. I also
- 26:37know that the AI does not have a Pokémon
- 26:40that that does more damage against
- 26:41Garchomp than one of Miltank's moves
- 26:43used by the Pokemon that just fainted.
- 26:45However, once again, we can say a bit
- 26:47more than this. If Miltank is in slot
- 26:49two, then the Pokemon in slot three
- 26:51might have a move that ties strongest
- 26:53damage. For example, it might also have
- 26:55the move Giga Impact and but if Miltech
- 26:58is in slot three, then we know that slot
- 27:00two has lost against Miltank. It is not
- 27:02tied Miltank for strongest move. Now, of
- 27:05course, in the frontier, we often deal
- 27:06with incomplete information. We won't
- 27:08know exactly what the Pokémon's going to
- 27:09be. So, let's do an example. Let's say
- 27:11the AI sends in Reggi Rock second
- 27:12against Garchomp. So, these are the
- 27:14Reggi Rock sets. If you're not a
- 27:15Frontier player, don't worry about this.
- 27:17We can say a few things here because of
- 27:18the switch AI. First up, the most likely
- 27:21Reirock to switch into Garchomp would be
- 27:23Reggi Rock 2. This is because Reggirock
- 27:252 is the only Regi Rock with a super
- 27:27effective move against Garchomp with Ice
- 27:28Punch. Regiro Rock 2 is therefore most
- 27:31likely. And if Regirock 2 does come in,
- 27:34then the other Pokemon in the back might
- 27:35also have a super effective move against
- 27:37Garchomp. However, because Reggi Rock is
- 27:39obviously a rock type and rock is not
- 27:41very effective against ground, the last
- 27:43Pokemon, if it does have if it does have
- 27:45a super effective move, cannot have a
- 27:47better type matchup into Garchomp than
- 27:49Reggiro does. And this is quite
- 27:50important information because it means,
- 27:52for example, the last Pokémon couldn't
- 27:54be a Gold Duck with Ice Beam, as Golduck
- 27:56with ice beam would have been switched
- 27:57in first. Now, if it's not Reggi Rock 2,
- 28:00the next most likely Reggi Rock to
- 28:01switch in is actually Reggi Rock 4. Why
- 28:03is this? Once again, we covered it
- 28:05before. It's because of explosion and
- 28:07it's because of the other strong
- 28:08damaging moves. Reggirok 4 is just more
- 28:10likely to be picked in as a switchin
- 28:12compared to the other Regi Rocks.
- 28:14However, it's not a lot more likely.
- 28:16Reggirock 1 and Reggi Rock 3 still have
- 28:18strong moves. They still have Hammer Arm
- 28:20and Earthquake respectively. These moves
- 28:22are quite likely to tie or beat a number
- 28:24of the other sets in the frontier. So,
- 28:26we wouldn't be surprised to see Reiok 1
- 28:28or Readyok 3 come in. However, if Reok
- 28:301, three, or four come in, we now know a
- 28:32little bit more. We know that the
- 28:33Pokemon the back cannot have a super
- 28:35effective move against Garchomp, which
- 28:37is quite big information, particularly
- 28:38if you're playing Factory. And we also
- 28:40know the Pokemon the back must have lost
- 28:42the strongest damaging move against
- 28:44Garchomp over Reggi Rock. It has a
- 28:46weaker move against Garcho against
- 28:48Garchomp than Reggiro does. And this
- 28:50brings us to a fundamental truth of how
- 28:52to play the factory, which is that after
- 28:54you knock a Pokemon out in the factory,
- 28:56by default, you're probably going to
- 28:58switch. the AI probably switch in a
- 29:00Pokemon that has a good move against you
- 29:01and a good type matchup or has a
- 29:03powerful move against you. Quite often
- 29:05the factory you want to switch out. This
- 29:07is quite a big difference with Gen 4
- 29:08factory compared to Gen 3 factory
- 29:10because in Gen 3 the switch AI does not
- 29:12operate like this at all and a way picks
- 29:14the best type against you is actually
- 29:15backwards. So let's do another example
- 29:17that is a bit more illuminating. Let's
- 29:19do Metacham switching in against
- 29:20Garchomp. Now if Metacham switches
- 29:22against Garchomp, the most likely
- 29:24Metacham set would be Metacham 4. Again,
- 29:26if it's not Medachcham 4, we know that
- 29:28the last Pokemon cannot have a super
- 29:30effective move against Garchomp. But we
- 29:32actually get even more information from
- 29:33Metacham. Because Metacham 3 is a
- 29:35special set, I'm probably going to know
- 29:36a bit more about the Pokemon the back
- 29:38being either special or physical based
- 29:40on the fact that Metacham 3 has a
- 29:41different move category, which is
- 29:43special than Metacham 1 and Metacham 2.
- 29:45On top of this, Metacham 2 does not have
- 29:47a very strong move against Garchomp. If
- 29:49Metacham 2 comes in, we probably get
- 29:51quite a lot of information about what
- 29:52the last Pokémon possibly could be. It
- 29:54has to have a move that's weaker than
- 29:55drain punch. Men shaman is a bit
- 29:57different. Zen headbutt does quite good
- 29:58damage against Garchomp, but it still
- 30:00gives us a bit of information. For
- 30:01example, we would then know that last
- 30:03Pokémon can't have the move earthquake
- 30:05as Earthquake does more damage to
- 30:06Garchomp than Zen Headbutt does. There's
- 30:08also a very extreme example which could
- 30:10be 2. What if 2 comes out against
- 30:13Garchomp second out? Because Whirl 2 did
- 30:16not trigger super effective AI and Whirl
- 30:182's strongest move is Whirlpool, which
- 30:20only has 15 power. The list of Pokemon
- 30:22that could be in the back is now tiny.
- 30:25Whirlpool is obviously an incredibly
- 30:26weak attack and it's a good chance that
- 30:28the final Pokemon has no actual
- 30:29attacking moves. It's quite likely the
- 30:31final Pokémon could be something like
- 30:32Miloic 2. Again, if you're a factory
- 30:35player, you want to be thinking about
- 30:36this kind of stuff a lot. Obviously, the
- 30:38general truth here is is if the Pokemon
- 30:40in slot three was sent out and it
- 30:42doesn't have a terrible type match up
- 30:43against you, the second Pokemon out
- 30:44probably doesn't have a super effective
- 30:46move. You want to be careful about
- 30:47assuming this always, but it is quite
- 30:49often true in the way that the game
- 30:50operates.
- 30:52It also depends a lot on your Pokemon
- 30:53that just knocked them out. If you've
- 30:55read my Gen 4 factory guide, you'll be
- 30:56familiar that in factory, I often
- 30:58recommend leading off for a Pokémon
- 30:59which has very few weaknesses or a lot
- 31:02of weaknesses because this triggers a
- 31:03switch AI a lot more often or a lot more
- 31:06rarely. And this also gives you much
- 31:08more information on average. And that's
- 31:09part of why electric types, for example,
- 31:11are often quite good leads in the
- 31:12factory. Now, obviously, if you're in
- 31:14the frontier and you're playing Factory
- 31:16or Tower, you also get more information
- 31:17from the type hint or from knowing the
- 31:19exact trainers roster of possible
- 31:21Pokémon. You can combine this with the
- 31:22Pokeball sent out and team knowledge and
- 31:25often get quite a lot of information. It
- 31:27is not rare to be able to narrow down
- 31:28the last possible Pokémon to only two or
- 31:30three possibilities, or in some rare
- 31:32cases, you might know the exact last
- 31:34Pokémon before you've even seen it come
- 31:36out. So, let's do a full recap on Post
- 31:38KO Switch AI. The following is the exact
- 31:40sequence of how it works. Calculate the
- 31:42type matchup score of every single
- 31:44Pokemon the AI could send in against
- 31:46you. If it's a monotype Pokémon, pretend
- 31:48its secondary type is also its primary
- 31:50type. Multiply this type matchup score
- 31:52by 40. If this number is greater than
- 31:54255, take 256 away from the number. Now,
- 31:57starting with the Pokemon with the
- 31:58highest score in step one, check if it
- 32:00has any super effective move against the
- 32:02player's Pokemon. This includes all
- 32:04status moves. It also includes moves in
- 32:06the super effective immunity bug
- 32:07checklist. This was back when we talked
- 32:09about how glycore is seen as weak to
- 32:10thunderbolt. If a Pokemon with a super
- 32:12effective move is found, switch to it
- 32:14immediately. And if multiple Pokemon tie
- 32:17on the best type matchup score and they
- 32:19all have super effective moves, the one
- 32:21first in the party order is going to
- 32:22win. So if step two didn't result in any
- 32:24kind of switch, which means no Pokemon
- 32:26has a super effective move, then
- 32:28calculate the damage for each switch
- 32:30candidate you could do into the player's
- 32:32Pokemon with all of their moves, as if
- 32:34the move was just used by the Pokemon
- 32:36which just fainted.
- 32:37If a move does more than 255 damage,
- 32:40subtract 256 from that damage until it
- 32:42is 255 or lower. And then this is to be
- 32:45considered the damage for that move. If
- 32:47the first move of the first Pokémon
- 32:49being considered is a variable power
- 32:50move, set the damage of this move equal
- 32:52to the final Pokémon type matchup score
- 32:54from step one. Then outside of this,
- 32:56ignore all the variable power moves in
- 32:58terms of damage. Then in step four, find
- 33:01a Pokemon that has the most damage dealt
- 33:02in step three and switch to it. If
- 33:05multiple Pokemon tie for the strongest
- 33:06move, then tiebreaker is party order
- 33:08again. The first Pokemon with the
- 33:10strongest move gets to be switched in.
- 33:12If no Pokemon has a super effective
- 33:13move, which is a step two failure, and
- 33:15no Pokemon has any move that does
- 33:17damage, which is a step four failure,
- 33:19send out the first Pokemon in party
- 33:21order. So, that's a lot, but what does
- 33:23it actually mean in plain English? I
- 33:25would say the Gen 4 switch AI actually
- 33:26makes a lot of sense. It tries to pick a
- 33:28Pokemon strong into you with a super
- 33:30effective move. If it can't do that, it
- 33:32tries to pick a Pokemon that probably
- 33:34does the most damage against you. Of
- 33:35course, this isn't always exactly what
- 33:37happens, and we should be very careful
- 33:38with the most damage that there is a
- 33:40bias for the AI to switch in a Pokemon
- 33:42that has the same type as a Pokemon that
- 33:43just fainted, since the Pokemon that
- 33:45just fainted is going to use its moves
- 33:47with stab still applied. And there's
- 33:48also a bias to switch in the Pokemon
- 33:50with the same category as a Pokemon that
- 33:51just fainted. For example, if a physical
- 33:53attacker just fainted, it's a bit more
- 33:55likely the physical attack is going to
- 33:56switch in. And it's also a bit more
- 33:58likely that if your Pokemon is very weak
- 34:00to either physical or special moves, the
- 34:02AI is a bit more likely to send in a
- 34:04physical or special attacker,
- 34:05respectively. However, when I say
- 34:07likely, of course, all this can be
- 34:09calculated in terms of exact damage
- 34:11calculations. In terms of the bugs, the
- 34:13most important bug to be aware of is the
- 34:15overflow type check bug in the first
- 34:17stage of the AI and then later at very
- 34:19high levels, you also want to be aware
- 34:21of the overflow bug in terms of the
- 34:23damage AI as well. The other bugs are
- 34:25somewhat rare, but they can spring up if
- 34:27you're going for a very big streak in
- 34:28the frontier or if you're trying to beat
- 34:30a very difficult ROM hack. These are
- 34:31likely going to be things that you are
- 34:33tested on. Okay, so let's now talk about
- 34:35mid turn switch AI. Midterm switch AI is
- 34:38when the AI switches to another Pokémon
- 34:40while its current Pokémon is still
- 34:41alive. This would be an unexpected
- 34:44switch in terms of casual play. Midterm
- 34:47switch AI is very different to post KO
- 34:48AI. It's also something that's really
- 34:50important to be aware of as it's the
- 34:52most humanlike the AI can behave. If
- 34:54you're caught unaware by switch AI, it
- 34:56can easily lead to a loss. Now, the
- 34:58midterm switch AI is one big algorithm.
- 35:00And we're going to go over it in the
- 35:01same order as the code does. So, the
- 35:03first thing to be aware of is that
- 35:04switch AI does not care about move AI.
- 35:07Let's say I'm in some kind of scenario.
- 35:09Let's say I've got a Shuckle at one HP
- 35:11against a Jolon and Jolon has a really
- 35:13powerful move and it's always going to
- 35:14kill me. Obviously, a human would stay
- 35:17in with Jolon and attack Shuckle. But it
- 35:19doesn't matter for mid-turn switch AI.
- 35:21If midturn switch AI wants to switch,
- 35:23the move AI does not matter. Midturn
- 35:26switch AI is going to overrule it, and
- 35:27the game is going to switch instead of
- 35:29attack. So, it doesn't matter how
- 35:30logical it would be to Saiyan and use
- 35:32the move. The midturn switch AI runs
- 35:34independently. The next thing it does is
- 35:36check whether or not switching would be
- 35:38illegal. This check isn't particularly
- 35:40clever, though. So, let's look at what
- 35:42the AI does. If the AI is trapped by a
- 35:44move like sandum or bind, the AI is
- 35:47never going to switch. If the AI has
- 35:48used ingrain, the AI will also never
- 35:50switch. If you have the ability shadow
- 35:53tag, the AI is never going to switch. If
- 35:55you have the ability arena trap, the AI
- 35:57is never going to switch. And if any
- 35:59other Pokemon on the field, including
- 36:00the AI's alley Pokémon, has Magnet Pool
- 36:03and the Pokemon is a steel type, the AI
- 36:05will never try and switch that steel
- 36:06type. So, obviously, there's a few bugs
- 36:08here and a few huge gaps. The first one
- 36:11is that the AI does not fact whether or
- 36:12not it's a flying or levitating Pokemon
- 36:14against arena trap. That means if you
- 36:16have an arena trap duck trio and you're
- 36:18facing an Aerodactyl, Aerodactyl is
- 36:20going to think it's arena trapped and it
- 36:22can't switch out. The AI also doesn't
- 36:24factor in the fact that if you have
- 36:25shadow tag and it also has shadow tag,
- 36:27then shadow tag isn't actually trapping
- 36:28that Pokemon anymore. It doesn't run
- 36:30this check. The AI also doesn't factor
- 36:32in that it can never trap its teammate
- 36:34with magnet pool. It should only be
- 36:35enemies that can be trapped with magnet
- 36:37pool. And the AI also doesn't understand
- 36:38that the item shed shell always lets it
- 36:40switch. And then one of a bonus one, the
- 36:42AI has to have a valid Pokemon to switch
- 36:44to in order to be able to switch. Okay,
- 36:46so let's talk about perishong. This is
- 36:48the most predictable way to see the AI
- 36:50switch. If the AI's perishong count is
- 36:52one, it's always going to switch.
- 36:54There's no randomness involved here.
- 36:55Once the switch is triggered, it's going
- 36:57to run the post KO switch AI to decide
- 36:59what to switch to. Now, because of this,
- 37:00a perong AI is one of the easiest ways
- 37:02to abuse a free attack against the
- 37:04enemy. Let's say the enemy starts off
- 37:05with a completely innocent Pokemon that
- 37:06does no damage. If you perish against it
- 37:09and then switch out, the Pokemon you
- 37:11switch out to is guaranteed to get a
- 37:12free hit on a Pokemon the AI will have
- 37:14to switch in against it with post KO
- 37:15switch AI. Okay, let's talk about Wonder
- 37:17Guard. So, Wonder Guard has a very
- 37:18strange check. This is specifically a
- 37:20check for the player is using Wonder
- 37:21Guard, of course. So, first up, the AI
- 37:24will never switch against Wonder Guard
- 37:25if this is a doubles match. Next, the AI
- 37:28checks it currently active Pokémon. Does
- 37:30it have a move that hits the player's
- 37:31wonder Pokémon super effectively? Any
- 37:34kind of variable type move will use its
- 37:35correct typing here. That includes
- 37:36things like hidden power. If the AI does
- 37:38not have an attack that hits Wonder
- 37:40Guard, search the party for non-fainted
- 37:42Pokémon. And then we search for moves
- 37:44that can hit Wonder Guard super
- 37:45effectively. Again, variable type moves
- 37:47will use the correct type here. And then
- 37:50each time the AI finds a move that hits
- 37:52Wonder Guard super effectively, it has a
- 37:54two/3 chance to switch to it. It will
- 37:56repeat this check until there are no
- 37:57Pokemon left to check. So that means if
- 37:59the enemy team has a Pokemon with two
- 38:00super effective moves against one guard,
- 38:02it would have an 8 ninth chance to
- 38:04switch to it because both of the moves
- 38:05trigger the two/3s chance. Now, if the
- 38:08switch activates on any of these checks,
- 38:10the AI is guaranteed to switch to that
- 38:12Pokémon with that move. It will not run
- 38:14regular post KO switch AI. Crucially
- 38:17though, the AI is never guaranteed to
- 38:19switch out against Wonder Guard. And
- 38:20this makes this somewhat unreliable. You
- 38:22cannot know exactly when it's going to
- 38:24switch out. It's just very likely to
- 38:26switch out if it is possible. The next
- 38:28part of switch AI is midter. The next
- 38:30part of midturn switch AI is no damaging
- 38:32moves. This sounds like a rather simple
- 38:33check, but it's actually quite
- 38:34complicated.
- 38:36First, the AI checks if it can hit any
- 38:38of your Pokemon with a damaging move in
- 38:39doubles. This includes both of your
- 38:41Pokémon. It detects damage based on the
- 38:43same immunity check. Remember, this
- 38:45immunity check is more than just a type
- 38:46check. It does include normalize,
- 38:48levitate, things that affect levitate,
- 38:50scrappy, and so on. It does not include
- 38:52a PP check, though. Moves that are out
- 38:54of PP are still seen as being able to do
- 38:56damage. If any move deals damage, it
- 38:58won't switch in this section. It also
- 39:00won't switch if it only has zero or one
- 39:02attacking moves. Otherwise, meaning it
- 39:04has two or more damaging moves and none
- 39:06of those moves deal damage, it looks for
- 39:09the entire party for non-fainted
- 39:10Pokémon. Every single time you find a
- 39:13move on that Pokémon, if that move is
- 39:15super effective, it has a two/3 chance
- 39:17to switch to that Pokémon. This stacks
- 39:19with every single move that the Pokémon
- 39:20has. If step one did not cause a switch,
- 39:23loot through the entire team again and
- 39:25look through all their moves again. If
- 39:27the move does neutral damage against the
- 39:28player, there's a 50% chance to switch
- 39:30to it. Obviously, again, if switching is
- 39:32chosen, we always switch the Pokémon
- 39:34that triggered the switch. We do not run
- 39:35regular postki switch AI. So, next up is
- 39:38ability absorbing. This is a bit of a
- 39:40strange but logical check. I'm going to
- 39:42go through this one a bit faster. First
- 39:43up, the AI is unlikely to switch if it
- 39:45has a super effective move. It stops
- 39:47two/3s of the time. Then we next check
- 39:50if the AI has been hit by a damaging
- 39:51move in the last turn. We also check the
- 39:54type of that damaging move that was just
- 39:56used. If the damaging move was fire,
- 39:58water, or electric, we set the ability
- 40:00to check to be flash fire, water absorb,
- 40:02or volt absorb respectively. So
- 40:05basically, this ability absorbing check
- 40:06is entirely about fire, water, electric,
- 40:09flash fire, water absorb, volt absorb,
- 40:11and it must be a damaging move. Now, if
- 40:13the current Pokemon out has the correct
- 40:15ability, for example, if the player just
- 40:17used a fire attack and the AI has a
- 40:18flashfire Pokemon, it won't switch. This
- 40:21might sound like a useless check, but
- 40:22it's actually not because the player
- 40:24could easily have mold breaker. Or
- 40:26otherwise, if all these checks pass, the
- 40:27AI looks for its team to find a Pokémon
- 40:29with a viable switch that has the
- 40:31correct absorb ability into your last
- 40:33attack. So, for example, we just use
- 40:35Thunderbolt against the enemy. The enemy
- 40:37has a Jolon in the back. it has a 50%
- 40:40chance to switch to Jolon because Jolon
- 40:42has the ability volta absorb. So next up
- 40:44is natural cure. You'll be careful about
- 40:45this one. Natural cure is really just a
- 40:47sleep check. So the AI is never going to
- 40:49trigger this switch unless it has
- 40:52natural cure and it is asleep
- 40:54specifically. No other status triggers
- 40:56this and it has more than 50% HP
- 40:59remaining. It then runs a separate check
- 41:00if the last move was non-damaging.
- 41:02There's a 50% chance to trigger post KO
- 41:04switch AI. Next, if the last move was
- 41:07damaging, we run the immune and switch
- 41:09procedures, which I'm about to talk
- 41:10about in a second. And for the immune
- 41:12and switch resist, there's a 50% chance
- 41:14to run on the Pokémon found. And
- 41:17finally, if all of that fails, it still
- 41:19has a 50% chance to switch anyway,
- 41:21triggering regular post KO switch AI.
- 41:24So, basically, if a Pokémon with natural
- 41:26cure is asleep and at high HP, it's very
- 41:28likely to switch. There's a brief
- 41:30interlude here, which is the AI in
- 41:32mid-turn switch now runs a very specific
- 41:34check. It tries to see if it has a super
- 41:36effective move against the player. Every
- 41:38time it sees a move that's super
- 41:39effective against the player, there's a
- 41:4090% chance to stop. Now, stop here means
- 41:43that we can't switch anymore. Nothing
- 41:45beyond this in the document is going to
- 41:47cause a switch. And this stacks for
- 41:49every attack. So, if it has multiple
- 41:50super effective moves, it has multiple
- 41:52chances to trigger a 90% stop. But
- 41:55critically, this is not 100% reliable,
- 41:57which means even if the AI has a super
- 41:59effective move against you, it can still
- 42:00switch out if later checks are met.
- 42:03Next, the AI counts all the positive
- 42:05stat boost it has. If these add up to
- 42:07four or more, the AI is never going to
- 42:09switch. This is a really important one
- 42:11to remember. It means that, for example,
- 42:13if the AI is boosted to plus three
- 42:14attack, plus two speed, and even if it
- 42:17has minus 6 defense and minus 6 special
- 42:19defense, it will still never switch
- 42:21because the positive stat boosts of plus
- 42:23three and plus two add up to plus five,
- 42:26which is higher than four. So, an
- 42:27opponent with a lot of stat boost will
- 42:29never trigger switches past this in the
- 42:31document. So, next up is what's called
- 42:33immune switching. For this check to run,
- 42:36the AI must have been hit by a move.
- 42:38That move must be attacking, and it must
- 42:40have acted first in the last turn. In
- 42:42other words, the player acted second. It
- 42:45does not have to be fast in the player
- 42:46fist to trigger. For example, if the AI
- 42:48uses quick attack and then you use
- 42:50flamethrower, obviously you acted
- 42:52second, even if your Pokemon was faster.
- 42:54It can also trigger if the player uses a
- 42:56move like counter or miracote or
- 42:57avalanche, which has decreased priority.
- 43:00It has to be an attack. So if it's a
- 43:01status move, this stops. We then search
- 43:03the party for Pokémon which is immune to
- 43:05last attack used against the AI. This
- 43:09includes all the previous checks
- 43:10identifying normalize, mold breaker,
- 43:12levitate, wondergard, and so on. But it
- 43:14does not include abilities like a vault
- 43:15absorb. So as an example, the player
- 43:18just used the move earthquake and went
- 43:20second. And in the back, the AI has a
- 43:22Pokemon like Zatu, which is immune to
- 43:24earthquake. Now, for any Now, for any
- 43:26Pokemon we find in the back which has an
- 43:28immunity to that move, we find moves
- 43:30that are super effective against the
- 43:31player. For each move found, there's a
- 43:3450% chance to swap to that Pokemon. So,
- 43:36again, let's say we have Zatu in the
- 43:37back. I've used Earthquake and Zatu has
- 43:39a move that's super effective against
- 43:41me. Let's say it has drill peek. There's
- 43:43a 50% chance it can switch Zatu right
- 43:45then and there. And the super effective
- 43:47check also correctly checks the right
- 43:48abilities in the same way as above. Now,
- 43:50as with many cases with switch AI,
- 43:52because this is per move, it stacks. So,
- 43:54let's say the AI has a Swamper in the
- 43:56back and I've just used Thunderbolt.
- 43:58Let's say Swamper has Earthquake and
- 43:59Mudshot. Because Earthquake and Mudshot
- 44:01are both super effective against me,
- 44:03there's a 50% chance it runs checks for
- 44:05both of them and a 75% chance to switch
- 44:07to Swampert overall. This check repeats
- 44:09for every Pokemon in the enemy party,
- 44:11which is immune to the move the player
- 44:12just used. And of course, it has to have
- 44:14a super effective move against that
- 44:15Pokemon. We then move on to the resist
- 44:17switch. This is exactly the same as the
- 44:19immune switch, except instead of
- 44:21checking for a Pokemon that is immune to
- 44:22the move that you just used, it checks
- 44:24for a Pokemon that resists the move that
- 44:25you last used. And every time it finds a
- 44:27super effective move, there's a 1/3
- 44:29chance to switch instead of 50% chance
- 44:31to switch. Resist switches are of course
- 44:33a lot more likely to happen. Whenever
- 44:35you use an attacking move when you're
- 44:36slower, it's quite likely there is a
- 44:38Pokemon on the enemy team that has
- 44:39resist switch into that, particularly in
- 44:416v6 singles. Now, as I said in the
- 44:43natural cure section, the natural cure
- 44:45checks run resist and immune switches,
- 44:47and the chance to switch per move is 50%
- 44:49instead. Okay, so in plain English, what
- 44:51can we learn about midturn switch AI? I
- 44:54would say mid-turn switch AI in general
- 44:56works quite well. Its checks aren't
- 44:58perfect, but it does correctly
- 44:59understand typing, and it does correctly
- 45:01apply abilities such as mold breaker and
- 45:03levitate. However, so long as you go
- 45:06first in a turn, switching is actually
- 45:08very rare. You're very unlikely to have
- 45:10a Pokemon with the ability Wonder Guard.
- 45:12Parachong is obviously very rare.
- 45:14Players don't use Parachong very often
- 45:16and the enemy sets with Parachong are
- 45:17not very deadly at all. And against a
- 45:19strong opponent, the no damaging moves
- 45:21check passing is rare. In the Frontier,
- 45:23most Pokémon have quite good type
- 45:25coverage. And also in the main game,
- 45:26you'll quite like to face an enemy
- 45:27trainer with decent type coverage. Being
- 45:29able to do no damage at all is quite
- 45:31rare. It would probably be exclusive to
- 45:32a Pokémon with only ground moves, for
- 45:34example. I would also say the natural
- 45:36cure sleep switch option is quite rare
- 45:38as well. It probably only happens when
- 45:40an enemy Pokemon with natural cure uses
- 45:41rest. The one that comes to mind in the
- 45:43frontier, of course, is Alaria. So, this
- 45:46leaves one major way the AI can switch
- 45:48mid turn, which is the immunity and
- 45:50resist switching. You can avoid this
- 45:53simply by being faster or by not
- 45:55attacking until you're ready to attack.
- 45:57Generally, of course, it's important to
- 45:59go first as much as possible anyway,
- 46:00just like it's generally advised to kill
- 46:02enemies as fast as possible anyway. When
- 46:04a player does use a slower Pokémon,
- 46:06typically these are stool and setup
- 46:08Pokémon, and you aren't likely to be
- 46:09attacking them for quite a while, which
- 46:11means you can't trigger the immune or
- 46:12resist switch anyway. I will say it's a
- 46:14bit of a shame that Pokémon already
- 46:16punishes players for using slow
- 46:17offensive Pokemon like Rydon, but
- 46:19mid-turn switch AI just gives you
- 46:20another reason to avoid them. But, and
- 46:23this is probably the most important
- 46:24point, sometimes going second is
- 46:26unavoidable. Fast enemies do exist. You
- 46:29could be facing a Jolon or an
- 46:31Aerodactyl. In these scenarios, it's
- 46:34very important to get into the habit of
- 46:35clicking different moves when possible.
- 46:38So, for example, if you're facing a fast
- 46:40enemy Pokemon and you have two moves,
- 46:42both moves will two KO the enemy. You
- 46:44want to use a different move on the
- 46:45second turn. That way, you're going to
- 46:47catch an immune or resist switch trying
- 46:49to switch into your first move. This is
- 46:51a small but worthwhile habit to develop.
- 46:53I also want to say remember that the
- 46:55immune AI does not check for abilities
- 46:58like volta absorb that is run separately
- 47:00earlier on. I also want to say there are
- 47:02holes in the switch AI. You might
- 47:04realize that earlier we didn't mention
- 47:05dry skin against water moves. The AI
- 47:07does not consider this in ability
- 47:09immunity and also does not consider this
- 47:11in regular immunity. So you are not
- 47:13going to force in a dry skin Pokémon by
- 47:15using a water type move. Now it is
- 47:17possible to abuse the switch AI in other
- 47:19ways but it can be quite difficult. Now
- 47:21abusing the switch AI is possible but
- 47:22the randomness makes it hard. Let's say
- 47:25I'm face let's say I'm facing the
- 47:26following team or powdon 2 and tokiss 3.
- 47:30I could bring Mantine to this battle.
- 47:32Mantine has surf and ice beam. Normally,
- 47:34when Hippowon is out, we'd want to use
- 47:36Surf against it as Surf does the most
- 47:37damage. However, we check this and we
- 47:39realize that Earthquake and Sandum are
- 47:41both attacks which do not do any damage
- 47:43at all against Mantine. This triggers no
- 47:46damaging moves in the switch AI and so
- 47:48the switch AI is able to randomly switch
- 47:50to Togekiss on every turn. Because the
- 47:52AI is quite to switch to Togekiss and
- 47:53Togekiss has two neutral moves against
- 47:56Mantine, it's about 75% chance to switch
- 47:58to in. And we might want to use ice beam
- 48:00or confuse rate instead of surf half
- 48:03protecting tokus to come in each turn.
- 48:05Now this sounds very clever where we're
- 48:07trying to predict tokus coming in and we
- 48:08want to use a move that's better against
- 48:09tokus than it is against. However, we
- 48:12want to be careful about not being too
- 48:13clever here. Obviously Hippowon might
- 48:15stay in. A 25% chance to stay in is
- 48:18quite real. If it does stay in is either
- 48:20going to use swagger or yawn. Both of
- 48:22these moves can be problems for Mantine.
- 48:24So even though Hippowon is quite likely
- 48:25to be switched out, we might want to use
- 48:27surf anyway. just hedging on the idea
- 48:29that it might be staying in. Okay, so to
- 48:31understand the rest of this guide,
- 48:32you're going to have to have a bit of a
- 48:33basic idea about how move AI selection
- 48:36works. So, let's start off with a quick
- 48:38example. I have the Pokemon Gengar 1 and
- 48:41I'm facing an enemy with a Pokemon
- 48:42Gaston one. The way this works with
- 48:44Smart AI is that each of Gastradon's
- 48:46moves gets a score. Let's see what that
- 48:49looks like. First up, Waterfall gets a
- 48:51score of plus zero. This is no change.
- 48:54Earthwick gets a score of minus3.
- 48:57Recover gets a score of minus 11 and
- 48:59miracode could get a score of plus zero.
- 49:02I explain why these I explain why these
- 49:04scores happen here. It's to do with how
- 49:06basic and smart AI work. You can also
- 49:08find the AI procedures for all moves on
- 49:10those website. The way this works though
- 49:12is that after scoring each move, the AI
- 49:14is going to pick a move with the highest
- 49:16score. Obviously, in the table above,
- 49:18there are two moves that scored highest.
- 49:20Waterfall and Miraote both got plus
- 49:22zero. Since they both scored plus zero,
- 49:24it's going to randomly pick between one
- 49:26of those moves. Now, an important thing
- 49:28to understand about the AI is it is not
- 49:30deterministic. We could repeat the same
- 49:32example. This time, Mira gets a plus4
- 49:34score. This is also possible and simply
- 49:37due to the fact that a smart AI might
- 49:39give Mirat a plus4 score against Gengar.
- 49:41Of course, if Miraote does get a plus4
- 49:43score, it will beat Waterfall a plus
- 49:45zero and Miroot is going to be used
- 49:47against Gengar. Because both of these
- 49:49scenarios are see are somewhat likely
- 49:51and because the chance of getting a
- 49:52plus4 score in the smart AI is around
- 49:5450%. We can say that overall the chance
- 49:56that Gastron uses Miracle on turn one is
- 49:58about 75% chance and the chance it uses
- 50:01Waterfall on turn one is about a 25%
- 50:03chance.
- 50:05This is obviously a very powerful
- 50:06conclusion. It might mean that we don't
- 50:08want to use Shadow Ball against Gastadon
- 50:10as Miraode is quite likely and instead
- 50:12of going for Shadow Ball, we could
- 50:13instead go for confuse Ray. Indeed,
- 50:16confuse me would be a much better idea
- 50:17here. Of course, if smart AI is not
- 50:19active for this trainer, Miraote can
- 50:21never get plus4, and so it would be
- 50:2350/50 to Miradeote or Waterfall, and it
- 50:25then might be a bit hard to know what
- 50:26move to use. If the basic AI flag is
- 50:29also not active for this trainer, then
- 50:31Gastroadon is simply going to be at plus
- 50:32zero on every move, and it's going to
- 50:34randomly pick one of its four moves.
- 50:36Let's do another example to try and hit
- 50:38this home. I have Gengar one out again,
- 50:40and this time I'm facing Aerodactyl 2.
- 50:42Here, Aerodactyl is going to score plus
- 50:44zero on bite. The strongest move of the
- 50:47AI is often going to score plus zero.
- 50:49The moves fire fang, thunder fang, and
- 50:51ice fang all score minus one against
- 50:53Gengar. And they do this because they
- 50:55see that bite does more damage than
- 50:57them. The way we rationalize this is
- 51:00that the AI likes to dep prioritize
- 51:01using attacks that don't do as much
- 51:03damage as one of its other attacks. This
- 51:05is generally true, but we need to be
- 51:07really careful about the exceptions, and
- 51:08we will talk about the exceptions in the
- 51:10later part of this guide. Some moves
- 51:12like explosion are ignored in this step.
- 51:14This means that if the AI's best move is
- 51:16explosion, its next strongest attack
- 51:17after explosion will not get minus one
- 51:19in the AI here. I will also say that if
- 51:22two or more moves do the exact same
- 51:24damage against Gengar with their max
- 51:26damage roll, then all those moves we
- 51:28left at plus zero. None of them are
- 51:30going to be dep prioritized as being
- 51:31weaker than anything else. Now, for the
- 51:34rest of this guide, I'm going to assume
- 51:35that basic and smart AI are both active.
- 51:38This is usually true for the frontier
- 51:39outside of the very early game. It's
- 51:41also usually true for ROM hacks and very
- 51:43difficult boss fights. Something to be
- 51:45really something really important to be
- 51:47aware of is that in-game fights might
- 51:49have additional flags like risky AI.
- 51:51These do not exist in the frontier, but
- 51:53they can easily exist in various
- 51:54different ROM hacks. If these flags are
- 51:57active, you're also going to have to
- 51:58account for them. They're also going to
- 51:59change the way that the AI scores moves.
- 52:02However, the fundamental logic of how
- 52:03this guide is still going to apply. So,
- 52:06I'm going to do a quick run through of
- 52:07some important AI notes and bugs. These
- 52:09are things that newer players quite
- 52:11often get wrong. So, first, as I said
- 52:13before, the mid turn switch AI always
- 52:15runs before and prioritizes over move
- 52:18AI. The second thing is that the AI
- 52:19almost never cares about how much damage
- 52:21the player can deal to it. This might be
- 52:23slightly counterintuitive. For example,
- 52:25perhaps you easily twoot the enemy with
- 52:27a move like surf, and this would mean
- 52:29that it's pointless to use a move like
- 52:30iron defense. The AI is still going to
- 52:33properly use iron defense in this
- 52:34scenario, though. As humans, we know
- 52:36that would be a huge mistake. But this
- 52:38is just how the AI operates. It's more a
- 52:40set of algorithms than any kind of true
- 52:42intelligence.
- 52:43Next up, the AI will almost always cheat
- 52:45to see your exact item. For example, if
- 52:47you have a choice scarf, it will know
- 52:49that it is slower than you. The AI also
- 52:51cheats to see your exact stats, your
- 52:53defense, special defense, HP, attack,
- 52:55and everything, and will cheat to see
- 52:57your current HP as well. This is never
- 52:59information that is hidden from the AI.
- 53:01Even though, of course, in regular
- 53:03gameplay, your Infernape might have a
- 53:05lot of defense EVs or might not have a
- 53:07lot of defense EVs, and a regular human
- 53:09wouldn't know before facing you. Next up
- 53:11is that the AI does not know any of your
- 53:13moves until you use them. This can
- 53:15matter in a few scenarios where the AI
- 53:17quite often looks up if you have a move
- 53:18like protect before it uses sky attack.
- 53:20The next one is a big one. The AI almost
- 53:23never knows what your exact ability is.
- 53:25The AI is going to assume that you have
- 53:27a regular ability for that Pokemon. So,
- 53:29for example, if you have a Jolon, it's
- 53:31going to assume that it has Volt Absorb
- 53:32because the only legal ability on Jolon
- 53:34is Vault Absorb. The AI will only change
- 53:37this information once it sees text being
- 53:39printed out. For example, if it tries to
- 53:42use Earthquake on Bronzong and it sees
- 53:44text like Levitate makes ground moves
- 53:46miss, it will now know that Bronzong has
- 53:49levitate. However, if you switch out
- 53:51Bronzong, it will immediately forget
- 53:53that Bronzong has levitate. even if you
- 53:55switch it back in in the same fight. For
- 53:58Pokemon that could have multiple
- 53:59abilities, for example, Bronzong could
- 54:01have levitate or it could have heat
- 54:02proof. Every single time it runs a
- 54:05check, it's going to randomly guess
- 54:06whether or not you have levitate. As
- 54:08another example, against Honkrow,
- 54:10Honchko can have super luck or insomnia.
- 54:12Half the time it's going to guess you
- 54:14have insomnia, and half the time it's
- 54:15going to guess you don't have insomnia,
- 54:17and then it could use a move like
- 54:18hypnosis. There are a few very rare
- 54:20cases where the AI will cheat to see
- 54:22your exact ability before it knows it.
- 54:24These are usually for damage altering
- 54:25abilities like solid rock or for
- 54:27trapping abilities like shadow tag. Next
- 54:30one is unlike in generation 3, the AI
- 54:32does not foresee when a quick claw is
- 54:34going to be activated in a turn. It also
- 54:36cannot know who's about to win any kind
- 54:38of speed tie. However, if a Pokemon does
- 54:40have quick claw, the AI is going to
- 54:42assume that 20% of the time that that
- 54:44Pokemon is going to move first and that
- 54:46could change the behavior of procedures
- 54:48in the AI that care about who is going
- 54:49to move first in terms of speed. Next
- 54:52up, the AI always knows its exact stats,
- 54:54moves, items, ability, and the stats
- 54:56move items and abilities of any of its
- 54:58allies. Even if you are the ally in a
- 55:00tag battle, the AI is never going to be
- 55:02in the dark about this. Next up, and
- 55:05this is a big misconception, the AI does
- 55:07not care about accuracy at all. Let's
- 55:09say, for example, that it could use Zap
- 55:10cannon or it could use a lace. If both
- 55:12of these moves score plus zero, it will
- 55:15randomly pick between both moves. It
- 55:17doesn't care that obviously Zap cannon
- 55:19has a much higher chance to miss than
- 55:20air release does. You also want to be
- 55:22really careful around AI effectiveness
- 55:24checks. I won't go into this in detail
- 55:26in the video, but in the guide you can
- 55:28read more about this. Basically, things
- 55:30like adaptability and tinted lens and
- 55:32solid rock can change how these
- 55:33interactions work. There are also a few
- 55:35cases where the AI is going to refuse to
- 55:37use a move, and these are mostly to make
- 55:39sure it's acting legally. For example,
- 55:41it cannot use a move once that move is
- 55:42out of PP. It also can't use a different
- 55:45move if it is choice locked itself into
- 55:47a different move. And it can't use a
- 55:48move where it is unselectable because of
- 55:50torment or disable or a move like taunt
- 55:53or a move like encore. But, and this is
- 55:56really important to understand, even if
- 55:57a move is impossible to select, it will
- 55:59still be assumed as valid in other
- 56:01checks. For example, let's say a choice
- 56:04band Pokémon is locked into earthquake
- 56:05and I have a Straptor out. Strap is
- 56:08immune to earthquake and that choiceband
- 56:10Pokémon cannot touch strap at all.
- 56:13However, the AI does not understand
- 56:14this. If the AI sees that it also has
- 56:16Rock Slide, it'll think, "Oh, I can just
- 56:18use Rock Slide against the Seraptor, and
- 56:20it won't trigger any other different
- 56:22parts of the AI." Finally, there's also
- 56:24another note here that the immune super
- 56:26effective bug mentioned earlier in the
- 56:27Switch AI section also applies to
- 56:29various super effective checks. So,
- 56:31quite often it'll think that Thunderway,
- 56:32for example, is super effective against
- 56:34Gliscore. However, this is not
- 56:36completely consistent and I recommend
- 56:37checking Mo's website to be completely
- 56:39sure about interactions around this.
- 56:41Okay, so we just talked a lot about the
- 56:42AI and talked a lot about how
- 56:44unpredictable it can be. So the real
- 56:45question that nuzlockers want to answer
- 56:47and a lot of frontiers want to know the
- 56:49answer to as well is when is the AI
- 56:51going to be predictable? The absolute
- 56:53top one and the most common example is
- 56:55what's called kill AI. This is the main
- 56:57source of predictability from the AI.
- 57:00And this is in generation 4. If the AI's
- 57:03maximum damage roll on a move can kill
- 57:05your Pokémon, that move is going to get
- 57:07a plus4 score in kill AI. Plus four
- 57:10score is usually enough to win higher
- 57:12scoring move and be chosen by the AI.
- 57:14This can then lead to a lot of strategy.
- 57:16For example, if we know that
- 57:18Earthquake's going to KO our Heatran,
- 57:20then we can simply swap out to a flying
- 57:21Pokémon, being safe in the knowledge
- 57:23that the enemy AI is about to use
- 57:25Earthquake. A question then becomes,
- 57:27what if multiple moves all kill your
- 57:29Pokémon? Let's say I have a Metapod with
- 57:31one HP remaining. Obviously, every
- 57:33single attack in the game is going to
- 57:34kill Metapod. So any attack that the
- 57:37enemy AI has is all going to get a plus4
- 57:39score. So long as it's a move that
- 57:41considers itself to be a move that can
- 57:43kill under kill AI, which is most
- 57:45damaging attacks. And of course, if all
- 57:46these moves are going to score a plus4
- 57:48in the kill AI, they're all going to be
- 57:50randomly chosen against. So for example,
- 57:52flamethrower scores plus4 against
- 57:54Metapod, and so does tackle. This means
- 57:56that we don't know for certain whether
- 57:57or not it's going to use flamethrower or
- 57:59tackle when it tries to kill Metapod.
- 58:01Now, there are quite a lot of quirks,
- 58:03bugs, and exceptions to the way that the
- 58:04killi works in Gen 4. Let's go over a
- 58:06few big points to make quickly. First
- 58:08up, the AI never assumes or checks or
- 58:10whether or not it's going to get a
- 58:11critical hit against the player. Next
- 58:12up, the AI never includes any kind of
- 58:14random damage variants, which is a roll
- 58:16or range commonly referred to. Of
- 58:17course, the Gen 3 AI does include this,
- 58:19but the Gen 4 AI does not. This is a big
- 58:22one. If you have a super effective
- 58:23damage reduction berry, like a yachi
- 58:25berry, the AI does not see this as
- 58:27reducing damage. So if ice beam does
- 58:29150% damage to Garchomp without Yachi
- 58:31Berry and it does 75% with Yachi Berry
- 58:33included, the AI is going to think that
- 58:35it does 150%. Focus sash meaning that
- 58:38Pokemon survive moves is completely
- 58:39ignored. Another big one is priority
- 58:42kill AI. So these moves gets plus six
- 58:44and not plus four. For example, extreme
- 58:46speed, acrojet, quick attack. These
- 58:48moves get used instead of regular kill
- 58:50moves if both kill. Another big one to
- 58:52understand if the move has other AI
- 58:54running on it. For example, the AI likes
- 58:56using icy wind based on who is faster.
- 58:58This is included in the scoring. This
- 59:00means that if the AI is slower and icy
- 59:02wind kills, it might score plus six
- 59:04instead of plus4. But if the AI is
- 59:07faster than the player and Icy wind
- 59:08kills, it might only score plus one
- 59:10instead of plus4. This is a big bug. The
- 59:13AI does not see the life orb damage
- 59:15boost. So, if a life orb attack is meant
- 59:17to do 120% damage with life orb included
- 59:20and 92% without life orb included, the
- 59:23AI is going to think that the attack
- 59:25does 92%. It does not see the life orb
- 59:27damage boost. It also does not see the
- 59:29damage from the item metronome boosting
- 59:31the damage. The AI also cheats to see
- 59:34the abilities you have that alter the
- 59:35damage output here. For example, if you
- 59:37have heat proof, dry skin, or thick fat,
- 59:40the AI will cheat to see that they do
- 59:42more or less damage respectively. Next
- 59:44up, unless otherwise stated, the AI does
- 59:47correctly handle most other damage
- 59:49multipliers. So things like stab
- 59:51boosting, choice specs, magnet, reflect,
- 59:53blaze, huge power, etc. These all work
- 59:56and do get correctly accounted for in
- 59:58the AI. The AI will also correctly
- 1:00:00calculate the damage of moves like
- 1:00:02seismic toss and dragon rage. Now, as we
- 1:00:04said earlier, a lot of moves could have
- 1:00:06their power boosted under certain
- 1:00:07circumstances. The AI in general does
- 1:00:10not understand how this increased damage
- 1:00:11applies. This matters a lot for kill AI
- 1:00:13and when the AI tries to understand what
- 1:00:15moves are the strongest. In particular,
- 1:00:17multi-hit moves, so for example,
- 1:00:19something like double slap are only
- 1:00:21assumed to hit once in terms of the kill
- 1:00:23AI and the highest damage AI. Moves like
- 1:00:25payback, avalanche, and revenge are all
- 1:00:27assumed to use their regular base power
- 1:00:29and never double in power, even if the
- 1:00:31AI sees that it is slower. The reckless
- 1:00:33and recoil damage boost is not
- 1:00:34calculated correctly. Facade and status
- 1:00:36is also not doubled correctly in damage.
- 1:00:39There's also a lot of moves that double
- 1:00:40power based on a particular scenario
- 1:00:41happening, such as using Brian versus a
- 1:00:43low HP target or using wake up slap on
- 1:00:45an opponent that is sleeping or using
- 1:00:47earthquake or magnitude against a target
- 1:00:49that is underground. The AI never
- 1:00:51understands to double the damage in
- 1:00:53these scenarios. Future Sight and Doom
- 1:00:55Desire do not correctly use Typus damage
- 1:00:57in Gen 4, but instead the AI thinks that
- 1:00:59they use stab and effectiveness like
- 1:01:00normal attacks. Sigh uses random damage.
- 1:01:04consecutive hit power moves like roll
- 1:01:06out or fury cutter are not getting their
- 1:01:08damage boost increased. And finally,
- 1:01:10Weatherball is very broken in the
- 1:01:11damaging AI. It does not understand how
- 1:01:13to adjust type adjustment on a damage
- 1:01:15step specifically, although the other
- 1:01:17checks do understand its typing. This
- 1:01:19makes Weatherball extremely weird and
- 1:01:21extremely random. So, next, and most
- 1:01:24importantly, some moves are not included
- 1:01:26in kill AI damage calculations. None of
- 1:01:28these moves ever get plus four, even if
- 1:01:31they result in a guaranteed kill on the
- 1:01:33player. They also never adjust the
- 1:01:34priority of regular damaging moves on
- 1:01:36that set. So, for example, if a set has
- 1:01:39explosion and earthquake, earthquake
- 1:01:41will never get a minus one score for
- 1:01:43being weaker than explosion. You'll find
- 1:01:45a full list of the moves here. There are
- 1:01:47a few big ones I want to point out for
- 1:01:48the video. So, flail and reversal are
- 1:01:50ignored for kill AI. Fling is ignored
- 1:01:52for kill AI. Self-destruct and explosion
- 1:01:55aren't included. Dream Eater is
- 1:01:56included. Hyperbeam, hydro, hyperbeam,
- 1:01:59and hyperbeam like moves are not
- 1:02:00included. Solar beam is not included.
- 1:02:03Focus punch is not included. And
- 1:02:04superpower is not included. So, if you
- 1:02:06got this far, you'll probably have a
- 1:02:08good basic understanding of how the air
- 1:02:09operates. It's time to talk about
- 1:02:10doubles. Doubles is obviously quite a
- 1:02:12lot more complicated than singles. So,
- 1:02:14let's start off with a continuation of
- 1:02:16an earlier example. Let's say I have two
- 1:02:18Pokémon, Gengar 1 and Gardivoir one, and
- 1:02:21I'm facing an enemy with Gastradon one.
- 1:02:24For simplicity, we're just going to say
- 1:02:25that Guard is synchronized and both of
- 1:02:27my Pokemon are full HP. So, here's the
- 1:02:29question. What is the AI going to do
- 1:02:30with Gastraodon here? The basic way
- 1:02:32doubles works is actually quite simple.
- 1:02:34Gastradon has both its moves scored
- 1:02:36against both Gengar and Gardevoir. We
- 1:02:38saw that earlier. Its highest scoring
- 1:02:40moves against Gengar are waterfall and
- 1:02:41Miraote. And against Gardavar, its
- 1:02:44strongest scoring moves are Earthquake
- 1:02:45and Miraote. The doubles AI then does
- 1:02:47what the singles AI does. It has to pick
- 1:02:49one of the moves with the highest score.
- 1:02:52So in this example, it's either randomly
- 1:02:53going to choose Waterfall or Miraote
- 1:02:55against Gengar, and it's going to
- 1:02:56randomly choose Earthquake or Miraote
- 1:02:58against Gardevoir. Up until now,
- 1:03:00everything is the same as singles,
- 1:03:01except we've considered both targets.
- 1:03:03Now that we've chosen Waterfall against
- 1:03:04Gengar, and Miradeote against Gardivoir
- 1:03:07as the strongest moves, and they both
- 1:03:08score plus zero, what Gastadon is then
- 1:03:11going to do is pick the move that has
- 1:03:13the best overall score considering both
- 1:03:15targets. Since both targets are stuck at
- 1:03:17plus zero, it's obviously randomly going
- 1:03:19to choose between using waterfall on
- 1:03:21Gengar or using Miraote on Gardevoir.
- 1:03:24Now, because the AI is
- 1:03:25non-deterministic, this could have
- 1:03:26easily come out in a different way. For
- 1:03:28example, let's say Miraote scored plus4
- 1:03:31against Gengar. Well, now it sees that
- 1:03:32Miraote has a highest score against
- 1:03:34Gengar of plus4. And because plus4 beats
- 1:03:36all the moves on Gardevoir, because it's
- 1:03:38best move against Gardavar, it's only
- 1:03:40plus zero. Plus four is going to beat
- 1:03:42plus zero in the doubles AI step. The
- 1:03:45doubles AI is going to see that miracote
- 1:03:46is a better move to use against Gengar
- 1:03:48than any move is to use against
- 1:03:49Gardevoir. And because of this,
- 1:03:51Gastroadon is guaranteed to use Miracote
- 1:03:53in this scenario. Things can get even
- 1:03:56more complicated, though. Consider
- 1:03:57facing the following enemies in doubles:
- 1:03:59Arcanine one and Ursing one. Both
- 1:04:02Arcanine 1 and Ursing One are going to
- 1:04:04score all of their moves against both of
- 1:04:06the players Pokémon, and all these moves
- 1:04:08can get a score. However, Arcanine and
- 1:04:10Ursing will also score all their moves
- 1:04:12against each other. Usually when the AI
- 1:04:14tries to use a move on its partner, it
- 1:04:16results in a score of minus30, which is
- 1:04:18essentially never pick this. However, if
- 1:04:21Ursing has guts, then Arkine's Willow
- 1:04:23Wisp is actually going to score plus
- 1:04:24three into its partner Ursing. In other
- 1:04:27words, the AI likes to activate Guts
- 1:04:29using Willowisp when it possibly can.
- 1:04:31Plus three as a score is quite like to
- 1:04:33win as high score overall, even
- 1:04:35including the players Pokémon as
- 1:04:36targets. And so Arkline one using
- 1:04:38Willow-hisp against Ursing One is
- 1:04:40actually quite likely here. Activating
- 1:04:42guts on your ally like this is an
- 1:04:44example of something we're going to call
- 1:04:45tag strategy in doubles. And there are
- 1:04:47quite a lot of tag strategies in
- 1:04:49generation 4 doubles. Now for the
- 1:04:51frontier, the most important one to be
- 1:04:53aware of by far is the move earthquake.
- 1:04:56Earthquake is a really important move to
- 1:04:57understand how it score changes in
- 1:04:59doubles. Most of the time in generation
- 1:05:014, the AI is going to check to see if it
- 1:05:02all has fainted, but there are some big
- 1:05:04exceptions to this. So let's quickly
- 1:05:06talk about earthquake and magnitude in
- 1:05:07doubles. As a special note, this check
- 1:05:10is going to run even if its most recent
- 1:05:12ally has fainted. So, for example, if an
- 1:05:15earthquaking enemy just had its fire
- 1:05:16type ally faint, it's very likely it can
- 1:05:19never use earthquake again in the match,
- 1:05:21even though that fire type has now
- 1:05:22fainted. So, the earthquake tag strategy
- 1:05:24AI is that if the ally is immune to
- 1:05:26earthquake, meaning it's a flying type,
- 1:05:28it has levitate or it has magnet rise,
- 1:05:30earthquake or magnitude will get a score
- 1:05:32of plus two. On the other hand, if the
- 1:05:34ally has a fire, electric, poison, or
- 1:05:36rock typing, earthquake or magnitude
- 1:05:38will get a score of minus 10. Obviously,
- 1:05:41this is a bit of a bug. Earthquake
- 1:05:42should check for steel typing, but it
- 1:05:44does not. Another bug here is that
- 1:05:46earthquake does not check for the
- 1:05:47overall type matchup into its ally. So,
- 1:05:50for example, Shuckle is neutral to
- 1:05:52earthquake because while rock is weak to
- 1:05:54earthquake, shuckle is also bug type and
- 1:05:56bug resists ground. So Shuckle is
- 1:05:59neutral to Earthquake, but because
- 1:06:00Shuckle specifically has a rock type,
- 1:06:03Earthquake is still going to get a score
- 1:06:04of minus 10 when Shuckle is on the
- 1:06:06field. So an enemy Pokémon will almost
- 1:06:08never use the move Earthquake when
- 1:06:09Shuckle is its ally. Another really big
- 1:06:12one is skill swap. So the AI runs
- 1:06:14special skill swap checks in both
- 1:06:16singles and doubles. In doubles, it's a
- 1:06:18bit more complicated though. The
- 1:06:20important abilities here are basically
- 1:06:21truent and slow start. It'll try and
- 1:06:24skill swap these abilities off any kind
- 1:06:26of partner and always try and skill swap
- 1:06:28these abilities onto any kind of enemy.
- 1:06:30It also does some weird checks like like
- 1:06:32it checks if his ally is pure electric
- 1:06:33type and does not have levitate. And if
- 1:06:35the user does have levitate, it'll give
- 1:06:37it a score plus two. These kind of skill
- 1:06:39swap scenarios are not very common
- 1:06:41though. The biggest one you're going to
- 1:06:42run into is that you might sometimes see
- 1:06:43skill swap be used against slaking or
- 1:06:46griggy gigas when those are the ally of
- 1:06:48the AI. So next up is future sight and
- 1:06:50dubiaire. So, the AI is not going to use
- 1:06:52this if the AI's partner also is faster
- 1:06:55than it and has the same move. There are
- 1:06:57also a lot of checks for weather in
- 1:06:59generation 4. The way these weather
- 1:07:00checks work is they check both the
- 1:07:02Pokémon using the move and its ally for
- 1:07:04any kind of indication to boost the
- 1:07:06chance of using that move. Gravity is
- 1:07:07another big one. The AI checks all
- 1:07:09Pokemon on the field for gravity, and it
- 1:07:11checks to see whether or not they're
- 1:07:12levitate on the flying type. If enemies
- 1:07:14are levitating or flying, it likes to
- 1:07:15use gravity. And if allies are levitate
- 1:07:17or flying, it likes to not use gravity.
- 1:07:19So, Trick Room is fairly
- 1:07:21straightforward. This is just a speed
- 1:07:22check. It tries to rank all the Pokemon
- 1:07:24on the field in terms of speed and then
- 1:07:25work out whether or not Trick Room would
- 1:07:27be advantageous for the AI to use.
- 1:07:30Follow Me is a very complicated check
- 1:07:31based on the HP of the attacker and the
- 1:07:33partner, which is the ally to the AI.
- 1:07:36Next up are checks for electric, fire,
- 1:07:38and water moves. These are very similar
- 1:07:40to those checks we saw earlier. So, in
- 1:07:42generation 4, discharge, lava plume, and
- 1:07:45surf hit all Pokémon on the field. The
- 1:07:47AI runs a very similar check to
- 1:07:49Earthquake to see if its partner is
- 1:07:50either going to have a type that's weak
- 1:07:52into this move or if its partner has an
- 1:07:54ability that makes it immune to this
- 1:07:56move. Obviously, when it does, this
- 1:07:57makes the move more likely to be used.
- 1:07:59Outside of these spread moves, there's
- 1:08:01also moves like thunderbolt or fire
- 1:08:03blast. If the ally has a specific
- 1:08:05ability like motor drive or flash fire,
- 1:08:08the AI really likes trying to activate
- 1:08:09the ability on its partner. It'll often
- 1:08:12do this in situations which do not make
- 1:08:13a lot of sense at all. A similar thing
- 1:08:15happens for vault absorb, water absorb,
- 1:08:17and dry skin, where the AI really likes
- 1:08:20trying to heal its ally with these
- 1:08:21moves. This is one of the most abusable
- 1:08:23parts of generation 4 AI, and it is also
- 1:08:25a rare case in doubles where the AI can
- 1:08:27be quite predictable. There's also
- 1:08:29helping hand. If the AI's partner knows
- 1:08:32helping at hand, all of the AI's
- 1:08:33damaging moves get a score of plus one.
- 1:08:36I mention this specifically because
- 1:08:37there are some fights in the frontier
- 1:08:39and in the actual game where you're
- 1:08:41playing alongside the AI. So, the player
- 1:08:43is controlling one Pokemon and the AI is
- 1:08:45controlling one Pokemon on your side and
- 1:08:46you're facing two AI opponents. There is
- 1:08:49a real reason to teach your Pokemon
- 1:08:51helping hand if you want to boost the
- 1:08:53chance of your AI ally using damaging
- 1:08:55moves more often, which you probably do.
- 1:08:58This actually makes Helping Hand quite a
- 1:08:59good move to teach your Pokemon even if
- 1:09:01you never intend to use it. So,
- 1:09:03Willowis, we went over the example with
- 1:09:05Guts earlier. This also applies to
- 1:09:07flashfire. Thunderwave has a similar
- 1:09:09check where it treats Thunderwave
- 1:09:10similar to most damaging electric moves,
- 1:09:12but it also checks for lightning rod and
- 1:09:14it checks for ground. There's also toxic
- 1:09:16or any kind of poison status. It's
- 1:09:18important to note that this does not
- 1:09:20activate for guts AI like it does in Gen
- 1:09:223. The only thing that triggers guts is
- 1:09:24willowisp. In generation 4, toxic or any
- 1:09:27kind of poison status move used on the
- 1:09:29ally only gets used to activate poison
- 1:09:31heal, which is obviously quite a rare
- 1:09:33ability. There's also swagger. The AI
- 1:09:36loves to swagger its ally as long as its
- 1:09:38ally is holding either a lum or a pers
- 1:09:41to cure the confusion. Note that swagger
- 1:09:44does not check for any kind [music] of
- 1:09:45own temper ability on its ally. There's
- 1:09:48also gastro acid which is very very
- 1:09:50similar to skill swap. The AI does like
- 1:09:52to try and remove the ability of its
- 1:09:53ally if its ally has a very bad ability
- 1:09:56which is defined as truent or slow
- 1:09:57start. The final one is acupressure.
- 1:10:00Acupressure is a bit weird. It likes to
- 1:10:01use acupressure on its ally in certain
- 1:10:03situations. It depends on the allies HP
- 1:10:06and it also depends on if any of the
- 1:10:07ally stats have been boosted to plus six
- 1:10:09yet. That's a quick crash course in
- 1:10:11double in tag strategies and doubles
- 1:10:13though part of doubles AI which is the
- 1:10:15fact that it does not do ally move
- 1:10:17prediction at all. Here's a famous
- 1:10:18example. Consider the AI has slowb bro
- 1:10:20and slow king. These Pokémon both have
- 1:10:22trick room. They both want to use trick
- 1:10:24room because they both see each other as
- 1:10:26slower than both of the enemies.
- 1:10:28Critical to understand here is that both
- 1:10:29a slowb bro and slow king can use trick
- 1:10:31room on the same turn. Obviously, it's a
- 1:10:34bad idea to do this. This essentially
- 1:10:35removes Trick Room on the same turn it's
- 1:10:37used. Both Pokemon have wasted their
- 1:10:39turn. However, the AI does not check
- 1:10:41what its AI partner is going to use. So,
- 1:10:44Slowbo does not check that Sloking is
- 1:10:46about to use Trick Room and vice versa.
- 1:10:48This can lead to some very funny
- 1:10:49situations. For example, it is also not
- 1:10:51rare to see an enemy Pokémon use Sunny
- 1:10:53Day and its partner also use Sunny Day
- 1:10:55or for an enemy Pokémon to use Sandstorm
- 1:10:57and then for its partner to use Sunny
- 1:10:59Day or indeed both enemies might use the
- 1:11:01move Gravity. It also applies if the AI
- 1:11:03is your ally. It can easily do something
- 1:11:05you don't want it to do. You've got to
- 1:11:07be very careful in tag battles when
- 1:11:09you're teamed up with the AI. This is a
- 1:11:11small point, but it's something that
- 1:11:12newer players quite often wrongly assume
- 1:11:13about how the AI operates in doubles.
- 1:11:16Okay, so something I talk about a lot in
- 1:11:18Frontier Streams is how deadly the Gen 4
- 1:11:20doubles AI is. I've never fully
- 1:11:22explained why this is, but the next few
- 1:11:24sections are going to explain it in
- 1:11:25detail. So, let's have a look. So, first
- 1:11:27up, we have something called strongest
- 1:11:28move. And this might be the single
- 1:11:30scariest part of Gen 4 doubles AI. The
- 1:11:33logic is actually quite simple. Is
- 1:11:35applied on top of all the regular
- 1:11:36singles logic. And it states that if the
- 1:11:39attack does the most damage to the
- 1:11:41target when compared to all of the users
- 1:11:42moves and all of the users allies moves
- 1:11:45when used by the ally, 50% chance of a
- 1:11:48score plus one. Let's do an example. So
- 1:11:50this is more obvious. Let's say I'm
- 1:11:52using Blissey 1. I'm facing Gengar 1 and
- 1:11:55Aerodactyl one. Gengar's best move is
- 1:11:57Sludge Bomb and Aerodactyl's best move
- 1:11:58is Aerial Ace. Obviously, Aerase does a
- 1:12:01lot more damage than Sludgebomb. So,
- 1:12:03when Gengar is scoring Sludge Bomb,
- 1:12:04it'll never get a plus one score in this
- 1:12:06part of the AI against Blissey. Sludge
- 1:12:09Bomb is going to be stuck at plus zero.
- 1:12:11However, Aerodactyl is going to see that
- 1:12:12Aerase is the strongest move against
- 1:12:13Blissey that Aerodactyl can do and
- 1:12:15Gengar can do. And therefore, Aerase has
- 1:12:18a 50% chance to get a plus one score
- 1:12:20against Blissey. This can lead to a
- 1:12:22table like this. So obviously Gengar's
- 1:12:24moves are being stuck at plus zero, but
- 1:12:25Aerodactyl can get promoted to plus one.
- 1:12:28This is very rare for a regular attack
- 1:12:30to do and it means the AI is
- 1:12:32specifically encouraging the use of the
- 1:12:34strongest attack in doubles. What is so
- 1:12:36deadly about this is the fact that the
- 1:12:3750% chance is not deterministic. It's
- 1:12:40aggression, but it's random aggression.
- 1:12:42It's extremely difficult to play against
- 1:12:43this on equal footing. This also has
- 1:12:46another quiet consequence which makes
- 1:12:47the AI quite a lot more deadly in
- 1:12:49doubles. Let's return to the Aerodactyl
- 1:12:51versus Blissy scenario again. Let's say
- 1:12:53Blissey is around 190 HP. In other
- 1:12:56words, it's definitely going to die to
- 1:12:57air, but if Aerodactyl uses a weaker
- 1:13:00move like a spread damage Rock Slide,
- 1:13:02Blissey is quite likely to survive. In
- 1:13:04singles, because both of these moves can
- 1:13:06kill Blissey, Aerodactyl will be 50/50
- 1:13:08to either choose Rock Slide or Aerial
- 1:13:10Ace in this scenario. But in doubles, we
- 1:13:13have this plus one score for the overall
- 1:13:15strongest attack. And because plus one
- 1:13:17score is being applied to aerial aace
- 1:13:18and not rock slide, Aerodactyl is a lot
- 1:13:21more likely to use a lace against
- 1:13:22Blissey. In other words, Aerial Ace is
- 1:13:25quite likely to get a plus five score
- 1:13:26instead of a plus4 score. You've also
- 1:13:28got to be really careful when this
- 1:13:30applies to moves like Trick. So earlier
- 1:13:32we said that the AI really likes using
- 1:13:33Trick with a Pokemon like Pygon Z2.
- 1:13:36Porygon Z2's trick is going to score
- 1:13:38plus five. In singles, it is regular Tri
- 1:13:40attack can never score more than plus
- 1:13:42four. But in doubles, obviously, if
- 1:13:44triac is the strongest move on the
- 1:13:45field, try attack can score plus five.
- 1:13:48This makes polygon Z2 a lot more random
- 1:13:50in doubles. I will say I think this kind
- 1:13:53of behavior is very deadly, but also
- 1:13:55unintentional from Game Freak. I think
- 1:13:57what GameFreak wants to do was something
- 1:13:59like, let's say it has Pokemon A and can
- 1:14:01deal 20% damage to Pokemon C or 50%
- 1:14:03damage to Pokemon D. Obviously, it's
- 1:14:05better to deal 50% damage to Pokemon D.
- 1:14:07We're doing more damage overall then.
- 1:14:09And let's say if Pokémon B is the
- 1:14:10inverse, we want it to attack Pokémon C.
- 1:14:13I think this is the intent of the code.
- 1:14:15However, what the code actually does is
- 1:14:17it makes the AI a lot more aggressive in
- 1:14:19doubles and it also makes the AI quite a
- 1:14:21lot more random in doubles. And you've
- 1:14:23got to be really careful because this
- 1:14:24check can run even when the ally has
- 1:14:26fainted. So even if Aerodactyl is
- 1:14:28fainted, Gengar is not going to see a
- 1:14:30plus one score into Blissey. That might
- 1:14:32be a blessing and it might be a curse.
- 1:14:34It's very difficult to play around this.
- 1:14:36So next big one is doubles AI type
- 1:14:38effectiveness. This is also a really
- 1:14:40really big deal in doubles. The AI
- 1:14:42effectively runs two checks in this
- 1:14:44pass. First up, so long as the move
- 1:14:46doesn't kill the target, it will
- 1:14:48sometimes reduce the score of moves that
- 1:14:50are not very effective against that
- 1:14:52target. Another check which is different
- 1:14:54is it sometimes increases the chance of
- 1:14:56using a super effective move whether or
- 1:14:58not that move is going to kill the
- 1:14:59target. Now, the doubles AI sometimes
- 1:15:01reducing the chance of not very
- 1:15:02effective moves is a pretty innocent
- 1:15:04most of the time, but it can lead to
- 1:15:05some pretty funny moments. So consider
- 1:15:07the following matchup. Let's say we have
- 1:15:09Agron and we're facing slacking.
- 1:15:11Obviously slacking's facade and shadow
- 1:15:13claw are not very effective against
- 1:15:14Aggron. So how does a not very effective
- 1:15:16AI actually work? So first up, if the
- 1:15:18move is regular not very effective, a
- 1:15:190.5 times multiplier, 75% chance for a
- 1:15:22score of minus one. This would apply to
- 1:15:24Shadow Claw. And then if it's double not
- 1:15:26very effective, whoops. And then if it's
- 1:15:29double not very effective, then you get
- 1:15:32a 75% chance for a score of minus two.
- 1:15:34This would apply to facade against
- 1:15:35Agrron. This can lead to some pretty
- 1:15:38weird tables. For example, slacking
- 1:15:40might be ending up with something like
- 1:15:41this, where Yawn has a score of plus
- 1:15:43zero, but both the attacks get the 75%
- 1:15:45chance for a minus one score. In a
- 1:15:47scenario like this, slacking is
- 1:15:49obviously incredibly likely to use Yawn
- 1:15:51and almost nothing else. This kind of
- 1:15:53scenario isn't that common, but let's
- 1:15:54imagine for a second that Slacking does
- 1:15:56not have the move Yawn, but instead just
- 1:15:58has a blank move slot here. Slacking's
- 1:16:01moves all score minus one into Aggron
- 1:16:03for being not very effective. And this
- 1:16:05means that Slacking is much more likely
- 1:16:06to score a plus zero into Aggron's ally.
- 1:16:09In other words, because Slacking does
- 1:16:11not want to attack Agron here, Agron's
- 1:16:13ally is in a much higher danger of being
- 1:16:14hit by a move from slacking one. And
- 1:16:16also, unfortunately, 75% chance is not
- 1:16:19100% chance. It is very difficult to
- 1:16:21safely play around this. You just got to
- 1:16:23keep it in mind and hedge your bets
- 1:16:24based on the probability of these kind
- 1:16:26of scenarios.
- 1:16:27So, next up is a much more evil one.
- 1:16:29This is super effective attack AI. A
- 1:16:32special note here. When we previously
- 1:16:34talked about the highest damage on our
- 1:16:35side to an enemy in the previous
- 1:16:37section, if that scored plus one, this
- 1:16:40check can't also pass. In more precise
- 1:16:42terms, what this logic does is that if
- 1:16:44it sees that an attack deals damage and
- 1:16:46attack did not get plus one score in the
- 1:16:48previous check, if the type
- 1:16:50effectiveness is two times, 61% chance
- 1:16:53of a score plus one. And the type
- 1:16:55effectiveness is four times 75% chance
- 1:16:58of a score plus one. And as a reminder,
- 1:17:00this effectiveness check is a little bit
- 1:17:01bugged. Let's look at an example. Let's
- 1:17:03say I have Vesprin 4 against XPloud 4.
- 1:17:07Now in singles, this is a very simple
- 1:17:09scenario. XP 4 is going to use overheat.
- 1:17:12Is the strongest move against
- 1:17:13Vesperquen. In doubles, something
- 1:17:15slightly different can happen.
- 1:17:18Because overheat and ice beam are both
- 1:17:20super effective, there is a chance,
- 1:17:21although not very likely, that overheat
- 1:17:24does not score the plus one for super
- 1:17:25effective. And that ice beam goes to
- 1:17:28minus one for being weaker than
- 1:17:29overheat, but then it scores plus one
- 1:17:31again for being super effective against
- 1:17:32Vespuen.
- 1:17:35The chance of this is not very high.
- 1:17:36It's about 24%. And then if both moves
- 1:17:39score plus zero, XBA has to randomly
- 1:17:42pick between the plus zero scoring
- 1:17:43moves. So it's a 50/50 to pick Ice Beam
- 1:17:45or Overheat. but it can pick Ice Beam.
- 1:17:49Overall, we can say there's about a 12%
- 1:17:50chance in doubles explain
- 1:17:53against Vespuen instead of overheat
- 1:17:55against Vespicquin.
- 1:17:58This might sound like a good thing, but
- 1:17:59it's actually probably not a good thing.
- 1:18:01Again, we want the AI to behave
- 1:18:03deterministically.
- 1:18:05For example, perhaps we want to switch
- 1:18:07out and bring a Pokémon like Hounding
- 1:18:08with Flashfire in so it takes no damage
- 1:18:10from overheat. Of course, in singles,
- 1:18:12this is safe to do. In doubles, it's
- 1:18:14not. 12% chance of ice beam, 10% chance
- 1:18:17of ice beam freeze. Everyone who has
- 1:18:19played the frontier knows that these
- 1:18:21kind of 1% scenarios do occasionally
- 1:18:22happen and it can easily lead to a loss.
- 1:18:25Now, there is a reason I call a super
- 1:18:26effective doubles AI actually evil.
- 1:18:29Consider a matchup like this. Let's say
- 1:18:31we have Donfan 2 and we're facing
- 1:18:33Blastoise 2. Now, on the face of it, you
- 1:18:36might think this is a pretty bad matchup
- 1:18:38and you're kind of right. Blastoise 2 is
- 1:18:41very likely to twoot Donfan with
- 1:18:43Waterfall. That's not good news for
- 1:18:44Donfan. Blastoise is also faster than
- 1:18:47Donfan. So you might think this is
- 1:18:49almost a guaranteed loss for Donfan.
- 1:18:51However, in singles, Donfan is actually
- 1:18:52quite likely to win this.
- 1:18:55This is because in singles, double team
- 1:18:56and acquing both have a good chance of
- 1:18:58getting a boosted score against Donfan,
- 1:19:00particularly when Blastoise is in higher
- 1:19:02HP. The chance of Donfan using three
- 1:19:04earthquakes while Blastoise wastes its
- 1:19:06time not using two wards is actually
- 1:19:09decently high. Donfan has a real chance
- 1:19:11of coming out of this matchup with a
- 1:19:13win.
- 1:19:14In doubles, it's very different.
- 1:19:17Unfortunately, Waterfall is obviously
- 1:19:19super effective as an attack against
- 1:19:20Donfan. This means that Waterfall has a
- 1:19:22chance of getting a plus one score
- 1:19:24against Donfan and potentially beating
- 1:19:26acquing or double team in certain
- 1:19:28scenarios. Obviously, the earlier
- 1:19:30Blastoise One uses Waterfall, the
- 1:19:31earlier it will use a second Waterfall,
- 1:19:33the more likely Donfan is to fate. And
- 1:19:35this also works in tandem with the
- 1:19:37strongest overall move against Donfan on
- 1:19:39the field on Blastoise's side. There's a
- 1:19:41good chance that Waterfall is the
- 1:19:42strongest move on Blastoise and in
- 1:19:43Blastoise's ally against Donfan. And
- 1:19:45therefore, Waterfall can also get a plus
- 1:19:47one score from this. In other words,
- 1:19:50there's probably about an 80% chance
- 1:19:51that Waterfall scores plus one against
- 1:19:52Donfan 2 in doubles. And remember, in
- 1:19:55singles, it would never score plus one.
- 1:19:57So, I go over this more in the document,
- 1:19:59but basically in doubles, Donfan is
- 1:20:01dramatically more likely to lose this 1
- 1:20:02v one against Blastoise.
- 1:20:05So, what does this mean? It basically
- 1:20:07means the AI is more likely to use
- 1:20:09attacks in doubles than it is in
- 1:20:11singles. And because for most players,
- 1:20:13you want deterministic behavior from the
- 1:20:15enemy AI, or you want the AI to waste
- 1:20:17its turn on moves like acroing or taunt,
- 1:20:20this is often a really bad thing for the
- 1:20:21player. It's the reason why the doubles
- 1:20:23AI in Gen 4 is a lot more deadly than
- 1:20:25the singles AI in Gen 4. Now, I want to
- 1:20:27say for frontier players, this doubles
- 1:20:29check is independent to smart AI and
- 1:20:32independent basic AI. If you've ever
- 1:20:34played a Gen 4 factory doubles, you'll
- 1:20:36be aware of how deadly the very early
- 1:20:38rounds are. There's a reason for this.
- 1:20:40The doubles AI is still running in the
- 1:20:42background. It's still prioritizing the
- 1:20:44use of super effective attacks, and it's
- 1:20:46still prioritizing use of the most
- 1:20:47damaging attack possible on the field.
- 1:20:49In other words, the AI at the start of
- 1:20:50the factory double streak is often
- 1:20:52pseudo random. It's biased towards using
- 1:20:54favorable attacks, but it still has a
- 1:20:57good pinch of randomness. This kind of
- 1:20:58randomness is horrible to play against,
- 1:21:00and it's part of why I really hate
- 1:21:01fracture doubles in generation 4. Now, I
- 1:21:04mentioned it a little bit earlier with
- 1:21:05Porygon Z2, but you need to be really
- 1:21:07careful about singles assumptions. Let's
- 1:21:09consider the following Pokémon. So,
- 1:21:11Metacham 1 in singles is actually quite
- 1:21:13a well- behaved Pokémon. It's very, very
- 1:21:15likely to use Fake Out on turn one, then
- 1:21:17use Zen Headbutt, and then when it's low
- 1:21:19on HP, use Endure. in doubles. This is
- 1:21:22not true because Zen Headbutt is very
- 1:21:24likely to score the highest damaging
- 1:21:26move and Zen Headbutt can also score
- 1:21:27super effective AI against one of the
- 1:21:29enemies. This means that Zen headbutt
- 1:21:31can be used over fake out on turn one
- 1:21:33even if Zen headbutt doesn't kill the
- 1:21:35enemy. This dramatically changes how you
- 1:21:37would want to play against Metasham. And
- 1:21:38I will say that Metacham one is one of
- 1:21:40the Pokemon that changes the most in
- 1:21:41doubles compared to singles. Let's also
- 1:21:43look at another example. So Quantico 4
- 1:21:46is somewhat famous for almost never
- 1:21:47using the move Pucker Punch.
- 1:21:50And this is true in singles. In doubles,
- 1:21:52because of super effective AI, sucker
- 1:21:54punch actually becomes quite a lot more
- 1:21:56likely. Of course, when super effective
- 1:21:57doubles AI's active sucker punch, it'll
- 1:22:00also be triggering the smart AI for
- 1:22:01night slash on high crit moves. But the
- 1:22:03overall effect of this calculation is
- 1:22:04that sucker punch is more likely to be
- 1:22:06used. And of course, the fear when
- 1:22:07facing Honko 4 is indeed the fear that
- 1:22:09sucker punch is used at all against the
- 1:22:11player. And it's made even worse by the
- 1:22:12fact that we know that sucker punch is
- 1:22:14only prioritized in doubles against
- 1:22:15super effective matchups. In other
- 1:22:17words, when you most want sucker punch
- 1:22:18not to happen against you. So, next up
- 1:22:21is what I'm going to call priority
- 1:22:22preference. This is very rare in the
- 1:22:23frontier, but it's probably less rare in
- 1:22:25certain ROM hacks. The way this works is
- 1:22:27if the priority attack is the strongest
- 1:22:29attack into that target in doubles,
- 1:22:31instead of a 50% chance of a plus one
- 1:22:33score we saw earlier, it's actually
- 1:22:34going to be an 80.5% chance of a plus
- 1:22:37one score. Now, this is rare because
- 1:22:39priority attacks are quite weak. A
- 1:22:40Pokémon like Lapas one obviously never
- 1:22:42is going to see ice shard as doing the
- 1:22:44most damage, but it's not unheard of.
- 1:22:46For example, Cal is very very likely to
- 1:22:48be scoring plus one in these kind of
- 1:22:50checks early on in the factory. Now, I
- 1:22:52don't want to repeat myself, but
- 1:22:52multi-target moves are really, really
- 1:22:54important doubles. Of course, this
- 1:22:56includes earthquake, discharge, lava,
- 1:22:58plume, and surf. These are the moves
- 1:22:59with special AI and doubles. They're
- 1:23:01really important to be aware of because
- 1:23:02in a lot of cases, the AI is almost
- 1:23:04forced to use them or forced to not use
- 1:23:06them depending on what the ally is
- 1:23:08doing. So, I want to do a special shout
- 1:23:09out to the best moves in doubles. These
- 1:23:11are protect, endure, and fake out. Why
- 1:23:14are these moves so good? They're
- 1:23:16basically the only time you're actually
- 1:23:17going to buy free turns against the AI
- 1:23:19in doubles. Of these, Fake Out is most
- 1:23:22flexible and reliable. Obviously, you
- 1:23:24can use Fake Out against a very deadly
- 1:23:25opponent and make sure that opponent is
- 1:23:27not going to get an action in on that
- 1:23:29turn. On the same turn, your ally is
- 1:23:31going to hopefully take out that
- 1:23:32opponent or them in some way.
- 1:23:34Another thing I want to mention about
- 1:23:35fake out, and this is not really viable
- 1:23:37in the frontier, is that if you have at
- 1:23:38least three Pokemon and they all have
- 1:23:40the move fake out, you can use fake out
- 1:23:42on one of them against an opponent,
- 1:23:43switch the other one out, and then keep
- 1:23:45repeating this forever. You'll
- 1:23:47essentially always be using Fake Out
- 1:23:48against the enemy. They'll always be
- 1:23:50flinching. You can only do this when
- 1:23:51there is one enemy left, of course. Now,
- 1:23:53I want to shout out Peach. I did see
- 1:23:54this in one of his YouTube shorts, and
- 1:23:56this is where I got the idea from. In
- 1:23:58general, I would say protect and endure
- 1:24:00are potentially better moves in doubles,
- 1:24:02though. If you have a Pokemon that is
- 1:24:03about to die or some kind of underlevel
- 1:24:05Pokemon or just a very weak Pokemon, if
- 1:24:08you teach it endure or protect, you can
- 1:24:10likely bait attacks from both enemies
- 1:24:13into it. So long as your partner also
- 1:24:15isn't vulnerable to being KO'ed.
- 1:24:16Obviously, this buys an entire free turn
- 1:24:19against both enemies. And even after
- 1:24:20protect is used, it can be maybe used
- 1:24:22again. On that turn, you might be able
- 1:24:24to set up a way to get two kills in one
- 1:24:25turn, making sure the protected Pokemon
- 1:24:27has more time. or you might be able to
- 1:24:29use a move like trick room, making sure
- 1:24:30that your weaker Pokemon is potentially
- 1:24:32able to act first and then you can knock
- 1:24:33out both Pokemon in the same turn. This
- 1:24:35is famously what the best battle tower
- 1:24:37double teams do with a level one
- 1:24:38smearle. Want to add a note though, you
- 1:24:41want to be careful of using protect and
- 1:24:42thinking you're always safe doing it.
- 1:24:44Let's say we have a Pokemon like Rose 2
- 1:24:46and a Pokemon using protect is a flying
- 1:24:48type. Even if Gigadrain sees a kill into
- 1:24:50that flying type Pokemon, Giga Train is
- 1:24:52only going to get a plus one score
- 1:24:54because Gigadrain gets depprioritized
- 1:24:55into targets that resist the move.
- 1:24:57Obviously, Giga Drain at plus one is
- 1:24:59still going to be used over any other
- 1:25:01move unless the ally to your Pokemon is
- 1:25:03also weak to grass. Suddenly, then super
- 1:25:06effective AI can get triggered in
- 1:25:07doubles and gigrain can get plus one to
- 1:25:09that target as well. So, as an example,
- 1:25:11let's say I have a level two tokiss and
- 1:25:14a level 50 slowb bro. Rose 2 is going to
- 1:25:17see Giga Drain as plus one into tokiss
- 1:25:19because it can kill, but it's also going
- 1:25:21to see Giga Drain as plus one into
- 1:25:22slowbow sometimes because Giga Drain is
- 1:25:24super effective into slowb bro. So yeah,
- 1:25:26always double check that the bait is
- 1:25:28going to work if you're going to go for
- 1:25:29these kind of endure protect strategies.
- 1:25:31Now the doubles spread damage bug is the
- 1:25:34most important bug in Gen 4 doubles and
- 1:25:36I do not see this get discussed enough.
- 1:25:38This bug is basically the entire reason
- 1:25:40why my doubles castle team works so
- 1:25:41well. I'll leave a link to this in the
- 1:25:43description. Let's do a cleaner example
- 1:25:45for the sake of this guide. Let's say
- 1:25:47I'm using Golem 4 in doubles. Golem 4
- 1:25:50obviously has a move earthquake and
- 1:25:51explosion. Let's say I'm facing Tort
- 1:25:53Terra 2 and Ente 4.
- 1:25:56Now, for the purpose of this guide,
- 1:25:58let's pretend that Golem isn't slower
- 1:26:00than these two. Or let's pretend that if
- 1:26:02these two use a move, Golem is going to
- 1:26:04survive the move. Let's say Golem's ally
- 1:26:06is going to choose protect. And let's
- 1:26:07say that I want to explode with Golem.
- 1:26:09Let's do the damage calc for that. So,
- 1:26:11first up, Golem's explosion is not
- 1:26:14guaranteed to kill Tort Terra. The
- 1:26:16spread damage nerf on explosion slightly
- 1:26:18reduces the damage below the threshold
- 1:26:19needed to kill. But on the other hand,
- 1:26:22my explosion is guaranteed to kill Ente.
- 1:26:24Ente 4 of course is slightly less bulky
- 1:26:26than Torta 2.
- 1:26:28So, you might expect that I explode,
- 1:26:30Ente will die, and Tort Terra might live
- 1:26:33or it might die depending on this damage
- 1:26:35roll. So, what actually happens is very
- 1:26:38different to this. First up, Golem dies.
- 1:26:41It uses explosion. Its HP gets set to
- 1:26:44zero instantly. It has fainted. Next up,
- 1:26:47the fastest Pokemon on the field is
- 1:26:49going to get hit by explosion. For
- 1:26:51argument sake, let's say this is Ente.
- 1:26:54Ente gets hit first by explosion. Ente
- 1:26:56faints. The only Pokemon on the field
- 1:26:58left now are my partner Pokemon that use
- 1:27:01that has used protect and the enemy Tort
- 1:27:03Terra.
- 1:27:05Next, Explosion hits Tort Terra. and
- 1:27:08Tort Terra 2 is going to die. The
- 1:27:10explosion spread damage nerf is not
- 1:27:12applied to Tort Terra as it gets hit by
- 1:27:14explosion. So why does this happen? This
- 1:27:16is a really important bug. It happens
- 1:27:19because the spread damage calculation is
- 1:27:21actually dynamic. When we use a spread
- 1:27:23damage move in doubles, the doubles
- 1:27:25engine checks whether or not this is
- 1:27:27currently doubles. And if it is doubles,
- 1:27:29it applies a spread damage nerf. Now the
- 1:27:32question is, how do we decide if it's a
- 1:27:33doubles battle or not? It's actually
- 1:27:35very simple. If there are three or four
- 1:27:38unfated Pokemon on the field, it's a
- 1:27:40doubles battle. All of the spread
- 1:27:41attacks will be nerfed by 25% damage as
- 1:27:43always. But if the count of unfainted
- 1:27:46Pokemon is two, it's actually going to
- 1:27:47be singles. And there is no spread
- 1:27:49penalty in singles. Golem and ente faint
- 1:27:52first. There are now two Pokémon left
- 1:27:54and Terra is going to take the max
- 1:27:56damage from explosion. It's not going to
- 1:27:58have the spread damage nerf. It doesn't
- 1:27:59matter that Golem used the move. Golem
- 1:28:01has now fainted. It's really important
- 1:28:03to notice as well, this does not just
- 1:28:05apply to explosion. It also applies to
- 1:28:07any kind of spread damage move. And it
- 1:28:09also applies when the enemy or when the
- 1:28:11player is using these moves. So, there's
- 1:28:13a few things that are really important
- 1:28:14to be aware of with spread damage. First
- 1:28:16up, the fastest Pokemon on the field
- 1:28:17gets hit first. But quick claw can
- 1:28:20interfere with this. If a Pokemon has a
- 1:28:22quick claw, there's a 20% chance quick
- 1:28:24activates during the explosion and that
- 1:28:26Pokemon gets hit first by the attack.
- 1:28:29So, if Tortara 2 had the item quick, 20%
- 1:28:32of the time, my explosion hits Tortara 2
- 1:28:34before Ente and Torta 2 takes a spread
- 1:28:36damage nerf explosion. A similar thing
- 1:28:39happens in the case of a speed tie. If
- 1:28:40two Pokémon speed tie, it's going to be
- 1:28:42random which one the spread damage
- 1:28:44target is going to hit first. Trick Room
- 1:28:46operates similarly under trick room.
- 1:28:48Tortar will be hit before ent by
- 1:28:50explosion. Tortar will be considered the
- 1:28:52fast Pokemon under trick room. This is
- 1:28:54not unique to explosion. Let's say I use
- 1:28:56Surf and I knock out my ally and I also
- 1:28:58knock out an enemy. In this case, my
- 1:29:00Pokemon with Surf and the final enemy
- 1:29:02are the only Pokemon on the field in
- 1:29:03doubles and Surf does full damage to
- 1:29:05that single target. The same would apply
- 1:29:07to something like Discharge or something
- 1:29:09like Lava Plume or indeed something like
- 1:29:11Magnitude or Earthquake. You need to be
- 1:29:13really, really careful this interaction.
- 1:29:15It comes up a lot of the time in any
- 1:29:17kind of close match. Perhaps in a
- 1:29:19nuzlock, your Pokemon isn't fainting
- 1:29:20quite as much, but in Frontier, this
- 1:29:22kind of interaction where a lot of
- 1:29:23Pokemon faint is very common. You want
- 1:29:25to be very careful, particularly with
- 1:29:26the move explosion used by enemies. So,
- 1:29:29that's the end of the double section. I
- 1:29:30will say doubles in Gen 4 is really
- 1:29:32hard. You probably understand a bit more
- 1:29:34why I say this now on stream so much. I
- 1:29:37want to end out this video with my top
- 1:29:3920 battle tips and insights from years
- 1:29:41of play. This applies to both singles
- 1:29:43and doubles, but it's really more
- 1:29:44applying to singles. What's really
- 1:29:46important to understand is that this is
- 1:29:47not a complete list of every single
- 1:29:49interaction with the AI. It's just a
- 1:29:50list of things I feel like come up very
- 1:29:52often. So, first up, I'm repeating
- 1:29:54myself slightly here. Remember strongest
- 1:29:56move. Remember the fundamental law of
- 1:29:58kill AI. And remember that there are
- 1:29:59moves ignore this. Let's look at two
- 1:30:01famous examples from the frontier. So,
- 1:30:03here's Dragonite 4. It has a choice
- 1:30:05band. It has four very powerful moves.
- 1:30:08However, Dragonite 4 is never going to
- 1:30:11use Giga Impact or Superpower at full
- 1:30:13HP. These are not kill moves and they're
- 1:30:15also moves that get dep prioritize at
- 1:30:17high HP. Dragonite 4 is always going to
- 1:30:19use outrage or earthquake which makes it
- 1:30:21a lot more predictable even if it's
- 1:30:22still quite deadly. A similar thing
- 1:30:25happens with rampardos 4. Rampardos 4 is
- 1:30:27either going to head smash or earthquake
- 1:30:29in almost every scenario. It'll never
- 1:30:31use gig impact. It'll almost never use
- 1:30:33superpower. Now the reason why rampardos
- 1:30:35and dragonite is so predictable is
- 1:30:37because of their choice items. They get
- 1:30:38locked into the move on the early turns.
- 1:30:41But consider a Pokémon like Impolon 4.
- 1:30:43So Impolon 4 can't use Hydrocanon at max
- 1:30:46HP. However, Impolon 4 does not have any
- 1:30:48kind of choice item. If you get Impolon
- 1:30:514 low on HP, it can very easily use
- 1:30:53hydrocanon against you. The next thing,
- 1:30:55and I'm slightly repeating myself again,
- 1:30:56is on kill AI specifically. Remember the
- 1:30:58moves that beat kill AI. Trick plus
- 1:31:01choice scarf is an example of a move
- 1:31:03that will always beat Kill AI. So Proon
- 1:31:05Z2 is always going to use trick. It'll
- 1:31:07never use tri attack on the first turn
- 1:31:09of a match. And here's another case. So,
- 1:31:12Afro versus Pelipa. You might be
- 1:31:14wondering, surely Afro just uses
- 1:31:16Thunderbolt against Pelipa. Thunderbolt
- 1:31:18is going to kill Peliper. Isn't that the
- 1:31:20best thing to do? Doesn't it have kill
- 1:31:21AI? You've got to be really careful in
- 1:31:23situations like this. Pelper is fast in
- 1:31:25Afro. This means that Thunderwave is
- 1:31:28going to get a plus three score. The AI
- 1:31:30likes using Thunderwave when it's
- 1:31:31slower. However, Thunderwave is also
- 1:31:34four times super effective against
- 1:31:35Peliper. Yes, Thunderwave is a status
- 1:31:38move, but no, it doesn't matter. It can
- 1:31:40still get a plus two score from being
- 1:31:42four times super effective. If it gets
- 1:31:44that plus two score and that plus three
- 1:31:46score, Thunderwave can score plus five
- 1:31:48against Peliper, beating Thunderbell to
- 1:31:50only plus four. This is quite common,
- 1:31:53particularly with the Pokemon Gyarados
- 1:31:54in the frontier. A similar thing can
- 1:31:56happen with other status moves. So,
- 1:31:58pretend for a second that Mammoth has
- 1:31:59the ability Ice Body. The move Hail can
- 1:32:01get a plus two score when it's four
- 1:32:02times super effective against a Pokemon
- 1:32:04like Garchomp. And hail can also stack
- 1:32:06with ice body in smart AI. This can
- 1:32:08bring hail up to a plus4 score in some
- 1:32:10scenarios. The next one is flaws in the
- 1:32:12kill AI. Again, I'm retreading familiar
- 1:32:14ground, but I just want to say this
- 1:32:15again. So, for example, if we have
- 1:32:16Glyscore and the enemy has Frostlass,
- 1:32:19Frostas does not understand that ice
- 1:32:21punch does not kill Glycore. It does not
- 1:32:23understand that GLCore has a Yachi berry
- 1:32:25and that this reduces the damage of ice
- 1:32:26punch. It is always going to go for ice
- 1:32:28punch here because ice punch is seen as
- 1:32:30a kill move against Glore. Another
- 1:32:32really important one to be aware of is
- 1:32:34Life Orb. There are a few Pokémon with
- 1:32:36Life Orb in the frontier. They quite
- 1:32:37regularly catch newer players out by not
- 1:32:39using kill moves. Ambiom free is a good
- 1:32:42example of this life orb example. It's
- 1:32:44also a good example of double hit. So,
- 1:32:46technician life orbomb free's double hit
- 1:32:48does massive damage. It's very scary to
- 1:32:50face in the factory. However, you've got
- 1:32:52to remember that ambipom does not
- 1:32:54understand the double hit hits twice.
- 1:32:55It's actually extremely rare for ambiom
- 1:32:57to use the move double hit. So, the next
- 1:32:59big generalization I'm going to do is
- 1:33:01setup AI. Setup AI works quite well in
- 1:33:03general. This includes moves like sword
- 1:33:05stance, double team, and calm mind. The
- 1:33:07way the AI works is it prefers to use
- 1:33:09these moves at higher HP, and it
- 1:33:11generally becomes impossible to use
- 1:33:12these moves when it's at very low HP.
- 1:33:15Playing a setup AI is very important,
- 1:33:16but not always completely intuitive. A
- 1:33:19broad rule for Pokémon is you want to
- 1:33:20switch into your good type matchups, but
- 1:33:22this can be an exception to that.
- 1:33:25Let's say we're facing a Pokémon with
- 1:33:26double team. We know it's going to use
- 1:33:28double team. We might want to attack it
- 1:33:30first just so we get it low on HP and
- 1:33:32reduce the chance it uses more double
- 1:33:34teams in the future. If we take the
- 1:33:36opportunity to switch and then also use
- 1:33:38a move that would be two turns it's
- 1:33:40sitting at full HP. Two turns it's very
- 1:33:41likely to use double team. You want to
- 1:33:43be really careful about ordering moves
- 1:33:45correctly against setup opponents. And I
- 1:33:47will say part of the big difficulty of
- 1:33:49the Frontier and the Factory in
- 1:33:51particular is jungling the chance of the
- 1:33:52enemy Pokémon being a setup set versus
- 1:33:54the chance of them just being a regular
- 1:33:56attacking set. It is very difficult to
- 1:33:57assess the outcome and assess the
- 1:33:59branching paths of probability here and
- 1:34:01try and come up with the overall best
- 1:34:02plan against many possible outcomes. Now
- 1:34:05I talked about setup AI. There is one
- 1:34:07major major exception to setup AI which
- 1:34:09is curse. So curse is kind of broken. It
- 1:34:12does not actually look at the user's HP
- 1:34:13when it's considering whether or not
- 1:34:15they want to use curse. This can be both
- 1:34:17a blessing and a curse for the player.
- 1:34:19It can lead to easy wins when enemy
- 1:34:21Pokémon with curse uses curse at very
- 1:34:23low HP just before it's about to die.
- 1:34:25But it also can lead to some extremely
- 1:34:27scary scenarios. When the AI is using
- 1:34:29curse at middling HP, denying you a
- 1:34:31kill, and then going into recovery
- 1:34:32moves. I also mentioned this before, but
- 1:34:35again, ability checking, you must know
- 1:34:37how this works. Most of the time, the AI
- 1:34:40does not know your ability. It's going
- 1:34:41to guess you have a random ability.
- 1:34:43Let's look at the example. Let's say
- 1:34:44we've got Glisor. Let's say the AI is
- 1:34:47considering using charm against Glycore.
- 1:34:49So 50% of the time the AI will assume
- 1:34:51that Glisor is hyper cutter and it won't
- 1:34:53use charm against hyper cutter and 50%
- 1:34:56of the time the AI might assume that
- 1:34:57Glor is Sanvil and it can potentially
- 1:34:59use charm against Sanvil.
- 1:35:02It will continue to do this randomly
- 1:35:03until it sees text like charm fail
- 1:35:06because of hyper cutter. Once it sees
- 1:35:08this text, it now knows your Glisll has
- 1:35:11hyper cutter. Of course, if you switch
- 1:35:13glow out, it will completely forget that
- 1:35:15your glitch has hyper cutter in the
- 1:35:17frontier. This is probably most relevant
- 1:35:19for scarry. So scar me isn't guaranteed
- 1:35:22to have sturdy. So even if you're in
- 1:35:23against an enemy Pokemon with an oo
- 1:35:25move, you cannot safely switch out. At
- 1:35:28least you cannot safely switch out until
- 1:35:29the enemy uses an oo move against scary
- 1:35:32hits the oo move and the text appears
- 1:35:34that the oo move failed because of
- 1:35:36sturdy. Once this happens, the AI is
- 1:35:38never going to use an ok move on scari
- 1:35:40again while it's still in. It's also
- 1:35:42really important to know that the AI
- 1:35:43does not do any kind of deductive
- 1:35:44reasoning. Let's say I've got a heat
- 1:35:46proof bronzong. Let's say the enemy uses
- 1:35:49a fire move against my bronzong and it
- 1:35:50doesn't do very much damage. Now, if the
- 1:35:53enemy was a human, they'd look at that
- 1:35:55and go, "Oh, it must be a heat proof
- 1:35:57bronzong. It must not have levitate."
- 1:35:59The AI is not going to do this. The AI
- 1:36:02does not look at the reduced damage from
- 1:36:03heat proof and say that this must be a
- 1:36:05heat proof bronzong and it can't be
- 1:36:06levitate. This means my heat proof
- 1:36:08bronzong is always going to be randomly
- 1:36:10guessed as being levitate 50% of the
- 1:36:12time. And this actually leads us to
- 1:36:14quite an important conclusion for the
- 1:36:15frontier. Even if your Pokemon has the
- 1:36:18wrong ability, it gets bit of protection
- 1:36:20from the fact that it might have an
- 1:36:21ability. A famous example of this is
- 1:36:23lantern. Vault absorb lantern is way
- 1:36:26better than illuminate lantern, of
- 1:36:27course. But against the enemy AI, even
- 1:36:30if you have illuminate, about half the
- 1:36:33time, the AI is going to assume that
- 1:36:34you're actually volt absorb. So lantern
- 1:36:37is kind of protected against electric
- 1:36:38attacks just because the AI thinks that
- 1:36:40you might be vault absorb even though
- 1:36:42you're not it. So here's another one
- 1:36:44which might be a little bit dangerous to
- 1:36:45include. So as a general rule, most
- 1:36:48status moves in the game sit at plus
- 1:36:50zero. Most status moves don't have any
- 1:36:52kind of check apart from checking that
- 1:36:53they're useless. So if you don't want to
- 1:36:56spend ages looking at guides and
- 1:36:57websites, you can probably assume that
- 1:36:58most status moves are going to be stuck
- 1:36:59at plus zero as long as they're not any
- 1:37:01kind of setup move or any kind of other
- 1:37:03move listed in this article. Okay, so
- 1:37:05this is the really big one. Let's talk
- 1:37:07about substitute. This is probably the
- 1:37:09most famous frontier exploit. The AI is
- 1:37:12basically completely blind to the fact
- 1:37:14that you have a substitute in every way
- 1:37:15that matters. This means if I have a
- 1:37:18substitute up against an enemy, the
- 1:37:19enemy might spam thunderwave 10 turns in
- 1:37:22a row against me. It will never learn
- 1:37:24this. It will never realize that
- 1:37:25Thunderwave is failing because of my
- 1:37:27substitute. It will just continue
- 1:37:28stupidly spamming Thunderwave against
- 1:37:30me. This probably makes substitute the
- 1:37:31best move in the entire game against the
- 1:37:33enemy AI. It just buys you so much free
- 1:37:35turns. And combined with the fact that
- 1:37:37so many Pokemon can learn substitute, it
- 1:37:39makes substitute probably the single
- 1:37:40most used move in the entire frontier.
- 1:37:43Now, this also applies to damage. Let's
- 1:37:45say I have a suic with one HP left. It's
- 1:37:47going to die to any move. I'm facing an
- 1:37:49enemy which has an attack that deals 60
- 1:37:51damage to Suicun and another attack that
- 1:37:53deals 20 damage to Suicun. Because both
- 1:37:56of these moves would kill Suicun if I
- 1:37:57did not have a substitute, it's going to
- 1:37:59be random which one can be picked. Even
- 1:38:01though as humans we can see this and
- 1:38:03know that the weaker move isn't going to
- 1:38:04break the suicun substitute and
- 1:38:05therefore the stronger move should be
- 1:38:07picked. The AI does not understand that
- 1:38:09has a substitute here. It just thinks I
- 1:38:11have a one HP sweun. And of course, and
- 1:38:13this more applies to Nuzlocks,
- 1:38:15substitute is an incredibly safe way of
- 1:38:16dealing damage to yourself. As you
- 1:38:18substitute down lower and lower in HP,
- 1:38:21you will eventually enter kill range for
- 1:38:22one of these enemies moves. Once it sees
- 1:38:24that kill, you can then safely switch
- 1:38:26into a Pokemon that can either resist or
- 1:38:27is immune to that attack. Substitute is
- 1:38:30also just the best safety net ever in
- 1:38:31the game. It's the best protection you
- 1:38:33have against quick claw while trying to
- 1:38:34sweep is also the best protection you
- 1:38:35have against something like a bright
- 1:38:36powder miss. The fact that you get
- 1:38:38another turn as they break the
- 1:38:39substitute is huge. So another big
- 1:38:42example is speed control. As a
- 1:38:44generalization, the AI loves to be fast.
- 1:38:48If it has any kind of move that
- 1:38:49influences speed, it loves to use it.
- 1:38:52moves like thunderwave, scary face,
- 1:38:54agility, icy wind, trick room, these are
- 1:38:56all incredibly likely to be used if they
- 1:38:58can make the enemy faster. Generally,
- 1:39:00these moves can only be beaten by kill
- 1:39:02AI. So, we mentioned it before, but some
- 1:39:05moves are impossible to use at high
- 1:39:07health. Very important on this list are
- 1:39:09hyperbeam and hyperbeam like moves and
- 1:39:11superpower. You should be very afraid of
- 1:39:13being hit by these moves, but these
- 1:39:14moves cannot be chosen at full HP on an
- 1:39:16enemy unless the enemy has no other
- 1:39:18viable moves that can score decently
- 1:39:20against the player. I'll also put in a
- 1:39:22quick note about true end plus recharge,
- 1:39:23which do have a special interaction in
- 1:39:24the AI. Let's also talk about Oko AI.
- 1:39:27This is probably the most infamous AI in
- 1:39:29the frontier. Unfortunately, unlike Gen
- 1:39:313, these moves do run smart AI in Gen 4.
- 1:39:3425% of the time, they give a score of
- 1:39:36plus one. This means for a Pokemon like
- 1:39:38Donfan 4, Fishcher is actually quite
- 1:39:40likely to be used. It'll be around 60%
- 1:39:43chance to use Fisher unless Earthquake
- 1:39:44or another move already kills the enemy.
- 1:39:47There is not a lot you can do about Okus
- 1:39:49in the frontier. Sturdy, of course, is
- 1:39:51quite rare and is not on many good
- 1:39:52Pokémon in Gen 4. Your best chance
- 1:39:54against Okus is probably either to get
- 1:39:56an immunity against them or to use the
- 1:39:58move substitute. Here's another
- 1:40:00incredibly annoying one. So, high crit
- 1:40:02AI is a bit notorious. If a high crit
- 1:40:04move is neutral, it has a 25% chance for
- 1:40:06a plus one score. If they are super
- 1:40:08effective, they have a 50% chance for a
- 1:40:10plus one score. So, for example,
- 1:40:12Machamp, even if dynamic punch is the
- 1:40:14strongest move against the enemy, it can
- 1:40:16still sometimes use stone edge because
- 1:40:18stone edge is weaker, but can also get a
- 1:40:20plus one score for being high crit. A
- 1:40:23similar thing can happen with Machamp 4
- 1:40:24and cross chop instead of Earthquake.
- 1:40:27It is really difficult to play against
- 1:40:28these Pokémon. Again, you have to weigh
- 1:40:30up the exact odds of them picking what
- 1:40:31move and decide on what the best overall
- 1:40:33course of action is against these
- 1:40:35Pokemon. But be really careful about
- 1:40:36high crit AI when it comes to switches.
- 1:40:38A Pokémon with Stone Edge can easily
- 1:40:40randomly use this move when you're not
- 1:40:42expecting it to. Another big one is
- 1:40:44Counter Coat. So, Counter Coat is
- 1:40:45famously very bugged in generation 3,
- 1:40:47and this bug still exists in generation
- 1:40:494. And the bug is this. Before the
- 1:40:51physical special split, counter and
- 1:40:53mirror coat are supposed to check your
- 1:40:54type and match it against the type of
- 1:40:56known special and physical types. For
- 1:40:59example, what is intended to happen is
- 1:41:01to use counter more often against Taurus
- 1:41:03since Taurus is a normal type and normal
- 1:41:05type is a physical type in generations 1
- 1:41:07to three. But this check is actually
- 1:41:09backwards. So in so instead of
- 1:41:11encouraging counter against Taurus,
- 1:41:12Miraatote is going to be encouraged
- 1:41:14versus Taurus. Obviously Gen 4 is after
- 1:41:16the physical special split, but this
- 1:41:18still remains somewhat useful. It means
- 1:41:20that for example on turn one if Latio is
- 1:41:23out and remember Latio is dragon and
- 1:41:25psychic which are two special types in
- 1:41:27generation 3. An enemy with counter is
- 1:41:29very likely to use counter and
- 1:41:30potentially waste the turn. The AI also
- 1:41:33prefers to use counter or miraote after
- 1:41:34using attack of the correct category.
- 1:41:36This check is not bugged. You want to be
- 1:41:39careful about counter cut though because
- 1:41:40it's very rarely truly predictable. You
- 1:41:42can only identify scenarios where it's
- 1:41:43quite unlikely to be picked or quite
- 1:41:45likely to be picked. So let's quickly
- 1:41:47talk about explosion and destiny bond.
- 1:41:49These moves are obviously incredibly
- 1:41:50dangerous in Nuzlocks. They're obviously
- 1:41:52incredibly dangerous in the frontier as
- 1:41:53well. We don't want to trade with the
- 1:41:55enemy on their terms. Sometimes trading
- 1:41:58is fine, particularly in the factory,
- 1:42:00but we want to trade on our terms. So,
- 1:42:02let's talk about explosion and
- 1:42:03self-destruct first. First up, they have
- 1:42:05a bit of an update from Gen 3. A full
- 1:42:07health explosion is now very rare. It's
- 1:42:09around 2%. Although 2% might sound
- 1:42:11terrifyingly high if you're going for a
- 1:42:13very, very long streak. So, the things
- 1:42:15to become aware for explosion. First up,
- 1:42:17explosion becomes more likely the low in
- 1:42:19HP the enemy gets. And the really big
- 1:42:22turning point is 50% HP. If possible, do
- 1:42:24not hit the enemy below 50% HP unless
- 1:42:27you know you can kill them on the
- 1:42:28following turn. Next up, the AI does
- 1:42:30check how many Pokémon are left on both
- 1:42:32sides. If the AI is on their last
- 1:42:34Pokémon and you are not on your last
- 1:42:36Pokémon, they're very unlikely to
- 1:42:37explode. However, you need to be very
- 1:42:40careful about doubles. In a 2v2
- 1:42:42scenario, the AI will think that it
- 1:42:44still has an ally alive even though the
- 1:42:45ally is on the field. Of course, in
- 1:42:48reality, if it explodes here, it
- 1:42:49probably kills everything, but the
- 1:42:51rather simple AI algorithm does not care
- 1:42:53about that. So, be very careful
- 1:42:55explosion in endgame double scenarios.
- 1:42:57So, next up is Destiny Bond. I think
- 1:42:59Destiny Bond is in many ways much
- 1:43:01scarier than explosion. Luckily, the
- 1:43:03distribution of the move Destiny Bond is
- 1:43:04much rarer in the frontier and it's
- 1:43:06quite rare on Pokemon that also have the
- 1:43:08item quick claw. Some quick points about
- 1:43:10Destiny Bond. The AI will almost never
- 1:43:12Destiny Bond at full HP. The Destiny
- 1:43:14Bond is stuck at a minus one score. Like
- 1:43:17Explosion, Destiny Bond does get more
- 1:43:19likely at lower HP. The most important
- 1:43:21thing though, Destiny Bond does not
- 1:43:23check if this is the AI's final Pokemon.
- 1:43:25The AI does not explode very often on
- 1:43:27its final Pokemon, but if it's got one
- 1:43:28Pokemon left, it's very likely to still
- 1:43:30use Destiny Bond. This means in an
- 1:43:32endgame 1 v one scenario in the factory,
- 1:43:34if you're facing an enemy that is faster
- 1:43:35and has to move destiny bond, you need
- 1:43:37to be very careful about how you kill
- 1:43:38this. And finally, the AI will happily
- 1:43:40spam Destiny Bond. Of course, Destiny
- 1:43:42Bond doesn't fail if used in succession.
- 1:43:44But there's no logic like, oh, the
- 1:43:46player didn't attack me last turn, so
- 1:43:48I'm not going to use Destiny Bond this
- 1:43:49turn. The AI Destiny Bond logic is
- 1:43:51purely run on the remaining HP
- 1:43:52percentage. So, my voice is dying. I'm
- 1:43:54not sure if I can get through these fast
- 1:43:55enough. So, let's talk about raw and
- 1:43:57haze. This is a very useful move to know
- 1:43:59because the player does like setting up
- 1:44:00against raw and haze. Basically, haze
- 1:44:02and war both check if you've been
- 1:44:04boosted to plus three in one or more of
- 1:44:06your stats. Now, you can still boost to
- 1:44:08plus three. For example, you could use
- 1:44:10free dragon dances. But just make sure
- 1:44:12after you use free dragon dances on the
- 1:44:14following turn that you can immediately
- 1:44:15kill the enemy because on that turn is a
- 1:44:18turn they're very likely to use haze or
- 1:44:19raw. Raw also has an additional check.
- 1:44:22Basically, it checks if you've been in
- 1:44:23for four or more turns. Once you've been
- 1:44:25in for four or more turns, raw becomes
- 1:44:27incredibly likely. It's an 87.5% chance
- 1:44:30that raw gets a score above plus zero.
- 1:44:33So, some quick notes on healing.
- 1:44:34Probably one of the biggest bugs in the
- 1:44:36entire game is the fact that if the
- 1:44:38enemy is faster than you, the enemy is
- 1:44:40not going to use 50% healing moves. So,
- 1:44:42for example, if the enemy has Cresselia
- 1:44:44and Cresselia has Moonlight, the enemy
- 1:44:47Cresselia is not going to use Moonlight
- 1:44:48if it is faster than your Pokémon. You
- 1:44:51can abuse this as long as you have a
- 1:44:52Pokemon that is slower than them. The
- 1:44:53same check does not apply to rest,
- 1:44:55though. Rest does have different
- 1:44:56behavior based on whether or not the AI
- 1:44:58is faster or slower than the player,
- 1:44:59though. When it is faster, the key HP
- 1:45:01percentage is 40%. And when it is
- 1:45:04slower, the key percentage is 60%. This
- 1:45:06is quite easy to take advantage of. It's
- 1:45:08quite easy to knock a Pokemon below 60%
- 1:45:10and therefore force them to use rest
- 1:45:12again. In the time they're using rest,
- 1:45:13you can potentially use a setup move or
- 1:45:15you can potentially switch to another
- 1:45:16Pokémon. So, here's a big one. Endure
- 1:45:18reversal. Endure reversal sets are very
- 1:45:21deadly because most of them also run the
- 1:45:23item sele. There's two big key insights
- 1:45:26here. First up, reversal does not have
- 1:45:29kill AI. Reversal doesn't even do a
- 1:45:31proper damage comparison. Instead,
- 1:45:33reversal just gets more likely at lower
- 1:45:35HP. You want to be very, very careful
- 1:45:37about dealing damage to an enemy
- 1:45:38reversal or flail set if damage would
- 1:45:40bring them close to 20% or lower HP.
- 1:45:43Endure also has very dumb AI. Endure AI
- 1:45:47does not check whether or not the
- 1:45:48Pokemon just use Endure. This means the
- 1:45:50enemy can easily endure for three or
- 1:45:52four turns in a row. Endure just becomes
- 1:45:55more likely at lower HP. Between four
- 1:45:57and 35% specifically is a time when
- 1:45:59Endure is much more likely. However,
- 1:46:01Endure is never deterministic in the
- 1:46:03same way that reversal is at low HP. Of
- 1:46:05all the sets in the frontier, this is
- 1:46:07probably the most punching set to
- 1:46:08misplay into. So U-turn is another big
- 1:46:10one. U-turn is just very complicated.
- 1:46:12Let's go over some quick pointers on it.
- 1:46:14So, the AI is not going to use U-turn if
- 1:46:16U-turn is resisted. U-turn does have
- 1:46:19regular kill AI though, it can be used
- 1:46:20as a regular kill move. If the user has
- 1:46:23a super effective move versus the
- 1:46:25target, including the move U-turn,
- 1:46:26U-turn becomes very unlikely.
- 1:46:30And also, U-turn is more likely at
- 1:46:31higher HP. The more damage you deal to a
- 1:46:34Pokemon with U-turn, the less likely it
- 1:46:36is to U-turn against you. And U-turn is
- 1:46:39also a lot more likely if the AI is
- 1:46:41faster than the target. What makes
- 1:46:43U-turn very complicated is the fact that
- 1:46:44U-turn also runs a comparison between
- 1:46:46the damage on all moves in the back when
- 1:46:48used by the user. Similar to similar to
- 1:46:50what we saw in Switch AI, this can make
- 1:46:52predicting U-turn, particularly against
- 1:46:53an unknown team, exceptionally difficult
- 1:46:55to do. Luckily, I will say that most
- 1:46:57U-turn Pokémon in the frontier are
- 1:46:59pretty bad, and the one very good U-turn
- 1:47:01in the frontier is very unlikely to use
- 1:47:03U-turn because close combat is so likely
- 1:47:05to score as the highest damaging move.
- 1:47:07So, let's go over facade quickly. Facade
- 1:47:09is broken in two ways. First up, the
- 1:47:11damage check is broken. It doesn't
- 1:47:13double properly, but also facade does
- 1:47:15have special smart AI that it checks if
- 1:47:17the target has a status condition and
- 1:47:19not the user. This is quite a big bug
- 1:47:21obviously because facade almost never
- 1:47:24win strongest damage stack without stab.
- 1:47:26The facade users that you're going to
- 1:47:27run into are pretty much exclusively
- 1:47:29Pokémon like Xloud 2, which only use
- 1:47:31Facade because it's already the
- 1:47:32strongest move. Using a status move
- 1:47:35against a Pokemon with facade is
- 1:47:36actually quite unlikely to be punished
- 1:47:38unless it already sees facade as the
- 1:47:39strongest move against you. So next up,
- 1:47:42weather and solar beam. Some important
- 1:47:44points here. Solar beam does not have
- 1:47:46kill AI in Gen 4. It is not considered a
- 1:47:48kill move. The Gen 3 weather bug does
- 1:47:50not exist in Gen 4. And also the AI can
- 1:47:52be really stupid with Solar Beam. A
- 1:47:54human would almost always use sunny day
- 1:47:56and then Solar Beam. The AI can easily
- 1:47:58just ignore this and just use Solar Beam
- 1:48:00before sunny day, even if it already has
- 1:48:01Sunny Day on the same set. So disable
- 1:48:04and encore are very very annoying moves.
- 1:48:06Disable is just incredibly likely to be
- 1:48:07spammed for reasons I won't get into in
- 1:48:09depth here. Encore is also much more
- 1:48:11likely if the enemy user is faster than
- 1:48:13you or if you've just been disabled. Of
- 1:48:16course with disable on Encore, we're
- 1:48:18really talking about Dong 2
- 1:48:19specifically. Dong 2 is quite evil and
- 1:48:22actually ironically it's a Pokemon that
- 1:48:23is better the better your team is,
- 1:48:25particularly in a facility like the
- 1:48:26battle tower. And finally, I'm going to
- 1:48:28mention Protect. Gen 4 fixes the famous
- 1:48:31Gen 3 protect counter bug and it also
- 1:48:33removes a guaranteed plus one score when
- 1:48:35the protect counter is at zero. So
- 1:48:37basically Gen 3's broken protect does
- 1:48:40not apply in Gen 4. Protect of course is
- 1:48:42a very annoying move to face and it has
- 1:48:43two very notable uses an Earth ring free
- 1:48:45and swamp one. Outside of this, protect
- 1:48:47is not a very relevant move. I am
- 1:48:49rushing this video to try and help all
- 1:48:50of the platinum Kaiso players. I am
- 1:48:52probably not playing Kaiso, but I also
- 1:48:55appreciate there isn't great
- 1:48:56documentation on the Gen 4 AI so far on
- 1:48:58the internet, and hopefully this can be
- 1:48:59that for them. I suspect because of
- 1:49:01that, this video is going to have
- 1:49:02minimal editing, and I do apologize for
- 1:49:04that. I'm going to return to regular
- 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.