Skip to content

profileInventory

Ben edited this page Aug 16, 2022 · 1 revision

The TRP3: Extended inventory system

Fields

  • id: Unique ID of the inventory, presumably used when a character has multiple inventories
  • totalWeight: Total weight of all items in inventory(?)
  • content: A list of items (explained below) contained inside the inventory
  • totalValue: Value of all items in inventory

Inventory Item

Each item has a number of attributes, depending on the type of item

  • slot: The slot number the item is assigned to on your character
  • id: Unique ID of the item
  • totalWeight: Weight of the item
  • content: Only applicable if the item is a bag, same as above.
  • totalValue: Value of the item, 0 means priceless
  • pos: Where on the character frame the item is located, if it is a wearable item

Accessing Inventory

path: "inventory"

local inventory = TRP3_API.profile.getData("inventory")
Clone this wiki locally