• 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!
Resource icon

Battle Debug Menu v18.1 1.0.1.0

Pokémon Essentials Version
v18.1 ➖
Battle Debug Menu v18.1
Looking for a version for Essentials v19.1? Click here.

Thanks to Maruno for adding a hook, if you want to call it that, for adding a debug menu that can be used in battle! This makes it a lot easier to add this whole thing to existing projects.

Ever tested a new ability or move for your game and hat to restart the battle over and over just because the conditions were just not quite right? Or wanted to simulate a specific situation and couldn't get the AI to put your Pokemon to sleep? Then this Battle Debug Menu is for you! (It also is, if you just want to mess around a bit)


What you can do with the debug menu:

  • About a battler:
    • Change HP
    • Change Status
    • Change Level
    • Change Ability
    • Change Moves
    • Change Item
    • Change Types
    • Set Stat Changes
    • Set Battler Effects (Aqua Ring and such)
    • Show Summary (will reflect made changes)
  • About the battle field:
    • Change Weather
    • Change Terrain
    • Set Field Effects (Wonder Room and such)
  • Set Side Effects ( Aurora Veil and such)
  • Set Battle Meta Data (Exp Gain, Opponents Items and such)

This menu provides color coded values and converts some effects to more understandable values (e.g. instead of showing only the move ID it will show the moves name).

Some effects were intentionally left out, as there is no point in changing them for various reasons. These include effects that rely on abilities.

Some changes (like type changes) only apply to that battle and are not permanent. The debug menu works for all battle types (1v2,2v2,1v3, etc)


How to install:
1) Copy the contents of each .txt file in a new script section above main but below Debug_Pokemon. Ensure the following order:
  • Debug_Battle_Constants
  • Debug_Battle_Listers
  • Debug_Battle_Utilities
  • Debug_Battle
2) In Battle_Phase_Command find pbDebugMenu (around line 159) and replace
Ruby:
# NOTE: This doesn't do anything yet. Maybe you can write your own debugging
#       options!
With
Ruby:
pbDebugBattle

3) Done! Pressing F9 during battle will now open the Battle Debug Menu


Adding new effects

Adding new effects is fairly simple, as long as they only store a number, true/false, battler index or move ID.

The following steps assume that you have already added the effects to PBEffects, PBStats, PBBattleTerrains or PBWeather! If you want to add a battle meta data make sure it is added to the PokeBattle_Battle class.

For all types there is a constant in Debug_Battle_Constants. Here is a table that describes these constants and what format they expect.

ConstantDescriptionFormat
BATTLER_EFFECTSEffects that apply to a battlerPBEffects::EffectName => {:name => "Displayed name", :type => type*}
SIDE_EFFECTSEffects that apply to a side (player side, opposing side)PBEffects::EffectName => {:name => "Displayed name", :type => type*}
FIELD_EFFECTSEffects that apply to the whole fieldPBEffects::EffectName => {:name => "Displayed name", :type => type*}
WEATHERWeather typesPBWeather::WeatherName => "Displayed name"
TERRAINSTerrain typesPBBattleTerrains::TerrainName => "Displayed name"
BATTLE_METADATAInformation about the battle itself (turn counts, etc.):variableName (e.g. @turnCount becomes :turnCount)
BATTLE_STATSStats that can increase during the battlePBEffects::EffectName => {:name => "Displayed name"}

*The type field is optional and only needs to be present if the value is not just a number or true/false value. It can be one of the following:

:MOVEID = This effect holds a move id and therefore will display the move name in the menu. It will also open the selection of the battlers moves.
It can be used for side effects, field effects and meta data as well, but requires further coding. By default these effects do not select a user and therefore cannot choose a move for it.

:USERINDEX = This effect holds the index of the user of a move etc and therefore will display the name of the battler. It will also open the selection of an active battler.
It is also available for side effects, field effects and meta data.


Some Images
1617966580020.png

1617966593425.png

1617966560390.png

1617966605767.png

1617966614406.png

1617966619615.png

1617966625774.png

1617966630504.png

1617966637547.png

1617966654230.png

1617966665133.png

1617966683053.png


For questions and bug reports visit our Discord channel https://discord.gg/7msDPaN or post them here.
Credits
Credit if used:
Hollow_Ego for Battle Debug Menu structure and logic
Maruno and his team for all code that was resused from base Essentials
Author
Hollow_Ego
Downloads
610
Views
2,185
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from Hollow_Ego

Latest updates

  1. Corretion - Removed implicit Gen 8 requirement

    Due to how I coded this, there was a dependency for Gen 8 effects. These were now removed. You...
Back
Top