PokéBase - Pokémon Q&A
1 vote

basically, I want to know if there's any set order or if there's some AI behind it or if it's just random.

I think their non-fainted Pokemon are in a set order. When sending out a Pokemon, they look at your Pokemon, and send out the first one of theirs that has a super effective attack. If none have any super effective attacks, then they just send out their first one.
sumwun is correct. They've definitely got some sort of battle intelligence, but how much I have no idea. I doubt it is random.
They send out their Pokemon in a set order.

Source: Knowledge and lots of Bulbapedia
Converting this to a comment because it doesn't suffice as an answer unless it has clear evidence to support it.
not sure what determines it, but i think its just the coding of the game. it would be harder to add a randomizer to an already large game for the time.

1 Answer

2 votes

Gym leaders basically have their first Pokémon fixed (as we have our first Pokémon in our party). You can't see their Pokémon before sending your first one. From second one onwards, they check your Pokémon and send out theirs which has Super Effective moves. It is not random, they should have some sort of battle intelligence in order to make Gym battles a little tough. If they have none, they would send a mon who can hit the hardest (except in some cases, the gym leader is most likely to save his / her Ace for the last).

For example, one Pokémon would be the most powerful, but not sent first by a Gym leader.
Eg. Fortree City Gym - Swablu, Pelipper, Skarmory, Tropious, and Altaria; and Altaria is mentioned by DB in last, Swablu is mentioned at the first. She sends Swablu first, her first Pokemon (I'm talking about my emerald, giving you an example to make you understand) Click this link for details. I'm facing them with Manectric. Swablu fainted with a spark. Since Altaria take neutral damage with electric moves, and also has Earthquake, The gym leader sent Altaria and OHKO'd it.

I'll take another case. Imagine you have a Sharpedo with Ice Beam. It knocks out pretty much everyone except Skarmory. Winona leads with Swablu, and in this case, she sends out Skarmory.

This is how it works xD
Hope I helped.

edited by
I don't know if this has changed or not, but in Sword, I battled against Leon, he sent out Aegislash first. I lost, and then he sent out a different Pokemon, so this answer may or may not be false
This is for Sapphire though :P
Yeah, but the AIs in SwSh aren’t what they used to be, and in SwSh and a few other games, Gyms have their Pokémon fixed.
That's why I said I am unsure
Umm... Why is it flagged? I had just answered for Sapphire, and I am sure it needs more info to deserve BA.
I don’t know, this seems like a good answer to me.
Clearing flags for now.