[Plugin] Advanced AI System - Master-Tier Intelligence
DISCLAIMER: This plugin is a complex system overhaul. While extensively tested, there may still be unknown bugs. Please report any issues you encounter!
Advanced AI System is a comprehensive overhaul for the Pokémon Essentials AI, designed for high-difficulty gameplay. It replaces the standard decision-making process with a smart, state-aware system that understands roles, field effects, and long-term strategy.
This plugin transforms your trainers from predictable opponents into tactical masterminds that predict switches, abuse field effects, and coordinate in double battles.
Screenshots
Placeholder: Show the console output with debug logs like "[Switch] Best switch: Garchomp (Score: 85)"
Placeholder: Show a battle scene where the AI makes a smart switch or uses a setup move perfectly
Key Features
- Competitive Switch Logic: The AI proactively switches out into better matchups, taking into account Type Matchups, Stats, and Role Counters.
- Move Memory System: Tracks every move you use. The AI remembers if you have a Super Effective coverage move or a Priority move and plays around it.
- Threat Assessment: Calculates a dynamic "Threat Score" (0-10) for your active Pokémon based on its offensive pressure and defensive capabilities.
- Role Detection: Automatically identifies if a Pokémon is a Sweeper, Wall, Tank, Support, or Pivot and adjusts tactics accordingly (e.g., Walls will Toxic-Stall, Sweepers will Setup).
- Field Mastery: Fully understands Weather, Terrain, and Trick Room. It won't use Solar Beam in Rain or Earthquake on Grassy Terrain.
- Doubles Coordination: Prevents "Overkill" (doubling up on a 1HP target) and optimizes Spread Moves (e.g., using Earthquake next to a Flying partner).
- DBK Integration: Full support for Dynamax and Terastallization (if installed). The AI uses these mechanics strategically, not randomly.
Config & Usage
This plugin integrates naturally with Essentials. You don't need complex script calls—simply configure your Trainers where they belong: in your PBS files.
1. Setting Skill Levels
The AI activates automatically for any Trainer with a Skill Level >= 50. The higher the skill, the more features they use.You can set this in [FILE]PBS/trainer_types.txt[/FILE] (for an entire class) or [FILE]PBS/trainers.txt[/FILE] (for specific battles).
Skill Tiers:
- 50+: Core AI (Smart Move Scoring, Basic Switch Logic)
- 65+: Personalities & Field Effects
- 85+: Item Intelligence & Prediction
- 95+: Dynamax Support (requires DBK)
- 100: Terastallization Support (requires DBK)
Example: Making Gym Leaders Smart
In [FILE]PBS/trainer_types.txt[/FILE]:
Code:
[LEADER_Brock]
Name = Gym Leader
Gender = Male
SkillLevel = 100
BaseMoney = 100
Advanced Settings
You can fine-tune the system in [FILE][001] Settings.rb[/FILE].
Global Aggression Control
You can use Game Variable 100 to force a specific "Behavior Mode" across all trainers (e.g., for a Hard Mode toggle).
- 1: Beginner (Conservative Switching)
- 2: Mid (Balanced Switching)
- 3: Pro (Aggressive Switching)
Compatibility
DBK Plugins
The system automatically detects Deluxe Battle Kit plugins and requires NO manual setup.- DBK_005 (Dynamax): Enables smart Max Move selection and timing.
- DBK_006 (Terastallization): Enables defensive & offensive Tera logic.
Installation
- Download the plugin.
- Extract the folder [000_AAI] Advanced AI System into your project's Plugins directory.
- Start your game. The AI will immediately apply to any trainer with sufficient Skill Level.
- Credits
- Nononever
