Change Parameter
Category: Character/Party
An all-purpose event content that changes character parameters (HP/MP/Gold, etc.) and the internal values of items and equipment. It is one of the most feature-rich event contents in this tool, covering everything from simple operations like "increase Gold" to advanced operations like "dynamically change the consume value of a specified item via Formula".
Supports 4 storage destinations
This event content has 4 "apply targets (apply_to)":
| Apply target | Target |
|---|---|
| Character | Change per-character param (HP/MP/STR, etc.) |
| Group | Change party-common param (GOLD, etc.) |
| Party Item | Change the internal value of items in party storage |
| Character Item | Change the internal value of items in per-character storage |
When choosing from the 4 buttons at Add Content time, apply_to is set automatically.
Gold is auto-redirected to Group even with Character specification
Parameters with dis_group=true set, such as GOLD, are automatically redirected to the party-common param even if apply_to=Character is specified. The user can simply write "character's gold" intuitively, while in reality it is reflected on the party-wide GOLD.
Property structure
Because this event content is multi-functional, the UI switches dynamically depending on apply_to and sub-settings. Here they are grouped as "typical properties by use case".
Common properties
| Item | Input format | Description |
|---|---|---|
| apply_to | Button split (at Add Content) | Character / Group / Party Item / Character Item |
| Parameter | Select | Key of parameter.json (HP, MP, GOLD, STR, etc.) |
| Value | Formula | Fixed value or Formula |
| Operator | Select | Set / Add / Sub / Mul / Div / Mod / Abs |
| Rounding | Select | None / Ceil / Floor / Round |
| Change current value | Checkbox | ON = current / OFF = max |
Additional properties for Character
| Item | Input format | Description |
|---|---|---|
| Target | Select | 6 choices (see below) |
| Member Index | Select | When Target=Selected Member |
| Character Key | Text or select | When Target=Character ID ({var} allowed) |
Additional properties for Item-based
| Item | Input format | Description |
|---|---|---|
| Item Target Type | Select | By Unique Variable / By Item ID / By Equipment Slot |
| Item Unique Variable | Select | When By Unique Variable |
| Item ID | Text or select | When By Item ID |
| Sub Target | Select | 8 choices for Item Sub Target (see below) |
| (Others, such as attach_type and state_key) | — | Dynamic display depending on Sub Target |
Property details
apply_to
Specifies the change target in 4 choices (set automatically at Add Content time, UI hidden thereafter).
| Choice | Behavior |
|---|---|
| Character | Apply to the target character's param |
| Group | Apply to party-common param (GOLD, etc.) |
| Party Item | Apply to the internal value of items/attaches in party storage |
| Character Item | Apply to the internal value of items/attaches of the specified character |
Parameter
Select the key of the parameter to change from parameter.json.
- Examples:
HP,MP,STR,GOLD,EXP, etc. - Supports real-time cross-tab reference update (2026-09-09)
Handling of reserved parameters
This can also be used for reserved parameters such as HP / MP / GOLD / EXP / LEVEL, but with the following automatic links:
- Setting HP to 0 or below automatically grants the DEAD state
- Adding EXP automatically fires level-up
- GOLD is
dis_group=true, so even with apply_to=Character it is automatically redirected to the Group path
Value
Specifies the value to change by a fixed value or Formula.
- Fixed value:
100,-50, etc. - Formula:
USER.STR.MAX * 2,MEMS_AVG.LEVEL.MAX * 10,{counter_1} + 5, etc. - When Operator=Abs, this value is ignored (absolute value)
Operator
Specifies the way to change the parameter in 7 choices.
| Choice | Formula | Example |
|---|---|---|
| Set (=) | param = value | HP = 100 (full replace) |
| Add (+) | param = param + value | HP += 50 |
| Sub (-) | param = param - value | HP -= 10 |
| Mul (×) | param = param × value | HP ×= 2 (double) |
| Div (÷) | param = param ÷ value | HP ÷= 2 (half) |
| Mod (%) | param = param % value | HP %= 10 (remainder of division by 10) |
| Abs ( | x | ) |
Zero protection for Div / Mod
If you specify value=0 for Div (÷) / Mod (%), the runtime outputs a warning log and proceeds to the next event content without doing anything (prevents division-by-zero errors).
Rounding
Specifies how to process decimals in the operation result in 4 choices.
| Choice | Behavior | Example |
|---|---|---|
| None | As is (preserve decimals) | 1.5 → 1.5 |
| Ceil | Always round up | 0.1 → 1, -0.1 → 0 |
| Floor | Always round down | 0.9 → 0, -0.1 → -1 |
| Round | Godot standard | 0.5 → 1, -0.5 → 0 |
Change current value
- ON (default): Change the current (current value) of the parameter
- OFF: Change the max (maximum value) of the parameter
Automatic redirection of is_current=false
Even if current=ON is specified for a parameter defined as is_current=false (STR / INT, etc.), the runtime automatically redirects to the max side. The safety mechanism is built in to prevent unintended behavior.
Target (only when apply_to=Character)
Specifies the character to change in 6 choices.
| Choice | Behavior |
|---|---|
| Party All | All party members (including DEAD) |
| Party Alive | Alive members only |
| Selected Member | Specified by member_index |
| Party Random 1 | Randomly chosen 1 from alive members |
| Character ID | Specified by character.id ({var} allowed) |
| Party Dead | Dead members only (for revival use, etc.) |
Item Target Type (only when Item-based)
Same 3 choices as Remove Item.
Sub Target (only when Item-based)
Specifies what to change in the item/attach in 8 choices.
| Choice | Target | Behavior |
|---|---|---|
| Item Param (max) | item.data.param[key] | Numeric operation |
| Item Param Current | item.data.param_current[key] | Numeric operation |
| Item Consume Self | item.data.consume_self[key].value | Formula string operation |
| Item Consume User | item.data.consume_user[key].value | Formula string operation |
| Item Tgt Param | item.data.tgt_param[key].value / determine | Formula string operation |
| Item Tgt State | item.data.tgt_state[key].determine | Formula string operation |
| Attach State | item.data.state (set) | Set operation (Plus/Minus) |
| Item Req Param | item.data.req_param[key] | Numeric operation |
Formula string operation (when Sub Target is 2-5)
When the operand is a Formula string, Operator behaves as follows:
- Set: Fully replace with value
- Add/Sub/Mul/Div/Mod: Concatenate with parentheses on the original expression (e.g., original
"USER.INT.MAX * 3"+ Add 5 →"(USER.INT.MAX * 3) + 5") - Abs: Wrap the original expression with
abs()
Rounding is valid only on Set (replace).
Runtime behavior
Common processing
- param_key empty → silent next_line
- param_key undefined in parameter.json → WARNING + silent next_line
- is_current=true specified + param's is_current=false → auto-redirect to max side
- Branches to 4 cases below depending on apply_to
Character case
- dis_group=true (GOLD, etc.) → auto-redirect to Group path
- Resolve the target character's unique array using 6-choice target
- For each target character:
- Evaluate value via Formula.ref_calc (character context)
- Get current_val (current or max)
- Compute addition value depending on Operator (Set/Add/Sub/Mul/Div/Mod/Abs)
- Div/Mod with value=0 → skip + WARNING
- NaN/Inf → skip
- Apply Rounding
- Add via Global.add_character_*_param (DEAD check, clamp, is_limit check are auto-inherited)
Group case
- Apply operation to party-common param
- Via party add_party_*_param
Party Item / Character Item case
- Resolve the target storage uid array according to Item Target Type
- Apply operation to the field according to each uid's Sub Target
- Numeric operation (Sub 0/1/7) → existing numeric operation
- Formula string operation (Sub 2-5) → string replace or concatenation
- Attach State (Sub 6) → state set Plus/Minus
Fallback when no target
- Invalid member_index, unknown character_key, Random with 0 alive, uid not found, etc. → silent next_line (with warning log)
Typical usage flows
Flow 1: Increase Gold by 500
Increase the party's gold (even with apply_to=Character specified, it is auto-redirected to Group):
- Change Parameter (this event content)
- Apply target: Character
- Target: Party All (even with apply_to=Character, GOLD is redirected to Group)
- Parameter: GOLD
- Operator: Add (+)
- Value: 500
- Change current value: ON
Or explicitly:
- Change Parameter (this event content)
- Apply target: Group
- Parameter: GOLD
- Operator: Add (+)
- Value: 500
Flow 2: Full HP recovery for all members
Recover HP of all party members to max (referencing USER.HP.MAX):
- Change Parameter (this event content)
- Apply target: Character
- Target: Party Alive
- Parameter: HP
- Operator: Set (=)
- Value:
USER.HP.MAX - Change current value: ON
Flow 3: Recover half of HP
- Operation:
HP += HP.MAX / 2
- Change Parameter (this event content)
- Apply target: Character
- Target: Party Alive
- Parameter: HP
- Operator: Add (+)
- Value:
USER.HP.MAX / 2 - Change current value: ON
- Rounding: Floor
Flow 4: Level up the hero (add EXP)
Adding EXP automatically fires level-up:
- Change Parameter (this event content)
- Apply target: Character
- Target: Character ID
- Character Key: HERO
- Parameter: EXP
- Operator: Add (+)
- Value: 1000
- Change current value: ON
Flow 5: Revive only dead members
Target Party Dead and recover HP (revive):
- Change Parameter (this event content)
- Apply target: Character
- Target: Party Dead
- Parameter: HP
- Operator: Set (=)
- Value:
USER.HP.MAX - Change current value: ON
Automatic release of DEAD state
When HP is changed from 0 to a positive value, the DEAD state is automatically released (via the shelter logic).
Flow 6: Enhance equipment attack
Add +10 to the ATK of equipment with a unique stored in a variable:
- Change Parameter (this event content)
- Apply target: Party Item
- Item Target Type: By Unique Variable
- Item Unique Variable:
last_bought_sword - Sub Target: Item Param (max)
- Parameter: ATK
- Operator: Add (+)
- Value: 10
Flow 7: Double the effect of all potions
Double tgt_param.HP.value of items via Formula:
- Change Parameter (this event content)
- Apply target: Party Item
- Item Target Type: By Item ID
- Item ID:
potion - Sub Target: Item Tgt Param
- Parameter: HP
- Operator: Mul (×)
- Value: 2
Flow 8: Dynamic value change
Bonus according to party level:
- Change Parameter (this event content)
- Apply target: Character
- Target: Party All
- Parameter: STR
- Operator: Add (+)
- Value:
MEMS_AVG.LEVEL.MAX * 2 - Change current value: OFF (raise max)
Flow 9: Absolute value HP (correction of negative value)
Correction when HP becomes negative due to a bug or event:
- Change Parameter (this event content)
- Operator: Abs (|x|)
- (value is ignored)
Typical combinations
For the overall picture, see Combination pattern collection.
Gold reward
Gold on quest completion:
- Change Parameter (this event content) (GOLD, Add, 500)
- Show Text ← "Got 500G!"
Full-party recovery event
Church, inn, etc.:
- Change Parameter (this event content) (HP, Set,
USER.HP.MAX, Party Alive) - Change Parameter (this event content) (MP, Set,
USER.MP.MAX, Party Alive)
Level-up event
Massive EXP grant:
- Change Parameter (this event content) (EXP, Add, 10000, Party All)
Equipment enhancement
Weapon enhancement at the blacksmith:
- Add Choice × 2 (Enhance / Quit)
- Show Selection Window
- Conditional Branch (enhancement selected)
- Change Parameter (this event content) (ATK, Add, 10, Item Param)
- End If
Tactic that activates at half HP
Buff grant before battle:
- Change Parameter (this event content) (HP, Set,
USER.HP.MAX / 2, Party Alive)
Related event content
| Related event content | Purpose |
|---|---|
| Add Item | Grant the item itself (this event content changes the internal value of existing items) |
| Remove Item | Shares the same Item Target Type with this event content |
| Add State | Grant state |
| Remove State | Release state |
| Assign Variable | Combination with variable operations |
| Conditional Branch | Parameter condition check |
Related pages
| Page | Related content |
|---|---|
| Parameter tab (editor) | Definition of parameter.json (dis_group / is_current / is_limit, etc.) |
| Item tab (editor) | Internal structure of item.json |
| Attach tab (editor) | Internal structure of attach.json |
| Formula Reference | Formulas used in the Value property |
| Variable tab (editor) | Definition of unique variables |
| Event content index | List of all event contents |
Notes
GOLD is redirected to Group even with Character specification
Parameters with dis_group=true such as GOLD are auto-redirected to the party-common param even if apply_to=Character is specified. The concept of "hero's gold" does not exist in the tool; GOLD is always party-common.
Automatic redirection of is_current
Even if current=ON is specified for a parameter with parameter.is_current=false (STR, INT, etc.), the runtime auto-redirects to the max side. It is a safe behavior even if the user makes a mistake.
Automatic linkage with DEAD state
When HP is set to 0 or below, the DEAD state is automatically granted, and when HP is restored to a positive value, DEAD is automatically released. There is no need to manually operate the state (built-in logic of Global.add_character_current_param).
EXP automatically fires level-up
When EXP is added, level-up event automatically fires at the point of reaching the required EXP via Global.add_character_max_param. There is no need to manually level up.
Zero protection for Div / Mod
If value=0 is specified for Div (÷) / Mod (%), only that target is skipped with a warning log (the game does not stop).
NaN / Inf protection
If the operation result becomes NaN (not a number) or Inf (infinity), only that target is skipped. Even if some targets become abnormal among multiple targets (Party All, etc.), the others are processed normally.
Rounding timing
Rounding is applied to the addition value of the operation result. It is applied before existing API clamp / DEAD check, so the "intended integer value" is reliably reflected as the result.
Formula string operation (when Sub Target is 2-5)
When changing an item's Formula-based field, the behavior differs by operator:
- Set: Full replace
- Add/Sub/Mul/Div/Mod: Expression concatenation with parentheses
- Abs: Wrap with
abs()
Rounding is valid only on Set (replace).
No target is silent + warning log
Even for invalid member_index, unknown character_key, Random with 0 alive, uid not found, etc., the game does not stop. Warning logs are output, so check during debugging.
target=Party All includes DEAD
Party All also targets dead members. If you want to apply only to alive members, use Party Alive.
Formula when there are multiple targets
The Value Formula is evaluated per target. For example, USER.STR.MAX * 2 is calculated individually for each member's STR in Party All (not everyone has the same value).
