Remove Item
Category: Character/Party
Removes items or attachments from the event. Functions as the counterpart to Add Item, but has more flexible 3 target identification methods: by Item ID, by unique variable, and by Equipment Slot.
3 target identification methods
This event content can use 3 methods depending on the purpose:
| Method | Use | Removal Range |
|---|---|---|
| By Item ID | "Remove 3 potions" | Multiple removable (count specified) |
| By Unique Variable | "Remove the purchased unique" | A specific single item |
| By Equipment Slot | "Remove the hero's first weapon" | A single equipped item |
No error when target is absent
Even if there is no removal target (trying to remove items not possessed, undefined variable, empty equipment slot, etc.), no error occurs. It is designed to proceed silently to the next event content without outputting warning logs ("silent exit" design).
Property List
The UI of this event content dynamically switches based on the selected "target identification method".
Common
| Item | Input Format | Description |
|---|---|---|
| Item Target Type | Select | By Unique Variable / By Item ID / By Equipment Slot |
By Item ID
| Item | Input Format | Description |
|---|---|---|
| Kind | Select | Item / Attach |
| Item | Select | Select from item.json or attach.json |
| Count | Numeric (1-9999) | Number to remove |
| Owner | Select | 6 options (see below) |
| Member Index | Select | When Owner=Selected Member |
| Character Key | Text or select | When Owner=Character ID, {var} variable reference supported |
By Unique Variable
| Item | Input Format | Description |
|---|---|---|
| Item Unique Variable | Select | Variable that holds the unique to remove |
By Equipment Slot
| Item | Input Format | Description |
|---|---|---|
| Attach Char Key | Text or select | Character being equipped |
| Attach Type | Select | Key of attachtype |
| Attach Number | Numeric (0-based) | Equipment slot number within the same type |
Property Details
Item Target Type
Specifies how to identify the removal target from 3 choices.
| Option | Behavior | Removal Count |
|---|---|---|
| By Item ID | Specify by key in item.json/attach.json | Multiple via Count |
| By Unique Variable | Reference the unique stored in a variable | Always 1 |
| By Equipment Slot | Specify a specific character's equipment slot | Always 1 |
Usage guidelines
- Want to remove multiple of the same item together -> By Item ID + Count
- Precisely remove a specific single item, such as a purchase unique from Show Shop Buy -> By Unique Variable
- Target a specific equipped weapon or armor for removal -> By Equipment Slot
Kind (By Item ID only)
Specifies what to remove from 2 choices (for UI display; actual behavior is auto-determined from Item Key).
| Option | Behavior |
|---|---|
| Item | Item in item.json |
| Attach | Item in attach.json |
Item (By Item ID only)
Select the key of the item to remove.
- Kind=Item: Key from item.json
- Kind=Attach: Key from attach.json
- Real-time inter-tab reference update supported (2026-09-09)
Count (By Item ID only)
Specifies the number to remove.
- Range: 1-9999
- Integer only (SpinBox)
- Values <=0 are automatically corrected to 1
- If the possession count is less than Count, only the owned amount is removed
Owner (By Item ID only)
Specifies the deletion source storage from 6 choices.
| Option | Behavior |
|---|---|
| Party | Party shared storage (party.item) |
| Selected Member | Individual storage of the character specified by member_index |
| Party All | Individual storage of all members (regardless of life/death) |
| Party Alive | Individual storage of all alive members |
| Party Random 1 | A random 1 from alive members |
| Character ID | Character identified by character_key |
Difference from Add Item
Add Item was a two-tier structure of apply_to (Party/Character) + target (5 options), whereas this event content is a 6-option owner_type that includes Party.
Behavior with multiple targets x Count
Specifying Owner=Party All with 4-person party and Count=3 removes 3 items from each member, totaling 12 removed (if they possess them).
Member Index (when Owner=Selected Member)
Select the 0-based index within the party (1st to nth person).
Character Key (when Owner=Character ID)
Directly specify the character.json key (character.id). {var_name} variable reference supported.
Item Unique Variable (By Unique Variable)
Specifies the variable storing the unique identifier to remove.
- References the unique saved via Save Unique Variable in Add Item or Show Shop Buy
- Undefined or empty variable -> proceeds to next event content without doing anything
Combined with Add Item/Shop Buy
Save unique to clear_item_1 variable -> remove later with this event content; this flow allows precise removal of "that specific single item".
Attach Char Key (By Equipment Slot)
Specifies the character being equipped by character.id ({var} variable reference supported).
Attach Type (By Equipment Slot)
Select a key from attachtype (e.g., weapon, shield, armor, PASSIVE, etc.).
Attach Number (By Equipment Slot)
Specifies which numbered equipment slot within the same attachtype in 0-based form.
- 0: 1st equipment slot
- 1: 2nd (when 2 of the same type are equipped)
- Out-of-range values proceed to next event content without doing anything
Using the equipment slot number
When multiple equipments of the same type can be held (2 rings, 3 accessories, etc.), you can target a specific slot for removal.
Runtime Behavior
When this event content is executed, the following processing occurs:
1. Target collection based on identification method
By Unique Variable
- Get uid from
item_unique_variablevariable - Undefined or empty variable -> silent next_line
- Add to deletion list if the corresponding uid exists in storage
By Item ID
- Get target list based on Owner (6 options)
- Add Count items matching item_key from each target list to the deletion list
- If possession count is less than Count, only the owned amount
By Equipment Slot
- Resolve character_unique from character_key
- Identify the equipment slot with
attached_item(unique, attachtype, number) - Empty or invalid equipment slot -> silent next_line
- Add the uid of the equipment slot to the deletion list
2. Actual removal processing
For each uid in the deletion list:
_erase_from_owner_lists(uid): Removes uid from all owner lists (party.item / all character data.item)Global.delete_item_data_in_storage(uid):- Auto-unattaches from all member equipment (data.attach) as well
- Removes the corresponding entry from storage
Equipped attachments are reliably unattached
When removing an equipped attachment with this event content, it is automatically unattached internally before storage is removed. There is no inconsistency due to forgetting to unequip.
3. Proceeds to next event content
After all processing, proceeds to the next event content.
Typical Usage Flows
Flow 1: Item consumption for quest reward
Consume 5 potions:
- Conditional Branch (Formula
PARTY.POTION_COUNT >= 5) <- Possession count check - Remove Item (this event content)
- Item Target Type: By Item ID
- Kind: Item
- Item:
potion - Count: 5
- Owner: Party
- Show Text <- "Consumed 5 potions"
- Else
- Show Text <- "Not enough potions"
- End If
Flow 2: Remove purchased unique
Identify and remove unique purchased via Show Shop Buy:
- Show Shop Buy (Save purchase unique variable:
last_bought) - (Taken back by some event)
- Remove Item (this event content)
- Item Target Type: By Unique Variable
- Item Unique Variable:
last_bought
Flow 3: Equipment confiscation (Equipment Slot)
Strip the hero's weapon:
- Show Text <- "Your weapon has been taken!"
- Remove Item (this event content)
- Item Target Type: By Equipment Slot
- Attach Char Key:
HERO - Attach Type:
weapon - Attach Number: 0
Flow 4: Collect from entire party
Collect potions from the entire party:
- Remove Item (this event content)
- Item Target Type: By Item ID
- Kind: Item
- Item:
potion - Count: 999 <- All possessed
- Owner: Party All
Flow 5: Equipment reset on game clear
Remove all of hero's equipment (individually by slot):
- Remove Item (this event content) (By Equipment Slot, weapon, 0)
- Remove Item (this event content) (By Equipment Slot, shield, 0)
- Remove Item (this event content) (By Equipment Slot, armor, 0)
- Remove Item (this event content) (By Equipment Slot, accessory, 0)
- Remove Item (this event content) (By Equipment Slot, accessory, 1) <- 2nd slot
Flow 6: Random penalty
Randomly lose 1 person's item after battle defeat:
- Remove Item (this event content)
- Item Target Type: By Item ID
- Kind: Item
- Item:
potion - Count: 1
- Owner: Party Random 1
Flow 7: Collect only from alive members
Collect key item from survivors:
- Remove Item (this event content)
- Owner: Party Alive
Flow 8: Conditional equipment stripping
Take equipment from a character stored in a variable:
- Assign Variable (save character.id to
target_char) - Remove Item (this event content)
- Item Target Type: By Equipment Slot
- Attach Char Key:
{target_char}<- Variable reference - Attach Type:
weapon - Attach Number: 0
Typical Combinations
For the overall picture, see Combination Patterns.
Item consumption pattern
Condition check + removal + result display:
- Conditional Branch (possession count check)
- Remove Item (this event content)
- Show Text (consumption report)
- End If
Buy + remove round trip
Later confiscate items purchased via Shop Buy:
- Show Shop Buy (save purchase unique)
- (event progression)
- Remove Item (this event content) (By Unique Variable)
Item conversion with Add + Remove
Remove old equipment + grant new equipment:
- Remove Item (this event content) (By Equipment Slot)
- Add Item (new equipment, Auto Attach)
Collect item from everyone
Collect specific item from the entire party:
- Remove Item (this event content) (Owner: Party All)
Related Event Contents
| Related Event Content | Use |
|---|---|
| Add Item | Counterpart to this event content (granting) |
| Show Shop Buy | Save purchase unique for later removal |
| Assign Variable | Store removal target unique or character.id into a variable |
| Conditional Branch | Possession count check and removal success/failure determination |
| Change Parameter | Individual increase/decrease of GOLD etc. |
Related Pages
| Page | Related Content |
|---|---|
| Item Tab (Editor) | Definition of item.json |
| Attach Tab (Editor) | Definition of attach.json |
| Type Tab (Editor) | Definition of attachtype |
| Character Tab (Editor) | Definition of character.json |
| Variable Tab (Editor) | Definition of unique variables |
| Event Content List | List of all event contents |
Notes
No target is silent
This event content is designed on the "silently exit if there is no target" policy. Even without a removal target (items not possessed, undefined variable, empty equipment slot, etc.), it proceeds silently to the next event content without warning logs. Keep this behavior in mind when debugging.
Count is valid only for By Item ID
For By Unique Variable / By Equipment Slot, it is always fixed to 1. The Count property is displayed only when By Item ID is selected.
6 Owner options
The Owner for By Item ID has 6 options (including Party). This adds "Party" to Add Item's 5 target options (Party All / Alive / Random 1 / Selected Member / Character ID).
Equipped attachments are auto-unattached
When removing equipped attachments with this event content, they are automatically unattached from all members' equipment slots internally before storage is removed. There is no inconsistency due to failure to unequip.
Equipment slot number is 0-based
The equipment slot number for Equipment Slot starts from 0. Specify 0 to remove the 1st weapon, 1 for the 2nd.
Only possessed amount is removed
Even if you specify a large value for Count, only the owned amount is removed if possession is insufficient (not an error). To remove "all possessed", specifying a large value like 999 for Count is practical.
Total removal count with multiple targets x Count
Owner=Party All (4 members) + Count=3 -> 3 removed from each member, totaling 12 (if possessed). When the total removal count is large, be mindful of processing time.
Random 1 targets alive members
The random selection candidates are alive members only (determined by Global.is_alive_character). If 0 are alive, nothing is removed and it proceeds to the next event content.
{var} variable expansion
Character Key / Attach Char Key resolves the value of a variable as character.id in {var_name} form. Dynamic character specification is possible.
Cross-storage search
When removing via By Unique Variable, if the unique exists in storage, the corresponding uid is removed from all owner lists (party.item / all character data.item / all character data.attach). It works correctly even without specifying owner_type.
Real-time inter-tab reference update (2026-09-09)
The 5 OptionButtons (item_key / character_key / item_unique_variable / item_attach_character_key / item_attach_type) are updated whenever changes occur in other tabs. Deleted keys are displayed with an Error icon.
