UnequipItem
Return an equipped item to the member's item list (zero time).
Full documentation: UnequipItem. Wire type: unequip_item.
Legal session modes: exploring, town
JSON Schema
{
"description": "Return an equipped item to the member's item list (zero time).\n\nLegal in town and while exploring. A revealed cursed item stays put until\n*remove curse*.\n\nModes:\n `town`, `exploring`\n\nRejections:\n - `session.command.wrong_mode` - an encounter or battle is underway, or the\n game is over.\n - `session.command.unknown_member` - `character_id` names no party member.\n - `session.command.member_incapacitated` - the member cannot act.\n - `exploration.item.not_equipped` - nothing by that id is equipped.\n - `items.curse.stuck` - a revealed cursed item cannot be removed.\n\nEvents:\n Usually none. A worn magic item's effects release\n (`EffectReleasedEvent`).",
"properties": {
"command_type": {
"const": "unequip_item",
"default": "unequip_item",
"title": "Command Type",
"type": "string",
"description": "The wire discriminator. Each subclass fixes it to its own snake_case literal, like\n`\"move_party\"` or `\"open_door\"`, so you never set it yourself: constructing the subclass\ndoes. It's what `parse_command` and the\n`AnyCommand` union read to rebuild the right class\nfrom a serialized mapping, and it stays the same across releases."
},
"source": {
"anyOf": [
{
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Source",
"description": "An annotation naming the authored object (a trigger or quest id) or the game\nsystem on whose behalf the command was issued. Execution never reads it: a stamped\ncommand does exactly what the same command unstamped does. It is logged and replayed\nwith the command, so the log alone answers \"why did this happen\". Absent is `None`,\nand the empty string is not a value."
},
"character_id": {
"title": "Character Id",
"type": "string",
"description": "The member doing the unequipping, by\n`MemberView.id`."
},
"item_id": {
"title": "Item Id",
"type": "string",
"description": "What to take off or put away, named the same way as in\n`EquipItem.item_id` and currently in a slot\nrather than in the pack. A cursed item whose curse has been revealed stays where it is\nuntil a *remove curse*."
}
},
"required": [
"character_id",
"item_id"
],
"title": "UnequipItem",
"type": "object"
}