Attribute Set
Summary: Inventory Attributes
- If you want to use the Inventory attributes, add the
NinjaInventoryAttributeSet
to your character. - You should initialize the
WeightLimit
attribute and optionally theWealth
. - The other attributes,
EquipmentLevel
,AverageEquipmentLevel
andEncumbrance
, are managed via Gameplay Effects granted via Inventory Items.
The Inventory Framework includes its own Attribute Set, NinjaInventoryAttributeSet
, containing data pertinent
to the Inventory Manager and items stored in it. You only need to add this Attribute Set to your avatar if you
plan to use these aspects in your game.
Attributes
There are few important details worth mentioning about the inventory attributes, since some of them should not be edited directly, unless you have confidence on how to do that. Let's check a brief description of them.
Attribute | Description |
---|---|
Wealth |
Current amount of wealth. This can represent any type of currency such as "Money", "Credits", "Souls", "Points", etc. |
EquipmentLevel |
Aggregation of the level from all equipment pieces in use. Maintained automatically. |
AverageEquipmentLevel |
Average Equipment Level. Maintained automatically. |
Encumbrance |
Weight currently carried by the avatar, considering stacks. Maintained automatically. |
WeightLimit |
Maximum weight capacity for this inventory. |
Base Data
You can use this Json to facilitate the creation the Data Table used to initialize the Inventory Attributes. Please note that only attributes that are not maintained automatically were included.
The Data Table Row type used to create Attribute Set Data for initialization is provided by the Gameplay Ability System
You can create your data table using the FAttributeMetaData
structure.
[
{
"Name": "NinjaInventoryAttributeSet.Wealth",
"BaseValue": 0,
"MinValue": 0,
"MaxValue": 1,
"DerivedAttributeInfo": "",
"bCanStack": false
},
{
"Name": "NinjaInventoryAttributeSet.WeightLimit",
"BaseValue": 0,
"MinValue": 0,
"MaxValue": 1,
"DerivedAttributeInfo": "",
"bCanStack": false
},
]