Default Item Categories

What the default categories are and how to customize them.


Image not found
Item Categories

How It Works

When useCat: true is enabled in your Mart event, the plugin will automatically split items into cetagories based on the default bag pocket names. This makes the UI cleaner and more intuitive, especially when selling a large variety of items.


These categories are shown at the top of the screen, along with the page number.



Customizing Category Names

This feature will split up the items in their respective category following the bag pocket names, they'll be ordered by alphabet. It is possible to set up custom categories as well, for example, evolution stones.


You can change the display names of these default categories in the 000_PokeMarket_Settings_and_Setup.rb file.

This array matches the order of pockets in your game's Bag on defines how they appear in the shop UI?

Hint

Translating your game? If you're plannnig to localize your game, use this format instead to make the category names translatable:



Optional: Auto-Fetch from the Bag

If you prefer a more dynamic solution — especially if your game modifies or adds new pockets — you can auto-generate the list like this: Or you can use the following line instead:

This will automatically generate category names based on your bag's pockets.
If you translate or add new pockets later, they'll be reflected here without any manual changes.

Attention

Note: If you're unfamiliar with Ruby methods, stick with the first example above. It's easier to manage manually. :D