# Custom Item Categories

The Custom Item Categories is where the fun begins.

```ruby
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.&#x20;

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:

<div align="left"><figure><img src="/files/gRiauNRFknVDfMLnBW9k" alt="" width="375"><figcaption><p>Custom Item Categories</p></figcaption></figure></div>

Since we assigned 11 to `:order`, the **"Evolution Stones"** Category will be placed after the **"Items"** Category.&#x20;

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.&#x20;

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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://arckytech.gitbook.io/arckys-poke-mart-guide/settings-and-setup-file/item-categories/custom-item-categories.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
