Ninja Bear Studio Plugins Help

Create Item Definitions using Item Fragments

This how-to will show you how to create your first few Inventory Items.

Create a Sword definition

  1. In your Content Browser, navigate to your item data folder. If you are creating a new folder, it should match the configuration in your Asset Manager.

  2. Right-click in any empty area, select the Inventory category and then Item Definition.

  3. Name your new container asset Weapon_Sword and open it.

  4. In the Gameplay Tags property, add the Inventory.Item.Weapon.Sword Gameplay Tag, to identify this item.

  5. Add the User Interface Fragment to configure how this item is presented in the user interface. Set appropriate values to it.

  6. Add the Stack Fragment, set the Stack Limit to 1 so this item cannot be stacked, and the Maximum Limit to 10, so we can allow a maximum of 10 swords in the inventory.

  7. Add the Container Fragment and configure your Preferred Container Query to prioritize equipment containers.

    Sword Preferred Container Query
  8. When you are done, your Sword Item should look like this (except maybe for the User Interface details).

    Sword Item Data Asset

Create a Shield definition

  1. In your Content Browser, navigate to your item data folder. If you are creating a new folder, it should match the configuration in your Asset Manager.

  2. Right-click in any empty area, select the Inventory category and then Item Definition.

  3. Name your new container asset Weapon_Shield and open it.

  4. In the Gameplay Tags property, add the Inventory.Item.Weapon.Shield Gameplay Tag, to identify this item.

  5. Add the User Interface Fragment, and configure it.

  6. Add the Stack Fragment, set the Stack Limit to 1 so this item cannot be stacked, and the Maximum Limit to 10, so we can allow a maximum of 10 shields in the inventory.

  7. Add the Container Fragment and configure your Preferred Container Query to prioritize the off-hand container.

    Shield Preferred Container Query
  8. When you are done, your Shield Item should look like this (except maybe for the User Interface details).

    Shield Item Data Asset

Create an Iron Bar definition

  1. In your Content Browser, navigate to your item data folder. If you are creating a new folder, it should match the configuration in your Asset Manager.

  2. Right-click in any empty area, select the Inventory category and then Item Definition.

  3. Name your new container asset Resource_IronBar and open it.

  4. In the Gameplay Tags property, add the Inventory.Item.Crafting.Iron Gameplay Tag, to identify this item.

  5. Add the User Interface Fragment and configure it.

  6. Add the Stack Fragment. Set a Stack Limit of 20, and a Maximum Limit of 100. Set it to Automatically Merge New Items.

  7. Add the Container Fragment and configure your Preferred Container Query to prioritize the backpack container.

    Iron Bar Preferred Container Query
  8. When you are done, your Iron Bar Item should look like this (except maybe for the User Interface details).

    Iron Bar Item Data Asset
Last modified: 11 August 2024