This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Copy from line 5 all the way down to the bottom and paste into the BG3 debug console to print a json file | |
-- of all the current player's inventory items. ***REQUIRES SCRIPT EXTENDER*** | |
-- (The comment markers are necessary to make the script "multi-line" for use in the console.) | |
--[[ | |
local inventoryItems = {} | |
local player = _C() | |
local playerInventories = player.InventoryOwner.Inventories | |
for ka in pairs(playerInventories) do | |
local playerInventoryItems = playerInventories[ka].InventoryContainer.Items |