Skip to content

rq.TryEquipCtx ​

since 2.58.0

What rq.item.on_try_equip gets.

Fields ​

NameTypeDescription
iiintegerThe item instance the player puts on.
nointegerThe item number (I固有番号).
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.
oldintegerThe instance the slot holds now, 0 for none.
from"vault"|"storage"|"shop"|"status"Where the player does it: a drag from the vault, from the storage screen or from the shop's rack onto a character's row, or a pick in the status page's item list.

Used by ​

rq.item.on_try_equip