An addon for versatile inventory systems.
Scenes you may need are located inside addons/wyvernbox_prefabs
. Just drag and drop!
The example/wyvernbox
folder contains some items and equipment stats to start. Be sure to check the example scenes, too!
- One of the
InventoryView
objects, - An
InventoryTooltip
to inspect items (maybe with a fewTooltipProperty
scripts attached), - A
GrabbedItemStackView
to move things around with a mouse, - And a couple
ItemType
resources to define item types.
InventoryView
s provide user interaction with anInventory
of the matching type;- an Inventory holds
ItemStack
s; - an ItemStack is created from an
ItemType
. - the ItemType stores default data, and is used in crafting recipes and item generators.
-
A variety of inventories, such as:
- Basic
- Grid (*items take up a rectangle of tiles)
- Restricted (can only put items with certain flags, like Equipment or Ammo)
- Currency (custom max stack size, but only specified items)
-
Crafting and shops:
- Vending is a built-in feature of inventories, but for more configuration, use the
InventoryVendor
class! - Crafting recipes are defined through an
ItemConversion
- can give you pre-determined results, randomized counts, or a fresh new from anItemGenerator
! - Use
ItemPattern
s to match one of several items in filters or recipes, like different fuel types with different efficiency!
- Vending is a built-in feature of inventories, but for more configuration, use the
-
Filter ground and inventory items via the versatile
ItemPattern
classes! Use them to control inventory insertion and crafting inputs. -
Tooltips extensible with the
TooltipProperty
class! Just slam a bunch of scripts onto it.
Made by Don Tnowe in 2022.
Copying and Modification is allowed in accordance to the MIT license, unless otherwise specified. License text is included.
Font in example is Abaddon, Licensed under Creative Commons Attribution 3.0.