Paul Pratt
July 7th, 2016, 16:58
I would like to have enable my players to add effects from their character sheet to their target in the Combat Tracker.
I have it working for the drag, for the button push I get a output message error to the chat window that states: "[ERROR] Effect dropped on target which is not listed in the combat tracker"
That was a positive step forward for me, at least I know the hitch is finding the target in the CT. I have never tried finding CT target nodes.
Here's where I am currently in my attempt to locate the CT target node.
local nodeCTChar = ActorManager.getCTNodeName(rActor);
local rTarget = DB.getValue(nodeCTChar, ".targets.noderef", "");
I can see in my database that the node should be combattracker, unique id for the pc in the CT, targets, noderef.
Just not sure how to get to the correct CT node.
Any help?
I have it working for the drag, for the button push I get a output message error to the chat window that states: "[ERROR] Effect dropped on target which is not listed in the combat tracker"
That was a positive step forward for me, at least I know the hitch is finding the target in the CT. I have never tried finding CT target nodes.
Here's where I am currently in my attempt to locate the CT target node.
local nodeCTChar = ActorManager.getCTNodeName(rActor);
local rTarget = DB.getValue(nodeCTChar, ".targets.noderef", "");
I can see in my database that the node should be combattracker, unique id for the pc in the CT, targets, noderef.
Just not sure how to get to the correct CT node.
Any help?