AI Rules & Scores
Vanilla AI explanation
The AI evaluates all available moves each turn, assigns a score to each one, and selects the move with the highest score. If several moves share the same score, it randomly chooses one of them. In Double Battles, the AI scores every possible move against each valid target and then selects the move target combination with the highest overall score.
Custom AI Rules & Scores
This document explains the Pokémon Utopia AI. It aims to provide a clear overview of the custom AI’s general decision making process, while noting that certain individual situations may behave differently where appropriate, as covering every possible exception would be too extensive for a general explanation.
The goal is not to go overboard, but to make the AI significantly smarter while keeping it largely consistent with the vanilla AI.
- Every Move starts with 90 Score -
General AI
General AI:
will be selected to kill!
Double Battle: Only the faster AI Pokémon will select a random damaging Move!
Otherwise the highest Roll for a move will be selected for a kill!
With Immunity etc. still in mind!
General Moves AI
General Moves AI:
Pursuit:
If the Player is below 40% HP
- 50% chance for +10 Score
If the Player is below 20% HP
- +18 Score if yes
If the Player is at or below 10% HP
- +30 Score if yes
Regardless, if AI is faster:
- Additional +4 Score if yes
Future Sight:
- +8 Score
Else
- +6 Score
Imprison:
- +5 Score
Else
- -15 Score
Trick, Switcheroo:
4. Is the AI holding: Toxic Orb, Flame Orb or Black Sludge?
- +7 Score
Is the AI holding: Iron Ball, Lagging Tail or Sticky Barb?
- +7 Score
Else
- +3 Score
Recover, Slack Off, Heal Order, Soft-Boiled, Roost, Strength Sap
Morning Sun, Synthesis, Moonlight:
5. If the AI decides it should use a recovery move:
- +6 Score
Is the AI at full HP?
- -20 Score
Is the AI at 85% HP or higher?
- -10 Score
5.1 Morning Sun, Synthesis, Moonlight (Sunlight case):
If Sun is up and AI decides it should use one of these recovery moves:
- +7 additional Score
Icy Wind, Electroweb, Mud Shot, Low Sweep:
6. Is the AI slower than the Player?
- +6 Score if yes
Is the AI faster than the Player?
- +2 Score if yes
Is the Player Pokemon ability either (Contrary, Clear Body or White Smoke)?
- never uses those moves
Will-O-Wisp:
7. - +2 Score always
Does the Player have a physical move?
- 37% chance +3 Score if yes / 37% chance -5 Score if no
Destiny Bond, Grudge (If the Player knows it):
8. If the Player knows Destiny Bond or Grudge
- -15 Score if yes
Player is at or below 12.5% HP and the player has
Destiny Bond or Grudge?
- -80 Score (For the move Darkest Lariat)
If the Player uses Destiny Bond
- -20 Score (For the move Bullet Punch)
–15 Score additional score if the AI has no other Pokémon alive
When the Player is faster than the AI:
Would the AI K.O the Player and last move was Destiny Bond
- 20 Score if yes
–10 Score additional score if the AI has no other Pokémon alive
Would the AI KO the Player and last move was Grudge
- 15 Score if yes
– 7 Score additional score if the AI has no other Pokémon alive
Destiny Bond:
9. If the AI is at or below 50% HP and last move was Destiny Bond
- 50% chance -55 Score
If the AI is at or below 25% HP and last move was not Destiny Bond
- +20 Score
Spore, Sleep Powder, Lovelykiss, Hypnosis, Sing, Grasswhistle, Dark Void, Yawn:
10. Does the AI have more than 80% HP?
- +35 Score if yes
Does the AI have more than 50% HP but below 80% HP?
- +20 Score if yes
Does the AI have less than 50% HP and is slower than the Player?
- +5 Score if yes
Is the AI slower than the Player?
- +10 additional Score
Will never use these Moves when the player is immune!
Reflect, Light Screen:
11. Does the Player have a physical move in their pool?
- +15 Score if yes (For Reflect)
Does the Player have a special move in their pool?
- +15 Score if yes (For Light Screen)
Is the AI holding a Light Clay?
- +8 additional Score if yes
Stealth Rock, Spikes, Toxic Spikes, Stickyweb:
12. Is this the first turn for the AI’s active Pokémon?:
- If Yes:
- +15 Score with 75% chance
- +12 Score with 25% chance
Is the ability Sturdy or the Item Focus Sash active?
- If Yes:
- +20 addtional Score
- If it’s not the first turn anymore:
- +4 Score with 75% chance
- +3 Score with 25% chance
AI used Spikes/Toxic Spikes last turn and Player Pokémon has Rapid Spin?:
- If Yes:
- 50% chance -35 Score
Tailwind, Trick Room:
13. Is the AI’s active Pokémon slower than the Player?:
- +20 Score if yes
Protect, King’s Shield:
14. Is it Round 1 and not a Double Battle?:
- -3 Score if yes
Is the AI afflicted by Poison or Burn?:
- -5 Score if yes
Is the Player afflicted by Poison or Burn?:
- +2 Score if yes
Does the AI have used Protect/King’s Shield last turn?:
- 50% -20 Score if yes
Leech Seed, Attract, Confuse Ray, Thunder Wave, Fake Tears, Tickle, Focus Energy:
15. Does the AI have more than 50% HP and last move was not one of these?:
- +3 Score if yes
Is the AI faster than the Player Pokémon and last move was not one of these?:
- +5 additional Score if yes
Substitute:
16. Is the AI at or below 50% HP?:
- -80 Score if yes
Did the AI used Substitute last turn?:
- 50% chance -25 Score if yes
Is the Player Pokémon asleep?:
- +3 additional Score if yes
Is the Player Pokémon leech seeded and is the AI faster?:
- +3 additional Score if yes
Fake Out (Singles):
17. Is it the first turn?:
- +22 Score if yes
Fake Out (Doubles):
Is it the first turn and the AI deals less than 40% damage to either target?:
- +55 Score if yes
Terrain Pulse:
18. When an active Terrain is present and the move is super effective:
- +20 Score
Does the AI outspeed the Player?:
- +5 additional Score if yes
Fishious Rend/Bolt Beak:
19. When the AI is faster and the move is resistant:
- +20 Score
When the AI is faster and the move is neutral:
- +25 Score
When the AI is faster and the move is super effective:
- +35 Score
Encore:
20. The Player Pokémon is faster and used a non-damaging move:
If Yes:
- +6 Score with 50% chance
- +5 Score with 50% chance
The Player Pokémon is slower and used a non-damaging move:
- +7 Score if yes
Bind,Clamp,Fire Spin,Infestation,Magma Storm,Sand Tomb, Sand Trap,
Thunder Cage,Whirlpool,Wrap:
21.: Is it the AI’s Pokémon first turn and one of these moves isn’t super effective?:
- +10 Score if yes
Was the Player Pokémon previously freed from these moves?:
- +5 Score if yes
Double Battle AI
Double Battle AI:
- +8 Score always
Is the Player Pokemon ability either (Contrary, Clear Body or White Smoke)?
- never uses these moves
- +10 Score always
Did the AI use Helping Hand the last turn?
- -5 additional Score if Yes
Follow Me:
- +12 Score always
Did the AI use Follow Me the last turn?
- -5 additional Score if Yes
- +5 additional Score if No
The AI didn’t use Helping Hand the last turn?
- 20% +35 score if yes
The AI won’t use either of those moves (if) the partner also uses either one
of these moves or is using a status move
- +1 Score always
Does the Player have a physical move?
- 37% chance +2 Score if yes
Does the Player have no physical move?
- 37% chance -4 Score if yes
Does the partner Pokemon know Hex?
- +6 Score if yes
Is the AI’s active Pokémon or Partner slower than the Player?
- +25 Score if yes
The AI chooses randomly which Pokémon uses Trick Room
6. Swagger(Target = Partner):
Does the AI Partner Pokémon have Own Tempo/Misty terrain active?
- +27 Score if yes (Turn 1)
- +12 Scores otherwise
Is the Partner Pokémon grounded?
- -80 Score if no
Priority AI
Priority AI:
Setup AI
Setup AI:
Is it Round 1 and does the AI outspeed the Player?
- +10 Score if yes
Did the AI take more than 50% HP damage last turn?
- -30 Score if yes
Is the AI at or below 50% HP?
- -2 Score if yes
- -10 Score if yes and Double Battle
Is the AI at or below 40% HP?
- -3 Score if yes
Is the AI at or below 10% HP?
- -60 Score if yes (Will never use a Setup Move)
Will never use a Setup Move when the player has Unaware etc.!
Switch-In AI
Switch-In AI:
If the situation is unfavorable, the AI may consider switching out.
and has more than 50% HP!
Post Ko Switch-In AI
Post KO Switch-In AI:
- +20 Score if yes
- +30 Score if it can deal roughly 50% HP
- +15 Score if it can deal roughly 33% HP
- +60 Score if yes
- +35 Score if less than 25% HP
- +10 Score if less than 50% HP
-35 Score if more than 60% HP
-100 Score if it can potentially KO
6. Does the switch-in hold an Eviolite?
- +2 additional Score if yes
7. Does one of the switch-ins have Sticky Web?
- +3 additional Score if yes
Does one of the switch-ins have Parting Shot?
- +2 additional Score if yes