Skip to content

Instantly share code, notes, and snippets.

View starringer's full-sized avatar

Star Ringer starringer

View GitHub Profile
@starringer
starringer / bg3_console_printinventory.txt
Last active October 29, 2024 23:19
Baldur's Gate 3 Script Extender Console - Print Inventory ***REQUIRES SCRIPT EXTENDER***
-- 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