Skip to content

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.json with 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 IDPurposeRuntime Meaning
DEADIncapacitated stateAuto-applied when HP goes 0 or below, removed via revival
ESCAPEEscape stateApplied 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) ​

ElementPurpose
ListDisplays all state IDs in a vertical column
New buttonAdd a new state by specifying its ID
Change ID buttonChange the ID of the selected state (reserved IDs rejected)
Copy buttonDuplicate the selected state (ID is auto-numbered, all data duplicated)
Delete button (red)Delete the selected state (reserved IDs rejected, with confirmation dialog)
Save buttonWrite edits to state.json

Right Pane (Property Editing, 3 Columns) ​

ColumnContent
Column 1Basic info (ID / name / icon / effect) + action restriction + sealed item types
Column 2Timing flags (battle) + duration turns + movement-time flags + step trigger + step removal + dev memo
Column 3Parameter 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-z A-Z 0-9 only
  • 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) ​

ItemInput FormDescription
IDRead-onlyID of the selected state. Change via the Change ID button in the left pane
State Display NameTextState name shown in-game. Multilingual support via Translation tab
Icon Image PathText + ... buttonIcon image displayed on the character's status when the state is applied. ... button selects images from under data/sprites/icons/
Icon ThumbnailImage displayShows the actual thumbnail of the selected icon image (auto-updates on path change)
EffectSelectEffect 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 ​

ItemInput FormDescription
Action Restriction TypeSelectType of action restriction (described below)
Trigger ProbabilityNumber or FormulaProbability (%) that action restriction triggers. Supports Formula (USER.LEVEL * 10, etc.)

4 Action Restriction Types ​

TypeBehaviorExample Usage
NoneNo action restriction (can act normally)Buffs / debuffs (STR UP, etc.)
UnactionSkips turn (cannot act)Paralysis / sleep / freeze
Attack OpponentIgnores the intended target and attacks a random enemy with basic attackConfusion (but targets enemies)
Attack MemberIgnores the intended target and attacks a random ally with basic attackConfusion (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 ​

StateChecked Item TypesEffect
Silence (SILENCE)MagicMagic items unusable, normal attacks and techniques usable
DisarmBasic ActionNormal attack and escape unusable, magic and techniques usable
All Items SealMagic + 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.

TimingTrigger Condition
Battle StartWhen the battle start processing begins
Battle EndAt battle end (victory only, no trigger on defeat; party only on successful escape)
Turn StartAt the start of each turn
Turn EndAt the end of each turn (poison damage, etc.)
Before ActionImmediately before one's own action phase (no trigger if skipped by action restriction)
After ActionImmediately 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 ​

ItemInput FormDescription
Duration Turns checkboxON/OFFWhether to use duration turn limit
MinInteger (1 or more)Minimum turns to last (placeholder: Minimum duration turns (integer))
MaxInteger (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 ​

ItemInput FormDescription
Move checkboxON/OFFWhether to take effect in the field
Per StepsIntegerHow many steps between timing triggers (placeholder: Step interval for trigger (integer, 0=every step))
Remove by Steps checkboxON/OFFWhether to auto-remove by step count
MinInteger (1 or more)Minimum steps to removal (placeholder: Minimum steps to removal (integer))
MaxInteger (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 ​

ItemInput FormDescription
Parameter (Param)SelectSelect from parameters defined in the Parameter tab
ValueNumber or FormulaAddition 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 10
  • USER.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" ​

ItemParameter Constant Addition (Add Max Param)Parameter Timing Change (Add Current Param)
Addition TargetMax valueCurrent value
Trigger TimingConstant (always active while state is applied)Only when set timing fires
Representative ExampleBuffs / debuffs like strength up, defense downPoison, HP regen each turn, step poison
Behavior on RemovalAddition disappears on state removalFired 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 ​

ItemInput FormDescription
Parameter (Param)SelectSelect from parameters defined in the Parameter tab
ValueNumber or FormulaAddition 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 ​

SettingBehavior
HP : -5HP decreases by 5 each time (fixed damage poison)
HP : (USER.HP.MAX * 0.07 + 1) * -17% of max HP + 1 damage (strong poison)
HP : USER.HP.MAX * 0.05Recover 5% of max HP (regen)
MP : -USER.MAX_MP.MAX * 0.1Reduce 10% of max MP (magic drain)

Typical Usage Flows ​

Flow 1: Create a Poison (POISON) State ​

  1. Left pane New → Enter ID POISON
  2. Name = Poison, select Icon (e.g., data/sprites/icons/debuff_01.png)
  3. Effect = POISON_HIT, etc. (effect on trigger)
  4. Action Restriction Type = None
  5. Sealed Item Types empty
  6. Battle = ON, Turn End = ON (other battle timings OFF)
  7. Duration Turns = ON, Min = 4, Max = 6 (lasts 4-6 turns)
  8. Move = ON, Per Steps = 7, Remove by Steps = ON, Min = 21, Max = 28 (in field, fires every 7 steps, removed after 21-28 steps)
  9. Add HP : (USER.HP.MAX * 0.07 + 1) * -1 in Column 3's Add to Current (Per Timing)
  10. Save

Flow 2: Create a Strength Up (STR_UP) Buff ​

  1. New → ID STR_UP
  2. Name = Strength Up, select Icon (e.g., buff-type icon)
  3. Effect = BUFF_HIT, etc.
  4. Action Restriction Type = None
  5. Battle = ON, Duration Turns = OFF (in battle only, auto-removed at battle end)
  6. Move = OFF
  7. Add STR : USER.STR.BASE * 0.5 in Column 3's Add to Max (Always) (adds 50% of original STR)
  8. Save

Flow 3: Create a Silence (SILENCE) ​

  1. New → ID SILENCE
  2. Name = Silence
  3. Action Restriction Type = None (can act, but cannot use magic)
  4. Check Magic in Sealed Item Types
  5. Battle = ON, Duration Turns = ON, Min / Max = 3 / 5
  6. Move = OFF
  7. Save

Flow 4: Create Confusion (CONFUSE) with Ally Attack ​

  1. New → ID CONFUSE
  2. Name = Confusion
  3. Action Restriction Type = Attack Member, Trigger Probability = 70 (70% trigger)
  4. Battle = ON, Duration Turns = ON, Min / Max = 2 / 4
  5. 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.

TabRelated Content
Parameter tabDefinition of parameters referenced in constant addition / timing change
Effect tabSource of trigger effect choices
Type tabSource of sealed item type checkboxes
Item tabReferences target states (states applied / healed on use)
Attach tabReferences equip-time states (cursed equipment, etc.)
Character tabReferences initial states (states a character starts with)
Enemy tabReferences initial states (states an enemy starts with)
Formula ReferenceFormula notation for trigger probability / addition value / change value

Notes ​

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.