• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Dawn, Gloria, Juliana, or Summer - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

Script: Deluxe Battle Kit [v21.1]

But there are 5 skill levels for trainer AI. Which one does the autobattle choose? https://essentialsdocs.fandom.com/wiki/Battle_AI
Whichever one is set for the player's trainer class. Again, it's no different whatsoever from how the AI is determined for any other trainer.

For example, the default male player trainer uses the :POKEMONTRAINER_Red trainer class defined in trainer_types.txt. This class doesn't have a skill level set by default, so it will instead use the base money to determine its skill level, which is 60 (which correlates to a "high skill" level).
 
Minor Update (v1.1.6)
  • Fixed a bug that would cause a crash when Origin Forme Palkia used Spacial Rend.
  • Shadow Pokemon icons will now have the proper overlay patterns applied when viewed in the PC Storage UI.
  • Added the following Midbattle Trigger Keys: BattlerStatusCured, BattlerConfusionStart, BattlerConfusionEnd, BattlerAttractStart, BattlerAttractEnd
  • Added the following Midbattle Command Key: pause
  • Made some minor adjustments in preparation for the release of the Animated Pokemon System add-on.
 
Minor Update (v1.1.7)
  • Fixed a bug with pbAttract not having the correct number of arguments.
  • Added a new plugin setting called HIDE_DATABOXES_DURING_MOVES that will hide battler databoxes during move animations when enabled, like in the Gen 5+ games.
  • Improved the coordinates of sprites that slide upwards during the battle intro when the "setSlideSprite" Battle Rule is used and set to "bottom".
  • Transform and Imposter will now fail if the user is Terastallized into the Stellar-type (as stated by Bulbapedia).
  • Spinda will now correctly display its spot patterns during various DBK-style animations (Dynamax, Terastallization, etc.)
  • Fixed a compatibility issue with the Animated Pokemon System add-on that would prevent some sprites from displaying their correct Super Shiny hue during various DBK-style animations (Mega Evolution, Primal Reversion, etc.).
 
Minor Update (v1.1.8)
  • Fixed another bug with pbAttract that would cause crashes.
  • Fixed a bug that would prevent the Pokemon's cry from playing during the Mega Evolution and Primal Reversion animations.
  • Fixed issues with the Deluxe Animation utilities that could display Pokemon sprites off-center during DBK-style animations (Mega Evolution, Primal Reversion, etc.)
 
Minor Update (v1.1.9)
  • Fixed some issues that would cause crashes in the Safari Zone.
  • Added the "inverseBattle" Battle Rule. This will make your next battle operate under Inverse Battle rules, like in Gen 5.
 
Minor Update (v1.2)
  • Fixed an error that would occur when the AI attempted to use a Self-KO move.
  • Fixed an error that would occur when a wild boss Pokemon was given immunity to indirect damage.
  • Added a new audio file for the correct item sound effect when a trainer uses items from the inventory on a battler.
  • Made it so that both the AI and player can now Terastallize and/or Dynamax their Pokemon in battle in more situations.
 
I don't know if this has to do with DBK or Essentials in general, but would you happen to know how to stop battler back sprites from auto scaling up? I would like to have the back sprites remain their actual size. Thanks!
 
I don't know if this has to do with DBK or Essentials in general, but would you happen to know how to stop battler back sprites from auto scaling up? I would like to have the back sprites remain their actual size. Thanks!
You must have a plugin that does this, because the sprites in Essentials are static and arent scaled at all.
 
You must have a plugin that does this, because the sprites in Essentials are static and arent scaled at all.
I think the issue has to do with zooming in on the back sprite as opposed to scaling it. I have been looking everywhere for the piece of code that would do that. Do you know where essentials would be zooming in on it?
 
I think the issue has to do with zooming in on the back sprite as opposed to scaling it. I have been looking everywhere for the piece of code that would do that. Do you know where essentials would be zooming in on it?
Essentials doesn't do that. Like I said, Essentials doesn't edit Pokemon sprites at all. They're exactly how they appear in the Graphics folders. You must have a plugin installed that is doing that. Or, you installed a Graphics pack that just have large back sprites.
 
Essentials doesn't do that. Like I said, Essentials doesn't edit Pokemon sprites at all. They're exactly how they appear in the Graphics folders. You must have a plugin installed that is doing that. Or, you installed a Graphics pack that just have large back sprites.
I was able to find out that the culprit was DBK animated sprites add-on. Thanks!
 
Just a quick question as I've never updated a plugin (fairly new at this), do I remove the old plugin and replace with the update and compile or do I replace the files and update?
Most of the time replacing the files will suffice. The only time deleting the old files is necessary is if the new update renames existing files. For my plugins at least, I try to do this only when absolutely necessary, and make it a point to mention this in the update post if so.
 
