Custom Item Categories

How to create Custom Item Categories.

The Custom Item Categories is where the fun begins.

CUSTOM_CATEGORY_NAMES = {
  "Evolution Stones" => { 
    :items => [:FIRESTONE, :THUNDERSTONE, :WATERSTONE, :LEAFSTONE, :MOONSTONE, :SUNSTONE, :DUSKSTONE, :DAWNSTONE, :SHINYSTONE, :ICESTONE],
    :order => 11
  },
  "Type Plates" => {
    :items => [:FLAMEPLATE, :SPLASHPLATE, :ZAPPLATE, :MEADOWPLATE, :ICICLEPLATE, :FISTPLATE, :TOXICPLATE, :EARTHPLATE, :SKYPLATE, :MINDPLATE, :INSECTPLATE, :STONEPLATE, :SPOOKYPLATE, :DRACOPLATE, :DREADPLATE, :IRONPLATE, :PIXIEPLATE],
    :order => 12
  },
  "Type Gems" => {
    :items => [:FIREGEM, :WATERGEM, :ELECTRICGEM, :GRASSGEM, :ICEGEM, :FIGHTINGGEM, :POISONGEM, :GROUNDGEM, :FLYINGGEM, :PSYCHICGEM, :BUGGEM, :ROCKGEM, :GHOSTGEM, :DRAGONGEM, :DARKGEM, :STEELGEM, :FAIRYGEM, :NORMALGEM],
    :order => 13
  }
}

I've provided some examples already. One of these example is "Evolution Stones" which is a hash that has a key named :items which is an array that contains all the Evolution Stone Items. You can also provide an :order key which will sort the Categories accordingly.

The Default Category's :order is their pocket ID * 10. If you added custom Pocket names to the bag, you can know the :order by doing the same calculation (Pocket ID * 10).

  • "Items" => order = 10

  • "Medicine" => order = 20

  • "Poké Balls" => order = 30

  • "TMs & HMs" => order = 40

  • "Berries => order = 50

  • "Mail" => order = 60

  • "Battle Items" => order = 70

  • "Key Items" => order = 80

The Result in game will be as follow:

Custom Item Categories

Since we assigned 11 to :order, the "Evolution Stones" Category will be placed after the "Items" Category.

But in this example there's no are no items that belong to the "Items" Category so the first Category shown is the "Evolution Stones" Category. The next Category will then be "Type Plates" and then "Type Gems" since they have an :order of 12 and 13 respectivily.

The Category there after is "Medicine" if there are Items that belong to this Category.

In other words it just follows up the number of the :order assigned.

If you don't provide an :order then it'll be placed at the end by default.

Last updated