• 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.0.1

The AI prioritizes physical and special moves over status moves, and doesn't use Stealth Rock, Light Screen, or Reflect on the first turn. It also doesn't use heal moves even when HP is below half, and doesn't use Swords Dance or Dragon Dance very often.
The skill level is 100.
Also, when there is only one member in the party, no move is used when the PP of the most effective move is 0, and no error log is displayed.
 
I don’t think this is a "bug" per se, but I believe the default AI is actually superior when it comes to using status moves.

This is because status moves are almost always chosen with a specific role or "utility" in mind. For example:

  • Stealth Rock is used to punish switching and to nullify items like Focus Sash or abilities like Sturdy.
  • Recovery moves are meant to increase a Pokémon's longevity on the field.
  • Setup moves (stat boosters) are essential for breaking through defensive "walls" or minimizing incoming damage.
  • Light Screen, Reflect, and Tailwind are specifically brought in to create a tactical advantage for the rest of the team.
Every Pokémon equipped with status moves has a defined role. Therefore, if a Pokémon has a status move and the situation allows it to function effectively, I want the AI to prioritize using it.
 
# Sweep Potential
if user.hp > user.totalhp * 0.7
score += 30
end
else
score -= 40 # Dangerous to setup
end

0_Move_Scorer.rb

Error: I solved it by deleting "end".
 
[Pokémon Essentials version 21.1]
[v21.1 Hotfixes 1.0.9]

Script error in event 2 (coords 11,10), map 544 (AIbattle)
Exception: LoadError
Message: cannot load such file -- pp

***Full script:
pbEntryAndBattle(:KIRIGIRI, "Kirigiri",3,2)
Backtrace:
<internal:prelude>:14:in `require'
<internal:prelude>:14:in `pp'
[Advanced AI System] 0_Move_Scorer.rb:26:in `score_move_advanced'
[Advanced AI System] Core.rb:57: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'
Error occurred
 
Back
Top