• 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.
  • The Eevee Expo Game Jam has concluded! 🎉 Head on over to the game jam forum to play through the games.
    Don't forget to come back September 21st to vote for your favorites!
  • Reminder: AI-generated content is not allowed on the forums per the Rules and Regulations. Please contact us if you have any questions!
Bag Screen with interactable Party

Resource Bag Screen with interactable Party 2.5.0

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:
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
 
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'
 
I'm getting this error clicking Sell items. I even had an empty bag and then also bought an item in the shop prior to selling. Both gave me this error while using BW Pokemart screen.

[Pokémon Essentials version 21.1]
[v21.1 Hotfixes 1.0.9]

Script error in event 1 (coords 10,24), map 79 (New Bark Town)
Exception: ArgumentError
Message: wrong number of arguments (given 1, expected 2..5)

***Full script:
pbPokemonMart([
:TM21, :TM27,
:TM87, :TM78,
:TM12, :TM41,
:TM20, :TM28,
:TM76, :TM55,
:TM72, :TM79
])

Backtrace:
[Bag Screen w/int. Party] Script.rb:556:in `pbStartScene'
[BW PokéMart Screen] BWMartScreen.rb:320:in `pbStartSellScene2'
[BW PokéMart Screen] BWMartScreen.rb:305:in `pbStartSellScene'
[BW PokéMart Screen] BWMartScreen.rb:675:in `pbSellScreen'
[BW PokéMart Screen] BWMartScreen.rb:736:in `block in pbPokemonMart'
[BW PokéMart Screen] BWMartScreen.rb:728:in `loop'
[BW PokéMart Screen] BWMartScreen.rb:728:in `pbPokemonMart'
(eval):1:in `execute_script'
Interpreter:138:in `eval'
Interpreter:138:in `execute_script'

-------------------------------------
Taking out the script does the same thing.


[Pokémon Essentials version 21.1]
[v21.1 Hotfixes 1.0.9]

Script error in event 1 (coords 10,24), map 79 (New Bark Town)
Exception: ArgumentError
Message: wrong number of arguments (given 1, expected 2..5)

***Full script:
pbPokemonMart([
:TM21, :TM27,
:TM87, :TM78,
:TM12, :TM41,
:TM20, :TM28,
:TM76, :TM55,
:TM72, :TM79
])

Backtrace:
[Bag Screen w/int. Party] Script.rb:556:in `pbStartScene'
UI_PokeMart:320:in `pbStartSellScene2'
UI_PokeMart:305:in `pbStartSellScene'
UI_PokeMart:679:in `pbSellScreen'
UI_PokeMart:740:in `block in pbPokemonMart'
UI_PokeMart:732:in `loop'
UI_PokeMart:732:in `pbPokemonMart'
(eval):1:in `execute_script'
Interpreter:138:in `eval'
Interpreter:138:in `execute_script'
 
I'm getting this error clicking Sell items. I even had an empty bag and then also bought an item in the shop prior to selling. Both gave me this error while using BW Pokemart screen.

[Pokémon Essentials version 21.1]
[v21.1 Hotfixes 1.0.9]

Script error in event 1 (coords 10,24), map 79 (New Bark Town)
Exception: ArgumentError
Message: wrong number of arguments (given 1, expected 2..5)

***Full script:
pbPokemonMart([
:TM21, :TM27,
:TM87, :TM78,
:TM12, :TM41,
:TM20, :TM28,
:TM76, :TM55,
:TM72, :TM79
])

Backtrace:
[Bag Screen w/int. Party] Script.rb:556:in `pbStartScene'
[BW PokéMart Screen] BWMartScreen.rb:320:in `pbStartSellScene2'
[BW PokéMart Screen] BWMartScreen.rb:305:in `pbStartSellScene'
[BW PokéMart Screen] BWMartScreen.rb:675:in `pbSellScreen'
[BW PokéMart Screen] BWMartScreen.rb:736:in `block in pbPokemonMart'
[BW PokéMart Screen] BWMartScreen.rb:728:in `loop'
[BW PokéMart Screen] BWMartScreen.rb:728:in `pbPokemonMart'
(eval):1:in `execute_script'
Interpreter:138:in `eval'
Interpreter:138:in `execute_script'

-------------------------------------
Taking out the script does the same thing.


[Pokémon Essentials version 21.1]
[v21.1 Hotfixes 1.0.9]

Script error in event 1 (coords 10,24), map 79 (New Bark Town)
Exception: ArgumentError
Message: wrong number of arguments (given 1, expected 2..5)

***Full script:
pbPokemonMart([
:TM21, :TM27,
:TM87, :TM78,
:TM12, :TM41,
:TM20, :TM28,
:TM76, :TM55,
:TM72, :TM79
])

Backtrace:
[Bag Screen w/int. Party] Script.rb:556:in `pbStartScene'
UI_PokeMart:320:in `pbStartSellScene2'
UI_PokeMart:305:in `pbStartSellScene'
UI_PokeMart:679:in `pbSellScreen'
UI_PokeMart:740:in `block in pbPokemonMart'
UI_PokeMart:732:in `loop'
UI_PokeMart:732:in `pbPokemonMart'
(eval):1:in `execute_script'
Interpreter:138:in `eval'
Interpreter:138:in `execute_script'
I would go and read the instruction again, there's a specific bit of code you need to add in to prevent this
 
I'm having a bit of issues with BW Storage System Plugin (it has a script for Item storage) and this plugin. Depositing items works well but not withdrawing them.

[Pokémon Essentials version 21.1]
[v21.1 Hotfixes 1.0.9]
Script error in event 9 (coords 10,25), map 90 (New Bark Town)
Exception: ArgumentError
Message: wrong number of arguments (given 2, expected 1)
***Full script:
pbPokeCenterPC
Backtrace:
[BW Storage System] BW ItemStorage.rb:74:in `pbStartScene'
[Bag Screen w/int. Party] Script.rb:1572:in `pbWithdrawItemScreen'
UI_PC:27:in `block (2 levels) in pbPCItemStorage'
MessageConfig:575:in `pbFadeOutIn'
UI_PC:24:in `block in pbPCItemStorage'
UI_PC:6:in `loop'
UI_PC:6:in `pbPCItemStorage'
UI_PC:124:in `block in pbTrainerPCMenu'
UI_PC:118:in `loop'
UI_PC:118:in `pbTrainerPCMenu'

Edit: For this to work with both plugins add this line to 74 in BW Item script:

def pbStartScene(bag, party)

XD I used vscode to compare the two pc item scripts, and found it.
 
Last edited:
Hey DiegoWT! Amazing plugin! I noticed the A and S keys weren't working to scroll up and down by page. I didn't see anything mentioned here so I thought I'd let you know in case anyone was curious!

I was able to get it working by copying the JUMPUP and JUMPDOWN inputs in Script.rb from the elsif block into the if block above it as well. Just a quick copy/paste and it worked perfectly. Leave them in both blocks otherwise things like the Pokédex or other systems might be affected. Hope this helps!
 
Back
Top