Skip to content

Show Item Select ​

Category: Item/Attach

An event content that opens a dialog letting the player select one of the Items or Attaches they own. The uid (unique identifier) of the selected item is saved to a specified variable, so subsequent processing can target "the selected item" via other event contents.

Receive the selection result in a variable

The uid of the selected item is saved to a variable. In subsequent Change Parameter, Change Item Info, and Remove Item, you can use the "Unique Variable" option to operate directly on the selected item.

Handle cancel via empty-string check on the variable

If the player cancels, an empty string is saved to the variable. By checking whether the variable is empty with Conditional Branch (If) after selection, you can branch into "abort event on cancel" / "continue only on selection."

Property Structure ​

The target item set changes based on apply_to for this event content.

apply_toTarget
PartyChoose from Items / Attaches in the party-shared storage
CharacterChoose from Items / Attaches owned (or equipped) by the specified character

apply_to is decided by the two buttons shown when adding content, and cannot be switched from the UI afterwards.

Property List ​

Common properties ​

ItemInput formatDescription
TitleText inputTitle shown at the top of the dialog
Filter KindSelectAll / Item (only) / Attach (only)
Filter TypesCheckbox groupType keys to narrow down (multi-select, empty = all)
Save VariableSelectName of the variable where the selected item's uid is saved

Additional properties when Character ​

ItemInput formatDescription
TargetSelectOne of two: Selected Member / Character ID
Member IndexSelectWhen Target=Selected Member (1st to 4th member)
Character KeyText or SelectWhen Target=Character ID ({variable_name} allowed)

Property Details ​

Title ​

Title string shown at the top of the dialog. Enter a line clarifying what you want the player to select, such as "Select an item to offer" or "Choose an Attach to upgrade." Leaving it blank shows an empty title.

Target — only when Character ​

When apply_to is Character, specifies whose owned items are the targets.

ValueMeaning
Selected MemberSpecified by member index (1st to up to 4th)
Character IDSpecified by the character's unique key ({variable_name} allowed)

Member Index ​

When Target=Selected Member, specifies which party member (0-based internally; UI shows 1st through 4th).

Character Key ​

When Target=Character ID, specifies the key in character.json (character-unique ID).

  • Direct input or selection from the dropdown
  • {variable_name} syntax allows dynamic specification via a variable (e.g., {selected_hero} for cases where the protagonist changes with story progression)

Filter Kind ​

Selects the broad category of items to be candidates.

ValueMeaning
AllBoth Items and Attaches are candidates
ItemOnly consumables, etc. (is_attach=false)
AttachOnly equipment, passive skills, etc. (is_attach=true)

Filter Types ​

Narrows further by type (itemtype / attachtype).

  • Candidates switch based on Filter Kind (All: both type sets, Item: itemtype only, Attach: attachtype only)
  • Multi-select enabled (candidates match any of the checked types)
  • Leaving it empty (nothing checked) uses only Filter Kind, so all types are candidates
  • Automatically cleared when Filter Kind changes (because the corresponding type set changes)

If deleted types remain, they are shown as ghost keys on a red background; delete or correct them if unneeded.

Save Variable ​

Specifies the variable name to save the selected item's uid into.

  • Player selects → uid saved to the variable
  • Player cancels → empty string saved to the variable (or nothing is saved if the variable does not exist)

The saved uid can be used as the "Unique Variable" option in the following subsequent event contents:

Runtime Behavior ​

Processing flow ​

  1. Fetch apply_to and parameters: Reads apply_to, save_variable, title, filter_kind, filter_types
  2. Resolve member when Character: Gets the target character's uid (member_index or character_key)
    • On failure (party.member empty, index out of range, character.id missing, etc.) → Outputs a warning log and advances to the next event
  3. Stop other HUDs: Calls enable_process(false) on other HUDs to prevent duplicate input during the selection dialog
  4. Open the selection dialog: Displays via item_select_window.open_v2
  5. Player action:
    • Select an entry → Writes uid to the save variable, restores other HUDs, advances to the next event
    • Cancel → Writes an empty string to the save variable, same as above

Fallback when no target exists ​

In the following cases, a warning log is output and the event content does nothing, advancing to the next event content:

  • apply_to=Character, and the Selected Member index is out of range in party.member
  • apply_to=Character, and the Character ID character is not in the party
  • apply_to=Character, and party.member is empty (e.g., all members dead / withdrawn)

Coordination with other events ​

The saved uid can be referenced by setting Change Parameter Item Target Type to "By Unique Variable." A two-step "select → change/delete" structure is the typical use of this event content.

When 0 candidates match ​

If filtering reduces the candidates to 0, the dialog opens with an empty list. The player can only cancel to close the dialog, and the save variable receives an empty string.

Typical Flows ​

