Skip to content

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 targetTarget
CharacterChange per-character param (HP/MP/STR, etc.)
GroupChange party-common param (GOLD, etc.)
Party ItemChange the internal value of items in party storage
Character ItemChange 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 ​

ItemInput formatDescription
apply_toButton split (at Add Content)Character / Group / Party Item / Character Item
ParameterSelectKey of parameter.json (HP, MP, GOLD, STR, etc.)
ValueFormulaFixed value or Formula
OperatorSelectSet / Add / Sub / Mul / Div / Mod / Abs
RoundingSelectNone / Ceil / Floor / Round
Change current valueCheckboxON = current / OFF = max

Additional properties for Character ​

ItemInput formatDescription
TargetSelect6 choices (see below)
Member IndexSelectWhen Target=Selected Member
Character KeyText or selectWhen Target=Character ID ({var} allowed)

Additional properties for Item-based ​

ItemInput formatDescription
Item Target TypeSelectBy Unique Variable / By Item ID / By Equipment Slot
Item Unique VariableSelectWhen By Unique Variable
Item IDText or selectWhen By Item ID
Sub TargetSelect8 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).

ChoiceBehavior
CharacterApply to the target character's param
GroupApply to party-common param (GOLD, etc.)
Party ItemApply to the internal value of items/attaches in party storage
Character ItemApply 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.

ChoiceFormulaExample
Set (=)param = valueHP = 100 (full replace)
Add (+)param = param + valueHP += 50
Sub (-)param = param - valueHP -= 10
Mul (×)param = param × valueHP ×= 2 (double)
Div (÷)param = param ÷ valueHP ÷= 2 (half)
Mod (%)param = param % valueHP %= 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.

ChoiceBehaviorExample
NoneAs is (preserve decimals)1.5 → 1.5
CeilAlways round up0.1 → 1, -0.1 → 0
FloorAlways round down0.9 → 0, -0.1 → -1
RoundGodot standard0.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.

ChoiceBehavior
Party AllAll party members (including DEAD)
Party AliveAlive members only
Selected MemberSpecified by member_index
Party Random 1Randomly chosen 1 from alive members
Character IDSpecified by character.id ({var} allowed)
Party DeadDead 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.

ChoiceTargetBehavior
Item Param (max)item.data.param[key]Numeric operation
Item Param Currentitem.data.param_current[key]Numeric operation
Item Consume Selfitem.data.consume_self[key].valueFormula string operation
Item Consume Useritem.data.consume_user[key].valueFormula string operation
Item Tgt Paramitem.data.tgt_param[key].value / determineFormula string operation
Item Tgt Stateitem.data.tgt_state[key].determineFormula string operation
Attach Stateitem.data.state (set)Set operation (Plus/Minus)
Item Req Paramitem.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 ​

  1. param_key empty → silent next_line
  2. param_key undefined in parameter.json → WARNING + silent next_line
  3. is_current=true specified + param's is_current=false → auto-redirect to max side
  4. Branches to 4 cases below depending on apply_to

Character case ​

  1. dis_group=true (GOLD, etc.) → auto-redirect to Group path
  2. Resolve the target character's unique array using 6-choice target
  3. 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 ​

  1. Apply operation to party-common param
  2. Via party add_party_*_param

Party Item / Character Item case ​

  1. Resolve the target storage uid array according to Item Target Type
  2. Apply operation to the field according to each uid's Sub Target
  3. Numeric operation (Sub 0/1/7) → existing numeric operation
  4. Formula string operation (Sub 2-5) → string replace or concatenation
  5. 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):

  1. 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:

  1. 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):

  1. 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
  1. 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:

  1. 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):

  1. 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:

  1. 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:

  1. 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:

  1. 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:

  1. 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:

  1. Change Parameter (this event content) (GOLD, Add, 500)
  2. Show Text ← "Got 500G!"

Full-party recovery event ​

Church, inn, etc.:

  1. Change Parameter (this event content) (HP, Set, USER.HP.MAX, Party Alive)
  2. Change Parameter (this event content) (MP, Set, USER.MP.MAX, Party Alive)

Level-up event ​

Massive EXP grant:

  1. Change Parameter (this event content) (EXP, Add, 10000, Party All)

Equipment enhancement ​

Weapon enhancement at the blacksmith:

  1. Add Choice × 2 (Enhance / Quit)
  2. Show Selection Window
  3. Conditional Branch (enhancement selected)
  4. Change Parameter (this event content) (ATK, Add, 10, Item Param)
  5. End If

Tactic that activates at half HP ​

Buff grant before battle:

  1. Change Parameter (this event content) (HP, Set, USER.HP.MAX / 2, Party Alive)
Related event contentPurpose
Add ItemGrant the item itself (this event content changes the internal value of existing items)
Remove ItemShares the same Item Target Type with this event content
Add StateGrant state
Remove StateRelease state
Assign VariableCombination with variable operations
Conditional BranchParameter condition check
PageRelated 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 ReferenceFormulas used in the Value property
Variable tab (editor)Definition of unique variables
Event content indexList 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).