Add Item
Category: Character/Party
Event content that grants an item or equipment directly from an event. Whereas Show Shop Buy goes through player operation, this event content automatically grants the item/equipment at the time it runs. Used in all "granting" situations such as quest rewards, event rewards, initial equipment distribution at game start, random rewards, and treasure chest contents.
4 patterns of destinations
This event content supports 4 patterns of "where" to grant "what":
| Destination (apply_to) | Kind | Granted to |
|---|---|---|
| Party | Item | Party-shared item pouch |
| Party | Attach | Party-shared equipment pool (unequipped) |
| Character | Item | Specified character's individual item pouch |
| Character | Attach | Auto-attached to specified character (pool entry if not attachable) |
Property List
| Item (tscn label) | Input type | Description |
|---|---|---|
| Kind | Selection | Item / Attach |
| Item | Selection | Chosen from item.json or attach.json |
| Count | Number (1-9999) | Grant count |
| apply_to | Button split | Party / Character, auto-set at Add Content time (UI hidden) |
| Target | Selection | When apply_to=Character, specifies the grant target in 5 options |
| Member Index | Selection | When Target=Selected Member, 0-indexed |
| Character Key | Text or selection | When Target=Character ID, character.id ({var} variable reference allowed) |
| Save Unique Variable | Selection | Variable to save the unique identifier of the granted item |
Property Details
Kind
Specify what to grant in 2 options.
| Option | Behavior |
|---|---|
| Item | Items in item.json (consumables, etc.) |
| Attach | Items in attach.json (weapons, armor, passive skills, etc.) |
Kind is for UI; actually auto-determined from Item Key
The Kind property is just for switching input fields. At runtime, the Item Key is looked up to determine actual behavior based on whether it is in item_data or attach_data.
Item
Select the key of the item to grant. Options change according to Kind:
- Kind=Item: keys from item.json
- Kind=Attach: keys from attach.json
Cross-tab reference realtime update (2026-09-09)
When added/removed in the Item tab / Attach tab, the dropdown reflects it instantly. Deleted keys are displayed with an Error icon.
Count
Specify the number to grant.
- Range: 1-9999
- Integer only (SpinBox)
- Specifying 0 or less is auto-corrected to 1
Behavior for multiple targets x count
Specifying Count=3 with Target=Party All for a 4-member party results in 3 per member, totaling 12 granted.
apply_to
Specify the destination storage in 2 options.
| Option | Behavior |
|---|---|
| Party | Stored in party-shared storage |
| Character | Stored in the selected character's individual storage |
apply_to is decided at Add Content time
In the editor's Add Content screen, when you choose from the 2 buttons "Add Item (Party)" / "Add Item (Character)", apply_to is auto-set. After placement, the apply_to UI is hidden in the editor.
Target (only when apply_to=Character)
Specify how to select the grant target character in 5 options.
| Option | Behavior |
|---|---|
| Selected Member | Specified by number within the party (member_index) |
| Party All | Granted to all party members (regardless of alive/dead) |
| Party Alive | Granted to all alive members |
| Party Random 1 | Granted to one random alive member |
| Character ID | Specifies a specific character by character.id |
Richer options than Show Shop
Whereas Show Shop Buy target has 2 options (Selected Member / Character ID), this event content has 5 options and is more flexible. It supports patterns Shop cannot, such as distributing to everyone or random distribution.
Member Index (when Target=Selected Member)
Select the 0-indexed number within the party.
- "1st member" to "nth member"
- If out of range (less than party size), does nothing and proceeds to the next event content (with a warning log)
Character Key (when Target=Character ID)
Directly specify the character.json key (character.id).
- Direct input: enter character.id like
MINATO - Variable reference: specifying in
{var_name}form resolves the variable value as character.id - OptionButton selection is also possible
Save Unique Variable
Save the unique identifier of the granted item to a variable.
Not saved on multi-add
Under the following conditions, nothing is saved to Save Unique Variable, and only a NOTICE log is output (safety mechanism to avoid Array contamination):
- Count > 1
- Target is Party All / Party Alive (multiple member targets)
Only on single add (Count=1 + Target is Selected Member / Random 1 / Character ID), the unique identifier is saved to the variable.
Runtime Behavior
When this event content runs, the following processing occurs:
1. Input validation
- Item Key empty -> do nothing and proceed to the next event content
- Item Key not included in either item_data or attach_data -> output
*** WARNING : Add Item unknown item_keywarning log, do nothing, proceed to the next event content
2. Auto-determination of is_attach
Determined by whether the Item Key is included in item_data or attach_data. The Kind property value is not used (it is UI-only).
3. Target resolution
Determine the grant destination according to apply_to and Target:
- Party: party storage (owner=PARTY)
- Character + Selected Member: member at member_index
- Character + Party All: all members (regardless of alive/dead)
- Character + Party Alive: only alive members
- Character + Party Random 1: one random alive member
- Character + Character ID: member identified by character.id
If the target is empty (invalid index, unknown character_key, 0 alive for Random, etc.), do nothing and proceed to the next event content.
4. Granting process (per target x Count times)
Party + Item
- Added to storage via
party.item.append(unique_item) - Set to owner=PARTY, owner_unique=""
Party + Attach
- No array append
- owner=PARTY, enters pool (unequipped attach)
- Can be equipped later from the equipment screen
Character + Item
- Added to storage via
character[unique].data.item.append(unique_item) - owner=MEMBER, owner_unique=target character
Character + Attach
- Determine attachability:
- Attachable (attachable class match, req_param satisfied) -> if there is an existing attach of the same type, unattach it and attach the new one via attach_item
- Not attachable (class mismatch, req_param insufficient, PASSIVE, etc.) -> enters pool with owner=PARTY (can be attached later from the equipment screen, equivalent to SkipToPool)
5. Saving to Save Unique Variable
- Single add (added_count=1): saved to variable
- Multi-add (added_count>1): skipped +
*** NOTICElog
6. Proceed to the next event content
After all processing, proceed to the next event content.
Design Differences from Shop Buy (for Attach + Character)
| Item | Show Shop Buy | Add Item |
|---|---|---|
| Attachability check | Yes | Yes |
| Behavior when attachable | Auto-attach (when Auto Attach is ON) | Auto-attach |
| Behavior when not attachable | Choose via On Attach Fail property: Deny=purchase denied / SkipToPool=enters pool | Always enters pool (SkipToPool fixed) |
| PASSIVE attach | On Attach Fail=Deny fixed (prevent pool entry) | Pool entry allowed (grant possible) |
Add Item can distribute PASSIVE attaches too
Show Shop Buy fixes PASSIVE attach to Deny (not purchasable), but Add Item always allows pool entry. Useful in scenes where you want to force distribution of PASSIVE attach (acquisition through story progression, etc.).
Typical Usage Flows
Flow 1: Quest reward (grant to party)
- Show Text <- "Great work, take this reward"
- Add Item (this event content)
- Kind: Item
- Item:
potion - Count: 5
- apply_to: Party
- Add Item (this event content)
- Kind: Item
- Item:
elixir - Count: 1
Flow 2: Initial equipment distribution (per character)
- Add Item (this event content)
- Kind: Attach
- Item:
wooden_sword - Count: 1
- apply_to: Character
- Target: Character ID
- Character Key:
HERO
- Add Item (this event content)
- Kind: Attach
- Item:
leather_shield - Count: 1
- apply_to: Character
- Target: Character ID
- Character Key:
HERO
Flow 3: Distribute to everyone (recovery items)
Distribute potions to all members:
- Add Item (this event content)
- Kind: Item
- Item:
potion - Count: 3
- apply_to: Character
- Target: Party All
For a 4-member party, each gets 3, totaling 12 granted.
Flow 4: Alive member preferential distribution
Rewards only to alive members after battle:
- Add Item (this event content)
- Target: Party Alive
Flow 5: Random reward
Lottery where one person wins:
- Add Item (this event content)
- Target: Party Random 1
Flow 6: Fire event immediately after granting
Save the granted unique to a variable and branch:
- Add Item (this event content)
- Kind: Attach
- Item:
legendary_sword - Count: 1
- Save Unique Variable:
last_added_unique
- Show Text <- "You got {last_added_unique}!"
Flow 7: PASSIVE attach distribution
Acquire a passive skill through story progression:
- Show Text <- "You awakened a new power!"
- Add Item (this event content)
- Kind: Attach
- Item:
passive_fire_resist(type=PASSIVE) - Count: 1
- apply_to: Character
- Target: Character ID
- Character Key:
HERO
Auto-attach is attempted for PASSIVE attach too, and if not possible, it is distributed into the pool.
Flow 8: Tiered rewards (branch by conditions)
Change granted item by game progress:
- Conditional Branch (Formula
{quest_phase} >= 3) - Add Item (this event content) (rare equipment)
- Else
- Add Item (this event content) (standard equipment)
- End If
Typical Combinations
For the big picture, see Combination Pattern Collection.
Quest reward pattern
Achievement production + multiple item grants:
- Show Text (achievement message)
- Add Item (this event content) (reward 1)
- Add Item (this event content) (reward 2)
- Show Text (acquisition message)
Initial equipment distribution
Distribute equipment to the hero at game start:
- Add Item (this event content) (weapon)
- Add Item (this event content) (armor)
- Add Item (this event content) (basic item)
Conditional reward
Grant only when condition is met:
- Conditional Branch
- Add Item (this event content)
- End If
Combination of all-distribution + individual distribution
Common items + hero-only equipment:
- Add Item (this event content) (Party All, common potions)
- Add Item (this event content) (Character ID: HERO, dedicated equipment)
Related Event Contents
| Related event content | Purpose |
|---|---|
| Remove Item | Inverse operation of this event content |
| Show Shop Buy | Purchase through player operation (this event content is direct granting) |
| Conditional Branch | Conditional granting |
| Assign Variable | Prerequisite for saving granted unique to a variable |
| Change Parameter | Individual increase/decrease of GOLD, etc. (this event content is for items/equipment only) |
Related Pages
| Page | Related content |
|---|---|
| Item tab (editor) | Definition of item.json |
| Attach tab (editor) | Definition of attach.json |
| Character tab (editor) | Definition of character.json |
| Variable tab (editor) | Definition of Save Unique Variable |
| Event Content List | List of all event contents |
Notes
Count is an integer 1 or greater
Specifying 0 or less to Count is auto-corrected to 1. Decimals cannot be entered (integer SpinBox).
Save Unique Variable is only effective for single add
When Count > 1 or Target=Party All / Party Alive, nothing is saved to Save Unique Variable and only a NOTICE log is output. To save a unique, use Count=1 + Target=Selected Member / Character ID / Random 1.
Nonexistent item key is silent
When Item Key is included in neither item_data nor attach_data, a warning log (*** WARNING : Add Item unknown item_key) is output, nothing happens, and processing proceeds to the next event content. Check the log during debugging.
Attach + Character attach failure enters pool
Attachability is determined by attachable (supported classes) + req_param (required parameters). When not attachable, same as Show Shop Buy On Attach Fail=SkipToPool, it enters the pool (there is no Deny concept). PASSIVE attach can also be distributed into the pool similarly.
Party + Attach enters the pool
Granting Attach to Party results in owner=PARTY pool (unequipped) entry, and it can be attached to characters later from the equipment screen. Functions as a party-common attach pool.
Character resolution failure is silent
When apply_to=Character and the target character cannot be identified (invalid member_index, unknown character_key, 0 alive for Random, etc.), nothing happens and processing proceeds to the next event content (with a warning log).
Total count for multiple targets x Count
Specifying Count=3 with Party All for a 4-member party results in 3 per member, totaling 12 granted. When the total granted is large, be mindful of processing time.
Target=Party Random 1 targets alive members
The random selection candidates are only alive members (determined by Global.is_alive_character). Dead members are not candidates, and if 0 are alive, it skips silently.
Same-type unattach on attach
For Character + Attach + attachable, if there is an existing attach of the same type, it is automatically unattached and returned to the pool, and the new attach is attached. Friendly design that doesn't require worrying about duplicate equipment slots.
