• Hi, Guest!
    Some images might be missing as we move away from using embedded images, sorry for the mess!
    From now on, you'll be required to use a third party to host images. You can learn how to add images here, and if your thread is missing images you can request them here.
    Do not use Discord to host any images you post, these links expire quickly!
Focus Meter System [v20.1]

v20.1 Focus Meter System [v20.1] v1.1.2

This resource pertains to version 20.1 of Pokémon Essentials.
ATTENTION! Final Update!
With the release of Essentials v21, this will be the final update for the Focus Meter System 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.1.2)

  • 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.
  • Like
Reactions: MightyGolduck
IMPORTANT This update requires v1.2.5 of Essentials Deluxe to be installed. That update requires that you start a new game. IMPORTANT


  • The following statistics are now tracked by the game, and can be accessed with the following scripts:
    • $stats.accuracy_focus_count: Tracks the total number of times the player has used Focus with a Pokemon in the Accuracy Style.
    • $stats.evasion_focus_count: Tracks the total number of times the player has used Focus with a Pokemon in the Evasion Style.
    • $stats.critical_focus_count: Tracks the total number of times the player has used Focus with a Pokemon in the Critical Hit Style.
    • $stats.potency_focus_count: Tracks the total number of times the player has used Focus with a Pokemon in the Potency Style.
    • $stats.passive_focus_count: Tracks the total number of times the player has used Focus with a Pokemon in the Passive Style.
    • $stats.enraged_focus_count: Tracks the total number of times Focus has been used against the player with a Pokemon in the Enraged Style.
    • $stats.total_focus_styles_changed: Tracks the total number of times the player has visited a Focus Tutor and changed a Pokemon's Focus Style.
  • Tweaked the midbattle triggers that check for Focus usage in a Deluxe battle.
  • Made it so that the following effects added by this plugin may now be edited in battle with the in-battle debug tools:
    • Focus Lock
    • Dampened Focus
    • Fully Focused
    • Focused Guard
  • Expanded the midbattle focus triggers for use with Essentials Deluxe.
    When using the "focus" trigger, you may now add the id of a specific style in all caps, such as "focusPASSIVE" or "focusACCURACY" to trigger only when those specific focus styles are used. Alternatively, you may add a species ID instead, such as "focusBULBASAUR" if you want to trigger only when that specific species uses its Focus.
  • Updated midbattle triggers related to Focus to be compatible with the latest update to Essentials Deluxe.
  • Refactored all of the code related to displaying Focus displays while in the Fight Menu, and moved it into this plugin instead of keeping it in Essentials Deluxe.
Moved all switches introduced by this plugin to Essentials Deluxe settings, for tidiness.
  • Moved the Focus Style debug tool implemented by this plugin so that it is now located in the "Deluxe" debug menu added by Essentials Deluxe.
  • Added the following debug options to the general debug menu under "Deluxe Plugins..."
    • Toggle the switch that enables/disables the Focus Meter.
    • Give the player a demo party that is built to showcase various Focus Styles.
    • Access the Focus Tutor script to change your party's Focus Styles.
  • Fixed a bug that would prevent effects that affect one side of the field (Reflect, Tailwind, etc) from properly counting down turns.
  • Fixed a bug with the Tangled Feet ability that would lower the opponent's Accuracy even when the user isn't confused.
  • Added in a missing check for the "focus_boss" midbattle trigger used by Essentials Deluxe.
  • Added in a new "focusEnd" midbattle trigger used by Essentials Deluxe.
Back
Top