alloowishus
April 6th, 2025, 18:57
I want to have an NPC added to the combat tracker automatically when a certain spell is cast.
So I outputted the contents of the "tCustom" data table from a random NPC which it is dragged into the combat tracker and I got this:
{ s'sTargetPath' = s'combattracker.list.id-00018'
, s'sRecordType' = s'npc'
, s'nodeRecord' = databasenode
= { npc.id-00438 }
, s'sClass' = s'npc'
, s'sRecord' = s'npc.id-00438'
, s'draginfo'
= dragdata
= { type = s'shortcut'
, desc = s'NPC: Ape'
, #slots = #1
, slot = #1
, string = s''
, num = #0
, diceexpr = {}
, shortcut = {npc:npc.id-00438}, asset = {, instance = }, custom = nil }
}
So how would I construct this tCustom data table manually? I assume that I need to manually create the "TargetPath" node, probably by getting the max node number in the combat tracker and adding 1? Also, how would I get the node of the NPC I want to add?
Thanks!
So I outputted the contents of the "tCustom" data table from a random NPC which it is dragged into the combat tracker and I got this:
{ s'sTargetPath' = s'combattracker.list.id-00018'
, s'sRecordType' = s'npc'
, s'nodeRecord' = databasenode
= { npc.id-00438 }
, s'sClass' = s'npc'
, s'sRecord' = s'npc.id-00438'
, s'draginfo'
= dragdata
= { type = s'shortcut'
, desc = s'NPC: Ape'
, #slots = #1
, slot = #1
, string = s''
, num = #0
, diceexpr = {}
, shortcut = {npc:npc.id-00438}, asset = {, instance = }, custom = nil }
}
So how would I construct this tCustom data table manually? I assume that I need to manually create the "TargetPath" node, probably by getting the max node number in the combat tracker and adding 1? Also, how would I get the node of the NPC I want to add?
Thanks!