Skip to main content

Item Creation

In order to place items into an inventory, they must first be created in the database. Items can be given many actions and/or abilities through the use of plugins.

Prep Work#

Before creating items you may want to create

Creating from the Database#

"New Item from Database"

Creating from a Model#

"New Item from Model"

  • Select your model in the Project tab
  • Right-click and select GDTK > Make GDTK Inventory Item
  • Select Create Loot Prefab if you want to generate a prefab for picking up and/or dropping your item
  • Select Create Equip Prefab if your item can be equipped
  • Select Create New DB Entry if your creating a brand new item, otherwise select the item from the "Use For" dropdown

Item Setup#

Regardless of which method you choose, you'll have the same options for setting up your items details.

The Info section sets display data for your item such as Title, Abbreviation (Abbr), Description, Sprite, etc.
The Item Category field sets which category (if any) the item belongs to.
Count Per Stack sets how many of this item can be placed into a single slot as a stack.
Max Stacks sets the maximum number of stacks of this item allowed in inventory at one time.
If you wish to allow the item to be bought for premium currency select the Premium Item option.
Premium Items have as Currency Id and Premium Cost.

Item Stats set specific stats about your item and always have at least 3 stats.
Value sets the cost of the item in non-premium currency.
Weight sets the weight of the item.
Rarity sets the rarity of the item.

Plugins#

Item plug-ins allow you to add different functionality to your items. The built-in plugins are

NameDescription
(Ability) AttachAllows an item to be attached to another item that has the (Ability) Socket plugin.
(Ability) ConditionAllows an item to have a condition and be repaired/destroyed.
(Ability) ContainerAllows the item to store other items.
(Ability) Drop ItemAllows the item to be dropped and spawn a pickup object.
(Ability) Equip ItemAllows the item to be equipped to an Equip Slot.
(Ability) Rename ItemAllows the player to supply a custom name.
(Ability) Scrap ItemAllows the item to be removed from inventory and replaced with its 'scrap' components.
(Ability) SocketAllows items with the (Ability) Attach plugin to be attached to this item.
Add Stat ModifiersAdds Stat Modifiers when an item is used or equipped. (Requires GDTK: Stats)
Equip Event Action SequenceAllows Action Sequences to be run in response to equip events.
Storage SizeSets a specific size the item takes when using the Storage Area Inventory plug-in.