Flow 1: Have the player choose an item to offer (altar event) ​

An altar scene for offering something:

  1. Show Text: "What will you offer to the altar?"
  2. Show Item Select (this event content)
    • apply_to: Party
    • Title: "Choose an item to offer"
    • Filter Kind: All
    • Save Variable: offering_uid
  3. Conditional Branch (If): Execute the following when offering_uid != ""
    • Remove Item: Removes offering_uid
    • Show Text: "You offered the item to the altar..."
    • Change Parameter: GOLD +1000 (blessing)
  4. End If

Flow 2: Have the player choose an Attach to upgrade ​

Select the upgrade target at a blacksmith:

  1. Show Text: "Which equipment will you upgrade?"
  2. Show Item Select (this event content)
    • apply_to: Character
    • Target: Selected Member
    • Member Index: 1st
    • Title: "Choose an Attach to upgrade"
    • Filter Kind: Attach
    • Filter Types: weapon, armor
    • Save Variable: upgrade_target_uid
  3. Conditional Branch (If): Execute the following when upgrade_target_uid != ""
    • Change Parameter: +5 attack to the target uid (By Unique Variable)
    • Change Item Info: Append "+1" to the target's name

Flow 3: Appraisal NPC reveals the identity of possessions ​

Have an appraiser NPC identify an unappraised item:

  1. Show Text: "Which item will you appraise?"
  2. Show Item Select (this event content)
    • apply_to: Party
    • Title: "Choose an item to appraise"
    • Filter Kind: All
    • Filter Types: unidentified (type dedicated to unappraised items)
    • Save Variable: identify_uid
  3. Conditional Branch: Execute the following when identify_uid != ""
    • Change Parameter: GOLD -100 (appraisal fee)
    • Change Item Info: Update identify_uid's name / icon

Flow 4: Item discard system ​

Storage organization event:

  1. Show Item Select (this event content)
    • apply_to: Party
    • Title: "Choose an item to discard"
    • Filter Kind: All
    • Save Variable: discard_uid
  2. Conditional Branch (If): Execute the following when discard_uid != ""
    • Remove Item: Removes discard_uid
    • Show Text: "Discarded the item"
  3. End If

Flow 5: Unequip and hand over staging ​

Temporarily unequip and hand over to a party member:

  1. Show Item Select (this event content)
    • apply_to: Character
    • Target: Selected Member
    • Member Index: 1st
    • Filter Kind: Attach
    • Save Variable: handover_uid
  2. Conditional Branch: Execute the following when handover_uid != ""
    • (Custom logic using uid to equip another member)

Typical Combinations ​

  • Assign Variable: Clear the initial value before selection, branch on empty string after selection
  • Conditional Branch (If): Branch between "selected" and "canceled" via empty-string check on the result
  • Remove Item: Typical "select → remove" pattern (offer, discard, etc.)
  • Change Parameter: "Select → change value" pattern (upgrade, attribute update after appraisal)
  • Change Item Info: "Select → change appearance" pattern (rename after upgrade)
  • Show Text: Guide text prompting selection + result description
  • Assign Variable: Set initial value before selection and use the result after selection
  • Conditional Branch (If): Branch processing based on the selection result (empty string or uid)
  • Remove Item: Remove the item specified by the result uid
  • Change Parameter: Change the internal value of the item specified by the result uid
  • Change Item Info: Change the display info of the item specified by the result uid
  • Show Shop Buy / Show Shop Sell: Similar item-selection UIs but with shop functionality (gold consumption / gain)

Notes and Constraints ​

Candidate behavior ​

This event content lets the player pick one from existing possessions. It is not meant for new purchase or selection from master data, so note:

  • Candidates are restricted to Party / Character possessions
  • You cannot directly select from the Item / Attach masters (item.json / attach.json)
  • Attaches that are currently equipped are also included in the candidates (an equipment change dialog can be realized with Character + Attach filter)

Cancel handling is required ​

The player does not necessarily make a selection. On cancel, an empty string is written to the variable, so always insert a variable != "" conditional branch in subsequent events. Calling Change Parameter etc. with an empty uid simply skips with "no target," but you should make the branch explicit for process consistency.

Nothing is saved if the save variable is undefined ​

If the save variable is a key that does not exist in variable.json, the uid is not written and the write is silently skipped (nothing to save because the variable is missing). Always define the save variable in advance in Editor · Variable.

Changing Filter Kind automatically clears Filter Types ​

Switching Filter Kind (All / Item / Attach) automatically clears the Filter Types checks (because the corresponding type set changes). We recommend determining Filter Kind first, then choosing types.

Input of other HUDs is stopped ​

While the dialog is displayed, input of other HUDs (text, images, buttons, etc.) is stopped. This prevents other operations while selecting. Closing the dialog restores them automatically.