ATTENTION! Final Update!
With the release of Essentials v21, this will be the final update for PLA Battle Styles for v20.1. Going forward I will instead be fully focused on v21, so I will no longer be updating or supporting this plugin. I intend to take a break before I even start thinking about how or when I'm going to start working on a v21 iteration of the plugin, so don't ask me about a time frame for release. I will keep this plugin available in the meantime. But this iteration of the plugin will eventually be removed once a v21 successor is released and takes its place. I will give fair warning before this happens, so don't panic.
See you all in v21!
Final Update (v1.0.9)
Made various tweaks for better compatibility with the newest update to the Gen 9 Pack.
This is the final update for this plugin. Going forward, my focus will now be on adapting this plugin for v21.
IMPORTANT This update requires v1.2.5 of Essentials Deluxe to be installed. That update requires that you start a new game. IMPORTANT
Fixed an oversight that would prevent level-ups gained through the use of Rare Candies from properly mastering a Pokemon's moves when reaching the appropriate levels.
Level-ups gained through the use of Exp. Candy will now also properly master a Pokemon's moves when reaching the appropriate levels.
The following statistics are now tracked by the game, and can be accessed with the following scripts:
$stats.strong_style_count: Tracks the total number of times the player has used Strong Style.
$stats.agile_style_count: Tracks the total number of times the player has used Agile Style.
$stats.total_moves_mastered: Tracks the total number of moves the player's Pokemon have mastered.
Made several updates to the script in preparation for the release of the Terastal Phenomenon plugin.
When using the "battleStyle", "strongStyle" or "agileStyle" midbattle triggers, you may now add the ID of a specific species such as "strongStyleRATTATA" or "agileStylePIKACHU" to trigger only when those specific species enter a battle style.
Refactored all of the code related to displaying Style buttons while in the Fight Menu, and moved it into this plugin instead of keeping it in Essentials Deluxe.
Fixed a visual bug related to the Styles button in the Fight Menu that wouldn't display the button properly.
Fixed an error that would occur when the Battle Style animation would trigger in a battle with an unequal number of battlers on both sides.
Moved all switches introduced by this plugin to Essentials Deluxe settings, for tidiness.
Updated the AI so that they will no longer trigger Battle Styles on their own if they are flagged to only use them as part of a scripted battle event using Essentials Deluxe.