openWindow() returning nil in classic?
alright, i got a weird one. in Fantasy Grounds Unity, the following line returns a windowinstance which i can use to get the databasenode from.
local aNode = Interface.openWindow("npc", "npc.");
Debug.console(aNode);
Debug.console(DB.getChildren("npc"));
aNPCDetails.node = aNode.getDatabaseNode();
Debug.console(aNPCDetails.node);
in Fantasy Grounds Classic, aNode comes up nil. What do i need to do so that we create a new npc and return its databasenode in both versions?