Introduction
This component provides inventory for in world containers
#
FieldsName | Description |
---|---|
Max Items | Maximum number of items the container can hold (0 = unlimited) |
Max Weight | Maximum weight the container can hold (0 = unlimited) |
Plugins | List of plugins |
On Shutdown | Event raised when system shuts down |
On Initialized | Event raised when system is initialized |
Ignore Limits | Ignore item & category limits |
Display Name | Name of the creature or object attached |
Color | Color associated with this object |
Broadcast Messages | Broadcast message to 'GDTK_Inventory' channel |
On Funds Changed | Event raised when funds are added or removed |
On Item Added | Event raised when an item is added to inventory |
On Item Removed | Event raised when an item is removed from inventory |
On Inventory Changed | Event raised when any inventory change occurs |
On Item Count Changed | Event raised whenever item count changes |
On Weight Changed | Event raised when total weight changes |
On Display Name Changed | Event raised when Display Name changes |
On Color Changed | Event raised when Color changes |
#
PropertiesName | Description |
---|---|
busy | True if the system is currently loading or saving data. |
initialized | Gets if the object has been initialized |
totalWeight | Gets the total weight of all items and funds |
actor | Gets reference to the associated actor |
color | Color associated with this object |
displayName | Name of the creature or object attached |
instanceId | Get the id of this instance of the object |
itemContainer | Gets the item container |
items | Gets a list of all items in the container |
statIds | List of all Stat Ids |
totalItemWeight | Gets the total weight of all items in the container |
#
MethodsName | Description |
---|---|
DataLoad | Loads data from a specified file |
DataLoadJSONFile | Loads JSON data from a specified file |
DataSave | Saves data to a specified file |
DataSaveJSON | Saves JSON data to a specified file |
GetItemByInstanceId | Get an item by its instance id |
GetItemCategory | Get an Item Category |
Initialize | Initialize the object |
ItemTotalCount | Get the total count of an item in inventory |
Shutdown | Shutdown object and remove all subscriptions |
AddItem | Add an item to the container |
AddItems | Add a list of items item to the container |
DataLoadJSON | Loads JSON data from a JSON string |
GetStatValue | Get the value of a stat |
RefreshActor | Attempt to find actor for component |
ReplaceItem | Replace an existing item with a new one |
RunPluginCommand | Run a plugin on an item |