• Do not use Discord to host any images you post, these links expire quickly! You can learn how to add images to your posts here.
  • Apologies if you've had troubles connecting to the site, you may need a VPN to access it. Staff are also facing issues connecting, so if it's urgent please message Cat on-site or through Discord directly.
  • Hey Guest, staff applications are open! If you are interested in becoming a forum staff member and/or Discord staff member, please apply through this Google Form before April 2! You can also message Cat with any questions.
Enhanced Battle UI [DBK Add-On] [v21.1]

Resource Enhanced Battle UI [DBK Add-On] [v21.1] v2.0.7

komeiji514

Elite Trainer
Member
Joined
Oct 28, 2023
Posts
282
Some problems when viewing some move info. Move with function code "HitThreeTimesPowersUpWithEachHit" cannot be viewed before using. Here is the errorlog.
[2024-10-10 17:26:12 +0800]
[Pokémon Essentials version 21.1]
[v21.1 Hotfixes 1.0.9]

Exception: NoMethodError
Message: undefined method `+' for nil:NilClass

Backtrace:
009_MoveEffects_MultiHit.rb:83:in `pbBaseDamage'
[[DBK] Enhanced Battle UI] [004] Move Info UI.rb:143:in `pbUpdateMoveInfoWindow'
[[DBK] Enhanced Battle UI] [004] Move Info UI.rb:16:in `pbToggleMoveInfo'
[[DBK] Enhanced Battle UI] [000] Main.rb:237:in `pbFightMenu_Extra'
[Deluxe Battle Kit] [003] Command Menu Refactor.rb:270:in `block in pbFightMenu'
[Deluxe Battle Kit] [003] Command Menu Refactor.rb:221:in `loop'
[Deluxe Battle Kit] [003] Command Menu Refactor.rb:221:in `pbFightMenu'
[Deluxe Battle Kit] [003] Command Menu Refactor.rb:296:in `pbFightMenu'
009_Battle_CommandPhase.rb:231:in `block (2 levels) in pbCommandPhaseLoop'
009_Battle_CommandPhase.rb:222:in `loop'
 

Lucidious89

Champion
Member
Joined
Nov 12, 2020
Posts
1,266
Lucidious89 updated Enhanced Battle UI [DBK Add-On] [v21.1] with a new update entry:

v2.0.5 Update

  • Fixed an issue with the move Triple Kick causing errors when viewed in the Move Info UI.
  • Added placeholder effect description text for custom weather/terrain so that it doesn't cause errors when viewing the Battler Info UI.
  • Battlers that have damage caps set via the "battlerHPCap" midbattle command will now display this in their list of effects in the Battler Info UI.
  • When you have a partner trainer with you in battle, you can now see the Tera Type of their...

Read the rest of this update entry...
 

komeiji514

Elite Trainer
Member
Joined
Oct 28, 2023
Posts
282
Seems in the hail weather the description will become "Unknown weather."
This line should be like this, I think.
desc = _INTL("Unknown weather.") if !desc
 

Lucidious89

Champion
Member
Joined
Nov 12, 2020
Posts
1,266

komeiji514

Elite Trainer
Member
Joined
Oct 28, 2023
Posts
282
Report: When a pokemon is holding a type gem and after viewing a move boosted by the gem, using a move that shouldn't trigger the gem will still trigger the gem. Adding battler.effects[PBEffects::GemConsumed] = nil after bonus text could solve it.
 

Lyreth

Rookie
Member
Joined
Jan 19, 2025
Posts
2
Report: Why do I get this exception while displaying the move infos about Triple Kick, Triple Axel? I'm running the latest version of this plugin and i didn't touched their function (of the moves), neither the enhanced battle ui/deluxe battlekit modules. I read that this was patched. I also tried some tweaks but other than having the value correctly displayed for the first move execution (and later the value of the third hit) or having the correct value displayed, but the damage of the three hits that stays at the move base power, i couldn't get anything to work correctly.
Exception: NoMethodError
Message: undefined method `+' for nil:NilClass