Minor Update (v1.2.1)
  • Fixed a damage calc error with the move Psyblade.
  • Fixed HP calculations not properly ignoring IV/EV's when the DISABLE_IVS_AND_EVS setting is enabled.
  • Fixed an issue with low HP music being permanently disabled for all battles if a battle rule is used to disable it for a specific battle.
  • Fixed an issue related to cloning Pokemon objects that would erase the EV's and other attributes of the original Pokemon.
  • Fixed an issue where set damage moves like Sonic Boom would be unable to trigger certain mid-battle triggers.
  • Fixed an issue where multi-hit moves like Fury Swipes would be unable to trigger certain mid-battle triggers.
  • Implemented a fix for an issue in base Essentials where partner trainers don't inherit the inventories set in their PBS data like they should.
  • Updated the code for all DBK battle animations (such as for Mega Evolution) so that these animations will now be compatible with trainer sprites of any size.
  • Improved the organization of various debug menu options added by DBK and other supported add-on plugins.
  • Made the plugin utilize Substitute doll animations in more places (if Animated Pokemon add-on is installed).
  • Improved the raid-style capture animations and prompts to be a little more cinematic.
  • Changed how the "battlerHP" and "battlerHPCap" midbattle commands work so that you can directly set the HP percentages, rather than needing to do complex math with negative numbers. For example, if you want a Pokemon to restore 66% of their HP, you can just do "battlerHP" => 66.
  • Added a new "battlerSpecies" midbattle trigger. This can be used to change a battler's species during battle.
  • Added a new "battlerEvolve" midbattle trigger. This can be used to force a battler to evolve during battle.
  • Implemented a new "databoxStyle" Battle Rule. This can be used to set custom databoxes for specific battles. The plugin includes two custom databoxes by default.
  • Made various tweaks and additions in preparation for the Raid Battles plugin.

Here's an example of the new "battlerEvolve" midbattle command in action:
[PokeCommunity.com] Deluxe Battle Kit [v21.1]


And here are some examples of the new "databoxStyle" Battle Rule:
[PokeCommunity.com] Deluxe Battle Kit [v21.1]
[PokeCommunity.com] Deluxe Battle Kit [v21.1]
 
Hi! I was having some issues with the Safari Zone so I made sure to update and extract this and all related plugins to the most recent version. I also made sure to compile data. However, when I start a Safari battle I only get a black screen and this error message:

[2024-11-09 15:24:23 +0000]
[Pokémon Essentials version 21.1]
[v21.1 Hotfixes 1.0.9]

Exception: NoMethodError
Message: undefined method `databoxStyle' for #<SafariBattle>

Backtrace:
[Deluxe Battle Kit] [008] Databox Styles.rb:123:in `initializeDataBoxGraphic'
Battle_Scene_Objects:38:in `initialize'
Scene_Initialize:79:in `new'
Scene_Initialize:79:in `block in pbInitSprites'
Scene_Initialize:77:in `each'
Scene_Initialize:77:in `each_with_index'
Scene_Initialize:77:in `pbInitSprites'
BugContestBattle:8:in `pbInitSprites'
[Deluxe Battle Kit] [000] Midbattle Animations.rb:10:in `pbInitSprites'
[[DBK] Enhanced Battle UI] [000] Main.rb:62:in `pbInitSprites'

I read that "Databox Style" is a new type of Battle Rule in this plugin, but I'm not using it right now, so I don't really know about this error. Also, this only happen for Safari battles, normal battles still work as intended.
 
Hi! I was having some issues with the Safari Zone so I made sure to update and extract this and all related plugins to the most recent version. I also made sure to compile data. However, when I start a Safari battle I only get a black screen and this error message:

[2024-11-09 15:24:23 +0000]
[Pokémon Essentials version 21.1]
[v21.1 Hotfixes 1.0.9]

Exception: NoMethodError
Message: undefined method `databoxStyle' for #<SafariBattle>

Backtrace:
[Deluxe Battle Kit] [008] Databox Styles.rb:123:in `initializeDataBoxGraphic'
Battle_Scene_Objects:38:in `initialize'
Scene_Initialize:79:in `new'
Scene_Initialize:79:in `block in pbInitSprites'
Scene_Initialize:77:in `each'
Scene_Initialize:77:in `each_with_index'
Scene_Initialize:77:in `pbInitSprites'
BugContestBattle:8:in `pbInitSprites'
[Deluxe Battle Kit] [000] Midbattle Animations.rb:10:in `pbInitSprites'
[[DBK] Enhanced Battle UI] [000] Main.rb:62:in `pbInitSprites'

