Type tab
The Type tab is where you define classifications for item types (Basic Action, Item, Magic, Skill, etc.) and attach types (weapon, armor, passive, etc.) used in your game. Two classification datasets are edited side by side on a single screen.
What is a Type?
In this tool, items and attaches are classified by type, which determines in-game menu structure and equipment slot layout.
- Item type: Determines which menu an item created on the Item tab (attack magic, healing potion, etc.) is categorized under
- Attach type: Determines which equipment slot an equipment (sword, armor, ring, etc.) or passive created on the Attach tab belongs to
For example, if you create an item type called "Magic" and classify "Fire" and "Heal" items under it, they will appear grouped under a "Magic" submenu in the battle menu.
Similarly, if you create an attach type called "Shield" and classify shield attaches under it, a "Shield" slot will be generated in the equipment UI.
Overview
Purpose of this screen
- Create and edit item types (itemtype)
- Create and edit attach types (attachtype)
- Set the display name and priority for each
Save location
data/settings/itemtype.json— item typesdata/settings/attachtype.json— attach types
Where it is referenced
- Item tab: The Type property references the itemtype from this tab
- Attach tab: The Type property references the attachtype from this tab
- State tab: The "unusable item types" section references the itemtype from this tab as a checkbox list
- Battle UI: Generates a submenu for each item type
- Equipment UI: Generates an equipment slot for each attach type
Reserved IDs
The Type tab has three reserved IDs that cannot be deleted or renamed.
Reserved IDs for item types
| Reserved ID | Purpose |
|---|---|
BASIC_ACTION | Basic action (normal attack, escape, etc. — commands always usable in battle) |
ITEM | Item (consumable items such as potions and bombs) |
Reserved IDs for attach types
| Reserved ID | Purpose |
|---|---|
PASSIVE | Passive (not shown in the equipment panel; takes effect simply by being owned by the character) |
These reserved IDs cannot be deleted or renamed. If they are missing from the JSON at initialization, they are automatically added.
Display names of reserved IDs can be changed
The display name (what is shown in-game) and the priority of reserved IDs can be changed. For example, you can change BASIC_ACTION's display name from "Basic" to "Action", or PASSIVE's display name to "Trait".
Screen layout
The Type tab has a special structure that edits two types side by side on a single screen. The left pane is not used; the entire screen is extended to the right and two sections are placed within it.
Left panel (item types)
| Element | Purpose |
|---|---|
| List | Displays all item type IDs in a vertical column |
| New button | Add a new item type by specifying an ID |
| ID / Name / Priority | Edit properties of the selected item type |
| Rename ID button | Change the ID of the selected item type (reserved IDs are rejected) |
| Copy button | Duplicate the selected item type (ID is auto-numbered) |
| Delete button (red text) | Delete the selected item type (reserved IDs are rejected; confirmation dialog shown) |
Right panel (attach types)
Exactly the same structure as the left panel. The only difference is that it handles attach types.
Shared bottom area
| Element | Purpose |
|---|---|
| Save button | Writes the edits to both itemtype.json and attachtype.json |
The Save button is shared
Whether you modified only the left or right panel, pressing the Save button writes to both JSON files simultaneously.
Properties (common to both sides)
| Item | Input format | Description |
|---|---|---|
| ID | Read-only | The ID of the selected type. Changed via the Rename ID button |
| Display name (Name) | Text | The name displayed in-game (e.g. "Magic", "Shield"). Can be localized via the Translation tab |
| Priority | Integer | Display order (smaller comes first; 0 is a special case for last) |
How Priority works
- Positive integer (1 or higher): Displayed in ascending order (
1first, then2,3, ...) - 0: Displayed last (treated as "no priority")
Example: If item type priorities are set as follows, the battle menu will display them in this order:
| Item type | Priority | Display position |
|---|---|---|
| Basic Action (BASIC_ACTION) | 1 | 1st |
| Item (ITEM) | 2 | 2nd |
| Skill (SKILL) | 3 | 3rd |
| Magic (MAGIC) | 4 | 4th |
| Others | 0 | Last |
Input validation
- Priority is normalized to an integer when the input field loses focus (decimals truncated, minimum 0)
- Empty strings and non-numeric values are treated as 0
Operating the left pane (common to item type and attach type)
New
Pressing the New button opens an ID input dialog. The new type is added with the entered ID.
Input rules:
- Allowed characters:
_a-zA-Z0-9only - Empty strings not allowed
- If the ID already exists, a suffix
_2,_3, etc. is automatically appended
The initial values just after creation are: display name empty, priority 0 (displayed last).
Rename ID
Pressing the Rename ID button opens a rename dialog. Input rules are the same as for New. Pressing this against a reserved ID (BASIC_ACTION / ITEM / PASSIVE) is rejected.
Copy
Pressing the Copy button adds a new type that duplicates all data of the selected type. The ID is auto-numbered (original ID + _2, _3, ...). The newly copied type is completely independent from the original.
Delete
Pressing the Delete button displays a confirmation dialog; clicking OK deletes the selected type. Pressing this against a reserved ID (BASIC_ACTION / ITEM / PASSIVE) is rejected.
Caution when deleting
Deleting an item type invalidates the type setting of all items on the Item tab that referenced it. The same applies to attach types. Before deleting, check where the type is used on the Item/Attach tab.
Save
Pressing the Save button writes all edited data to both itemtype.json and attachtype.json. Even if you edited only one panel, both are written on save. Changes before saving are held in memory only, and a (*) mark appears in the tab title.
Meaning of reserved IDs for item types
BASIC_ACTION
A type that classifies commands always usable in battle. Normal attacks and escape fall under this. On the Item tab, basic action items like BA_ATTACK (attack) and BA_ESCAPE (escape) are provided as reserved IDs.
Handling in the battle UI:
- Always shown as a character command at the start of battle
- Does not get consumed; can be used any number of times
ITEM
A type that classifies consumable items used by using them. Potions, healing items, scrolls, etc. fall under this.
Handling in the battle UI:
- Shown in the item submenu during battle
- Selectable only when quantity is 1 or more
- Quantity decreases by 1 each use
Types the user can add
Besides the reserved IDs, you can freely add new types. Typical examples:
MAGIC: Magic items that consume MPSKILL: Skills that consume skill points or enduranceULTIMATE: Powerful techniques with limited uses
Adding these generates a submenu for each in the battle menu.
Meaning of reserved IDs for attach types
PASSIVE
A type that classifies attaches that are not shown in the equipment panel but take effect at all times. When you create a PASSIVE attach on the Attach tab, simply owning it on a character provides its effect without appearing in the equipment panel.
Characteristics:
- Not shown in the equipment panel
- The same character can own multiple passives simultaneously
- Only PASSIVE attaches can be selected in the "learnable attaches" section of the Class tab
- No equip/unequip operation; takes effect automatically when owned
Types the user can add
Besides the reserved ID, you can freely add new equipment types. Typical examples:
WEAPON: Swords, axes, staves, etc.HELMET: Helmets, head gearARMOR: Body armorACCESSORY: Rings, necklaces, etc.SHIELD: ShieldsBOOTS: Foot gear
Adding these dynamically generates an equipment slot for each in the equipment UI.
Typical usage flow
Flow 1: Create a new item type "Ultimate"
- Press the New button in the left panel (item types)
- Enter an ID (e.g.
ULTIMATE) and click OK - In the property editor on the right:
- Display name =
Ultimate - Priority =
5(after BASIC_ACTION / ITEM / SKILL / MAGIC)
- Display name =
- Press the Save button
- When creating a new item on the Item tab,
ULTIMATEis now added to the type selection
Flow 2: Create a new attach type "Shield"
- Press the New button in the right panel (attach types)
- Enter the ID
SHIELDand click OK - In the property editor on the right:
- Display name =
Shield - Priority =
6(after WEAPON / HELMET / ARMOR / ACCESSORY)
- Display name =
- Press the Save button
- When creating a new attach on the Attach tab,
SHIELDis now added to the type selection - When a character equips a shield-type attach, a "Shield" slot appears in the equipment panel
Flow 3: Change the display name of a reserved ID
- Select
BASIC_ACTIONin the left panel - Change the display name from
BasictoAction - Press the Save button
- The corresponding category in the battle menu is now displayed as "Action"
Difference between ID and display name
The ID is an internal identifier (the name used in the source code) and cannot be changed. The display name is for in-game display and can be freely changed.
Flow 4: Adjust priority
- Select
MAGICin the left panel - Change the priority from
4to2 - Press the Save button
- In the battle menu, Magic is now displayed next (2nd) after BASIC_ACTION
Flow 5: Copy an existing type to make a derivative
- Select
WEAPONin the right panel - Press the Copy button →
WEAPON_2is auto-generated - Rename it to
TWO_HANDED_WEAPONvia the Rename ID button - Set display name to
Two-Handed Weaponand adjust priority - Press the Save button
Links to other tabs
Link with the Item tab
When you create a new item on the Item tab, the Type property options are the full list of item types defined on this tab. Adding a new type here is automatically reflected in the Item tab's options.
Link with the Attach tab
When you create a new attach on the Attach tab, the Type property options are the full list of attach types defined on this tab. Adding a new type here is automatically reflected in the Attach tab's options.
Link with the State tab
In the unusable item types section of the State tab, all item types defined on this tab are shown as checkboxes. Adding or removing types here is automatically reflected in the State tab's checkbox list.
Link with the Class tab
In the learnable attaches section of the Class tab, only PASSIVE-type attaches defined on this tab are selectable (weapons/armor cannot be selected). This is a restriction on the Class tab side; adding non-PASSIVE types here will not make them appear in learnable attaches.
Related tabs
| Tab | Related content |
|---|---|
| Item tab | References item types from this tab |
| Attach tab | References attach types from this tab |
| State tab | References item types from this tab as a checkbox list in unusable item types |
| Class tab | References only PASSIVE types in learnable attaches |
Notes
Reserved IDs cannot be deleted or renamed
The item type BASIC_ACTION / ITEM and the attach type PASSIVE cannot be deleted or renamed. These are required for the tool's core functionality (battle commands, consumable items, always-active attaches).
Saving writes both JSON files
The Save button is a single button at the bottom; pressing it writes both itemtype.json and attachtype.json. Even if you edited only one panel, the other is written at save time (though content remains unchanged if there were no modifications).
No referential integrity check on delete
When deleting an item type or attach type, items/attaches that reference that type are not automatically corrected. Check where the type is used on the Item/Attach tab before deleting.
Behavior of priority 0
Setting priority to 0 always displays the type last. It is treated as "no priority", so if multiple types are set to 0 they appear last in an undefined order (such as creation order). Use positive integers if you need strict ordering.
Initial priority on new creation is 0
Newly created types have priority 0 as the initial value, so they are displayed last immediately after creation. If you want them higher in the order, change the priority to 1 or higher after creation.
