• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Our weekly protagonist poll is now up! Vote for your favorite Conquest protagonist in the poll by clicking here.
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

Script: Improved AI - Pokémon Essentials v20.1

I don't know about you, but I've gotten tired of trying to make good, interesting teams for gym leaders only for the AI to pilot it like a braindead possum. And the only improved AI scripts I've been able to find are for previous versions of Essentials and don't work with 20.1, so I went in myself and made some quick tweaks:


  • The AI favors higher-scoring moves much more than before; this scales with trainer skill level
  • Entry hazards have higher scores
  • Weather-setting moves' score logic is more complex. This also accounts for Gen 9 weather changes if you have (broken link removed) installed, though this plugin also works with base Essentials v20.1.

That's all I've done for now. The RNG element hasn't been removed entirely, especially for trainer classes with lower skill levels, but it is noticeably better. Eventually, I also want to change the switching logic, and I'll probably go through and tweak some more effect scores.

To install, download the file, unzip it, then add it to your plugins folder. Let me know if you have any suggestions or encounter any errors.

Download link
 
Last edited:
v1.1.0 update - bug fixes

Fixed some bugs that were causing the script to skip a lot of the logic, especially for lower trainer skill classes. This should fix most of the jankiness (spamming Will-o-Wisp on a statused target, using Fake Out after turn 1, etc.)
 
Last edited:
Hi, for some reason I keep getting an error in regards to Battle::AI.
What does that mean?
 
Hi, for some reason I keep getting an error in regards to Battle::AI.
What does that mean?
Please note that this plugin is only for Essentials v20/20.1 and will not work for v21/21.1. If you're having this problem on v20, then include the whole error message and I'll look into it.
 
Please note that this plugin is only for Essentials v20/20.1 and will not work for v21/21.1. If you're having this problem on v20, then include the whole error message and I'll look into it.
Oh wait its not for v21? My bad then.
 
i accidentally update the pokemon essential to v21 , how do you uninstall the plugins? i already the folder but still got error message
 
i accidentally update the pokemon essential to v21 , how do you uninstall the plugins? i already the folder but still got error message
If just removing the folder does not remove the plugin, go into your data folder and delete the PluginScripts file. This will force the game to recompile only your existing plugins.
 
Back
Top