Backtrace:
009_MoveEffects_MultiHit.rb:112:in `pbBaseDamage'
[[DBK] Enhanced Battle UI] [004] Move Info UI.rb:139:in `pbUpdateMoveInfoWindow'
[[DBK] Enhanced Battle UI] [004] Move Info UI.rb:16:in `pbToggleMoveInfo'
[[DBK] Enhanced Battle UI] [000] Main.rb:237:in `pbFightMenu_Extra'
[Deluxe Battle Kit] [003] Command Menu Refactor.rb:270:in `block in pbFightMenu'
[Deluxe Battle Kit] [003] Command Menu Refactor.rb:221:in `loop'
[Deluxe Battle Kit] [003] Command Menu Refactor.rb:221:in `pbFightMenu'
[Deluxe Battle Kit] [003] Command Menu Refactor.rb:296:in `pbFightMenu'
009_Battle_CommandPhase.rb:230:in `block (2 levels) in pbCommandPhaseLoop'
009_Battle_CommandPhase.rb:221:in `loop'
 

Lucidious89

Champion
Member
Joined
Nov 12, 2020
Posts
1,266
Report: Why do I get this exception while displaying the move infos about Triple Kick, Triple Axel? I'm running the latest version of this plugin and i didn't touched their function (of the moves), neither the enhanced battle ui/deluxe battlekit modules. I read that this was patched. I also tried some tweaks but other than having the value correctly displayed for the first move execution (and later the value of the third hit) or having the correct value displayed, but the damage of the three hits that stays at the move base power, i couldn't get anything to work correctly.
Exception: NoMethodError
Message: undefined method `+' for nil:NilClass

Backtrace:
009_MoveEffects_MultiHit.rb:112:in `pbBaseDamage'
[[DBK] Enhanced Battle UI] [004] Move Info UI.rb:139:in `pbUpdateMoveInfoWindow'
[[DBK] Enhanced Battle UI] [004] Move Info UI.rb:16:in `pbToggleMoveInfo'
[[DBK] Enhanced Battle UI] [000] Main.rb:237:in `pbFightMenu_Extra'
[Deluxe Battle Kit] [003] Command Menu Refactor.rb:270:in `block in pbFightMenu'
[Deluxe Battle Kit] [003] Command Menu Refactor.rb:221:in `loop'
[Deluxe Battle Kit] [003] Command Menu Refactor.rb:221:in `pbFightMenu'
[Deluxe Battle Kit] [003] Command Menu Refactor.rb:296:in `pbFightMenu'
009_Battle_CommandPhase.rb:230:in `block (2 levels) in pbCommandPhaseLoop'
009_Battle_CommandPhase.rb:221:in `loop'
You're either mistaken about having the latest update installed, or you changed the function code for Triple Kick/Axel in your game. This error is impossible to get otherwise.
 

Lyreth

Rookie
Member
Joined
Jan 19, 2025
Posts
2
this is the meta file from your plugin:
Name = [DBK] Enhanced Battle UI
Version = 2.0.6
Essentials = 21.1
Requires = Deluxe Battle Kit,1.2.3
Website = https://lucidious89-tutorials.gitbo...for-v21.1/add-on-tutorials/enhanced-battle-ui
Credits = Lucidious89

And this is the function of triple kick (same as triple axel since is the same one) in my game, that i didn't change because i don't have to since i like the moves the way they were programmed...
#===============================================================================
# Hits 3 times. Power is multiplied by the hit number. (Triple Kick)
# An accuracy check is performed for each hit.
#===============================================================================
class Battle::Move::HitThreeTimesPowersUpWithEachHit < Battle::Move
def multiHitMove?; return true; end
def pbNumHits(user, targets); return 3; end

def successCheckPerHit?
return @accCheckPerHit
end

def pbOnStartUse(user, targets)
@calcBaseDmg = 0
@accCheckPerHit = !user.hasActiveAbility?(:SKILLLINK)
end

def pbBaseDamage(baseDmg, user, target)
@calcBaseDmg += baseDmg
return @calcBaseDmg
end
end

Btw i tweaked your plugin to show the basedamage of the single hit move so i don't get the exception anymore, but if you also add other custom multi hit moves that are incremental like the aformentioned one you'll get it, since i didn't change anything from both ends (the basic script and your plugin ones)...
 

Willøw

Main Dev of Pokemon Oraculum
Member
Joined
Nov 1, 2023
Posts
112
this is the meta file from your plugin:
Name = [DBK] Enhanced Battle UI
Version = 2.0.6
Essentials = 21.1
Requires = Deluxe Battle Kit,1.2.3
Website = https://lucidious89-tutorials.gitbo...for-v21.1/add-on-tutorials/enhanced-battle-ui
Credits = Lucidious89

And this is the function of triple kick (same as triple axel since is the same one) in my game, that i didn't change because i don't have to since i like the moves the way they were programmed...
#===============================================================================
# Hits 3 times. Power is multiplied by the hit number. (Triple Kick)
# An accuracy check is performed for each hit.
#===============================================================================
class Battle::Move::HitThreeTimesPowersUpWithEachHit < Battle::Move
def multiHitMove?; return true; end
def pbNumHits(user, targets); return 3; end

def successCheckPerHit?
return @accCheckPerHit
end

def pbOnStartUse(user, targets)
@calcBaseDmg = 0
@accCheckPerHit = !user.hasActiveAbility?(:SKILLLINK)
end

def pbBaseDamage(baseDmg, user, target)
@calcBaseDmg += baseDmg
return @calcBaseDmg
end
end

Btw i tweaked your plugin to show the basedamage of the single hit move so i don't get the exception anymore, but if you also add other custom multi hit moves that are incremental like the aformentioned one you'll get it, since i didn't change anything from both ends (the basic script and your plugin ones)...
Have you by any chance installed Hotfixes or some other plugin that involves battles? Any of them may be overwriting some moves and causing this error
 

Lucidious89

Champion
Member
Joined
Nov 12, 2020
Posts
1,266
this is the meta file from your plugin:
Name = [DBK] Enhanced Battle UI
Version = 2.0.6
Essentials = 21.1
Requires = Deluxe Battle Kit,1.2.3
Website = https://lucidious89-tutorials.gitbo...for-v21.1/add-on-tutorials/enhanced-battle-ui
Credits = Lucidious89

And this is the function of triple kick (same as triple axel since is the same one) in my game, that i didn't change because i don't have to since i like the moves the way they were programmed...
#===============================================================================
# Hits 3 times. Power is multiplied by the hit number. (Triple Kick)
# An accuracy check is performed for each hit.
#===============================================================================
class Battle::Move::HitThreeTimesPowersUpWithEachHit < Battle::Move
def multiHitMove?; return true; end
def pbNumHits(user, targets); return 3; end

def successCheckPerHit?
return @accCheckPerHit
end

def pbOnStartUse(user, targets)
@calcBaseDmg = 0
@accCheckPerHit = !user.hasActiveAbility?(:SKILLLINK)
end

def pbBaseDamage(baseDmg, user, target)
@calcBaseDmg += baseDmg
return @calcBaseDmg
end
end

Btw i tweaked your plugin to show the basedamage of the single hit move so i don't get the exception anymore, but if you also add other custom multi hit moves that are incremental like the aformentioned one you'll get it, since i didn't change anything from both ends (the basic script and your plugin ones)...
I see what the problem is, nvm. I think I somehow uploaded a different version of the move script in my last update that excluded the Triple Kick fix. Very weird.
 

Lucidious89

Champion
Member
Joined
Nov 12, 2020
Posts
1,266
Lucidious89 updated Enhanced Battle UI [DBK Add-On] [v21.1] with a new update entry:

v2.0.7 Update

  • Fixed a visual bug that would erroneously display the Ball UI button prompt when the player doesn't have any Poke Balls in their inventory.
  • Fixed an issue with held type-boosting Gems triggering after viewing a move in the Move Info UI even when the Gem shouldn't trigger.
  • Fixed an issue with Triple Kick and other moves that was thought to have been fixed in a previous version.

Read the rest of this update entry...
 
Back
Top