Item Tab
The Item tab defines all "items, skills, magic, and basic actions" used in the game. Each entry corresponds to one item. It centrally manages consumption, target effects, state apply/remove, and shop prices.
Overview
Purpose of the Screen
- Set basic item information (name, icon, type, target, effect, etc.)
- Define what is consumed on use (the item's own durability, the user's MP, etc.)
- Define effects on the target (damage, heal, buff, debuff)
- Define effects that apply/remove states on the target
- Set master buy/sell prices (used in shops)
Save Location
- Saved to
data/settings/item.jsonwith the item ID as the key
Where It Is Referenced
- Character tab (initial items)
- Enemy tab (action items in action patterns)
- Class tab (learned at level up)
- Event tab (add item / display shop, etc.)
- Drop Table tab (drop target when Type=Item)
Reserved IDs (3 types, delete / ID change prohibited)
| ID | Purpose | Constraints |
|---|---|---|
| BA_ATTACK | Normal attack | Delete / change ID not allowed. Type is recommended to be BASIC_ACTION |
| BA_ESCAPE | Escape (enemy-only usage) | Delete / change ID not allowed |
| BA_ITEM | Label control for the "Item" button in the battle command | Delete / change ID not allowed, only name and dev memo are editable (see below) |
These are auto-restored at tool startup. Even if accidentally removed from item.json, they are restored on editor restart.
Screen Layout
The Item tab has a left/right split layout, with the right pane in a 4-column layout.
Left Pane (Item List)
| Element | Purpose |
|---|---|
| List | Displays all item IDs in a vertical column |
| New button | Add a new item by specifying its ID |
| Change ID button | Change the ID of the selected item (not allowed for reserved IDs) |
| Copy button | Duplicate the selected item (ID is auto-numbered) |
| Delete button (red) | Delete the selected item (not allowed for reserved IDs, with confirmation dialog) |
Right Pane (Property Editing, 4 Columns)
| Column | Content |
|---|---|
| Column 1 | Basic info (ID / name / icon / type, etc. 9 items) + equip-time parameters + comment + dev memo |
| Column 2 | Consumption parameters (item itself) + consumption parameters (user) |
| Column 3 | Target parameter effects + target state apply/remove |
| Column 4 | Buy Prices + Sell Prices |
Bottom Buttons
- Save button
- Formula Help button
Full Property Reference
Column 1-1: Basic Info (ID / Name / Icon)
| Item Name | Input Method | Meaning | Value |
|---|---|---|---|
| ID | Text input (read-only) | Item ID | _a-zA-Z0-9 only, required |
| Name | Text input | Item display name (translation target) | Optional, blank allowed |
| Icon | Text input + file picker button | Icon image path | *.png,*.jpg,*.jpeg,*.svg,*.webp,*.bmp, etc. |
| Icon thumbnail | Image display (auto) | Thumbnail of the current icon | — |
Icon:
- The file picker selects images from under
data/sprites/icons/ - Thumbnail auto-updates when text changes
- Thumbnail is blank if the path is empty or the file does not exist
Column 1-2: Choice Items (7 Dropdowns)
Specify the basic item settings via 7 dropdowns.
| Item Name | Input Method | Meaning | Value |
|---|---|---|---|
| Effect | Dropdown | Effect played on use | Key defined in the Effect tab, blank allowed |
| Display Position | Dropdown | Position to play the effect (2 choices) | See below |
| Type | Dropdown | Item type (basic action / item / skill / magic, etc.) | Key defined in the Type tab |
| Timing | Dropdown | When usable (4 choices) | See below |
| Target | Dropdown | Target when used (all 19 choices) | See below |
| Deletion Criterion Parameter | Dropdown | Parameter used to determine if the item should be removed from inventory when 0 or less after use | Key defined in the Parameter tab, blank allowed |
| Execution Event | Dropdown | Event executed on use | Key defined in the Event tab, blank allowed |
2 Display Position Choices
| Choice | Meaning |
|---|---|
| Target (Target position) | Display effect at the target's position (e.g., explosion effect over the target for single-target attacks) |
| Screen Center (Target group center) | When there are multiple targets, display effect at the average target position (e.g., centered on screen for AoE attacks) |
4 Timing Choices
| Choice | Meaning |
|---|---|
| None | Not usable anywhere (e.g., basic actions only) |
| Battle+Field | Usable both in battle and in the field (on maps) |
| Battle | Usable only in battle (attack magic, etc.) |
| Field | Usable only in the field (healing items, etc.) |
19 Target Choices
| Choice | Meaning |
|---|---|
| User | The user themselves |
| Self | The item itself (when used as consumption target) |
| Party | Entire party (for party-shared parameter targets) |
| Troop | Entire enemy group |
| Selected Member | One ally selected at use time |
| Selected Opponent | One enemy selected at use time |
| Selected Character | Any one character selected at use time (ally or enemy) |
| Selected Item | One item selected at use time |
| Selected Group | One group selected at use time (Party or Troop) |
| Random Member | One randomly selected ally |
| Random Opponent | One randomly selected enemy |
| Random Character | One randomly selected character |
| Random Item | One randomly selected item |
| Random Group | One randomly selected group |
| All Members | All allies |
| All Opponents | All enemies |
| All Characters | All characters (ally or enemy) |
| All Items | All items |
| All Groups | All groups |
Typical Target Usage
- Potion (single-target heal): Selected Member
- Attack magic in battle: Selected Opponent
- AoE attack magic: All Opponents
- Party-wide heal: All Members
- Self-buff skill: User
- Random attack: Random Opponent
Purpose of Deletion Criterion Parameter
- Used for consumable items with durability (Dura, etc.)
- Automatically removed from inventory when the parameter becomes 0 or less after use
- Example: Specify
Dura+ consumeDura-1 via consumption parameter (item itself) → disappears at Dura 0
Purpose of Execution Event
- When specified, Effect / target parameter effects / state effects are ignored, and processing is delegated to the event flow
- Used to implement custom processing (special scripts, screen transitions, etc.)
- Can also be used on incapacitated / escaped targets (special revival items, etc.)
Column 1-3: Equip-Time Parameters
Purpose of Equip-Time Parameters
This section shares a template with Attach, so the UI is provided, but it is normally not referenced for items alone (since items are not treated as equipment). It is used in the Attach tab (E09) for parameter addition of equipped attaches.
| Item Name | Input Method | Meaning |
|---|---|---|
| Parameter | Dropdown | Parameter key |
| Value | Text input (Formula allowed) | Increase/decrease value when equipped |
| Add button | Button | Add/update current parameter + value to the equip-time parameter list |
| Delete button | Button | Delete the selected parameter |
| List | List | Equip-time parameter list |
Column 1-4: Comment / Dev Memo
| Item Name | Input Method | Meaning |
|---|---|---|
| Comment | Multi-line text | In-game display comment (item description) |
| Dev Memo | Multi-line text | Developer-only memo (not displayed in-game) |
Comment: Translation target. Shown as item description on battle screens, menus, etc.
Column 2-1: Consumption Parameters (Item Itself)
Consumes the item's own parameters on use (durability, etc.).
| Item Name | Input Method | Meaning |
|---|---|---|
| Parameter | Dropdown | Parameter key to consume |
| Current | Checkbox | ON=consume from current value, OFF=consume from max value |
| Value | Text input (Formula allowed) | Amount consumed (positive number) |
| Update button | Button | Add/update settings to the consumption parameter list |
| Delete button | Button | Delete the selected entry |
| List | List | Consumption parameter list (in <Param> : {"current": true/false, "value": "..."} format) |
Typical Example
Durability item: Parameter=Dura, Current=ON, Value=1 → Dura decreases by 1 per use. If Deletion Criterion Parameter is set to Dura, it is auto-removed when Dura=0.
Column 2-2: Consumption Parameters (User)
Consumes the user's (character's) parameters on use (MP, etc.).
| Item Name | Input Method | Meaning |
|---|---|---|
| Parameter | Dropdown | Parameter key to consume |
| Current | Checkbox | ON=consume from current value, OFF=consume from max value |
| Value | Text input (Formula allowed) | Amount consumed (positive number) |
| Update button | Button | Add/update settings to the consumption parameter list |
| Delete button | Button | Delete the selected entry |
| List | List | Consumption parameter list |
Typical Example
Magic: Parameter=MP, Current=ON, Value=5 → MP consumed by 5 per use.
Column 3-1: Target Parameter Effects
Define effects on the target (damage, heal, buff, debuff).
| Item Name | Input Method | Meaning |
|---|---|---|
| Parameter | Dropdown | Parameter to add to (HP / MP / STR, etc.) |
| Current | Checkbox | ON=add to current value, OFF=add to max value |
| Value | Text input (Formula allowed) | Addition value (negative subtracts = damage) |
| Trigger Condition | Text input (Formula allowed) | Trigger condition expression (true always triggers, Formula for conditional) |
| Update button | Button | Add/update settings to the target parameter list |
| Delete button | Button | Delete the selected entry |
| List | List | Target parameter list |
Formula notation (see Formula Reference for details):
USER.STR.MAX: User's STR max valueTGT.DEF.MAX: Target's DEF max valueTGTS.COUNT: Number of targets (for distributing AoE)SELF.HP.NOW: User's current HP
Typical value expressions:
| Purpose | Value | Trigger Condition |
|---|---|---|
| HP heal 50 | 50 | true |
| Damage based on attack power | -max(USER.STR.MAX * 2 - TGT.DEF.MAX, 1) | true |
| Enhanced heal only at low HP | 100 | USER.HP.RATE < 0.3 |
| AoE attack (distributed by target count) | -max(USER.INT.MAX * 3 / TGTS.COUNT, 1) | true |
How to Write Damage
Damage is set as negative values (adding negative to HP = subtraction). The idiom -max(..., 1) guarantees at least 1 damage (prevents MISS even if the calculation goes 0 or less).
Using Trigger Conditions
true: Always triggersUSER.HP.RATE < 0.3: Triggers only when the user is low on HPTGT.HP.RATE > 0.5: Triggers only when the target has more than half HPrandi() % 100 < 50: Triggers at 50% probability
Column 3-2: Target State Apply/Remove
Apply or remove states on the target.
| Item Name | Input Method | Meaning |
|---|---|---|
| State | Dropdown | State to apply/remove |
| Add / Remove | Checkbox (exclusive) | Add=apply, Remove=remove |
| Trigger Condition | Text input (Formula allowed) | Trigger condition expression (true always triggers) |
| Add button | Button | Add/update settings to the state list |
| Delete button | Button | Delete the selected entry |
| List | List | State list |
Exclusive Checkbox Control
"Add" and "Remove" are exclusive. Selecting one automatically unselects the other.
Typical Examples
- Poison apply: State=POISON, Add, Trigger Condition=
randi() % 100 < 80(80% to apply) - Poison remove: State=POISON, Remove, Trigger Condition=
true(always removes) - Revive: State=DEAD, Remove, Trigger Condition=
true(removes DEAD → brings back to life)
Column 4-1: Buy Prices
Set master prices for purchasing in shops.
| Item Name | Input Method | Meaning |
|---|---|---|
| Parameter | Dropdown | Parameter used for price (usually GOLD) |
| Current | Checkbox | ON=current value, OFF=max value |
| Value | Text input (Formula allowed) | Price |
| Add button | Button | Add/update settings to the buy price list |
| Delete button | Button | Delete the selected entry |
| List | List | Buy price list |
Role of Master Prices
Prices set here are the master prices used by the Shop Display event content (purchase shop display).
- When the event does not specify a price, the master price here is used
- When the event explicitly specifies a different price, the event-side value takes precedence
Column 4-2: Sell Prices
Set master prices for selling in shops.
| Item Name | Input Method | Meaning |
|---|---|---|
| Parameter | Dropdown | Parameter used for price (usually GOLD) |
| Current | Checkbox | ON=current value, OFF=max value |
| Value | Text input (Formula allowed) | Price |
| Add button | Button | Add/update settings to the sell price list |
| Delete button | Button | Delete the selected entry |
| List | List | Sell price list |
Symmetric structure with Buy Prices. Used by the Sell Shop Display event content.
Bottom Buttons
Save Button
Saves edits to item.json.
Formula Help Button
Pops up a help window with the same content as the Formula Reference.
- Non-modal, so help can stay open while editing continues
- Convenient on the Item tab where Formula is frequently written for values / trigger conditions / consumption amounts / prices
Processing Order on Use
When an item is used, processing is executed in the following order.
- Item's own consumption (Consumption Parameters (item itself))
- User's consumption (Consumption Parameters (user))
- State apply/remove (Target State Apply/Remove) — executed even on incapacitated / escaped targets, revival possible
- Parameter effects (Target Parameter Effects) — skipped for incapacitated / escaped targets; incapacitation auto-applied when HP≤0
- Deletion check (Deletion Criterion Parameter) — removed from inventory if the parameter is 0 or less
Consumed Even on MISS
Even when the trigger condition of target parameter effects is false (equivalent to MISS), consumption is executed. A "used but no effect" message is shown, but MP and item durability are already consumed.
Recommended Settings for Reserved IDs
BA_ATTACK (Normal Attack)
- Type: BASIC_ACTION
- Timing: Battle
- Target: Selected Opponent (one enemy selected at use time)
- Effect: ATTACK
- Target Parameter Effect: HP value =
-max(USER.STR.MAX * 2 - TGT.DEF.MAX, 1), Trigger Condition = hit judgment Formula
BA_ESCAPE (Escape)
- Type: BASIC_ACTION
- Timing: Battle
- Target: Self (the user themselves)
- Target State: Add ESCAPE, Trigger Condition =
randi() % 100 < 50(50% to succeed escape)
BA_ITEM ("Item" button in battle command)
Special: This item is a reservation for controlling the label of the "Item" button in the battle screen's command menu.
- All properties other than Name and Dev Memo are not editable (grayed out)
- The user can customize only the Name (e.g., "Item" → "Tools", "Belongings")
- On save, all properties other than Name and Dev Memo are forcibly overwritten with the tool's default values
Why Not Editable?
BA_ITEM is a reservation for battle UI control and is not actually "used" in the game. Changing type or target has no meaning, so editing is disabled on the editor side.
Impact on Other Tabs / Runtime
Interaction with Other Tabs
| Linked To | Purpose |
|---|---|
| Character tab | Initial items |
| Enemy tab | Action items in action patterns |
| Class tab | Learned at level up (only Type != Item) |
| Event tab | Add item / display shop, etc. |
| Drop Table tab | Lottery target when Type=Item |
| Effect tab | Referenced in Effect field |
| Type tab | Referenced in Type field |
| State tab | Referenced in Target State Apply/Remove |
| Parameter tab | Referenced in consumption / effects / prices |
| Event tab (Execution Event) | Delegation target for custom processing |
How It Is Used In-Game
- On use: Executed in the 5 steps described in "Processing Order on Use" above
- Translation: Name and comment refer to the translation dictionary
- Shop: Buy Prices / Sell Prices are referenced as master prices
Automatic Cross-Tab Reference Updates
Each dropdown in this tab is auto-refreshed to the latest state just before opening. Changes in other tabs are reflected immediately without a tab switch (Effect / Type / Parameter / State / Execution Event).
CRUD Details
Create New
- New button → ID input dialog appears
- Validation: Empty text forbidden, only
_a-zA-Z0-9allowed - Duplicates auto-avoided with
_2,_3, ... - New item is created with all properties blank
Change ID
- Change ID button → Rename dialog appears with current ID as initial value
- Reserved IDs (BA_ATTACK / BA_ESCAPE / BA_ITEM) cannot be changed (NOTICE displayed)
WARNING
After changing an ID, if the old ID is referenced in other tabs, manual updating is required.
Copy
- Copy button fully duplicates the selected item (all properties)
- The new ID is auto-numbered like
_2
Delete
- Delete button → Confirmation dialog appears
- "Yes" executes the deletion
- Reserved IDs (BA_ATTACK / BA_ESCAPE / BA_ITEM) cannot be deleted (NOTICE displayed)
Unsaved Marker
If the tab title shows Item(*), there are unsaved changes. The (*) disappears after pressing Save or "Save All" in the Home tab.
Example Usage
Creating a New Healing Item (Potion)
- New button → Enter ID (e.g.,
IT_POTION) → Create - Name =
Potion - Icon =
data/sprites/icons/potion.png - Type =
ITEM - Timing =
Battle+Field - Target =
Selected Member - Deletion Criterion Parameter =
Dura - Consumption Parameters (item itself): Parameter=
Dura, Current=ON, Value=1→ Add - Target Parameter Effects: Parameter=
HP, Current=ON, Value=50, Trigger Condition=true→ Add - Buy Prices: Parameter=
GOLD, Value=100→ Add - Sell Prices: Parameter=
GOLD, Value=50→ Add - Save to save
Creating a New Attack Magic (Fire)
- New button → Enter ID (e.g.,
MA_FIRE) → Create - Name =
Fire - Type =
MAGIC - Effect =
FIRE - Timing =
Battle - Target =
Selected Opponent - Consumption Parameters (user): Parameter=
MP, Current=ON, Value=5→ Add - Target Parameter Effects: Parameter=
HP, Current=ON, Value=-max(USER.INT.MAX * 3 - TGT.MAG.MAX, 1), Trigger Condition=true→ Add - Save
AoE Attack Magic
- Target =
All Opponents - Target Parameter Effects: Value=
-max(USER.INT.MAX * 3 / TGTS.COUNT, 1)(distributed by target count)
State Application Skill
- Target =
Selected Opponent - Target State Apply/Remove: State=
POISON, Add, Trigger Condition=randi() % 100 < 80(80% to apply poison)
Custom Processing (via Execution Event)
- Execution Event =
event_special_item(event defined in Event tab) - Effect / target effects / state effects are ignored, and the specified event is executed instead
- Can also be used on incapacitated / escaped targets (special revival items, etc.)
Constraints and Edge Cases
Delete / Change Prohibited for Reserved IDs
- BA_ATTACK / BA_ESCAPE / BA_ITEM are rejected with NOTICE output on Change ID / Delete
- Auto-restored on editor startup even if deleted via manual JSON edit
Editing Constraints for BA_ITEM
- All UI except Name and Dev Memo is grayed out and non-editable
- On save, all properties are forcibly overwritten with the tool's default values
ID Constraints
- Empty text forbidden
- Allowed characters:
_a-zA-Z0-9 - Duplicates auto-avoided with
_2,_3
Equip-Time Parameters Not Referenced
- The "Equip-Time Parameters" section at the bottom of Column 1 shares a template with Attach, so the UI is displayed, but it is normally not referenced for items (since items are not treated as equipment)
- This section is meaningful on the Attach tab (E09)
Consumed Even on MISS
- Consumption parameters are executed even when the trigger condition of target parameter effects is false
- Typical behavior of "used but no effect"
Effects on Incapacitated / Escaped Targets
- Target Parameter Effects: Skipped for incapacitated / escaped targets (silent skip)
- Target State Apply/Remove: Executed even on incapacitated / escaped targets (revival possible)
- Execution Event: Can also be used on incapacitated / escaped targets (custom processing)
Auto Incapacitation at HP ≤ 0
- When HP falls to 0 or less via target parameter effects, the DEAD state is automatically applied
- Linked to in-game incapacitation judgment
Purpose of Deletion Criterion Parameter
- When the parameter is 0 or less after use → auto-removed from inventory
- Consumable items (potions, etc.): Deletion Criterion Parameter = Dura + consumption parameter decreases Dura by -1
- Unlimited-use items (skills, magic): Leave Deletion Criterion Parameter empty
Frequently Asked Questions (FAQ)
Cannot add a new item
Cause: ID may be empty text or contain characters other than _a-zA-Z0-9.
Answer: Use an ID containing only allowed characters.
Cannot edit or delete BA_ATTACK
Cause: Change ID / Delete are rejected because it is a reserved ID.
Answer: You can still customize the content (name, effect, Formula for value, etc.). You can also copy to a non-reserved ID and edit that.
Most items in BA_ITEM are grayed out and uneditable
Cause: BA_ITEM is a special internal reserved ID used for controlling the "Item" button label in the battle screen's command menu.
Answer: Only Name is editable (e.g., "Item" → "Tools"). Other settings are ignored, so customization is unnecessary.
Selected Opponent is set but no selection screen appears in battle
Possible causes:
- Timing is not set to Battle or Battle+Field
- Used outside battle (enemies cannot be selected in the field)
Answer: Set Timing to Battle.
Want to adjust AoE attack power
Answer: Use TGTS.COUNT in the value of target parameter effects to distribute.
-USER.INT.MAX * 3 / TGTS.COUNT→ More targets = less damage per target-max(USER.INT.MAX * 3 / TGTS.COUNT, 1)→ Guarantees at least 1 damage
Cannot use the skill when MP is insufficient
Answer: When MP set in consumption parameters (user) is insufficient, the skill becomes unusable (grayed out in the in-game display). Review consumption value.
Equip-time parameters don't work
Cause: "Equip-Time Parameters" at the bottom of Column 1 shares a template with Attach and is normally not referenced for items.
Answer: To implement equipment-based ability changes, use the Attach tab (E09).
Icon not shown
Cause: The path is empty or the file does not exist.
Answer: Check whether the icon thumbnail is shown. If not, re-select the path.
Must I always set buy and sell prices?
Answer: Not required. If not set, the Shop Display event content must specify prices directly. Setting them as master prices lets you omit them on the shop side, which is convenient.
Can I create an item that consumes multiple parameters?
Answer: Yes. Multiple parameters can be registered in Consumption Parameters (user) (e.g., a secret technique consuming HP and MP simultaneously).
Want to apply and remove states simultaneously
Answer: Multiple entries can be registered in Target State Apply/Remove (e.g., a purification skill that removes poison + applies buffs).
Related References:
- Attach tab — Same template structure (equipment / passive)
- Class tab — Learn items via level up
- State tab — Reference target of state apply/remove
- Parameter tab — Reference target of consumption / effects / prices
- Type tab — Reference target of the Type field
- Effect tab — Reference target of the Effect field
- Character tab — Referenced in initial items
- Enemy tab — Referenced in action patterns
- Event tab — Referenced in Execution Event
- Drop Table tab — Referenced as a drop target
- Formula Reference — Formula usable in values / trigger conditions
