State Tab
The State tab defines in-game states (status ailments / buffs / debuffs). Each entry corresponds to one state.
What Is a State
In this tool, mechanisms that apply temporary effects to characters or enemies, such as "poison", "paralysis", "confusion", "strength up", or "defense down", are handled as states.
A state is composed of the combination of the following elements:
- Action restriction: Restricts actions (unable to act, attacks allies, attacks enemies)
- Unusable item types: Prevents using items of specific types (magic sealing, etc.)
- Parameter change: Constant addition (buff) or periodic change (poison damage, etc.)
- Timing: When the effect takes place (turn start in battle, every step, etc.)
- Duration: How many turns or steps until removal
Multiple states can be applied simultaneously to characters or enemies (e.g., "Poison + Paralysis + Strength Up" active at once).
Overview
Purpose of the Screen
- Set basic state information (name, icon, activation effect)
- Define action restrictions (paralysis, confusion, etc.)
- Define sealed item types (magic sealing, etc.)
- Set per-timing activation flags (battle start, turn end, before action, etc.)
- Set duration in turns, step-based triggers, step-based removal
- Set constant addition to parameters (buff)
- Set parameter changes on timing triggers (poison damage, etc.)
Save Location
- Saved to
data/settings/state.jsonwith the state ID as the key
Where It Is Referenced
- Character tab: Initial states (states a character starts with)
- Enemy tab: Initial states (states an enemy starts with)
- Item tab: Target states (states applied/healed on use)
- Attach tab: Equip-time states (cursed equipment, etc.)
- Battle processing: Timing triggers apply various effects
- World processing: Step-based triggers / removal in the field
Reserved IDs
States have 2 types of reserved IDs that cannot be deleted or ID-changed.
| Reserved ID | Purpose | Runtime Meaning |
|---|---|---|
DEAD | Incapacitated state | Auto-applied when HP goes 0 or below, removed via revival |
ESCAPE | Escape state | Applied when an enemy succeeds in escape (enemy-only, not applied to allies) |
These reserved IDs cannot be deleted or ID-changed (pressing Delete / Change ID is rejected). On initialization, if they don't exist in state.json, they are automatically added.
About Editing Reserved IDs
Each property of DEAD / ESCAPE (action restrictions, timing flags, etc.) is editable in the UI, but changing them may break tool integrity (e.g., changing DEAD's action restriction to "none" would create situations where characters can act even while incapacitated).
We recommend not editing DEAD / ESCAPE. Changing appearance (name, icon, effect) is fine.
Screen Layout
The State tab has a left/right split layout, with the right pane in a 3-column layout.
Left Pane (State List)
| Element | Purpose |
|---|---|
| List | Displays all state IDs in a vertical column |
| New button | Add a new state by specifying its ID |
| Change ID button | Change the ID of the selected state (reserved IDs rejected) |
| Copy button | Duplicate the selected state (ID is auto-numbered, all data duplicated) |
| Delete button (red) | Delete the selected state (reserved IDs rejected, with confirmation dialog) |
| Save button | Write edits to state.json |
Right Pane (Property Editing, 3 Columns)
| Column | Content |
|---|---|
| Column 1 | Basic info (ID / name / icon / effect) + action restriction + sealed item types |
| Column 2 | Timing flags (battle) + duration turns + movement-time flags + step trigger + step removal + dev memo |
| Column 3 | Parameter constant addition (Max) + parameter timing change (Current) |
Left Pane Operations
Create New
Pressing the New button opens the ID input dialog. The entered ID is used to add a new state.
Input Rules:
- Allowed characters:
_a-zA-Z0-9only - Empty text not allowed
- Duplicates with existing IDs are automatically appended with
_2,_3, etc.
Change ID
Pressing the Change ID button opens the ID change dialog. Input rules are the same as Create New. Reserved IDs (DEAD / ESCAPE) are rejected.
Copy
Pressing the Copy button creates a new state duplicating all data of the selected state. The ID is auto-numbered (original ID + _2, _3, etc.). The new state created by copy has data completely independent from the original (deep copy).
Delete
Pressing the Delete button opens a confirmation dialog; OK deletes the selected state. Reserved IDs (DEAD / ESCAPE) are rejected.
Caution on Deletion
Deleting a state ID in use by Character / Enemy / Item / Attach tabs invalidates the reference in those entries. Confirm usage locations before deletion.
Save
Pressing the Save button writes all state data being edited to data/settings/state.json. Changes up to Save are retained in memory only, and a (*) mark appears on the tab title.
Right Pane: Basic Info (Column 1 Top)
| Item | Input Form | Description |
|---|---|---|
| ID | Read-only | ID of the selected state. Change via the Change ID button in the left pane |
| State Display Name | Text | State name shown in-game. Multilingual support via Translation tab |
| Icon Image Path | Text + ... button | Icon image displayed on the character's status when the state is applied. ... button selects images from under data/sprites/icons/ |
| Icon Thumbnail | Image display | Shows the actual thumbnail of the selected icon image (auto-updates on path change) |
| Effect | Select | Effect played when the state is applied (selected from those defined in the Effect tab). Blank disables the effect |
Icon Thumbnail Display
Entering or selecting the icon image path immediately shows a thumbnail to the right. If the path is empty or the image file does not exist, the thumbnail is blank.
Supported Image Formats
The icon selection dialog supports: PNG / JPG / JPEG / SVG / WEBP / BMP / DDS / KTX / EXR / HDR / TGA
Right Pane: Action Restriction (Column 1 Middle)
Restricts the actions taken in battle by characters with this state applied. Can express paralysis, confusion, berserker, etc.
Input Items
| Item | Input Form | Description |
|---|---|---|
| Action Restriction Type | Select | Type of action restriction (described below) |
| Trigger Probability | Number or Formula | Probability (%) that action restriction triggers. Supports Formula (USER.LEVEL * 10, etc.) |
4 Action Restriction Types
| Type | Behavior | Example Usage |
|---|---|---|
| None | No action restriction (can act normally) | Buffs / debuffs (STR UP, etc.) |
| Unaction | Skips turn (cannot act) | Paralysis / sleep / freeze |
| Attack Opponent | Ignores the intended target and attacks a random enemy with basic attack | Confusion (but targets enemies) |
| Attack Member | Ignores the intended target and attacks a random ally with basic attack | Confusion (allies fight) / berserker |
Trigger Probability
Enter the trigger probability as a number 0-100. Using Formula allows probability based on character level or ability.
Examples:
100→ Always triggers (complete paralysis)50→ Triggers at 50% (50% chance to act)USER.LEVEL.MAX * 5→ Level × 5% (50% at level 10, 100% at level 20)
When Trigger Probability Is 0
When trigger probability is 0, even if an action restriction type is set, it won't trigger. Behavior is the same as "no restriction".
Editable Conditions for Action Restriction
The action restriction input is enabled only when Battle checkbox or Move checkbox is ON. If both are OFF, the inputs are inactive (since the state has no meaning).
Right Pane: Sealed Item Types (Column 1 Bottom)
Setting that prevents characters with this state applied from using items of specific types.
UI
Item types defined in the Type tab are displayed as checkboxes. Checked types will have their items grayed out in the battle item selection menu and become unselectable.
Dynamic Checkbox Generation
Sealed item type checkboxes are auto-generated from item types defined in the Type tab. Adding/deleting types in the Type tab reflects automatically when returning to this tab.
Usage Examples
| State | Checked Item Types | Effect |
|---|---|---|
| Silence (SILENCE) | Magic | Magic items unusable, normal attacks and techniques usable |
| Disarm | Basic Action | Normal attack and escape unusable, magic and techniques usable |
| All Items Seal | Magic + Techniques + Consumables, etc. | Nearly all items unusable |
Preservation of Existing Checks
Adding new item types in the Type tab and returning to this tab preserves existing checks and adds new checkboxes.
Right Pane: Timing Flags (Column 2 Top)
Fine-tunes when this state takes effect (when add_current_param fires, when action restrictions are evaluated).
Battle Checkbox
The baseline flag for whether this state takes effect in battle.
- OFF: All battle-related timing flags (battle start, turn start, etc.) are disabled (grayed out)
- ON: The 6 timing flags below + duration turn settings become enabled
6 In-Battle Timings
Enabled only when "Battle" is ON. The "Add to Current (Per Timing)" in Column 3 fires at each timing that is ON.
| Timing | Trigger Condition |
|---|---|
| Battle Start | When the battle start processing begins |
| Battle End | At battle end (victory only, no trigger on defeat; party only on successful escape) |
| Turn Start | At the start of each turn |
| Turn End | At the end of each turn (poison damage, etc.) |
| Before Action | Immediately before one's own action phase (no trigger if skipped by action restriction) |
| After Action | Immediately after one's own action phase (no trigger if skipped by action restriction) |
No Trigger Conditions for Before / After Action
If action is skipped by action restriction, both Before and After Action don't trigger. This expresses that "action processing itself does not run on skipped turns".
Right Pane: Duration Turns (Column 2 Middle)
Sets how many turns this state lasts in battle.
Input Items
| Item | Input Form | Description |
|---|---|---|
| Duration Turns checkbox | ON/OFF | Whether to use duration turn limit |
| Min | Integer (1 or more) | Minimum turns to last (placeholder: Minimum duration turns (integer)) |
| Max | Integer (1 or more) | Maximum turns to last (placeholder: Maximum duration turns (integer)) |
Determining Duration Turns
On state application, a random integer between the lower and upper bounds is determined, and the state is auto-removed after that many turns.
Example: Min 4, Max 6 → Determined to 4/5/6 on application, lasts that many turns
When Duration Turns Checkbox Is OFF
Means no duration turn limit (= lasts until the battle ends). Automatically removed when battle ends (not carried over outside battle).
Editable Conditions
- Min / Max inputs are editable only when "Battle" is ON and "Duration Turns" is ON
- When either is OFF, the inputs are inactive
Input Validation
- Min / Max are integerized (minimum 1)
- If Max is less than Min, it's auto-corrected to the same value as Min
Right Pane: Movement-Time Flags (Column 2 Bottom)
Setting for whether this state takes effect in the field (outside battle).
Input Items
| Item | Input Form | Description |
|---|---|---|
| Move checkbox | ON/OFF | Whether to take effect in the field |
| Per Steps | Integer | How many steps between timing triggers (placeholder: Step interval for trigger (integer, 0=every step)) |
| Remove by Steps checkbox | ON/OFF | Whether to auto-remove by step count |
| Min | Integer (1 or more) | Minimum steps to removal (placeholder: Minimum steps to removal (integer)) |
| Max | Integer (1 or more) | Maximum steps to removal (placeholder: Maximum steps to removal (integer)) |
Step Trigger Behavior
When "Move" is ON, the "Add to Current (Per Timing)" in Column 3 fires every time the character walks the specified number of steps.
Example: Per Steps 7, HP : -5 → HP decreases by 5 every 7 steps walked (step poison)
Remove by Steps Behavior
When "Remove by Steps" is ON, a random integer between Min and Max is determined on state application, and the state is auto-removed after walking that many steps.
Example: Min 21, Max 28 → Determined to 21-28 on application, removed after that many steps
Editable Conditions
- "Per Steps" + "Remove by Steps" are enabled only when "Move" is ON
- Min / Max inputs are editable only when "Move" is ON and "Remove by Steps" is ON
Input Validation
- "Per Steps" and "Remove by Steps Min / Max" are integerized
- If "Remove by Steps Max" is less than "Min", it's auto-corrected to the same value as "Min"
Right Pane: Dev Memo (Column 2 Bottom-Most)
A memo field freely writable by the user for working notes. Supports line breaks.
- Record state design intent (e.g., "Forced paralysis used only in boss battles")
- Record unfinished TODOs (e.g., "Plan to adjust duration turns to 3-5")
Dev memo has zero impact on the game (not referenced at runtime).
Right Pane: Add to Max (Always) (Column 3 Top)
Section heading: Add to Max (Always) (tscn label: Add to Max (Always))
Defines values constantly added to the character's parameters while this state is applied. Same handling as equipment parameter addition.
Input Items
| Item | Input Form | Description |
|---|---|---|
| Parameter (Param) | Select | Select from parameters defined in the Parameter tab |
| Value | Number or Formula | Addition value. Formula supported (USER.STR.BASE * 0.5, etc., placeholder: Max addition value (number or Formula)) |
| Update button | — | Add input to the list or overwrite |
| Delete button | — | Delete the parameter selected in the list |
List
The list shows added parameters in parameter : value format. If the referenced parameter is deleted, an error icon is shown on the row.
Using Formula
The value supports Formula as well as fixed values. Examples:
10→ Add fixed value 10USER.STR.BASE * 0.5→ Add 50% of original STR (STR up buff)USER.MAX_HP.MAX * -0.1→ Subtract 10% of max HP (HP down debuff)
See Formula Reference for detailed notation.
Difference Between Constant Addition and "Timing Change"
| Item | Parameter Constant Addition (Add Max Param) | Parameter Timing Change (Add Current Param) |
|---|---|---|
| Addition Target | Max value | Current value |
| Trigger Timing | Constant (always active while state is applied) | Only when set timing fires |
| Representative Example | Buffs / debuffs like strength up, defense down | Poison, HP regen each turn, step poison |
| Behavior on Removal | Addition disappears on state removal | Fired values remain (no recovery) |
Prevention of "Effective Neither in Battle Nor Field"
When both "Battle" and "Move" are OFF, "Add to Max (Always)" inputs become inactive. This is because "a state effective in neither battle nor field" is meaningless.
Right Pane: Add to Current (Per Timing) (Column 3 Bottom)
Section heading: Add to Current (Per Timing) (tscn label: Add to Current (Per Timing))
Setting that changes the character's current value (Current) when timings set via timing flags fire. Used for poison, regen per turn, etc.
Input Items
| Item | Input Form | Description |
|---|---|---|
| Parameter (Param) | Select | Select from parameters defined in the Parameter tab |
| Value | Number or Formula | Addition value (negative allowed). Formula supported (placeholder: Current addition value (number or Formula)) |
| Update button | — | Add input to the list or overwrite |
| Delete button | — | Delete the parameter selected in the list |
List
Same parameter : value format as Add to Max.
Trigger Conditions
At all timing flags turned ON for this state (battle start / turn end / before action / step trigger, etc.), all parameter changes set here fire.
Example: Turn End ON, HP : -5 set → HP decreases by 5 at each turn end (poison)
Advanced Examples with Formula
| Setting | Behavior |
|---|---|
HP : -5 | HP decreases by 5 each time (fixed damage poison) |
HP : (USER.HP.MAX * 0.07 + 1) * -1 | 7% of max HP + 1 damage (strong poison) |
HP : USER.HP.MAX * 0.05 | Recover 5% of max HP (regen) |
MP : -USER.MAX_MP.MAX * 0.1 | Reduce 10% of max MP (magic drain) |
Typical Usage Flows
Flow 1: Create a Poison (POISON) State
- Left pane New → Enter ID
POISON - Name =
Poison, select Icon (e.g.,data/sprites/icons/debuff_01.png) - Effect =
POISON_HIT, etc. (effect on trigger) - Action Restriction Type =
None - Sealed Item Types empty
- Battle = ON, Turn End = ON (other battle timings OFF)
- Duration Turns = ON, Min =
4, Max =6(lasts 4-6 turns) - Move = ON, Per Steps =
7, Remove by Steps = ON, Min =21, Max =28(in field, fires every 7 steps, removed after 21-28 steps) - Add
HP : (USER.HP.MAX * 0.07 + 1) * -1in Column 3's Add to Current (Per Timing) - Save
Flow 2: Create a Strength Up (STR_UP) Buff
- New → ID
STR_UP - Name =
Strength Up, select Icon (e.g., buff-type icon) - Effect =
BUFF_HIT, etc. - Action Restriction Type =
None - Battle = ON, Duration Turns = OFF (in battle only, auto-removed at battle end)
- Move = OFF
- Add
STR : USER.STR.BASE * 0.5in Column 3's Add to Max (Always) (adds 50% of original STR) - Save
Flow 3: Create a Silence (SILENCE)
- New → ID
SILENCE - Name =
Silence - Action Restriction Type =
None(can act, but cannot use magic) - Check
Magicin Sealed Item Types - Battle = ON, Duration Turns = ON, Min / Max =
3/5 - Move = OFF
- Save
Flow 4: Create Confusion (CONFUSE) with Ally Attack
- New → ID
CONFUSE - Name =
Confusion - Action Restriction Type =
Attack Member, Trigger Probability =70(70% trigger) - Battle = ON, Duration Turns = ON, Min / Max =
2/4 - Save
Dynamic UI Control
The State tab has more dynamic UI control than other tabs, with the following behaviors:
"Battle" Linkage
When "Battle" is OFF, the following UI is all inactive:
- The 6 checkboxes: Battle Start / Battle End / Turn Start / Turn End / Before Action / After Action
- "Duration Turns" checkbox
Turning "Battle" ON enables these.
"Duration Turns" Linkage
Min / Max inputs are editable only when "Battle" is ON and "Duration Turns" is ON.
"Move" Linkage
When "Move" is OFF, the following UI is all inactive:
- "Per Steps" input
- "Remove by Steps" checkbox
- "Remove by Steps" Min / Max inputs
"Remove by Steps" Linkage
Min / Max are editable only when "Move" is ON and "Remove by Steps" is ON.
When Both "Battle" and "Move" Are OFF
When both "Battle" and "Move" are OFF, the following UI is all inactive:
- Action Restriction Type / Trigger Probability
- Add to Max (Always) (add / delete / value input)
- Add to Current (Per Timing) (add / delete / value input)
This is because "a state effective in neither battle nor field" is meaningless, so settings cannot be saved.
Related Tabs
| Tab | Related Content |
|---|---|
| Parameter tab | Definition of parameters referenced in constant addition / timing change |
| Effect tab | Source of trigger effect choices |
| Type tab | Source of sealed item type checkboxes |
| Item tab | References target states (states applied / healed on use) |
| Attach tab | References equip-time states (cursed equipment, etc.) |
| Character tab | References initial states (states a character starts with) |
| Enemy tab | References initial states (states an enemy starts with) |
| Formula Reference | Formula notation for trigger probability / addition value / change value |
Notes
Editing Reserved IDs (DEAD / ESCAPE) Not Recommended
DEAD / ESCAPE appear editable in the UI, but changing properties is not recommended. Beyond appearance changes (name, icon, effect), tool integrity may break.
Sealed Item Types Auto-Reflect Type Tab Changes
Adding or deleting item types in the Type tab auto-updates checkboxes when returning to this tab. Existing checks are preserved.
Timing Trigger Fires All ON Timings at Once
Parameter timing change fires the same change at all ON timings. To realize different changes like "+5 at turn start, -5 at turn end" in one state, you need to create multiple states and combine them.
Formula Errors Treated as 0 at Runtime
Formula syntax errors or undefined references cause no warnings in the editor. Treated as 0 at runtime (fallback). If unsure of syntax, start the game and verify effects.
No Reference Integrity Check on State Deletion
When deleting a state, characters, enemies, items, and attaches referencing it are not automatically fixed. Confirm usage locations in each tab before deletion.
