Skip to content

rq.CanEquipCtx ​

since 2.46.0

What rq.item.on_can_equip gets for one item and one character.

Fields ​

NameTypeDescription
iiintegerThe item instance.
nointegerThe item number (I固有番号).
iicintegerThe character's roster slot.
charaintegerThe character number (C番号).
allowedbooleanThe answer so far: the game's, then what the callback before returned.
reason (optional)"level"|"chara"|"class"The first reason the game says no, in its order; nil when it says yes. "level": the character's level is below the item's. "chara": the item names the characters who may wear it, and not this one. "class": it names none, and the character's class may not wear it.
reasons("level"|"chara"|"class")[]Every reason the game says no, in its order: "level" first, then "chara" or "class". Empty when it says yes.
levelintegerThe level the item needs (I装備LV); 0 for none.
chara_levelintegerThe character's level.

Used by ​

rq.item.on_can_equip