Erika is the Celadon City Gym Leader, the fourth of the eight Gym Leaders in Pokemon Red, Blue and Yellow, fought in Celadon Gym. In Red and Blue she uses Victreebel (Lv 29), Tangela (Lv 24) and Vileplume (Lv 29); in Yellow, Tangela (Lv 30), Weepinbell (Lv 32) and Gloom (Lv 32). Beating her earns the Rainbow Badge, TM21 (Mega Drain) and 2,871 in prize money (3,168 in Yellow).
Erika's AI, in short: she uses a Super Potion on 50% of turns when her Pokemon is below 1/10 of its HP (at most 1 per Pokemon) in all three games. She 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
Celadon Gym
Team
3 Pokemon, Lv 24 to 29 in Red and Blue; 3 Pokemon, Lv 30 to 32 in Yellow
Reward
Rainbow Badge, TM21 Mega Drain, prize 2,871 in Red and Blue, 3,168 in Yellow
Badge effect
Traded Pokemon up to level 50 obey you; Strength works outside battle
Items
Uses a Super Potion on 50% of turns when her Pokemon is below 1/10 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.
Red and Blue
Celadon Gym
Prize 2,871
VictreebelLv 29Grass / Poison
Razor Leaf, Wrap, PoisonPowder, Sleep Powder
HP 90, Atk 71, Def 47, Spd 50, Spc 67
TangelaLv 24Grass
Constrict, Bind
HP 69, Atk 35, Def 64, Spd 37, Spc 56
VileplumeLv 29Grass / Poison
Petal Dance, PoisonPowder, Mega Drain, Sleep Powder
On 50% of her turns (128 in 256), when the Pokemon she has out is below 1/10 of its max HP, she uses a Super Potion instead of attacking (it heals 50 HP).
At most 1 item per Pokemon. The count starts over every time one of her Pokemon comes out.
The game rolls when her Pokemon's turn comes in the Speed order, after both of you picked a move. When she uses an item, her Pokemon does not attack that turn. Once that Pokemon's items are used up, the game does not roll for it at all.
Red and Blue make this roll even while her Pokemon is locked into a move, as with Petal Dance (Yellow skips it then).
When her Pokemon can use the Super Potion (HP below 1/10 of max, in whole numbers):
Pokemon
Max HP
Can heal at
Victreebel Lv 29
90
8 or less
Tangela Lv 24
69
5 or less
Vileplume Lv 29
87
7 or less
How she 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 she will not pick it while another move scores lower. On her team that means PoisonPowder and Sleep Powder.
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 Caterpie (Bug type), Victreebel's PoisonPowder gets the -1 push even though it does no damage, because the check looks only at the move's type (Poison).
Against Charmander (Fire type), Victreebel's Sleep Powder gets +1 and is held back: its Grass type is not very effective against Fire, and her Pokemon has a better move to use.
Against Nidoqueen (Poison and Ground), Victreebel's Razor Leaf 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. For a side effect (Constrict), 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%.
Yellow
Items
On 50% of her turns (128 in 256), when the Pokemon she has out is below 1/10 of its max HP, she uses a Super Potion instead of attacking (it heals 50 HP).
At most 1 item per Pokemon. The count starts over every time one of her Pokemon comes out.
The game rolls when her Pokemon's turn comes in the Speed order, after both of you picked a move. When she uses an item, her 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 her Pokemon is locked into a move, as with Petal Dance. Red and Blue roll even then.
When her Pokemon can use the Super Potion (HP below 1/10 of max, in whole numbers):
Pokemon
Max HP
Can heal at
Tangela Lv 30
83
7 or less
Weepinbell Lv 32
88
7 or less
Gloom Lv 32
85
7 or less
How she 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 she will not pick it while another move scores lower. On her team that means Sleep Powder and Stun Spore.
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), Weepinbell's Stun Spore gets the -1 push even though it does no damage, because the check looks only at the move's type (Grass).
Against Charmander (Fire type), Weepinbell's Sleep Powder gets +1 and is held back: its Grass type is not very effective against Fire, and her Pokemon has a better move to use.
Against Nidoqueen (Poison and Ground), Tangela's Mega Drain 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. For a side effect (Constrict and Acid), 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 Erika: What Will the AI Pick?
Pick your Pokemon and see, for each of her 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 Erika's team in Red and Blue: no status on your Pokemon, its Pokemon's first turn.
VictreebelLv 29Grass / Poison
Your types against it: Electric 0.5x.
Its move
On you
AI score
Chance
Razor Leaf Grass
1x
10
24.6%
Wrap Normal
1x
10
25%
PoisonPowder Poison
Status
10
24.6%
Sleep Powder Grass
Status
10
25.8%
TangelaLv 24Grass
Your types against it: Electric 0.5x.
Its move
On you
AI score
Chance
Constrict Normal
1x
10
49.6%
Bind Normal
1x
10
50.4%
VileplumeLv 29Grass / Poison
Your types against it: Electric 0.5x.
Its move
On you
AI score
Chance
Petal Dance Grass
1x
10
24.6%
PoisonPowder Poison
Status
10
25%
Mega Drain Grass
1x
10
24.6%
Sleep Powder Grass
Status
10
25.8%
Your Pikachu (Electric) against Erika's team in Yellow: no status on your Pokemon, its Pokemon's first turn.
TangelaLv 30Grass
Your types against it: Electric 0.5x.
Its move
On you
AI score
Chance
Constrict Normal
1x
10
24.6%
Bind Normal
1x
10
25%
Mega Drain Grass
1x
10
24.6%
Vine Whip Grass
1x
10
25.8%
WeepinbellLv 32Grass / Poison
Your types against it: Electric 0.5x.
Its move
On you
AI score
Chance
Razor Leaf Grass
1x
10
24.6%
Sleep Powder Grass
Status
10
25%
Stun Spore Grass
Status
10
24.6%
Acid Poison
1x
10
25.8%
GloomLv 32Grass / Poison
Your types against it: Electric 0.5x.
Its move
On you
AI score
Chance
Petal Dance Grass
1x
10
24.6%
Stun Spore Grass
Status
10
25%
Sleep Powder Grass
Status
10
24.6%
Acid Poison
1x
10
25.8%
Fight Erika 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.
What Pokemon does Erika use in Pokemon Red, Blue and Yellow?
In Red and Blue: Victreebel (Lv 29: Razor Leaf, Wrap, PoisonPowder, Sleep Powder), Tangela (Lv 24: Constrict, Bind) and Vileplume (Lv 29: Petal Dance, PoisonPowder, Mega Drain, Sleep Powder). In Yellow: Tangela (Lv 30: Constrict, Bind, Mega Drain, Vine Whip), Weepinbell (Lv 32: Razor Leaf, Sleep Powder, Stun Spore, Acid) and Gloom (Lv 32: Petal Dance, Stun Spore, Sleep Powder, Acid).
What do you get for beating Erika?
The Rainbow Badge, TM21 (Mega Drain) and 2,871 in prize money in Red and Blue (3,168 in Yellow). The badge: traded Pokemon up to level 50 obey you; Strength works outside battle.
Does Erika use items?
She uses a Super Potion on 50% of turns when her Pokemon is below 1/10 of its HP (at most 1 per Pokemon).
How does Erika'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). Erika 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 Erika online?
Yes, in GardenFlouer's Gen 1 battler, free in your browser. The Fight buttons on this page load her 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 her 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.