• 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 Item AI [DBK Add-On] [v21.1]

Improved Item AI for v21.1
Improves trainer's AI when using items in battle and expands the types of items they can use.
[PokeCommunity.com] Improved Item AI [DBK Add-On] [v21.1]
[PokeCommunity.com] Improved Item AI [DBK Add-On] [v21.1]

Overview
This plugin builds upon the Deluxe Battle Kit to improve upon the AI when it comes to using items from the inventory. This will generally allow AI trainers to use items more intelligently and less wastefully. AI trainers will now also consider using items to restore HP, PP, or cure the status conditions of their entire party, and not just their active Pokemon.
This also expands upon the types of items the AI is able to use in battle, allowing them to access all of the same items that the player would be able to use. This means you can give NPC's more unique items that they normally wouldn't know how to use, such as Ethers, Guard Spec. or even more obscure things like the Poke Flute.

This plugin is required for the Wonder Launcher add-on plugin.


-DOWNLOAD LINK-

Installation
  • First, please install the latest version of the Deluxe Battle Kit. This plugin functions as an add-on to that kit.
  • Next, download this plugin using the link provided and extract its contents to your root Essentials folder so that the Plugins folder in the download merges with their equivalent folders in your project.
  • Start your game in debug mode and make sure you recompile by holding down the CTRL key while the game is booting up. If the console says "Game data was not compiled", then you didn't hold down the key long enough, or don't have the game window in focus.

Changelog (v1.0.1)
Spoiler:



Plugin Tutorial


Please refer to the add-on page for this plugin in the Deluxe Battle Kit Tutorial.

 
Last edited:
Minor Update (v1.0.1)
  • Fixed AI trainers prioritizing Full Restores in situations where they shouldn't.
  • Made the AI less likely to want to use stat-boosting items on a battler if that battler already knows a move that can raise the same stat that item would boost.
  • Implemented new functionality that allows an AI trainer to "remember" if they used an item on the previous turn.
  • AI trainers will be discouraged from using items on a particular Pokemon if they already used an item on that same Pokémon on the previous turn.
 
Back
Top