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.jsonwith 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)
| Element | Purpose |
|---|---|
| List | Displays all enemy IDs vertically |
| New button | Add a new enemy by specifying an ID |
| Change ID button | Change the ID of the selected enemy |
| Copy button | Duplicate the selected enemy (ID auto-numbered) |
| Delete button (red text) | Delete the selected enemy (with confirmation dialog) |
Right pane (property editing, 3-column layout)
| Column | Content |
|---|---|
| Column 1 | Basic info (ID / Name / Image / Comment / Dev Memo) + Initial parameters + Initial Attach |
| Column 2 | Action patterns + Initial states |
| Column 3 | Defeat 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 name | Input method | Meaning | Values |
|---|---|---|---|
| ID | Text input (read-only) | Enemy ID | _a-zA-Z0-9 only, required |
| Name | Text input | Enemy display name (translatable) | Any, may be empty |
| Image | Text input + file selection button | Enemy image path | Image file (*.png,*.jpg,*.jpeg, etc.) |
| Comment | Multi-line text | Comment for in-game display (status screen etc.) | Any, may be empty (translatable) |
| Dev Memo | Multi-line text | Developer-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 dedicatedmonsters/directory)
- Select an image file under
- 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 name | Input method | Meaning |
|---|---|---|
| Parameter | Dropdown | Parameter key (HP / STR / DEF, etc.) |
| Value | Text input | Parameter initial value (number or Formula) |
| Update button | Button | Add/update the current parameter + value in the initial parameter list |
| Delete button | Button | Delete the selected parameter |
| List | Grid (3 columns) | Added initial parameters (AGI : 3 format) |
How to write values:
- Number (e.g.
50) - Formula (e.g.
SELF.HP.MAX * 2) also possible; see Formula reference
Special treatment of reserved parameters:
| Parameter | Initial value on creation | Deletable | Lower bound |
|---|---|---|---|
| HP | 1 | ❌ Cannot delete | HP ≥ 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 name | Input method | Meaning |
|---|---|---|
| Attach | Dropdown | Attach ID to add |
| Add button | Button | Add the selected Attach to the equipment list |
| Delete button | Button | Delete the selected equipment |
| List | List | Equipped 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 name | Input method | Meaning |
|---|---|---|
| Move Up | Button | Move the selected pattern up by 1 (raise priority) |
| Move Down | Button | Move the selected pattern down by 1 (lower priority) |
| Add | Button | Open the New Pattern Creation dialog |
| Edit | Button | Open the Edit dialog for the selected pattern |
| List | List | Action pattern list (priority order) |
| Delete | Button | Delete 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 name | Input method | Meaning | Values |
|---|---|---|---|
| No. | Read-only | Pattern No. (new is New, edit is 1/2/...) | — |
| Action item | Dropdown | Action to activate (basic attack, skill, magic, etc.) | Keys defined in the Item tab |
| Activation rate | Text input (%) | Pattern's activation probability | Number or Formula (0-100 %) |
| Target | Dropdown | Action target (4 options; see details below) | — |
| Target filter (parameter) | Dropdown | Filter targets to the holder of the maximum value of a specific parameter | Parameter key, may be empty |
| Target filter (state) | Dropdown | Filter targets to those holding a specific state | State key, may be empty |
| Turn | Dropdown | Turn on which to activate (11 options; see details below) | — |
| Determine formula | Text input | Formula to determine activation | Formula (true for always activate) |
| Update button | Button | Apply settings and close the dialog (add for new, update for edit) | |
| Cancel | Button | Discard changes and close the dialog |
Target (4 options)
| Option | Meaning |
|---|---|
| Auto | Follows the target defined in the action item (item-side setting) |
| User | Self (this enemy) |
| Member | Allies (allies from the enemy's perspective = other enemies in the same enemy group) |
| Opponent | Opponent (opponent from the enemy's perspective = player party) |
Turn (11 options)
| Option | Meaning |
|---|---|
| Every Turn | Activation candidate on all turns |
| Even Turn | Even-numbered turns (2, 4, 6, ...) |
| Odd Turn | Odd-numbered turns (1, 3, 5, ...) |
| Multiples of 3 | Turns 3, 6, 9, ... |
| Multiples of 4 | Turns 4, 8, 12, ... |
| Multiples of 5 | Turns 5, 10, 15, ... |
| Multiples of 6 | Turns 6, 12, 18, ... |
| Multiples of 7 | Turns 7, 14, 21, ... |
| Multiples of 8 | Turns 8, 16, 24, ... |
| Multiples of 9 | Turns 9, 18, 27, ... |
| Multiples of 10 | Turns 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 name | Input method | Meaning |
|---|---|---|
| State | Dropdown | State ID to add (Dead / Escape cannot be selected) |
| Add button | Button | Add the selected state to the initial state list |
| Delete button | Button | Delete the selected state |
| List | List | Initial 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 name | Input method | Meaning | Values |
|---|---|---|---|
| Parameter | Dropdown | Target parameter to add (EXP / GOLD, etc.) | Keys defined in the Parameter tab |
| Value | Text input | Acquired value | Number or Formula |
| Drop rate | Text input (%) | Probability of being added | Number or Formula (0-100) |
| Target | Dropdown | Target character of addition (4 options; see details below) | — |
| Update button | Button | Add/update with the current settings | |
| Delete button | Button | Delete the selected entry | |
| List | List | List of reward parameters |
Target (4 options)
| Option | Meaning |
|---|---|
| Party | Added to a party-wide resource (e.g. GOLD; party-shared parameter) |
| Surviving Members | Added to all party members alive at battle end |
| All Members | Added to all party members (including dead) |
| Random Member | Added 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 name | Input method | Meaning | Values |
|---|---|---|---|
| Drop table | Dropdown | The drop table to draw | Keys defined in the Drop Table tab |
| Drop rate | Text input (%) | Execution probability of the table draw | Number or Formula (0-100) |
| Add button | Button | Add a drop table draw with current settings | |
| Delete button | Button | Delete the selected entry | |
| List | List | List 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:
- On defeating the enemy, each entry in this list is processed in order
- When random selection by the drop rate of each entry succeeds, that drop table is drawn
- The drop table internally performs weighted drawing and drops 1 item or Attach
- 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 to | Purpose |
|---|---|
| Group tab | References this tab's enemy IDs in enemy group composition |
| Map tab | Encounter settings specify enemy groups → enemy groups reference this tab's enemies |
| Parameter tab | Referenced in "Initial parameters" and "Defeat rewards" |
| Attach tab | Referenced in "Initial Attach" |
| Item tab | Referenced as action items in "Action patterns" |
| State tab | Referenced in "Initial states" and "Target filter" (except Dead / Escape) |
| Drop Table tab | Referenced 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
- New button → an ID input dialog is displayed
- Validation: empty prohibited, allowed characters
_a-zA-Z0-9only - Duplicates auto-avoided with
_2,_3... - Reserved parameter HP=1 is auto-assigned
Change ID
- Change ID button → a rename dialog with the current ID as the initial value is displayed
- 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
- Delete button → confirmation dialog
- "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
- New button → enter an ID (e.g.
SLIME) → create - Enter the display name in Name (e.g.
Slime) - Set the enemy image in Image (select from under
data/sprites/monsters/) - Check the display position on the battle screen with the Preview button
- Enter the enemy description in Comment (e.g.
A representative of weak enemies. Makes a watery sound when struck.) - Initial parameters: Add HP, STR, DEF, AGI, EXP, GOLD, etc.
- Add 1 or more Action patterns (at minimum, register a normal attack
BA_ATTACKas No.1) - Initial states: Add if needed (usually empty)
- Defeat parameter rewards: Add EXP (added to surviving members) and GOLD (added to party)
- Drop table draws: Assign a drop table if needed (e.g.
DT_SLIMEat 100%) - Save to save
Action pattern design (boss enemy example)
| No. | Action | Activation rate | Target | Turn | Determine formula |
|---|---|---|---|---|---|
| 1 | Full-area attack | 100 | Opponent | Every Turn | SELF.HP.RATE < 0.3 (dying mode) |
| 2 | Double attack | 50 | Opponent | Even Turn | true |
| 3 | Powerful single attack | 30 | Opponent | Multiples of 3 | true |
| 4 | Normal attack | 100 | Opponent | Every Turn | true (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
- EXP: value =
- Drop table draws:
- Table =
DT_RANK_1, drop rate = 50%
- Table =
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_ATTACKetc.) 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:
- The corresponding ID does not exist in the Drop Table tab (displayed in red in the list)
- The drop rate is too low or 0
- 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:
- The image path is empty or invalid
- 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
