• The Eevee Expo Game Jam #10 has concluded, congratulations to all participants! Now it's time for the judges to play through the games, and you can play along to vote who deserves the community choice spotlight.
    You can check out the submitted games here!
    Play through the games and provide some feedback to the devs while you're at it!
  • 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

v20.1 Alphabetized Bag 1.0

This resource pertains to version 20.1 of Pokémon Essentials.
Pokémon Essentials Version
v20.1 ➖
unknown.png

This is a super simple resource that sorts your bag items alphabetically, rather than by index number or by when the player received them. I formatted it as a plugin for ease of use, but really only one line of code is functionally changed. If you'd rather just change the line directly (and know what you're doing), I'll include that change below.

Installation: Take the "Alphabetized Bag" folder out of the Zip and put it in your Plugins folder.

A few notes:
1. You must enable the setting BAG_POCKET_AUTO_SORT in your Settings script for any pocket that you want sorted.
2. Bag pockets only re-sort when you receive a new item. That means new saves will automatically be sorted, but for old saves, pockets won't be sorted until the player receives a new item in a given pocket.
3. The "Fill Bag" debug option in Essentials does not add new items in the usual way. If you use this command, you have to add 1 of an individual item to a pocket afterwards to get it to sort.

It's my first time making a plugin so please let me know if you have any issues! Tested in my game and vanilla 20.1 Essentials and it worked fine.

Please only do this if you know what you're doing. Otherwise use the plugin option detailed above.
In the PokemonBag script section find this code:
Ruby:
Expand Collapse Copy
@pockets[pocket].sort! { |a, b| GameData::Item.keys.index(a[0]) <=> GameData::Item.keys.index(b[0]) }
And replace it with the following:
Ruby:
Expand Collapse Copy
@pockets[pocket].sort! { |a, b| GameData::Item.get(a[0]).name <=> GameData::Item.get(b[0]).name }
Credits
No credit needed
Author
Nineage
Downloads
661
Views
1,497
First release
Last update

Ratings

5.00 star(s) 1 ratings

Latest reviews

Did the alternative installation, worked great! Be sure to read OPs note on debugs "Fill Bag" command
Back
Top