Skip to content

rq.ItemDef ​

An item template for rq.item.define.

Fields ​

NameTypeDescription
idstringThe text id, such as "mymod:binoculars". It becomes a stable number from 1000 up.
namestringThe name.
type (optional)"weapon"|"armor"|"item"|"special"|"quest"|"none"The slot: weapon (1), armor (11), item (17), special (21), quest (22), none (23, cannot be equipped). Default "item".
subtype (optional)integerThe detailed kind (種類詳細, rq.ids.item_kind); a familiar is 20.
rank (optional)integerThe kind rank (種類ランク). Default 10.
icon (optional)integer|stringA game CG number or a file in the mod's folder (shown at 100×100, proportions kept). Default: a grey question mark (since 0.15.0).
price (optional)integerThe price.
level (optional)integerThe level needed to equip it (装備LV).
rarity (optional)integerThe rarity (レアランク).
classes (optional)integer[]The classes that may equip it, 1 to 8. Default: all.
characters (optional)integer[]The characters that may equip it (装備キャラ).
effects (optional)rq.ItemEffect []Up to five effects.
info (optional)stringThe description; $ is a line break. It stays when the game builds an item's description again from its kind and effects (its appraisal after a quest, gear that grows, the move to the third world); since 2.65.1, an appraised item of a mod had " |C| : " instead.
locked (optional)booleanCannot be taken off (外せません).
vanishes (optional)booleanVanishes (消滅します).
keep (optional)booleanThe player cannot get rid of it: the vault's DISCARD, SELL and DONATE refuse it, as the game does for Chaos the Darksword (アイテム_破棄可能 says false). rq.item.remove still removes it. Default false. Since 2.50.0.
on_create (optional)fun(ii: integer)Runs when an instance is created.

Used by ​

rq.item.define