Skip to content

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:

MethodUseRemoval 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 ​

ItemInput FormatDescription
Item Target TypeSelectBy Unique Variable / By Item ID / By Equipment Slot

By Item ID ​

ItemInput FormatDescription
KindSelectItem / Attach
ItemSelectSelect from item.json or attach.json
CountNumeric (1-9999)Number to remove
OwnerSelect6 options (see below)
Member IndexSelectWhen Owner=Selected Member
Character KeyText or selectWhen Owner=Character ID, {var} variable reference supported

By Unique Variable ​

ItemInput FormatDescription
Item Unique VariableSelectVariable that holds the unique to remove

By Equipment Slot ​

ItemInput FormatDescription
Attach Char KeyText or selectCharacter being equipped
Attach TypeSelectKey of attachtype
Attach NumberNumeric (0-based)Equipment slot number within the same type

Property Details ​

Item Target Type ​

Specifies how to identify the removal target from 3 choices.

OptionBehaviorRemoval Count
By Item IDSpecify by key in item.json/attach.jsonMultiple via Count
By Unique VariableReference the unique stored in a variableAlways 1
By Equipment SlotSpecify a specific character's equipment slotAlways 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).

OptionBehavior
ItemItem in item.json
AttachItem 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.

OptionBehavior
PartyParty shared storage (party.item)
Selected MemberIndividual storage of the character specified by member_index
Party AllIndividual storage of all members (regardless of life/death)
Party AliveIndividual storage of all alive members
Party Random 1A random 1 from alive members
Character IDCharacter 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_variable variable
  • 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:

  1. _erase_from_owner_lists(uid): Removes uid from all owner lists (party.item / all character data.item)
  2. 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:

  1. Conditional Branch (Formula PARTY.POTION_COUNT >= 5) <- Possession count check
  2. Remove Item (this event content)
    • Item Target Type: By Item ID
    • Kind: Item
    • Item: potion
    • Count: 5
    • Owner: Party
  3. Show Text <- "Consumed 5 potions"
  4. Else
  5. Show Text <- "Not enough potions"
  6. End If

Flow 2: Remove purchased unique ​

Identify and remove unique purchased via Show Shop Buy:

  1. Show Shop Buy (Save purchase unique variable: last_bought)
  2. (Taken back by some event)
  3. 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:

  1. Show Text <- "Your weapon has been taken!"
  2. 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:

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

  1. Remove Item (this event content) (By Equipment Slot, weapon, 0)
  2. Remove Item (this event content) (By Equipment Slot, shield, 0)
  3. Remove Item (this event content) (By Equipment Slot, armor, 0)
  4. Remove Item (this event content) (By Equipment Slot, accessory, 0)
  5. 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:

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

  1. Remove Item (this event content)
    • Owner: Party Alive

Flow 8: Conditional equipment stripping ​

Take equipment from a character stored in a variable:

  1. Assign Variable (save character.id to target_char)
  2. 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:

  1. Conditional Branch (possession count check)
  2. Remove Item (this event content)
  3. Show Text (consumption report)
  4. End If

Buy + remove round trip ​

Later confiscate items purchased via Shop Buy:

  1. Show Shop Buy (save purchase unique)
  2. (event progression)
  3. Remove Item (this event content) (By Unique Variable)

Item conversion with Add + Remove ​

Remove old equipment + grant new equipment:

  1. Remove Item (this event content) (By Equipment Slot)
  2. Add Item (new equipment, Auto Attach)

Collect item from everyone ​

Collect specific item from the entire party:

  1. Remove Item (this event content) (Owner: Party All)
Related Event ContentUse
Add ItemCounterpart to this event content (granting)
Show Shop BuySave purchase unique for later removal
Assign VariableStore removal target unique or character.id into a variable
Conditional BranchPossession count check and removal success/failure determination
Change ParameterIndividual increase/decrease of GOLD etc.
PageRelated 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 ListList 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.

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.