PDA

View Full Version : isItemIdentifiable function



Xarxus
February 18th, 2023, 14:09
I found this function. It is used to determine if an element is identifiable, but I don't understand why the base path
should be the element to test to see if an object is identifiable. What's special about the "reference" path?

function isItemIdentifiable(vNode)
local sBasePath = UtilityManager.getDataBaseNodePathSplit(vNode)
return (sBasePath ~= "reference");
end

Moon Wizard
February 18th, 2023, 21:51
For specific rulesets that specific place certain items in certain paths, that function is used to specify that those items are not identifiable (i.e. turn off ID feature). In particular, it looks like that one is set up such that read-only module items are set to not identifiable (i.e. PHB, DMG, etc.). The item records will be identifiable once added to party sheet, PCs, campaign items, etc.

Regards,
JPG

Xarxus
February 18th, 2023, 22:29
Ty for all Moon, as usual