Bag Screen with interactable Party (v20.1)

Started by DiegoWT June 28th, 2021 12:17 PM
  • 4674 views
  • 17 replies

DiegoWT

DiegoWT#3452

Age 19
Male
Brazil
Seen 10 Hours Ago
Posted August 13th, 2022
21 posts
5.7 Years
Hey there, how are you all?
With this plugin that I'm sharing with you, your Bag Screen will now have space for your party too. You can interact with them, give, use, move and take items. Just like the newer Pokémon games do!
Bag Screen with interactable Party


Features:​
  • By pressing the Special button (which by default is D), you can access your party and check each Pokémon's summary and, if it's holding an item, you can take it or move to another Pokémon;
  • The "Items" and "TMs & HMs" pockets will now show if any Pokémon on your party can use a specific item or can learn a specific move by TM/HM/TR. When not on these pockets, it will show the Pokémon's HP;
  • When using an item, you'll be using the party on the left side instead of having to open the Party Screen;
  • This plugin comes with a Settings script for you to choose which background version suits more your game style;
  • The Bag Screen obviously works in any context, in battles, choosing and using any items.

Installation:
Spoiler:
1. Download and extract this ZIP file https://www.mediafire.com/file/9wzno0v7n3d7wf0/Bag+Screen+w+Party+v2.2.0.zip/file into your game's root folder;
2. Go to UI_ItemStorage line 72 and replace
def pbStartScene(bag)
with
def pbStartScene(bag, party)
After, go to UI_PokeMart line 300 and replace
@subscene.pbStartScene(bag)
with
@subscene.pbStartScene(bag, $player.party)
3. Change the plugin settings as you desire:
Spoiler:


4. Run the game on Debug Mode (while holding Ctrl) to compile the script into your game;
5. Have fun.


Extra: I recommend you to use TechSkylander1518's SwSh Item Icon pack if you are aiming for a Gen 8 style.

If you have any suggestions or get any error using the script, please contact me here or on Discord, DiegoWT#3452.
That's all, don't forget to credit me (DiegoWT).
Do not redistribute this resource anywhere

DiegoWT

DiegoWT#3452

Age 19
Male
Brazil
Seen 10 Hours Ago
Posted August 13th, 2022
21 posts
5.7 Years
New update!
- Fixed a visual error while fusing two Pokémon;
- Fixed one script function, if you are using the first version, then you'll need to do one specific thing from the installation tutorial to use the new version;
- The plugin now supports Gen 8 Project and ZUD Plugin.

DiegoWT

DiegoWT#3452

Age 19
Male
Brazil
Seen 10 Hours Ago
Posted August 13th, 2022
21 posts
5.7 Years
I really liked your script and I will use it in my digimon project, thanks!

But I have a doubt. How can I change the font color of the options? (Items, TM's, Key Items, etc.)
Do you mean pocket names? If so, then go to lines 409 and 410 and edit the POCKETNAMEBASECOLOR and POCKETNAMESHADOWCOLOR variables.

DiegoWT

DiegoWT#3452

Age 19
Male
Brazil
Seen 10 Hours Ago
Posted August 13th, 2022
21 posts
5.7 Years
For PE V17.2 it's not compatible, isn't it?
I haven't tested it, but probably not. You would need to modify the script or update your project.

DiegoWT

DiegoWT#3452

Age 19
Male
Brazil
Seen 10 Hours Ago
Posted August 13th, 2022
21 posts
5.7 Years
Where can I find the script to edit? There is no in the download file
Just go to Plugins/Bag Screen with interactable Party/Script.rb and you'll find the script.
Maybe you might need a program for opening the script file, but Notepad might be enough. Anyway, since you're going to modify the script for an older Essentials version, you should paste it on your script lists.

DiegoWT

DiegoWT#3452

Age 19
Male
Brazil
Seen 10 Hours Ago
Posted August 13th, 2022
21 posts
5.7 Years
New Update!
- Fixed a bug where using a Poké Ball during a double battle would make the Party panels show up above the Battle scene;
- Fixed a bug where the bag doesn't update the Party positions while in battle, even though they're changed;
- It was needed to replace the second step in the installation tutorial for fixing the first bug.

DiegoWT

DiegoWT#3452

Age 19
Male
Brazil
Seen 10 Hours Ago
Posted August 13th, 2022
21 posts
5.7 Years
New Update (more like of a hotfix)!
- Fixed a crash when trying to use a TM/HM/TR.
If you do not wish to download the new version (v1.5 hotfix), just go to line 1205 in Script.rb and replace
(itm.is_machine? && @party.length>0)
with
((itm.is_machine? && $Trainer.party.length>0)

DiegoWT

DiegoWT#3452

Age 19
Male
Brazil
Seen 10 Hours Ago
Posted August 13th, 2022
21 posts
5.7 Years
New update!
- Added two background styles to choose from the Settings, also reworked some specific layout things (I've left two images that I don't use anymore with "_old" in the name for user customization purposes);
- Altered the "NOT ABLE" text to "UNABLE";
- Made the Able/NotAble status on the Items pocket only show on evolution items;
- Altered the TM/HM/TR item interaction text to be more similar to the original games;
- Removed unnecessary codes;
- Fixed a bug where the scrolling sound effect would play even though the bag is empty or if you had already reached the top or bottom of the item list.

DiegoWT

DiegoWT#3452

Age 19
Male
Brazil
Seen 10 Hours Ago
Posted August 13th, 2022
21 posts
5.7 Years
New update!
- Fully updated the script to work with Essentials v20, and abandoned support to older versions;
- Updated the credits;
- Now when the party is being selected, the item list cursor will change;
- The interface was slightly changed.

DiegoWT

DiegoWT#3452

Age 19
Male
Brazil
Seen 10 Hours Ago
Posted August 13th, 2022
21 posts
5.7 Years
New Update (more like of a hotfix)!
- Fixed a crash that happens when opening the bag while the background color setting is based on the HGSS style.
If you already downloaded the previous version and don't want to download the hotfix version, then just follow this instruction: Change the line 544 in Script.rb (from my Plugin's folder) to
case @bag.last_viewed_pocket

DiegoWT

DiegoWT#3452

Age 19
Male
Brazil
Seen 10 Hours Ago
Posted August 13th, 2022
21 posts
5.7 Years
New Update (v2.2.0):
- Slightly changed the party panels' UI;
- Updated to v20.1.

theRiolvile

Age 26
Male
South Africa
Seen 3 Hours Ago
Posted 3 Hours Ago
51 posts
9.5 Years
I found a new bug its when going to the Mart to sell something then the CTD happens something of UI_Pokemart or something ..

Creating Videos on games or busy nuzlocking

Professional Gamer soon well😄
Gen 1 is my Favourite.

DiegoWT

DiegoWT#3452

Age 19
Male
Brazil
Seen 10 Hours Ago
Posted August 13th, 2022
21 posts
5.7 Years
I found a new bug its when going to the Mart to sell something then the CTD happens something of UI_Pokemart or something ..
There was a mistype in Installation's Step 2, follow it again properly

theRiolvile

Age 26
Male
South Africa
Seen 3 Hours Ago
Posted 3 Hours Ago
51 posts
9.5 Years
My bad I did not read it although it was just some small thing to add.

Creating Videos on games or busy nuzlocking

Professional Gamer soon well😄
Gen 1 is my Favourite.