Skip to content

Enemy tab ​

The Enemy tab is the tab for defining enemy characters that appear in battle. One entry corresponds to one enemy.

Overview ​

Purpose of the screen ​

  • Set the basic info (name, image) of an enemy character
  • Define initial parameters (HP, attack power, defense power, etc.)
  • Set initial equipment (Attach) and initial states
  • Define action patterns (activation probability, condition, target filter)
  • Set parameter rewards (EXP, GOLD, etc.) on defeat
  • Set drop table draws on defeat

Save location ​

  • Saved to data/settings/enemy.json with the enemy ID as the key

Where is it referenced from ​

  • Group tab (composition of enemy groups)
  • Map tab encounter settings (via enemy groups)

Screen layout ​

The Enemy tab has a left/right split layout.

Left pane (enemy list) ​

ElementPurpose
ListDisplays all enemy IDs vertically
New buttonAdd a new enemy by specifying an ID
Change ID buttonChange the ID of the selected enemy
Copy buttonDuplicate the selected enemy (ID auto-numbered)
Delete button (red text)Delete the selected enemy (with confirmation dialog)

Right pane (property editing, 3-column layout) ​

ColumnContent
Column 1Basic info (ID / Name / Image / Comment / Dev Memo) + Initial parameters + Initial Attach
Column 2Action patterns + Initial states
Column 3Defeat parameter rewards + Drop table draws

Bottom buttons ​

  • Save button
  • Preview button (displays the enemy image at the same position as the battle screen)
  • Formula Help button

Full property reference ​

Column 1-1: Basic info ​

Item nameInput methodMeaningValues
IDText input (read-only)Enemy ID_a-zA-Z0-9 only, required
NameText inputEnemy display name (translatable)Any, may be empty
ImageText input + file selection buttonEnemy image pathImage file (*.png,*.jpg,*.jpeg, etc.)
CommentMulti-line textComment for in-game display (status screen etc.)Any, may be empty (translatable)
Dev MemoMulti-line textDeveloper-only memo (not displayed in-game)Any, may be empty

Details of each item:

  • ID: Cannot be edited directly. Change via the Change ID button in the left pane
  • Name: Displayed in-game as the enemy name (translatable)
  • Image:
    • Select an image file under data/sprites/monsters/ with the file selection button
    • (The Char tab uses data/sprites/characters/; enemies use the dedicated monsters/ directory)
  • Comment: Description displayed on in-game status screens etc.; translatable
  • Dev Memo: For developer memo use only, not displayed in-game at all

Column 1-2: Initial parameters ​

Set the enemy's initial parameters (HP, attack power, defense power, agility, etc.).

Item nameInput methodMeaning
ParameterDropdownParameter key (HP / STR / DEF, etc.)
ValueText inputParameter initial value (number or Formula)
Update buttonButtonAdd/update the current parameter + value in the initial parameter list
Delete buttonButtonDelete the selected parameter
ListGrid (3 columns)Added initial parameters (AGI : 3 format)

How to write values:

Special treatment of reserved parameters:

ParameterInitial value on creationDeletableLower bound
HP1❌ Cannot deleteHP ≥ 1 (auto-corrected)

Required parameters of an enemy

Only HP is required for an enemy (different from HP/LEVEL/EXP of characters). EXP and LEVEL are not needed for enemies, so they can be deleted.

Column 1-3: Initial Attach ​

Set the Attach (weapons, armor, passives, etc.) that the enemy initially equips.

Item nameInput methodMeaning
AttachDropdownAttach ID to add
Add buttonButtonAdd the selected Attach to the equipment list
Delete buttonButtonDelete the selected equipment
ListListEquipped list

Behavior of enemy Attach

Enemy Attach does not allow duplicate addition (only one Attach of the same ID can be equipped). The Char Attach allows duplicate addition, but enemies are designed to allow only one per ID.

Purpose: Normally left empty. Used when giving strong enemies or bosses additional abilities via equipment.

Column 2-1: Action patterns ​

Define the enemy's actions during battle. Multiple patterns can be registered per enemy, and they are evaluated by priority (from top to bottom).

Item nameInput methodMeaning
Move UpButtonMove the selected pattern up by 1 (raise priority)
Move DownButtonMove the selected pattern down by 1 (lower priority)
AddButtonOpen the New Pattern Creation dialog
EditButtonOpen the Edit dialog for the selected pattern
ListListAction pattern list (priority order)
DeleteButtonDelete the selected pattern

Display format of the list:

<No.> : <action item> : <activation rate>%, <target>[&filter parameter][&filter state], <turn>, Determine=<determine formula>

Example: 1 : BA_ATTACK : 100%, Auto, Even Turn, Determine=true

Invalid action items (IDs not existing in the Item tab) are highlighted in red.

