Skip to content

rq.UnequipCtx ​

since 2.57.0

What rq.item.on_unequip gets.

Fields ​

NameTypeDescription
iiintegerThe item instance that came off. With vanished, the game has already deleted it; after a Morurun absorbs a Special item, it deletes it right after the callbacks.
nointegerThe item number (I固有番号), read before it came off.
id (optional)stringA mod item's text id, as rq.item.define named it; nil for a game item.
iicintegerThe character's roster slot.
charaintegerThe character number (C番号).
slot"special"|"weapon"|"armor"|"item"The slot.
kindintegerThe slot as the game numbers it: 21 special, 1 weapon, 11 armor, 17 item.
equipbooleantrue when it came off through the game's equip call (キャラ_装備設定: REMOVE, a drag, a swap, rq.item.equip, and rq.item.remove, sell and donate on a worn item); false when the game took it off itself (a character removed, a Morurun absorbing it, a quest's event).
byintegerThe instance put on in its place by the same equip call, 0 for none.
vanishedbooleantrue when the game deleted it as it came off: an item that vanishes when taken off (Rocky Chunk, vanishes in rq.item.define), through the equip call.

Used by ​

rq.item.on_unequip