pr6i6e6st
June 26th, 2020, 22:36
Hey guys. i'm looking at the data_library_5E.lua and wondering if i can have a record library for NPC traits/actions/legendary actions/lair actions and such, building them as a ref_ability class for easy drag-and-drop build.
how do i go about extending the parameters to search into each NPC and pull out their actions and such?
Edit:
I can see from my NPC merger extension that getting the database node of my dragdata from an npc shortcut that it returns something like “reference.npcdata.knight@MM_wotc” or whatever. But when looking for any children of “reference.npcdata”, I only get “.npcbyletter”, “.npcbycr”, and “.npcbytype”.
What am I missing? How do I go about creating a data library function that creates a record library of all existing npc traits/actions/reactions/innate spells/lair actions/legendary actions?
["ref_ability"] = {
aDataMap = { "npc.getChildren().actions", "reference.npcdata" },
aGMListButtons = { "button_npc_letter", "button_npc_cr", "button_npc_type" };
aCustomFilters = {
["CR"] = { sField = "cr", sType = "number", fSort = sortNPCCRValues },
["Type"] = { sField = "type", fGetValue = getNPCTypeValue },
},
},
the following code gives me a list of ref_abilities with the npc's detail text on the second tab. so that tells me i'm close? but that's definitely not what i'm looking for.
["ref_ability"] = {
aDataMap = { "npc.actions", "reference.npcdata" },
aGMListButtons = { "button_npc_letter", "button_npc_cr", "button_npc_type" };
aCustomFilters = {
["CR"] = { sField = "cr", sType = "number", fSort = sortNPCCRValues },
["Type"] = { sField = "type", fGetValue = getNPCTypeValue },
},
},
how do i go about extending the parameters to search into each NPC and pull out their actions and such?
Edit:
I can see from my NPC merger extension that getting the database node of my dragdata from an npc shortcut that it returns something like “reference.npcdata.knight@MM_wotc” or whatever. But when looking for any children of “reference.npcdata”, I only get “.npcbyletter”, “.npcbycr”, and “.npcbytype”.
What am I missing? How do I go about creating a data library function that creates a record library of all existing npc traits/actions/reactions/innate spells/lair actions/legendary actions?
["ref_ability"] = {
aDataMap = { "npc.getChildren().actions", "reference.npcdata" },
aGMListButtons = { "button_npc_letter", "button_npc_cr", "button_npc_type" };
aCustomFilters = {
["CR"] = { sField = "cr", sType = "number", fSort = sortNPCCRValues },
["Type"] = { sField = "type", fGetValue = getNPCTypeValue },
},
},
the following code gives me a list of ref_abilities with the npc's detail text on the second tab. so that tells me i'm close? but that's definitely not what i'm looking for.
["ref_ability"] = {
aDataMap = { "npc.actions", "reference.npcdata" },
aGMListButtons = { "button_npc_letter", "button_npc_cr", "button_npc_type" };
aCustomFilters = {
["CR"] = { sField = "cr", sType = "number", fSort = sortNPCCRValues },
["Type"] = { sField = "type", fGetValue = getNPCTypeValue },
},
},