Class Tab
The Class tab defines in-game classes (jobs / troops). Each entry corresponds to one class, and for each class, you set the EXP table required for leveling up, parameter growth formulas on level up, items (skills, magic) learned on level up, and attaches (passives) learned on level up.
What Is a Class
In this tool, by assigning a class to a character or enemy (e.g., "this character is a warrior", "this enemy is a magician"), you centrally manage how that character/enemy grows on level up.
- The initial parameters of characters and enemies are defined in the Character tab / Enemy tab
- How much they grow and what they learn on level up is defined in the Class tab
Multiple characters assigned the same class follow the same growth curve (only their initial values differ).
Overview
Purpose of the Screen
- Set basic class information (ID, name)
- Define the cumulative EXP table required for leveling up
- Define parameter growth formulas on level up
- Define items (skills / magic / basic actions) learned on level up
- Define attaches (passives) learned on level up
- Leave dev memo
Save Location
- Saved to
data/settings/class.jsonwith the class ID as the key
Where It Is Referenced
- Character tab: Each character's
classproperty references the class ID - Enemy tab: Each enemy's
classproperty references the class ID - Runtime: When a character/enemy's EXP exceeds the level-up threshold, applies the class's growth formula and learned list
Reserved IDs
Classes have no reserved IDs. All class IDs can be newly created, ID-changed, copied, and deleted.
Initial Classes
As sample classes at new project creation, 4 types are auto-generated: WARRIOR / MAGICIAN / PRIEST / MONK (only when class.json does not exist). If unneeded, delete them; duplicate as needed to create derived classes.
Screen Layout
The Class tab has a left/right split layout, with the right pane in a 3-column layout.
Left Pane (Class List)
| Element | Purpose |
|---|---|
| List | Displays all class IDs in a vertical column |
| New button | Add a new class by specifying its ID |
| Change ID button | Change the ID of the selected class |
| Copy button | Duplicate the selected class (ID is auto-numbered; all data duplicated) |
| Delete button (red) | Delete the selected class (with confirmation dialog) |
| Save button | Write edits to class.json |
Right Pane (Property Editing, 3 Columns)
| Column | Content |
|---|---|
| Column 1 | Basic info (ID / name) + required EXP for level up + parameter growth formulas |
| Column 2 | Learned items (skills / magic / basic actions) |
| Column 3 | Learned attaches (passives) + dev memo |
Left Pane Operations
Create New
Pressing the New button opens the ID input dialog. The entered ID is used to add a new class.
Input Rules:
- Allowed characters:
_a-zA-Z0-9only (regex^[_a-zA-Z0-9]+$) - Empty text not allowed
- Duplicates with existing IDs are automatically appended with
_2,_3, etc.
The initial values immediately after creation are: empty name, auto-generated initial values for required EXP table, empty growth formulas and learned lists, and empty dev memo.
Change ID
Pressing the Change ID button opens the ID change dialog. Input rules are the same as Create New.
Copy
Pressing the Copy button creates a new class duplicating all data (name / EXP table / growth formulas / learned lists / dev memo) of the selected class. The ID is auto-numbered (original ID + _2, _3, etc.).
Deep Copy
The new class created by copy has data completely independent from the original. Editing one does not affect the other.
Delete
Pressing the Delete button opens a confirmation dialog; OK deletes the selected class. After deletion, selection moves automatically to the top of the list.
Caution on Deletion
Deleting a class ID in use by the Character tab or Enemy tab leaves the corresponding entries' class property pointing to nothing. Confirm usage locations before deletion.
Save
Pressing the Save button writes all class data being edited to data/settings/class.json. Changes up to pressing Save are retained in memory only, and a (*) mark appears on the tab title.
Timing of Unsaved Marker
Simply changing an input field (name, EXP, growth formula value, etc.) alone may not add (*). EXP tables, growth formulas, and learned lists have changes committed at the moment the Update button is pressed. If you switch tabs mid-input, changes without pressing Update may be discarded.
Right Pane: Basic Info (Column 1 Top)
| Item | Input Form | Description |
|---|---|---|
| ID | Read-only | ID of the selected class. Change via the Change ID button in the left pane |
| Class Display Name | Text | Class name shown in-game. Multilingual support set in the Translation tab |
Name Translation
The class display name can be internationalized by setting a translation key in the Translation tab. If no translation key is set, the string entered here is displayed directly.
Right Pane: Required EXP for Level Up (Column 1 Middle)
The area defining the EXP required for each level reached by characters of this class.
Table Structure
| Element | Purpose |
|---|---|
| Level input | Target level (integer 2 or greater) |
| Required EXP input | EXP required to reach that level (integer 1 or greater, non-cumulative value) |
| Update button | Add the two entered values to the table, or overwrite |
| Table list | Current table (shown as level : required EXP) |
| Remove 1 Row button | Remove the highest level of the table by 1 |
| Generate EXP Table button | Open a dialog to bulk-generate EXP tables with a formula (described below) |
| Growth Preview button | Open a dialog showing cumulative growth from Lv1 to the max Lv (described below) |
Meaning of Required EXP
Required EXP is a non-cumulative value (= value unique to each level, the difference needed to reach that level from the level below).
Example: Setting Lv2=10, Lv3=20, Lv4=30 means a Lv1 character levels up to Lv2 after gathering 10 EXP, to Lv3 after another 20, and to Lv4 after another 30 (cumulative: Lv2=10, Lv3=30, Lv4=60).
Lv1 Table Entry Does Not Exist
Lv1 is the initial level, so it is not included in the EXP table. Specifying Lv1 in the input is not added (only a NOTICE is output).
Input Validation
| Item | Correction |
|---|---|
| Level input | Integerized, minimum 2. Blank or non-numeric is ignored with NOTICE |
| Required EXP input | Integerized, minimum 1. 0 or less is internally corrected to 1 |
Table Editing Procedure
- Add / Overwrite: Enter level and required EXP → Update button → Added to the table list (overwrite if level exists)
- Verify / Fix: Click a row in the table list → Values populate the level and required EXP input → Fix → Update to overwrite
- Delete Tail: Remove 1 Row button deletes the row at the current highest level (deleting an intermediate level alone is not possible)
To Delete an Intermediate Level
Intermediate levels (e.g., deleting only Lv5) cannot be deleted via the Remove 1 Row button. You need to delete all levels above the target level, then delete that level. To redo everything from scratch, we recommend using the Generate EXP Table button.
About Numeric Display
Required EXP display automatically omits decimals (e.g., even if internally saved as 10.0, the list shows 10). However, intentional decimal values (e.g., 10.5) are shown with decimals.
Right Pane: Generate EXP Table Dialog
Pressing the Generate EXP Table button opens a dialog to bulk-generate the EXP table with a formula. It saves the effort of entering and Updating each level by hand.
Overwrites Existing Table
The EXP table generated by this dialog completely overwrites the existing table. A warning label is displayed, so if needed, back up with the Copy button before generating.
Dialog UI
| Element | Purpose |
|---|---|
| Template selection | Choose from 5 types of formula templates (described below) |
| Base EXP | Base value common to templates (approximate EXP needed to reach Lv2) |
| Multiplier / Exponent / Constant / Increment | Only the inputs needed for the selected template are shown |
| Max Level | Max Lv to generate (table generated up to this Lv) |
| Graph | Visualizes the current table (blue) and preview (red) as a line graph |
| Generate button | Fully overwrites the existing table and closes the dialog |
| Cancel button | Closes the dialog (no generation) |
5 Formula Templates
| Template | Formula | Required Additional Input | Purpose |
|---|---|---|---|
| Multiplier | Base EXP × Multiplier ^ (Lv - 2) | Multiplier | Geometric series (accelerates by multiplier), typical in general JRPGs |
| Polynomial | Base EXP × Lv ^ Exponent + Constant | Exponent, Constant | Polynomial curve (quadratic at Exponent 2) |
| Linear | Base EXP + Increment × (Lv - 2) | Increment | Arithmetic series (linear increase) |
| Square Root | Base EXP × √(Lv - 1) × (Lv - 1) | None | Square root formula (gently accelerates) |
| Logarithmic | Base EXP × (Lv - 1) × log(Lv) | None | Logarithmic formula (very gently accelerates, natural log) |
Switching templates displays only the needed input rows and automatically hides others.
How to Read the Graph
| Color | Meaning |
|---|---|
| Blue | Current EXP table (saved req_exp) |
| Red | Preview (result calculated from values currently entered in the dialog) |
The graph is re-drawn immediately as inputs change. You can verify the curve shape in the preview (red) before pressing Generate. X-axis is level, Y-axis is required EXP (non-cumulative).
Example Usage
Example 1: Gentle multiplier curve for Lv1-30
- Template: Multiplier
- Base EXP: 10
- Multiplier: 1.15
- Max Level: 30
- Confirm the red line on the graph (Lv2=10, Lv10 ≈ 35, Lv30 ≈ 568)
- Press Generate to confirm
Example 2: Linear curve for Lv1-50
- Template: Linear
- Base EXP: 10
- Increment: 5
- Max Level: 50
- Confirm the straight line on the graph (Lv2=10, Lv10=50, Lv50=250)
- Press Generate to confirm
Manual Adjustment After Generation
After bulk-generating in the Generate EXP Table dialog, individual levels' required EXP can be manually overwritten. After generation, in the EXP table list, select the target row → change required EXP → Update to overwrite.
Right Pane: Growth Preview Dialog
Pressing the Growth Preview button opens a dialog showing a simulated cumulative growth table from Lv1 to the max Lv of the EXP table. It helps you verify "what this class learns at Lv10" and "how much parameters grow by Lv20" in advance.
Columns Displayed
| Column | Content |
|---|---|
| Lv | Each level from 1 to max Lv |
| Each parameter column | One column per parameter set in parameter growth formulas. Lv1 is 0, Lv2 onwards shows cumulative values |
| Learned Items | Items (skills, magic) learned at that level, shown comma-separated by name |
| Learned Attaches | Attaches (passives) learned at that level, shown comma-separated by name |
Calculation Method
- Evaluates the parameter growth formula and accumulates the addition value at each Lv
- Addition values are rounded away from zero as integers (e.g., calculation result 2.3 → 3, -1.4 → -2). This is the same rounding as the runtime's actual level-up processing
- Random formulas are replaced with average values for preview (described below)
Random Formula Average Replacement
If the growth formula contains randomness, the preview replaces it with the average as follows:
| Random Formula | Preview Replacement |
|---|---|
randi_range(a, b) | (a + b) / 2 (arithmetic mean) |
randf_range(a, b) | (a + b) / 2 (arithmetic mean) |
randi() % N | (N - 1) / 2 (arithmetic mean of 0 to N-1) |
Example: A parameter growth formula of randi_range(3, 5) is always treated as 4 in the preview. The actual runtime randomizes to 3-5 each time.
Preview May Be Off for Growth Formulas Containing Character References
Growth preview uses simplified evaluation, so only USER.LEVEL.MAX / SELF.LEVEL.MAX are replaced with Lv. Growth formulas containing other character references like USER.STR.MAX are not resolved in the preview and cannot be evaluated correctly (the actual runtime fully resolves character references).
Treat the preview of growth formulas containing character references as a rough guide; verify finally by actually starting the game and leveling up.
Right Pane: Parameter Growth Formulas (Column 1 Bottom)
The area defining which parameters change by how much when a character of this class levels up.
Input Items
| Item | Input Form | Description |
|---|---|---|
| Parameter | Select | Select from parameters defined in the Parameter tab (HP / MP / STR / AGI / DEF / INT / MAG / Durability, etc.) |
| Increase/Decrease Value | Number or Formula | Addition value on level up (Formula supported) |
| 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 : increase/decrease value format. Clicking a row populates the input with the values; change the increase/decrease value and press Update to overwrite.
If the referenced parameter is deleted, an error icon is shown on the row.
Using Formula
The increase/decrease value supports Formula as well as fixed values. The following notations can be used in Formula:
| Notation | Meaning |
|---|---|
3 | Fixed value 3 (adds 3 on level up) |
USER.LEVEL.MAX / 5 + 2 | Function of level (3 at Lv5, 4 at Lv10, 5 at Lv15...) |
randi_range(2, 4) | Random 2-4 (each level up is random) |
USER.STR.MAX / 10 | Function of other parameters (increases more as STR is higher) |
See Formula Reference for detailed notation.
Rounding of Increase/Decrease Value
The calculation result is rounded away from zero as an integer (e.g., 2.3 → 3, -1.4 → -2). Even if intermediate decimal values are set, actual addition is in integer units.
Lv1 Initial Values Set in Character / Enemy Tab
Parameter growth formulas are only addition values on level up. Lv1 initial values are set in the Character tab (initial values for characters) or Enemy tab (initial values for enemies). The class only decides "how it grows".
Formulas Are Evaluated at Runtime
Even if Formula has syntax errors or undefined references, no warnings appear in the editor. Evaluation happens at runtime on level up, and errors are treated as 0 (fallback). If unsure of syntax, start the game and verify level-up works correctly.
Right Pane: Learned Items (Column 2)
The area defining items (skills / magic / basic actions) that characters of this class learn automatically on level up.
Input Items
| Item | Input Form | Description |
|---|---|---|
| Item | Select | Select from skills / magic / basic actions defined in the Item tab (consumables not selectable) |
| Learn Level | Integer (0 or more) | Level at which this item is learned (0 = initial learn at Lv1) |
| Update button | — | Add input to the list or overwrite |
| Delete button | — | Delete the item selected in the list |
List
The list shows added learned items in item ID : learn level format, sorted by learn level ascending (same levels in insertion order). If the referenced item is deleted, an error icon is shown on the row.
Restrictions on Selectable Items
The Learned Items selection is restricted to items defined in the Item tab that meet the following conditions:
- Type is not consumable (skills / magic / basic actions only)
- BA_ESCAPE (basic action: escape) is excluded (as it's enemy-only, there's no meaning to characters learning it on level up)
Consumables (Potions, etc.) Not in Learned List
Consumables (potions, elixirs, etc.) are "used to produce an effect" and don't fit the concept of "learning". If the user wants to "obtain consumables on level up", design them to be obtained via events or drops.
Meaning of Learn Level = 0
Learn Level 0 means "initial learn at Lv1". It is automatically treated as already learned at character creation (at Lv1).
Input Validation
- The learn level field is integerized, minimum 0. Blank or non-numeric is corrected to 0
Example Usage
MA_FIRE : 3→ Learn magic "Fire" upon reaching Lv3SK_SLASH : 5→ Learn skill "Slash" upon reaching Lv5BA_ATTACK : 0→ Initial learn basic action "Attack" at Lv1
Right Pane: Learned Attaches (Column 3 Top)
The area defining attaches (passives) that characters of this class learn automatically on level up.
Input Items
| Item | Input Form | Description |
|---|---|---|
| Attach | Select | Select from passive type attaches defined in the Attach tab (equipment types like weapons / armor are not selectable) |
| Learn Level | Integer (0 or more) | Level at which this attach is learned (0 = initial learn at Lv1) |
| Update button | — | Add input to the list or overwrite |
| Delete button | — | Delete the attach selected in the list |
List
The list shows added learned attaches in attach ID : learn level format, sorted by learn level ascending (same levels in insertion order). If the referenced attach is deleted, an error icon is shown on the row.
Restrictions on Selectable Attaches
The Learned Attaches selection is restricted to attaches defined in the Attach tab whose Type is Passive only. Weapons / shields / helmets / armor / accessories do not appear in the choices.
To Learn Equipment Type (Weapons, Armor, etc.) via Level Up
To give equipment-type attaches to a character, use the following methods:
- Give as initial equipment: Specify in the Character tab's initial attaches
- Obtain via drop / event: Obtain via drop table or event "Add Item"
Auto-equipping weapons via level up is unnatural (it would be strange for a Dragon Slayer to auto-equip after defeating one), so this tab restricts to passives only.
Auto-Equipped After Learning
Learned passives are automatically added to the character's equipment slots. Since passives are not shown in equipment slots, nothing changes visually, but constant effects are active.
Input Validation
- The learn level field is integerized, minimum 0
Example Usage
PA_MAGICKNOWLEDGE : 3→ Learn passive "Magic Knowledge" upon reaching Lv3PA_DEFENDER : 10→ Learn passive "Defender" upon reaching Lv10
Right Pane: Dev Memo (Column 3 Bottom)
A memo field freely writable by the user for working notes.
Input Items
| Item | Input Form | Description |
|---|---|---|
| Dev Memo | Multi-line text | User's working memo. Supports line breaks |
Purpose
- Record class design intent (e.g., "Physical attacker, all passives acquired by Lv10")
- Record unfinished TODOs (e.g., "Plan to adjust Lv15+ growth formula")
- Record relationships to other tabs (e.g., "Used by character IDs: KNIGHT_A, KNIGHT_B")
Not Referenced at Runtime
Dev memo has zero impact on the game. The field is purely intended as a user working aid.
Typical Usage Flows
Flow 1: Create a New Class
- Press the left pane's New button
- Enter ID (e.g.,
KNIGHT) and OK - The right pane shows the new class
- Enter "Knight" for Class Display Name
- Bulk-generate the table with the Generate EXP Table button (e.g., Multiplier template, Base EXP 10, Multiplier 1.2, Max Level 30)
- Add Parameter Growth Formulas:
- HP:
3(Update) - STR:
2(Update) - AGI:
1(Update)
- HP:
- Add Learned Items:
BA_ATTACK : 0(initial learn of basic attack at Lv1)
- Add Learned Attaches:
PA_MAGICKNOWLEDGE : 3(learn passive at Lv3)
- Confirm cumulative growth for Lv1-30 with the Growth Preview button
- Write to
class.jsonwith the Save button
Flow 2: Create a Derived Class from an Existing Class
- Select
KNIGHTin the left pane - Press Copy button;
KNIGHT_2is auto-generated (all data duplicated) - Rename to
PALADINwith the Change ID button - Change Class Display Name to "Paladin"
- Adjust Parameter Growth Formulas (e.g., STR 2 → 1, INT 0 → 1)
- Add
MA_HEAL : 5to Learned Items - Press Save button
Flow 3: Fine-Tune the EXP Table
- Select the target class in the left pane
- Click the row to modify in the EXP table list
- Values populate the Required EXP input
- Modify the value (e.g.,
20→25) - Overwrite with Update button
- Press Save button
Flow 4: Trim High-Level Rows of the Table
- Suppose the EXP table has been created up to Lv30
- To shrink to Lv25, press the Remove 1 Row button 5 times
- Reduces Lv30 → Lv29 → Lv28 → Lv27 → Lv26 → Lv25
Related Tabs
| Tab | Related Content |
|---|---|
| Parameter tab | Definition of parameters referenced in growth formulas (HP / MP / STR / AGI / DEF / INT / MAG / Durability, etc.) |
| Item tab | Source of learned item choices (non-consumables, excluding BA_ESCAPE) |
| Attach tab | Source of learned attach choices (passive only) |
| Character tab | References class ID via the class property, defines character's Lv1 initial parameters |
| Enemy tab | References class ID via the class property, defines enemy's Lv1 initial parameters |
| Formula Reference | Notation for growth formulas (USER.LEVEL.MAX / randi_range, etc.) |
Notes
Mid-Input Tab Switch May Discard Unsaved Changes
EXP tables, growth formulas, and learned lists have changes committed at the moment the Update button is pressed. Switching tabs after entering values without pressing Update may discard changes. Always press Update after input.
Formula Errors Are Not Detected in the Editor
Parameter growth formula syntax errors or undefined references cause no warnings in the editor. At runtime on level up, they are treated as 0 (fallback). If unsure of syntax, verify via the Growth Preview dialog or actually starting the game.
Generating EXP Table Fully Overwrites Existing
Generating via the Generate EXP Table dialog completely discards the existing table. To preserve manually adjusted values, back up the class via Copy button before generating, or manually overwrite individually after generation.
No Mechanism to Learn Equipment Type (Weapons, Armor) via Level Up
Learned attaches are restricted to "passives only". To obtain equipment types (weapons / shields / helmets / armor / accessories) via level up, use drop tables or event "Add Item".
No Reference Integrity Check on Class Deletion
When deleting a class, characters and enemies referencing it are not automatically fixed. Characters/enemies with a dangling class ID may exhibit unexpected behavior at runtime (cannot level up, defaults applied, etc.). Confirm usage locations in the Character / Enemy tabs before deletion.
