• 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.
  • Eevee Expo's webhost has been having technical issues since Nov. 20th and you might be unable to connect to our site. Staff are also facing issues connecting, so please send a DM to Cat on-site or through Discord directly for faster service!
Bag Screen with interactable Party

Resource Bag Screen with interactable Party 2.5.0

komeiji514

Elite Trainer
Member
Joined
Oct 28, 2023
Posts
282
Seems I have found a solution to using multiple stat items at once. Find def pbBagUseItem, put these codes between the line of ret = false and screen.pbRefresh.
Ruby:
Expand Collapse Copy
      max_at_once = ItemHandlers.triggerUseOnPokemonMaximum(item, pkmn)
      max_at_once = [max_at_once, $bag.quantity(item)].min
        if max_at_once > 1
          qty = pbChooseNumber(
            _INTL("How many {1} do you want to use?", GameData::Item.get(item).portion_name_plural), max_at_once
          )
        end
And add && qty > 0 after if pbCheckUseOnPokemon(item, pkmn, screen)
 
Last edited:

ImZero

Just a Number
Member
Joined
Nov 4, 2020
Posts
62
Seems I have found a solution to using multiple stat items at once. Find def pbBagUseItem, put these codes between the line of ret = false and screen.pbRefresh.
Ruby:
Expand Collapse Copy
      max_at_once = ItemHandlers.triggerUseOnPokemonMaximum(item, pkmn)
      max_at_once = [max_at_once, $bag.quantity(item)].min
        if max_at_once > 1
          qty = pbChooseNumber(
            _INTL("How many {1} do you want to use?", GameData::Item.get(item).portion_name_plural), max_at_once
          )
        end
And add && qty > 0 after if pbCheckUseOnPokemon(item, pkmn, screen)
This works perfectly! Although, for someone like me using Customizable Level Caps by phantombass, you can use multiple amounts of any candy to bypass this. Unrelated between the two, just something I have to fix myself sometime
 

Ashnixslaw

Novice
Member
Joined
Nov 20, 2018
Posts
18
I'm getting the following error when I try to access the bag during a fight. I have recompiled the game and started a new save.

[2025-03-07 18:58:26 +0000]
[Pokémon Essentials version 21.1]
[v21.1 Hotfixes 1.0.9]

Exception: NoMethodError
Message: undefined method call' for false:FalseClass

Backtrace:
[Bag Screen w/int. Party] Script.rb:879:in block (2 levels) in pbRefreshFilter'
[Bag Screen w/int. Party] Script.rb:878:in times'
[Bag Screen w/int. Party] Script.rb:878:in block in pbRefreshFilter'
[Bag Screen w/int. Party] Script.rb:876:in each'
[Bag Screen w/int. Party] Script.rb:876:in pbRefreshFilter'
[Bag Screen w/int. Party] Script.rb:564:in pbStartScene'
Scene_ChooseCommands:210:in pbItemMenu'
Battle_CommandPhase:106:in pbItemMenu'
[Deluxe Battle Kit] [003] Deluxe Battle Rules.rb:435:in pbItemMenu'
[[DBK] Enhanced Battle UI] [005] Poke Ball UI.rb:181:in `pbItemMenu'
 
Back
Top