Change Item Info
Category: Item/Attach
An event content that dynamically rewrites the display name and icon of possessed items and attaches (equipment/passive) during gameplay. Use it when you want to change the appearance of possessions, such as "the weapon's name changes to 'Iron Sword +1' through enhancement", "the equipment's icon becomes shining through evolution", or "the item's formal name is displayed after identification".
Changes "display information", not numeric values
This event content changes only the name or icon. If you want to change numeric values such as attack power or HP recovery, use Change Parameter. Because it handles only display information, a simple string is specified instead of a Formula.
The target specification method is the same as Change Parameter
The method for specifying the target item (unique variable / item ID / equipment slot) is completely the same mechanism as Change Parameter. Since usage is shared, if you get used to one, you can immediately use the other.
Property structure
Depending on apply target (apply_to), the choices for the target specification method (item_target_type) change.
| Apply target | Target | Available target specification methods |
|---|---|---|
| Party Item | Party-shared items and attaches (storage) | Unique variable / item ID |
| Character Item | Items and attaches possessed or equipped by individual characters | Item ID / equipment slot |
The apply target is determined by the 2 buttons at Add Content time, and from then on cannot be switched on the UI (if you want to re-select, delete this event content once and re-add it).
Property list
Common properties
| Item | Input format | Description |
|---|---|---|
| Item Target Type | Select | Unique variable / item ID / equipment slot (filtered by apply_to) |
| Field | Select | name / icon (icon image) |
| Value | Text or file select | New name or path to the icon image |
Additional properties by target specification method
| Target specification method | Additional property | Description |
|---|---|---|
| By Unique Variable | Item Unique Variable | Variable storing the target uid (Party Item only) |
| By Item ID | Item ID | Key of item.json or attach.json |
| By Equipment Slot | Attach Type + Number | Specifies the equipped attach (Character Item only) |
Additional properties for Character Item
| Item | Input format | Description |
|---|---|---|
| Char Target | Select | 5 choices: Selected Member / Party All / Party Alive / Party Random 1 / Character ID |
| Member Index | Select | When Char Target=Selected Member |
| Character Key | Text or select | When Char Target=Character ID |
Property details
Item Target Type
Choose how to identify the item you want to change. The methods available differ by apply target.
By Unique Variable — Party Item only
Specifies a single item by the unique ID of the item saved in a variable. It is convenient for targeting a specific one, like "save the uid of the item bought at the shop to a variable → change the name of that item".
- Available only for Party Item (because unique IDs are unique regardless of owner)
- Variable undefined / variable value empty / item with the uid does not exist → warning log is output and nothing is done
By Item ID
Targets all possessions matching the item ID (key of item.json or attach.json).
- Party Item: all items in party storage matching the ID
- Character Item: all items in the specified character's (specified by Char Target) possessed items + equipped attaches matching the ID
If you have multiple copies, the same change is applied to all of them. The behavior is like "has 3 iron swords → all 3 become Iron Sword +1".
By Equipment Slot — Character Item only
Specifies an attach in a specific slot that the character has equipped. If multiple can be equipped with the same attach type (weapon), such as "right-hand weapon" or "left-hand weapon", specify by Number.
- Attach type: Key of
attachtype.json(weapon / armor / accessory, etc.) - Number: Starts from 0 (0 = 1st slot, 1 = 2nd slot)
- If not equipped, no target (does nothing)
Field
Choose the display information to change. Only 2 choices.
| Value | Meaning |
|---|---|
| name | Display name of the item/attach |
| icon | Icon image path of the item/attach |
Value
Specifies the new display information value.
- When field=name: Free text input (Japanese OK, variable expansion notation like
{var_1}also usable) - When field=icon: Path to the image file (
.png,.jpg,.svg, etc.), the "Select" button can be used to choose an image
How to restore the original name
This event content only overwrites and has no "restore to original" function. If you want to restore to the pre-evolution name, you need to prepare a mechanism on the user side such as "save the original name to a variable → overwrite the name with that variable's value when you want to restore it", or operate by overwriting again with the pre-evolution item.json key.
Character specification for Character Item (Char Target)
For Character Item + By Item ID / By Equipment Slot, 5 choices determine the target character.
| Value | Meaning |
|---|---|
| Selected Member | The Nth member specified by Member Index |
| Party All | All party members (regardless of alive/dead) |
| Party Alive | Alive party members |
| Party Random 1 | One randomly chosen |
| Character ID | Specify by the character's unique key |
The same change is applied to all items of all target characters.
Runtime behavior
Processing flow
- field validation: If other than name / icon, output warning log and proceed
- apply_to validation: If other than Party Item (3) / Character Item (4), output warning log and proceed
- Resolve target uid array: Collect all applicable item uids according to the specification method
- Rewrite each target's
storage.data[field]: If multiple hits, overwrite all with the same value - Proceed immediately to next event: No wait
Fallback when no target
In the following cases, a warning log is output and the event proceeds to the next event content without doing anything (does not stop with an error):
- Unique variable undefined / empty / nonexistent uid
- Item ID empty
- 0 possessions match the item ID
- No equipment matches for equipment slot specification
- member_index out of range for Char Target=Selected Member
- Character does not exist for Char Target=Character ID
Save destination
The change is made to each item's individual instance (storage entry). The master data of item.json / attach.json itself is not changed. That is:
- The name of an "iron sword" already possessed changes
- An "iron sword" bought at the shop afterward remains the original name
Even for possessions with the same item ID, each individual instance can have a different name/icon.
Save to save data
Changes made by this event content are saved to save data (storage), so even after save → load, the changed name/icon is maintained.
Typical usage flows
Flow 1: Change weapon name through enhancement
Add "+1" to the name when a weapon is enhanced at the blacksmith:
- (blacksmith conversation / gold-spending event)
- Change Item Info (this event content)
- Apply target: Character Item
- Target specification method: Equipment Slot
- Attach type: weapon
- Number: 0
- Char Target: Selected Member
- Member Index: 1st
- Field: name
- Value:
Iron Sword +1
- Show Text: "The iron sword was enhanced into 'Iron Sword +1'!"
Flow 2: Change equipment icon through evolution
An item evolves under certain conditions, and the icon's appearance changes:
- (evolution condition evaluation event)
- Change Item Info (this event content): name change
- Apply target: Party Item
- Target specification method: Item ID
- Item ID:
IT_SACRED_SWORD - Field: name
- Value:
Awakened Sacred Sword
- Change Item Info (this event content): icon change
- Apply target: Party Item
- Target specification method: Item ID
- Item ID:
IT_SACRED_SWORD - Field: icon
- Value:
res://addons/rpg_wizard/data/sprites/icon/sacred_sword_awakened.png
- Play sound effect: awakening sound
Flow 3: Display formal name after identification
Reveal the true identity of an unidentified item:
- (event of using identification item at the identification shop)
- Change Item Info (this event content)
- Apply target: Party Item
- Target specification method: Unique Variable
- Unique variable:
last_identified_item - Field: name
- Value:
Legendary Ring
- Change Item Info (this event content)
- Apply target: Party Item
- Target specification method: Unique Variable
- Unique variable:
last_identified_item - Field: icon
- Value:
res://addons/rpg_wizard/data/sprites/icon/legendary_ring.png
- Show Text: "The identification revealed it as the 'Legendary Ring'!"
Flow 4: Change equipment name for disguise
In a spy event, the equipment name is displayed as "Noble Attire":
- Change Item Info (this event content)
- Apply target: Character Item
- Target specification method: Equipment Slot
- Attach type: armor
- Number: 0
- Char Target: Selected Member
- Field: name
- Value:
Noble Attire (in disguise)
- (infiltration event)
- Change Item Info (this event content): restore
- Apply target: Character Item
- Target specification method: Equipment Slot
- Attach type: armor
- Number: 0
- Field: name
- Value:
Leather Armor
Typical combinations
- Change Parameter: Enhancement effect that changes numeric values (attack power, etc.) simultaneously with name/icon changes
- Assign Variable: Save the target's uid to a variable in advance and target it precisely with unique variable specification
- Play Sound: Add impact with a sound effect at the moment of enhancement/evolution/identification
- Show Text: Explain the change result in text
- If: Evaluate evolution conditions before firing this event content
- Change PC Sprite: Express equipment change and appearance change as a set
Related events
- Change Parameter: Event content that changes numeric values and formulas. Use this for things other than name/icon (attack power, MP cost, etc.)
- Add Item / Remove Item: When increasing or decreasing the possession count of items themselves
- Assign Variable: Used together to save the target's uid to a variable
Related pages
- Change Parameter — Same target specification method (unique variable / item ID / equipment slot)
- Editor: Item — Data structure of items themselves
- Editor: Attach — Data structure of attaches themselves
Notes and constraints
Explicit overwrite is required to restore
Because this event content writes the "changed value" directly, there is no automatic restore function. If you want to "restore to the pre-evolution name", you need the following mechanisms separately:
- Save the pre-change name to a variable before changing, and overwrite with that variable when restoring
- Overwrite again with the pre-evolution
item.jsonkey - (Storage-based) "Delete the pre-change item → add a new pre-evolution instance" operation
Master data is not changed
Changes apply only to the individual item instances (storage entries) being possessed. item.json / attach.json itself and newly acquired items (shop purchase/drop) are not affected. "Changing the display name throughout the game" is not possible.
Applied to all possessions with the same ID (By Item ID)
For By Item ID specification, if you possess multiple with the same item ID, the same value is applied to all. "Changing the name of only one iron sword out of 3 possessed" is not possible. If you want to treat only one specially, record the uid with a variable and rewrite it individually with unique variable specification.
icon path requires the image resource to exist
If the image path specified for field=icon does not exist, the image is not displayed (does not stop with an error, but the icon is missing on the UI). It is safe to choose the image from the "Select" button.
Simple string, not Formula
The value is treated as a simple string, not a Formula. Numeric calculations and reference tokens cannot be used. However, in the name field, variable expansion notation ({var_1}, etc.) is available, so dynamic generation like "a name including the current level" is possible.
