Lance is the fourth member of the Elite Four in Pokemon Red, Blue and Yellow, fought in Lance's Room. In all three games he uses Gyarados (Lv 58), Dragonair (Lv 56), Dragonair (Lv 56), Aerodactyl (Lv 60) and Dragonite (Lv 62), and Yellow changes some of their moves. He pays 6,138 in prize money in all three games.
Lance's AI, in short: he uses a Hyper Potion on 50% of turns when his Pokemon is below 1/5 of its HP (at most 1 per Pokemon) in all three games. He picks moves by Rules 1 and 3 in all three games. Everything on this page is read from the game's code, and GardenFlouer's battler runs the same routines, tested in the game's own code in an emulator.
Where
Lance's Room
Team
5 Pokemon, Lv 56 to 62 in Red and Blue; 5 Pokemon, Lv 56 to 62 in Yellow
Prize
6,138 in Red and Blue, 6,138 in Yellow
Items
Uses a Hyper Potion on 50% of turns when his Pokemon is below 1/5 of its HP (at most 1 per Pokemon) in all three games
Move choice
Rules 1 and 3 in all three games (explained below)
Moves in red are set by the game's own code on top of the normal moveset (a gym leader's move in their own gym, the Elite Four's team move, the Champion's moves, or Yellow's special trainer moves). Stats use the trainer DVs every Gen 1 trainer gets (9, 8, 8, 8) and no stat experience.
On 50% of his turns (128 in 256), when the Pokemon he has out is below 1/5 of its max HP, he uses a Hyper Potion instead of attacking (it heals 200 HP).
At most 1 item per Pokemon. The count starts over every time one of his Pokemon comes out.
The game rolls when his Pokemon's turn comes in the Speed order, after both of you picked a move. When he uses an item, his Pokemon does not attack that turn. Once that Pokemon's items are used up, the game does not roll for it at all.
When his Pokemon can use the Hyper Potion (HP below 1/5 of max, in whole numbers):
Pokemon
Max HP
Can heal at
Gyarados Lv 58
187
36 or less
Dragonair Lv 56
143
27 or less
Dragonair Lv 56
143
27 or less
Aerodactyl Lv 60
175
34 or less
Dragonite Lv 62
194
37 or less
How he picks a move
Every move starts at 10 points. The rules below add or take away points, and only the moves with the lowest score can be picked. Then the game rolls for a move slot until it lands on one of them: slot 1 takes 63 rolls of 256, slot 2 takes 64, slot 3 takes 63 and slot 4 takes 66, so among tied moves the fourth is a little more likely (25.8%, against 24.6%, 25% and 24.6% when all four tie).
Rule 1, no double status. If your Pokemon already has a status condition, each move that only puts you to sleep, poisons or paralyzes gets +5, so he will not pick it while another move scores lower. None of his Pokemon know such a move, so this rule never changes anything for him.
Rule 3, type matchups. A move whose type is super effective against your Pokemon gets -1, even one that does no damage. A move whose type is not very effective or has no effect gets +1, but only if the same Pokemon also has a damaging move of another type (or Super Fang, a fixed damage move such as Seismic Toss, or Fly). The check reads only the first line of the type chart that matches either of your types, so against a two-type Pokemon it can see one type and miss the other.
Against Ekans (Poison type), Dragonair's Agility gets the -1 push even though it does no damage, because the check looks only at the move's type (Psychic).
Against Abra (Psychic type), Dragonite's Barrier gets +1 and is held back: its Psychic type is not very effective against Psychic, and his Pokemon has a better move to use.
Against Omanyte (Rock and Water), Gyarados's Hydro Pump is read as super effective, so it gets -1, but it really does 1x damage: the check stopped at the first line of the type chart that matched one of the two types.
The computer's stat-lowering moves can fail on their own. When the computer uses a move that lowers your stats, the game first rolls 0 to 255 and the effect fails on anything under 64: a 1 in 4 chance, before accuracy is even checked. Your own moves never get this roll, and link battles do not have it. On his team: Leer.
Yellow
Items
On 50% of his turns (128 in 256), when the Pokemon he has out is below 1/5 of its max HP, he uses a Hyper Potion instead of attacking (it heals 200 HP).
At most 1 item per Pokemon. The count starts over every time one of his Pokemon comes out.
The game rolls when his Pokemon's turn comes in the Speed order, after both of you picked a move. When he uses an item, his Pokemon does not attack that turn. Once that Pokemon's items are used up, the game does not roll for it at all.
Yellow skips this roll while his Pokemon is locked into a move, as with Fly. Red and Blue roll even then.
When his Pokemon can use the Hyper Potion (HP below 1/5 of max, in whole numbers):
Pokemon
Max HP
Can heal at
Gyarados Lv 58
187
36 or less
Dragonair Lv 56
143
27 or less
Dragonair Lv 56
143
27 or less
Aerodactyl Lv 60
175
34 or less
Dragonite Lv 62
194
37 or less
How he picks a move
Every move starts at 10 points. The rules below add or take away points, and only the moves with the lowest score can be picked. Then the game rolls for a move slot until it lands on one of them: slot 1 takes 63 rolls of 256, slot 2 takes 64, slot 3 takes 63 and slot 4 takes 66, so among tied moves the fourth is a little more likely (25.8%, against 24.6%, 25% and 24.6% when all four tie).
Rule 1, no double status. If your Pokemon already has a status condition, each move that only puts you to sleep, poisons or paralyzes gets +5, so he will not pick it while another move scores lower. On his team that means Thunder Wave.
Rule 3, type matchups. A move whose type is super effective against your Pokemon gets -1, even one that does no damage. A move whose type is not very effective or has no effect gets +1, but only if the same Pokemon also has a damaging move of another type (or Super Fang, a fixed damage move such as Seismic Toss, or Fly). The check reads only the first line of the type chart that matches either of your types, so against a two-type Pokemon it can see one type and miss the other.
Against Squirtle (Water type), Dragonair's Thunder Wave gets the -1 push even though it does no damage, because the check looks only at the move's type (Electric).
Against Sandshrew (Ground type), Dragonair's Thunderbolt gets +1 and is held back: its Electric type has no effect on Ground, and his Pokemon has a better move to use.
Against Omanyte (Rock and Water), Gyarados's Hydro Pump is read as super effective, so it gets -1, but it really does 1x damage: the check stopped at the first line of the type chart that matched one of the two types.
The computer's stat-lowering moves can fail on their own. When the computer uses a move that lowers your stats, the game first rolls 0 to 255 and the effect fails on anything under 64: a 1 in 4 chance, before accuracy is even checked. Your own moves never get this roll, and link battles do not have it. On his team: Leer. For a side effect (BubbleBeam), that roll comes before the usual 85 in 256, so when the move hits the stat drop happens 24.9% of the time instead of 33.2%.
Your Pokemon vs Lance: What Will the AI Pick?
Pick your Pokemon and see, for each of his Pokemon, what its moves do to yours, how the AI scores each one, and the exact chance it picks each move this turn. Rows in color are the moves that can be picked. It runs the game's own rules, checked against the battler's engine.
Your Pikachu (Electric) against Lance's team in Red and Blue: no status on your Pokemon, its Pokemon's first turn.
GyaradosLv 58Water / Flying
Your types against it: Electric 4x.
Its move
On you
AI score
Chance
Dragon Rage Dragon
Fixed
10
24.6%
Leer Normal
Status
10
25%
Hydro Pump Water
1x
10
24.6%
Hyper Beam Normal
1x
10
25.8%
DragonairLv 56Dragon
Your types against it: Electric 0.5x.
Its move
On you
AI score
Chance
Agility Psychic
Status
10
24.6%
Slam Normal
1x
10
25%
Dragon Rage Dragon
Fixed
10
24.6%
Hyper Beam Normal
1x
10
25.8%
DragonairLv 56Dragon
Your types against it: Electric 0.5x.
Its move
On you
AI score
Chance
Agility Psychic
Status
10
24.6%
Slam Normal
1x
10
25%
Dragon Rage Dragon
Fixed
10
24.6%
Hyper Beam Normal
1x
10
25.8%
AerodactylLv 60Rock / Flying
Your types against it: Electric 2x.
Its move
On you
AI score
Chance
Supersonic Normal
Status
10
24.6%
Bite Normal
1x
10
25%
Take Down Normal
1x
10
24.6%
Hyper Beam Normal
1x
10
25.8%
DragoniteLv 62Dragon / Flying
Your types against it: Electric 1x.
Its move
On you
AI score
Chance
Agility Psychic
Status
10
24.6%
Slam Normal
1x
10
25%
Barrier Psychic
Status
10
24.6%
Hyper Beam Normal
1x
10
25.8%
Your Pikachu (Electric) against Lance's team in Yellow: no status on your Pokemon, its Pokemon's first turn.
GyaradosLv 58Water / Flying
Your types against it: Electric 4x.
Its move
On you
AI score
Chance
Dragon Rage Dragon
Fixed
10
24.6%
Leer Normal
Status
10
25%
Hydro Pump Water
1x
10
24.6%
Hyper Beam Normal
1x
10
25.8%
DragonairLv 56Dragon
Your types against it: Electric 0.5x.
Its move
On you
AI score
Chance
Thunder Wave Electric
Status
11 not very effective type +1
0%
Slam Normal
1x
10
49.2%
Thunderbolt Electric
0.5x
11 not very effective type +1
0%
Hyper Beam Normal
1x
10
50.8%
DragonairLv 56Dragon
Your types against it: Electric 0.5x.
Its move
On you
AI score
Chance
BubbleBeam Water
1x
10
24.6%
Wrap Normal
1x
10
25%
Ice Beam Ice
1x
10
24.6%
Hyper Beam Normal
1x
10
25.8%
AerodactylLv 60Rock / Flying
Your types against it: Electric 2x.
Its move
On you
AI score
Chance
Wing Attack Flying
0.5x
11 not very effective type +1
0%
Swift Normal
1x
10
49.2%
Fly Flying
0.5x
11 not very effective type +1
0%
Hyper Beam Normal
1x
10
50.8%
DragoniteLv 62Dragon / Flying
Your types against it: Electric 1x.
Its move
On you
AI score
Chance
Blizzard Ice
1x
10
32.6%
Fire Blast Fire
1x
10
33.2%
Thunder Electric
0.5x
11 not very effective type +1
0%
Hyper Beam Normal
1x
10
34.2%
Fight Lance in the Battler
Each Fight this team button above opens GardenFlouer's Gen 1 battler with that exact team: the real levels and moves, and the class AI with its items and switching, run by the same rules as the cartridge. Pick your team or tap Random 6, then Battle. Your team fights at level 100 unless you tick Use a matching level there.
He uses a Hyper Potion on 50% of turns when his Pokemon is below 1/5 of its HP (at most 1 per Pokemon).
How does Lance's AI pick moves?
Every move starts at 10 points, the class's rules add or take away points, and only the lowest scores can be picked; then a slot roll breaks the tie, a little in favour of slot 4 (66 in 256). Lance uses Rules 1 and 3 in Red and Blue and Rules 1 and 3 in Yellow. The odds calculator on this page shows the exact chance of each move against your Pokemon.
Can I battle Lance online?
Yes, in GardenFlouer's Gen 1 battler, free in your browser. The Fight buttons on this page load his exact team, with the class's AI, items and switching, run by the same rules as the cartridge.
Where This Comes From
Every team, level, move and prize here is read from the pret disassemblies of Pokemon Red, Blue and Yellow, the community projects that turned the cartridges back into readable code, through the same trainer data as the trainer database. The AI is the game's own trainer AI routine for his class. The odds calculator runs the game's move choice rules, and a test replays every one of its answers in the battler's engine, which matched the real game in an emulator in all 352 Red and 343 Yellow trainer fights it was run on.