Action pattern edit dialog ​

Dialog opened by the Add or Edit button. Sets the details of the action pattern.

Item nameInput methodMeaningValues
No.Read-onlyPattern No. (new is New, edit is 1/2/...)—
Action itemDropdownAction to activate (basic attack, skill, magic, etc.)Keys defined in the Item tab
Activation rateText input (%)Pattern's activation probabilityNumber or Formula (0-100 %)
TargetDropdownAction target (4 options; see details below)—
Target filter (parameter)DropdownFilter targets to the holder of the maximum value of a specific parameterParameter key, may be empty
Target filter (state)DropdownFilter targets to those holding a specific stateState key, may be empty
TurnDropdownTurn on which to activate (11 options; see details below)—
Determine formulaText inputFormula to determine activationFormula (true for always activate)
Update buttonButtonApply settings and close the dialog (add for new, update for edit)
CancelButtonDiscard changes and close the dialog

Target (4 options) ​

OptionMeaning
AutoFollows the target defined in the action item (item-side setting)
UserSelf (this enemy)
MemberAllies (allies from the enemy's perspective = other enemies in the same enemy group)
OpponentOpponent (opponent from the enemy's perspective = player party)

Turn (11 options) ​

OptionMeaning
Every TurnActivation candidate on all turns
Even TurnEven-numbered turns (2, 4, 6, ...)
Odd TurnOdd-numbered turns (1, 3, 5, ...)
Multiples of 3Turns 3, 6, 9, ...
Multiples of 4Turns 4, 8, 12, ...
Multiples of 5Turns 5, 10, 15, ...
Multiples of 6Turns 6, 12, 18, ...
Multiples of 7Turns 7, 14, 21, ...
Multiples of 8Turns 8, 16, 24, ...
Multiples of 9Turns 9, 18, 27, ...
Multiples of 10Turns 10, 20, 30, ...

Determine formula ​

  • true: Always activate (becomes a candidate as long as the turn condition is met)
  • Formula: A candidate when the truth-value result is true
  • Example: SELF.HP.NOW < 50 (activates when self HP is less than 50)
  • Example: SELF.HP.RATE < 0.3 (activates when self HP is less than 30%, dying mode)

Action pattern evaluation logic ​

  • During battle, when determining the enemy's action, action patterns are evaluated from top to bottom
  • Patterns that satisfy all 3 conditions below are included in the drawing according to the activation rate:
    • The turn condition is met
    • The determine formula is true
    • Random selection by activation rate succeeds
  • When multiple patterns are candidates, probability drawing is done by activation rate

Example of action pattern design

  • No.1: Full-area attack when HP is dying (activation rate 100, turn Every, determine formula SELF.HP.RATE < 0.3)
  • No.2: Powerful technique (activation rate 30, turn Multiples of 3, determine formula true)
  • No.3: Normal attack (activation rate 100, turn Every, determine formula true, fallback)

Higher-priority patterns are evaluated first, so placing patterns with special conditions at the top makes battle more varied.

Column 2-2: Initial states ​

Set the states (status conditions, buffs, etc.) the enemy initially has.

Item nameInput methodMeaning
StateDropdownState ID to add (Dead / Escape cannot be selected)
Add buttonButtonAdd the selected state to the initial state list
Delete buttonButtonDelete the selected state
ListListInitial state list

Behavior:

  • Duplicate addition prohibited: The same state ID can only exist once
  • Dead cannot be selected: Enemies starting Dead have no meaning
  • Escape cannot be selected: Escape is triggered via events and not needed in initial settings

Column 3-1: Defeat parameter rewards ​

Set parameters (EXP, GOLD, HP, etc.) added to the party when the enemy is defeated.

Item nameInput methodMeaningValues
ParameterDropdownTarget parameter to add (EXP / GOLD, etc.)Keys defined in the Parameter tab
ValueText inputAcquired valueNumber or Formula
Drop rateText input (%)Probability of being addedNumber or Formula (0-100)
TargetDropdownTarget character of addition (4 options; see details below)—
Update buttonButtonAdd/update with the current settings
Delete buttonButtonDelete the selected entry
ListListList of reward parameters

Target (4 options) ​

OptionMeaning
PartyAdded to a party-wide resource (e.g. GOLD; party-shared parameter)
Surviving MembersAdded to all party members alive at battle end
All MembersAdded to all party members (including dead)
Random MemberAdded to one randomly chosen party member

Typical configuration example

  • EXP: Added to surviving members (common setting where fallen allies do not get EXP)
  • GOLD: Added to the party (party-shared resource)
  • HP recovery reward: Added to all members (bonus that recovers even defeated members)

Column 3-2: Drop table draws ​

Draw items / Attach dropped when the enemy is defeated via a drop table.

Item nameInput methodMeaningValues
Drop tableDropdownThe drop table to drawKeys defined in the Drop Table tab
Drop rateText input (%)Execution probability of the table drawNumber or Formula (0-100)
Add buttonButtonAdd a drop table draw with current settings
Delete buttonButtonDelete the selected entry
ListListList of drop table draws

Features (since 2026-09-30):

  • Multiple tables allowed: Multiple drop tables can be assigned to the same enemy (drawn sequentially)
  • Duplicate tables allowed: Registering the same drop table multiple times increases probability (weighting)

How the draw works:

  1. On defeating the enemy, each entry in this list is processed in order
  2. When random selection by the drop rate of each entry succeeds, that drop table is drawn
  3. The drop table internally performs weighted drawing and drops 1 item or Attach
  4. When multiple entries are registered, each is drawn independently (multiple drops possible in 1 battle)

Invalid table ID: When an ID not existing in the Drop Table tab is specified, it is displayed in red in the list.

Relationship with the Drop Table tab

  • In this tab, you specify "which drop table to use"
  • The actual item draw contents (with weights) are defined in the Drop Table tab
  • Creating drop tables separately lets you reuse the same drop content across multiple enemies

Bottom buttons ​

Save button ​

Saves edits to enemy.json.

Preview button (added 2026-09-15) ​

Previews the enemy image at the same position and size as the in-game battle screen.

Behavior:

  • Loads the image file
  • Displays at the same coordinate calculation as the battle screen (viewport center X + battle area position)
  • When there is no image or loading fails, a notification is shown and nothing is displayed

Purpose: Confirm in advance where the enemy image will be displayed on the battle screen.

Formula Help button ​

Pops up a help window with the same content as the Formula reference.

  • Non-modal, so you can continue editing with the help window open
  • Convenient on the Enemy tab, where Formulas are often written in initial parameters, action patterns, and defeat rewards

Impact on other tabs / runtime ​

Linkage with other tabs ​

Linked toPurpose
Group tabReferences this tab's enemy IDs in enemy group composition
Map tabEncounter settings specify enemy groups → enemy groups reference this tab's enemies
Parameter tabReferenced in "Initial parameters" and "Defeat rewards"
Attach tabReferenced in "Initial Attach"
Item tabReferenced as action items in "Action patterns"
State tabReferenced in "Initial states" and "Target filter" (except Dead / Escape)
Drop Table tabReferenced in "Drop table draws"

How it is used in-game ​

  • At battle start: Enemies included in the enemy group are generated from this tab's data
  • During battle: Enemy actions are determined based on action patterns
  • At battle end (all enemies defeated): Defeat parameter rewards + drop table draws are executed
  • Translation: Name and comment reference the translation dictionary

Auto-update of cross-tab references ​

Each dropdown in this tab (Parameter / Attach / State / action item / drop table) is automatically updated to the latest state just before the dropdown is opened. Changes in other tabs are reflected immediately without needing a tab switch.

CRUD details ​

New ​

  1. New button → an ID input dialog is displayed
  2. Validation: empty prohibited, allowed characters _a-zA-Z0-9 only
  3. Duplicates auto-avoided with _2, _3...
  4. Reserved parameter HP=1 is auto-assigned

Change ID ​

  1. Change ID button → a rename dialog with the current ID as the initial value is displayed
  2. Validation: same as New

WARNING

After an ID change, if other tabs (such as the Group tab) reference the old ID, manual update is required.

Copy ​

  • Copy button fully duplicates the selected enemy
  • The new ID is auto-numbered like _2

Delete ​

  1. Delete button → confirmation dialog
  2. "Yes" executes the deletion

Unsaved marker ​

When Enemy(*) is displayed in the tab title, it indicates there are unsaved changes. (*) disappears when you save or press "Save All" on the Home tab.

Usage examples ​

Typical flow for creating a new enemy ​

  1. New button → enter an ID (e.g. SLIME) → create
  2. Enter the display name in Name (e.g. Slime)
  3. Set the enemy image in Image (select from under data/sprites/monsters/)
  4. Check the display position on the battle screen with the Preview button
  5. Enter the enemy description in Comment (e.g. A representative of weak enemies. Makes a watery sound when struck.)
  6. Initial parameters: Add HP, STR, DEF, AGI, EXP, GOLD, etc.
  7. Add 1 or more Action patterns (at minimum, register a normal attack BA_ATTACK as No.1)
  8. Initial states: Add if needed (usually empty)
  9. Defeat parameter rewards: Add EXP (added to surviving members) and GOLD (added to party)
  10. Drop table draws: Assign a drop table if needed (e.g. DT_SLIME at 100%)
  11. Save to save

Action pattern design (boss enemy example) ​

No.ActionActivation rateTargetTurnDetermine formula
1Full-area attack100OpponentEvery TurnSELF.HP.RATE < 0.3 (dying mode)
2Double attack50OpponentEven Turntrue
3Powerful single attack30OpponentMultiples of 3true
4Normal attack100OpponentEvery Turntrue (fallback)
  • No.1 activates only when dying (HP under 30%), highest priority
  • No.2 activates on even turns at 50%
  • No.3 activates on multiples of 3 at 30%
  • No.4 is the fallback (normal action when other conditions are not met)

Drop configuration (EXP + GOLD + items) ​

  • Defeat parameter rewards:
    • EXP: value = 30, drop rate = 100%, target = Surviving Members
    • GOLD: value = 50, drop rate = 100%, target = Party
  • Drop table draws:
    • Table = DT_RANK_1, drop rate = 50%

With this, each time the enemy is defeated:

  • EXP 30 is always added to surviving members
  • GOLD 50 is always added to the party
  • 50% chance an item / Attach is drawn from DT_RANK_1

Constraints / edge cases ​

ID constraints ​

  • Empty string prohibited
  • Allowed characters: _a-zA-Z0-9
  • Duplicates auto-avoided with _2, _3

Protection of reserved parameter (HP) ​

  • HP is auto-assigned on creation, deletion refused, lower-bound corrected (HP ≥ 1)
  • Formula inputs are not corrected

Exclusions in initial states ​

  • Dead and Escape cannot be selected in the dropdown

Invalid action item in action patterns ​

  • Patterns specifying an item ID not existing in the Item tab are displayed in red in the list
  • At runtime, that pattern is not evaluated and processing moves to the next pattern (recommended: delete and replace with a valid pattern)

Pair loss in action patterns ​

  • Deleting / renaming an action item in the Item tab may make this tab's action patterns invalid
  • Periodically check red highlights in the action pattern list and fix them

Pair loss in drop table draws ​

  • Deleting / renaming a table in the Drop Table tab may make this tab's drop settings invalid
  • Items displayed in red in the list require manual update

When action patterns are empty ​

  • Enemies with no action patterns registered take no action in battle (skipped)
  • At minimum, registering a normal attack (BA_ATTACK etc.) pattern is recommended

Activation rate and Formulas ​

  • Activation rate is a number 0-100 or can be a Formula
  • Example: SELF.HP.RATE < 0.5 ? 100 : 20 (100% when HP under 50%, 20% otherwise)

Frequently asked questions (FAQ) ​

I cannot delete HP ​

Cause: HP is a reserved parameter essential for game behavior, so deletion is refused.

Solution: Instead of deleting, change the value.

The enemy does nothing in battle ​

Cause: No action patterns are registered, or all patterns' determine formulas are false.

Solution: Register at least 1 action pattern. As a fallback, placing a pattern with BA_ATTACK (normal attack) + determine formula true at the last No. is recommended.

A boss enemy always does the same action ​

Cause: A high-activation-rate pattern is at the top priority and other patterns are not reached.

Solution: Lower the activation rate or tighten the determine formula's conditions so other patterns are reached.

I cannot select "Dead" or "Escape" in initial states ​

Cause: Starting Dead has no meaning for enemies, and Escape is triggered via events.

What is the difference between "Target" of defeat rewards? ​

  • Party: Added to a party-wide shared resource (e.g. GOLD)
  • Surviving Members: Added to all alive allies at battle end (e.g. EXP; fallen allies do not get it)
  • All Members: Added to all allies including dead (e.g. recovery reward that includes the dead)
  • Random Member: Added to one randomly chosen party member (e.g. random bonus reward)

Drop tables are not drawn ​

Possible causes:

  1. The corresponding ID does not exist in the Drop Table tab (displayed in red in the list)
  2. The drop rate is too low or 0
  3. The result of the Formula is 0 or less

Solution: Check red highlights in the list, review drop rates, and test Formulas with runtime parameters.

The enemy image is not displayed in-game ​

Possible causes:

  1. The image path is empty or invalid
  2. The image file does not exist

Solution: Re-select the image path and confirm display with the Preview button.

Can I register multiple drop tables? ​

Solution: Yes. Since 2026-09-30, multiple drop tables can be assigned to one enemy. Registering the same table multiple times increases probability (weighting).


Related references:

  • Group tab — Enemy groups reference this tab's enemies
  • Map tab — Encounter settings
  • Parameter tab — Source of initial parameters / defeat rewards
  • Attach tab — Source of initial Attach
  • Item tab — Source of action items in action patterns
  • State tab — Source of initial states / target filter
  • Drop Table tab — Source of drop table draws
  • Formula reference — Formulas usable in initial parameters, action pattern activation rate, determine formula