I read that "Databox Style" is a new type of Battle Rule in this plugin, but I'm not using it right now, so I don't really know about this error. Also, this only happen for Safari battles, normal battles still work as intended.
Right on cue, the Safari Zone breaks again the second I do literally anything with the code.
 
Hi! I was having some issues with the Safari Zone so I made sure to update and extract this and all related plugins to the most recent version. I also made sure to compile data. However, when I start a Safari battle I only get a black screen and this error message:

[2024-11-09 15:24:23 +0000]
[Pokémon Essentials version 21.1]
[v21.1 Hotfixes 1.0.9]

Exception: NoMethodError
Message: undefined method `databoxStyle' for #<SafariBattle>

Backtrace:
[Deluxe Battle Kit] [008] Databox Styles.rb:123:in `initializeDataBoxGraphic'
Battle_Scene_Objects:38:in `initialize'
Scene_Initialize:79:in `new'
Scene_Initialize:79:in `block in pbInitSprites'
Scene_Initialize:77:in `each'
Scene_Initialize:77:in `each_with_index'
Scene_Initialize:77:in `pbInitSprites'
BugContestBattle:8:in `pbInitSprites'
[Deluxe Battle Kit] [000] Midbattle Animations.rb:10:in `pbInitSprites'
[[DBK] Enhanced Battle UI] [000] Main.rb:62:in `pbInitSprites'

I read that "Databox Style" is a new type of Battle Rule in this plugin, but I'm not using it right now, so I don't really know about this error. Also, this only happen for Safari battles, normal battles still work as intended.

Hi. I have the same problem. You need to modify SafariZone script:

1) Add:

Code:
def style
    nil
  end

under

Code:
class Battle::Scene::SafariDataBox < Sprite
  attr_accessor :selected

2) Add:

Code:
def databoxStyle
    # Return a default style or nil to prevent errors
    :default
  end

under

Code:
class SafariBattle
  attr_reader   :battlers         # Array of fake battler objects
  attr_accessor :sideSizes        # Array of number of battlers per side
  attr_accessor :backdrop         # Filename fragment used for background graphics
  attr_accessor :backdropBase     # Filename fragment used for base graphics
  attr_accessor :time             # Time of day (0=day, 1=eve, 2=night)
  attr_accessor :environment      # Battle surroundings (for mechanics purposes)
  attr_reader   :weather
  attr_reader   :player
  attr_accessor :party2
  attr_accessor :canRun           # True if player can run from battle
  attr_accessor :canLose          # True if player won't black out if they lose
  attr_accessor :switchStyle      # Switch/Set "battle style" option
  attr_accessor :showAnims        # "Battle scene" option (show anims)
  attr_accessor :expGain          # Whether Pokémon can gain Exp/EVs
  attr_accessor :moneyGain        # Whether the player can gain/lose money
  attr_accessor :rules
  attr_accessor :ballCount

  include Battle::CatchAndStoreMixin
 
Hi. I have the same problem. You need to modify SafariZone script:

1) Add:

Code:
def style
    nil
  end

under

Code:
class Battle::Scene::SafariDataBox < Sprite
  attr_accessor :selected

2) Add:

Code:
def databoxStyle
    # Return a default style or nil to prevent errors
    :default
  end

under

Code:
class SafariBattle
  attr_reader   :battlers         # Array of fake battler objects
  attr_accessor :sideSizes        # Array of number of battlers per side
  attr_accessor :backdrop         # Filename fragment used for background graphics
  attr_accessor :backdropBase     # Filename fragment used for base graphics
  attr_accessor :time             # Time of day (0=day, 1=eve, 2=night)
  attr_accessor :environment      # Battle surroundings (for mechanics purposes)
  attr_reader   :weather
  attr_reader   :player
  attr_accessor :party2
  attr_accessor :canRun           # True if player can run from battle
  attr_accessor :canLose          # True if player won't black out if they lose
  attr_accessor :switchStyle      # Switch/Set "battle style" option
  attr_accessor :showAnims        # "Battle scene" option (show anims)
  attr_accessor :expGain          # Whether Pokémon can gain Exp/EVs
  attr_accessor :moneyGain        # Whether the player can gain/lose money
  attr_accessor :rules
  attr_accessor :ballCount

  include Battle::CatchAndStoreMixin
The much easier way to do it (and how I'll implement it in the plugin when I update it) is to just make a dummy method called def databoxStyle; return nil; end in the SafariBattle class in the plugin placeholders script.
 
Back
Top