Attach Tab
The Attach tab defines in-game equipment (weapons, armor, shields, helmets, accessories) and passives (constantly-active ability enhancements). Each entry corresponds to one attach.
What Is an Attach
In this tool, "equipment" and "passives (constant effects)" are handled by the same mechanism. The Type distinguishes equipment slots (Weapon / Shield / Helmet / Armor / Accessory / Passive), and centrally manages parameter addition when equipped, state application, equippable class restrictions, and equip requirements.
Passives are not shown in the equipment slots; they are special attaches that take constant effect simply by being possessed by the character.
Overview
Purpose of the Screen
- Set basic attach information (name, icon, type)
- Define parameter addition when equipped (stat enhancement)
- Define state application when equipped (cursed equipment, etc.)
- Restrict equippable classes
- Define equip requirement parameters (equippable at STR 10+, etc.)
- Set master buy/sell prices
Save Location
- Saved to
data/settings/attach.jsonwith the attach ID as the key
Where It Is Referenced
- Character tab (initial attaches)
- Enemy tab (initial attaches)
- Class tab (learned at level up, PASSIVE only)
- Event tab (add attach, etc.)
- Drop Table tab (drop target when Type=Attach)
Difference from Items
| Item | Item | Attach |
|---|---|---|
| Purpose | Used to produce an effect (potions, magic, etc.) | Equipped for constant effect (weapons, passives, etc.) |
| On-use effect | Damage, heal, state application, etc. | None (effect from equipping alone) |
| Consumption | MP consumption, durability consumption, etc. | None |
| On-equip effect | None | Parameter addition, state application |
| Equip requirements | None | Parameter requirements, class restrictions |
| Reserved IDs | BA_ATTACK / BA_ESCAPE / BA_ITEM | None |
Internal Implementation
Items and attaches share the same template structure, but this tab only edits the equipment-side fields (equip-time parameters, equip-time states, equippable classes, equip requirement parameters). Item-side fields (effects, target effects, etc.) are retained internally but not referenced by the runtime.
Screen Layout
The Attach tab has a left/right split layout, with the right pane in a 4-column layout.
Left Pane (Attach List)
| Element | Purpose |
|---|---|
| List | Displays all attach IDs in a vertical column |
| New button | Add a new attach by specifying its ID |
| Change ID button | Change the ID of the selected attach |
| Copy button | Duplicate the selected attach (ID is auto-numbered) |
| Delete button (red) | Delete the selected attach (with confirmation dialog) |
No Reserved IDs
Attaches have no reserved IDs. Change ID / Delete are allowed for all attach IDs.
Right Pane (Property Editing, 4 Columns)
| Column | Content |
|---|---|
| Column 1 | Basic info (ID / name / icon / type) + comment + dev memo + equippable classes |
| Column 2 | Equip-time parameters (stat addition) |
| Column 3 | Equip-time states + equip requirement parameters |
| 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) | Attach ID | _a-zA-Z0-9 only, required |
| Name | Text input | Attach 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: Type
| Item Name | Input Method | Meaning | Value |
|---|---|---|---|
| Type | Dropdown | Attach type (equipment slot) | Attach type key defined in the Type tab, blank selection not allowed |
Role of Type:
- Distinguishes equipment slots (Weapon / Shield / Helmet / Armor / Accessory / Passive, etc.)
- Number equippable by one character (usually 1 per type, PASSIVE allows multiple)
- Controls display location (PASSIVE is not shown in equipment slots)
Types Provided in Samples:
| Type | Purpose | Equipment Slot |
|---|---|---|
| WEAPON | Weapon | Shown in equipment slots |
| SHIELD | Shield | Shown in equipment slots |
| HELMET | Helmet | Shown in equipment slots |
| ARMOR | Armor | Shown in equipment slots |
| ACCESSORY | Accessory | Shown in equipment slots |
| PASSIVE | Passive (constant effect) | Not shown in equipment slots, multiple possession allowed, constant effect from possession alone |
Special Behavior of PASSIVE
- Not shown in equipment slots (no equip operation needed as it's a constant effect)
- Multiple of the same PASSIVE can be held by one character (duplicated effect)
- On an unattach operation, it is completely removed from the possession storage too
Passives are intended as "constant effects learned at level up" (e.g., strength enhancement, magical mastery, agility enhancement, etc.).
Column 1-3: Comment / Dev Memo
| Item Name | Input Method | Meaning |
|---|---|---|
| Comment | Multi-line text | In-game display comment (attach description) |
| Dev Memo | Multi-line text | Developer-only memo (not displayed in-game) |
Comment: Translation target. Shown as attach description on equipment screens, menus, etc.
Column 1-4: Equippable Classes
Restricts which classes can equip this attach.
| Item Name | Input Method | Meaning |
|---|---|---|
| Class | Dropdown | Class ID to add |
| Add button | Button | Add the selected class to the equippable class list |
| Delete button | Button | Delete the selected class |
| List | List | Equippable class list |
Restriction Mechanism:
- When empty: All classes can equip (no restriction)
- When 1 or more registered: Only registered classes can equip
Typical Examples
- "Magic Staff": Only
MAGICIANandPRIESTcan equip - "Steel Sword": Empty (all classes can equip)
- "Samurai-Only Katana": Only
SAMURAIcan equip
Column 2: Equip-Time Parameters (Stat Addition)
Define parameter addition (stat enhancement) when equipped.
| Item Name | Input Method | Meaning |
|---|---|---|
| Parameter | Dropdown | Parameter to add to (STR / DEF, etc.) |
| Value | Text input (Formula allowed) | Addition value (number or Formula, negative allowed) |
| Add button | Button | Add/update settings to the equip-time parameter list |
| Delete button | Button | Delete the selected parameter |
| List | List | Equip-time parameter list |
Value Supports Formula
Equip-time parameter values support Formula as well as fixed values (addition amounts can be defined based on character parameters, like USER.STR.BASE / 2). Negative values are also allowed (e.g., heavy equipment -3 agility).
See Formula Reference for detailed notation.
In-Game Behavior:
- For characters equipped with this, the value set in this tab is automatically added to the parameter max value
- When equipped with multiple attaches, the addition values of all attaches are summed
- Removing the equipment removes the addition value
Typical Examples
- Steel Sword: STR +8
- Iron Shield: DEF +5
- Strength Ring: STR +3
- Magical Mastery (PASSIVE): INT +5, MAG +3
Column 3-1: Equip-Time States
Define states automatically applied when equipped (cursed equipment, buff equipment, etc.).
| Item Name | Input Method | Meaning |
|---|---|---|
| State | Dropdown | State to add (Escape cannot be selected) |
| Add button | Button | Add the selected state to the equip-time state list |
| Delete button | Button | Delete the selected state |
| List | List | Equip-time state list |
Special Behavior (Always Active):
- While equipped, the state is always active (ignores the timing settings on the state side)
- Even if the same state is applied by multiple attaches, it triggers only once (duplicates excluded)
- Removing the equipment automatically removes the state
Escape State Cannot Be Selected
ESCAPE is enemy-only + event-trigger-only, so applying it via equipment does not work. It is excluded from the dropdown to prevent confusion. DEAD (incapacitated) is allowed (to leave design room for things like "start incapacitated with cursed equipment").
Typical Example (Cursed Equipment)
Cursed Necklace:
- Equip-time parameter: STR +5 (enhancement effect)
- Equip-time state: POISON (always poisoned while equipped)
- From the user's perspective: Strong but has the trade-off of continuous poison damage
Column 3-2: Equip Requirement Parameters
Define parameter requirements for equipping this attach.
| Item Name | Input Method | Meaning |
|---|---|---|
| Parameter | Dropdown | Required parameter (STR / INT, etc.) |
| Value | Text input (Formula allowed) | Required value (number or Formula) |
| Add button | Button | Add/update settings to the equip requirement parameter list |
| Delete button | Button | Delete the selected parameter |
| List | List | Equip requirement parameter list |
Value Supports Formula
Equip requirement parameter values support Formula as well as fixed values (dynamic requirements based on character state can be defined, like USER.LEVEL.MAX * 2).
Judgment Mechanism:
- Multiple entries are judged as an AND condition (all must be met)
- Equippable if the character's parameter is at or above the required value
- At judgment, parameters already added by equipped attaches are also included (prevents contradictions when swapping equipment)
Typical Examples
- Steel Sword: Equippable at STR 10 or more
- Magic Staff: Equippable at INT 15 or more
- Holy Armor: Equippable at STR 10 or more AND Faith 5 or more (multiple requirements)
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
Example of Combined Payment
Combined payments across multiple parameters can be set, like GOLD: 100 + HP: 100:
- Parameter=
GOLD, Value=100→ Add - Parameter=
HP, Current=ON, Value=100→ Add
This consumes both GOLD 100 and current HP 100 simultaneously on purchase.
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 attach.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 when writing Formula for buy/sell prices (equip-time parameters / equip requirement parameters are numbers only)
Impact on Other Tabs / Runtime
Interaction with Other Tabs
| Linked To | Purpose |
|---|---|
| Character tab | Initial attaches |
| Enemy tab | Initial attaches |
| Class tab | Referenced in equippable classes / learned PASSIVE at level up |
| Type tab | Referenced by Type (attachtype) |
| Parameter tab | Equip-time parameters / equip requirements / buy and sell prices |
| State tab | Equip-time states (ESCAPE excluded) |
| Drop Table tab | Lottery target when Type=Attach |
| Event tab | Referenced in add attach, etc. |
How It Is Used In-Game
- On equip: Equip-time parameters are added, equip-time states are always active
- On unequip: Addition and constant states are automatically removed
- PASSIVE: Not shown in equipment slots, constant effect from possession alone
- Equip check: Class restriction + equip requirement parameters as AND condition
- Shop: Buy Prices / Sell Prices referenced as master prices
- Translation: Name and comment refer to the translation dictionary
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 (Type / Parameter / Class / State).
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 attach is created with all properties blank
Change ID
- Change ID button → Rename dialog appears with current ID as initial value
- Validation: Same as Create New
- Attach has no reserved IDs, so all IDs can be changed
WARNING
After changing an ID, if the old ID is referenced in other tabs (character initial attaches, class equippable, etc.), manual updating is required.
Copy
- Copy button fully duplicates the selected attach (all properties)
- The new ID is auto-numbered like
_2
Delete
- Delete button → Confirmation dialog appears
- "Yes" executes the deletion
- Attach has no reserved IDs, so all attaches can be deleted
Unsaved Marker
If the tab title shows Attach(*), there are unsaved changes. The (*) disappears after pressing Save or "Save All" in the Home tab.
Example Usage
Creating a New Weapon (Steel Sword)
- New button → Enter ID (e.g.,
WE_STEEL_SWORD) → Create - Name =
Steel Sword - Icon =
data/sprites/icons/sword_steel.png - Type =
WEAPON - Comment =
STR +8. Requires STR 10. - Equippable Classes: Empty = All classes can equip
- Equip-Time Parameters: Parameter=
STR, Value=8→ Add - Equip Requirement Parameters: Parameter=
STR, Value=10→ Add (equippable only for characters with STR 10 or more) - Equip-Time States: Empty
- Buy Prices: Parameter=
GOLD, Value=800→ Add - Sell Prices: Parameter=
GOLD, Value=400→ Add - Save to save
Creating a New Passive (Muscle Up)
- New button → Enter ID (e.g.,
PA_MUSCLE) → Create - Name =
Muscle Up - Type =
PASSIVE - Comment =
STR +5 (always active). - Equip-Time Parameters: Parameter=
STR, Value=5→ Add - Equip Requirement Parameters / Equip-Time States / Equippable Classes: Empty
- Save
In-game behavior:
- Not shown in equipment slots, STR +5 always active just by possession
- Multiple possession allowed (duplicated effect; holding 3 PA_MUSCLE gives +15)
Creating Cursed Equipment
- New button → Enter ID (e.g.,
AC_CURSED_NECKLACE) → Create - Name =
Cursed Necklace - Type =
ACCESSORY - Equip-Time Parameters: Parameter=
STR, Value=5→ Add - Equip-Time States: State=
POISON→ Add (always poisoned while equipped) - Save
In-game behavior:
- STR +5 enhancement while equipped
- Always poisoned while equipped (HP decreases each turn)
- Removing the equipment removes both effects
Class-Restricted Equipment
- Create Magic Staff
WE_MAGIC_STAFF - Equip-Time Parameters: Parameter=
INT, Value=10→ Add - Equippable Classes: Add
MAGICIANandPRIEST - Save
In-game behavior:
- Only magicians and priests can equip
- Even if warriors or knights try to equip, it will not appear in the dropdown
Heavy Equipment with Multiple Requirements
- Create Holy Armor
AR_HOLY - Equip-Time Parameters: DEF +15, Faith +3
- Equip Requirement Parameters: STR requirement=10, Faith requirement=5
- Equippable Classes:
KNIGHTandPRIEST - Save
In-game behavior:
- Equippable only by knights or priests who have STR ≥ 10 AND Faith ≥ 5
Combined Payment Buy Price
- Create "Sage's Charm"
AC_AMULET_RES - Equip-Time Parameters: INT +5, Magic Defense +5
- Buy Prices:
- Parameter=
GOLD, Value=500→ Add - Parameter=
HP, Current=ON, Value=100→ Add (current HP 100 consumed)
- Parameter=
- Sell Prices: Parameter=
GOLD, Value=250→ Add
In-game behavior:
- On purchase, consumes GOLD 500 and HP 100 simultaneously
- Expression for equipment obtained by shaving one's life
Constraints and Edge Cases
ID Constraints
- Empty text forbidden
- Allowed characters:
_a-zA-Z0-9 - Duplicates auto-avoided with
_2,_3
Values for Equip-Time Parameters / Equip Requirements
- Numbers only (Formula not allowed)
- Negative values allowed (e.g., heavy equipment with -3 agility)
Constraints on Equip-Time States
ESCAPEcannot be selected (enemy-only + event-trigger-only)DEAD(incapacitated) is allowed (design room for cursed equipment)
Empty Handling for Equippable Classes
- Empty = All classes can equip
- With values = Only registered classes can equip
Judgment Order of Equip Requirement Parameters
- When another attach is already equipped, the judgment includes its addition values
- Example: A character wanting to equip an attach requiring STR 10 who is already wearing a "Strength Ring (STR +3)" can equip if their raw STR is 7 or more
PASSIVE Duplication
- Holding the same PASSIVE multiple times adds parameters that many times
- Equip-time states trigger only once (duplicates excluded via union reference)
Invalid References
- If the equippable classes / equip requirement parameters / equip-time parameters / equip-time states contain IDs not present in the referenced tab, the list shows a red warning
Frequently Asked Questions (FAQ)
What's the difference between an attach and an item?
Answer: Their purposes differ.
- Item: Used to produce an effect (potions, magic, techniques, etc.)
- Attach: Equipped to gain a constant effect (weapons, armor, passives, etc.)
This tab is dedicated to attaches (equipment / passive).
Cannot write Formula in equip-time parameters
Cause: Equip-time parameter / equip requirement parameter values are numbers only (Formula not allowed).
Answer: Set as fixed values (negative values also OK).
PASSIVE is not shown in the equipment slot
Cause: PASSIVE is intentionally designed not to show in equipment slots.
Answer: PASSIVE takes constant effect simply by possession. No equip operation is needed.
Cannot select ESCAPE in equip-time state
Cause: ESCAPE is enemy-only + event-trigger-only, so applying it via equipment does not work. Selection itself is prohibited to prevent confusion.
Answer: To express "equipment that makes escape easier", use a mechanism that applies ESCAPE via events.
Can I select DEAD in equip-time state?
Answer: Yes, selectable. It is allowed to leave design room for special settings like "starts incapacitated with cursed equipment".
Does leaving equippable classes empty mean no one can equip?
Answer: Opposite. Empty = all classes can equip. If you want to restrict by class, add classes to Equippable Classes.
A character with STR 7 can equip an attach that requires STR 10?
Cause: If another attach is already giving STR +3, the sum is STR 10, making it equippable.
Answer: This is a specification to prevent contradictions when swapping equipment (avoiding the situation where removing an equipped attach would make the current equipment unequippable).
Can I hold multiple of the same PASSIVE?
Answer: Yes. Holding multiple PASSIVE adds parameters that many times (e.g., holding 3 STR+5 PASSIVE gives STR +15).
Are parameters from multiple equipped attaches summed?
Answer: Yes. Example: Steel Sword (STR+8) + Strength Ring (STR+3) gives total STR+11 addition effect.
Do equip-time states duplicate when applied by multiple attaches?
Answer: No. They use union reference, so the same state ID triggers only once.
Error on character's initial equipment after deleting an attach
Cause: The initial attach of the Character tab may reference the deleted ID.
Answer: Before deletion, confirm on the Character tab that the ID is not in use.
Must I always set buy / sell prices?
Answer: Not required. The Shop Display event content can specify prices directly. Setting master prices is convenient.
Want to set attach durability
Cause: Attaches do not have a Deletion Criterion Parameter (removed 2026-09-11).
Answer: To express consumable equipment, write processing to explicitly delete via event content "Delete Item". Alternatively, add a durability parameter like Dura to equip-time parameters and have game progress decrease it.
Related References:
- Item tab — Same template structure (use type)
- Class tab — Reference target of equippable classes / learn PASSIVE at level up
- Type tab — Reference target of Type (attachtype)
- Parameter tab — Reference target of equip-time parameters / equip requirements / buy and sell prices
- State tab — Reference target of equip-time states
- Character tab — Referenced in initial attaches
- Enemy tab — Referenced in initial attaches
- Drop Table tab — Referenced as drop target when Type=Attach
- Formula Reference — Notation usable in Formula for buy/sell prices
