• Do not use Discord to host any images you post, these links expire quickly! You can learn how to add images to your posts here.
  • Reminder: AI-generated content is not allowed on the forums per the Rules and Regulations. Please contact us if you have any questions!
Resource icon

Resource Advanced AI System 2.5

Doubles oversight: In double (or triple) battles, the AI only checks if the target has a priority blocking ability (Dazzling, Queenly Majesty, Armor Tail), and not if any of the target's allies also have the ability, meaning it can try to use priority moves against a Pokemon even if its ally has a priority blocking ability.
 
Is this compatible with the auto battle feature in DBK? I want too be able to make the AI fight itself using this.
Update: its just the enemy. I assume support for the player isn't going to be supported anytime soon?
 
[2026-02-22 23:08:10 +0100]
[Pokémon Essentials version 21.1]
[v21.1 Hotfixes 1.0.9]

Exception: NameError
Message: uninitialized constant Battle:: AI::ItemIntelligence

Backtrace:
[Advanced AI System] Item_Intelligence.rb:588:in `apply_item_intelligence'
[Advanced AI System] Core.rb:182:in `apply_advanced_modifiers'
[Advanced AI System] Core.rb:101:in `pbGetMoveScore'
[Deluxe Battle Kit] [003] Command Menu Refactor.rb:512:in `block (2 levels) in pbGetMoveScores'
PBDebug:6:in `logonerr'
[Deluxe Battle Kit] [003] Command Menu Refactor.rb:512:in `block in pbGetMoveScores'
[Deluxe Battle Kit] [003] Command Menu Refactor.rb:481:in `each'
[Deluxe Battle Kit] [003] Command Menu Refactor.rb:481:in `each_with_index'
[Deluxe Battle Kit] [003] Command Menu Refactor.rb:481:in `pbGetMoveScores'
[Deluxe Battle Kit] [003] Command Menu Refactor.rb:463:in `pbDefaultChooseEnemyCommand'

I get this error sometimes when I select a Move for execution in battle, but I cant figure out why (or what triggers it)
Only happened with Skilllevel 85+



Also: I don't know if I'm missing something, but IA doesn't reserve the ace Pokemon via "Flags = ReserveLastPokemon"
Keeps spamming:
[AAI DEBUG] ReserveLastPokemon Active! Reserved Index: 5

when finding best replacemente:
[AAI] Reserved Pokemon at index 5 excluded from options

until, in the middle of the battle:
[AAI] ReserveLastPokemon: Ace has +45 matchup advantage — overriding reserve
 
Hello !

I would like to report a bug I have every time I use the move Sucker Punch on my trainers. I couldn't trace the source of the error.

--------------------------------------------------------------
[Pokémon Essentials version 21.1]
[v21.1 Hotfixes 1.0.9]

Exception: NoMethodError
Message: undefined method `battler' for #<Battle::Battler>

Backtrace:
[Advanced AI System] 0_Move_Scorer.rb:1827:in `score_sucker_punch_risk'
[Advanced AI System] 0_Move_Scorer.rb:502:in `score_move_advanced'
[Advanced AI System] Core.rb:98:in `pbGetMoveScore'
[Deluxe Battle Kit] [003] Command Menu Refactor.rb:522:in `block (3 levels) in pbGetMoveScores'
PBDebug:6:in `logonerr'
[Deluxe Battle Kit] [003] Command Menu Refactor.rb:522:in `block (2 levels) in pbGetMoveScores'
[Deluxe Battle Kit] [003] Command Menu Refactor.rb:517:in `each'
[Deluxe Battle Kit] [003] Command Menu Refactor.rb:517:in `block in pbGetMoveScores'
[Deluxe Battle Kit] [003] Command Menu Refactor.rb:481:in `each'
[Deluxe Battle Kit] [003] Command Menu Refactor.rb:481:in `each_with_index'
----------------------------------------------------------------------------------------------------

Also I have an evil suggestion : Can you make the sleep clause check toggle-able?
 
Also I must add that in a match up between a ferrothorn and a clefable (skill level 100), clefable spams toxic against ferro for no reason and doesn't do anything else.
 
Nononever updated Advanced AI System with a new update entry:

Bug Fixes

## Critical Crash Fixes
  • NameError: uninitialized constant Battle::AI::ItemIntelligenceItem_Intelligence.rb line 588
  • NoMethodError: undefined method 'battler' for Battle::Battler0_Move_Scorer.rb line 1862
  • NoMethodError: undefined method 'damagingMove?' for GameData::MoveDoubles_Coordination.rb line 2790
  • NameError: uninitialized constant...

Read the rest of this update entry...
 
Pivot moves such as Flip Turn now have an issue where the first time you use them, even if there is a substitute, they will not be substituted.
 
Trying to use Roar or Whirlwind even when there's only one monster on the opponent's side
 
[Pokémon Essentials version 21.1]
[v21.1 Hotfixes 1.0.9]

Exception: NoMethodError
Message: undefined method `num_targets' for :AllNearFoes:Symbol

