jkeller
November 29th, 2025, 01:36
In 5E, my extension is adding an effect to an NPC with this code:
local rEffect = { sName = "Original Name: " .. tostring(sOriginalName), nGMOnly = 1 };
EffectManager.addEffect('', '', nodeCT, rEffect, false); -- sUser, sIdentity, nodeCT, rNewEffect, bShowMsg
If I set the bShowMsg to true, I do see the message in the chat window.
But the effect is not showing up on the Combat Tracker. I can see it when I call this:
for _,nodeEffect in ipairs(DB.getChildList(nodeCT, "effects")) do
So, it's sort of there, but when I try to get it (in a different extension), it's not there.
Any idea what I might be doing wrong? Thanks!
local rEffect = { sName = "Original Name: " .. tostring(sOriginalName), nGMOnly = 1 };
EffectManager.addEffect('', '', nodeCT, rEffect, false); -- sUser, sIdentity, nodeCT, rNewEffect, bShowMsg
If I set the bShowMsg to true, I do see the message in the chat window.
But the effect is not showing up on the Combat Tracker. I can see it when I call this:
for _,nodeEffect in ipairs(DB.getChildList(nodeCT, "effects")) do
So, it's sort of there, but when I try to get it (in a different extension), it's not there.
Any idea what I might be doing wrong? Thanks!