Methods
Item:canEquip(character: any, slot_type: any, slot_index: any)
Arguments:
character: any | |
slot_type: any | |
slot_index: any |
Returns:
1: boolean|unknown |
Item:getReaction(user_id: any, reactor_id: any)
Arguments:
user_id: any | |
reactor_id: any |
Returns:
1: unknown|nil |
Item:onCheck()
Light world / Dark world stuff
Item:onEquip(character: any, replacement: any)
Arguments:
character: any | |
replacement: any |
Returns:
1: boolean |
Item:onUnequip(character: any, replacement: any)
Arguments:
character: any | |
replacement: any |
Returns:
1: boolean |
Fields
Undocumented
Item.bonus_color: unknown
The color of the bonus icon, always orange in DELTARUNE
Item.bonus_name: nil
Bonus name and icon (displayed in equip menu)
Item.bonuses: table
Equip bonuses (for weapons and armor)
Item.buy_price: nil
Shop buy price (optional)
Item.can_equip: table
Equippable characters (default true for armors, false for weapons)
Item.can_sell: boolean
Whether the item can be sold
Item.check: string
Light world check text
Item.dark_item: nil
Values saved for light/dark world item conversion
Item.description: string
Menu description
Item.effect: string
Battle description
Item.flags: table
Item flags (for saving values to the save file)
Item.instant: boolean
Will this item be instantly consumed in battles?
Item.light: boolean
Whether this item is for the light world
Item.price: integer
Default shop price (sell price is halved)
Item.reactions: table
Character reactions (key = party member id)
Item.result_item: nil
Item this item will get turned into when consumed
Item.sell_price: nil
Shop sell price (optional, default half of buy price)
Item.target: string
Consumable target mode (ally, party, enemy, enemies, or none)
Item.usable_in: string
Where this item can be used (world, battle, all, or none)
Item.use_name: nil
Name displayed when used in battle (optional)