Backtrace:
[Advanced AI System] Doubles_Coordination.rb:1178:in `evaluate_instruct'
[Advanced AI System] Doubles_Coordination.rb:3225:in `evaluate_instruct'
[Advanced AI System] Doubles_Coordination.rb:3529:in `apply_doubles_coordination'
[Advanced AI System] Core.rb:144:in `apply_advanced_modifiers'
[Advanced AI System] Core.rb:101:in `pbGetMoveScore'
[Deluxe Battle Kit] [003] Command Menu Refactor.rb:522:in `block (3 levels) in pbGetMoveScores'
PBDebug:6:in `logonerr'
[Deluxe Battle Kit] [003] Command Menu Refactor.rb:522:in `block (2 levels) in pbGetMoveScores'
[Deluxe Battle Kit] [003] Command Menu Refactor.rb:517:in `each'
[Deluxe Battle Kit] [003] Command Menu Refactor.rb:517:in `block in pbGetMoveScores'

[Pokémon Essentials version 21.1]
[v21.1 Hotfixes 1.0.9]

Exception: NoMethodError
Message: undefined method `num_targets' for :AllNearFoes:Symbol

Backtrace:
[Advanced AI System] Doubles_Coordination.rb:1178:in `evaluate_instruct'
[Advanced AI System] Doubles_Coordination.rb:3225:in `evaluate_instruct'
[Advanced AI System] Doubles_Coordination.rb:3529:in `apply_doubles_coordination'
[Advanced AI System] Core.rb:144:in `apply_advanced_modifiers'
[Advanced AI System] Core.rb:101:in `pbGetMoveScore'
[Deluxe Battle Kit] [003] Command Menu Refactor.rb:522:in `block (3 levels) in pbGetMoveScores'
PBDebug:6:in `logonerr'
[Deluxe Battle Kit] [003] Command Menu Refactor.rb:522:in `block (2 levels) in pbGetMoveScores'
[Deluxe Battle Kit] [003] Command Menu Refactor.rb:517:in `each'
[Deluxe Battle Kit] [003] Command Menu Refactor.rb:517:in `block in pbGetMoveScores'
error
 
Attempting to use support moves such as Heal Pulse After You on enemies instead of allies
 
Hey ! I still have issues with ReserveLastPokemon not working on the latest version.

Also I have an opponent with the move minimize but never uses it. I think minimize and double team should have a massive score boost. Maybe if the pokemon is quite healthy like the setup moves.
 
I fought a double battle where one of my Pokemon had Competitive and the opposing AI kept using Parting Shot on it. My Empoleon was at +6 sp atk at the end of the battle which it was a bit funny, also it's a bit less important of a move but reversal was used a bit randomly by the AI.
 
While I'm not 100% sure this is the cause, I'm only seeing the following problems when using this plugin.
1. When the opponent uses moves like Volt Switch and U-Turn, the pokemon doesn't always switch out. In rare cases there is a switch, but most of the time it's like the AI can chose to just keep the pokemon in play. I've also seen this happen with Emergency Exit.
2. When it comes to the Terastallization plugin, NPCs seem to ignore the "NoTera = true" line in the trainer PBS.
 
Back
Top