MyGivinOpinion
March 24th, 2019, 02:06
So i'm currently trying to obtain data contained within combattracker.list.id-XXXXX.
when I print my variable this is what i get
26820
now what I haven't shown what i've attempted to do with it. I'm trying to split the values up and StringManager.split() doesn't do anything. the for loop i use earlier works but the second for loop which is identical in structure won't ever process it seems.
function onCall()
local tokenCT = CombatManager.getCombatantNodes(); --{ s'id-*****' = databasenode = {combattracker.list.id-***** }, s'id-*****' = databasenode = {combattracker.list.id-***** }}
Debug.console(tokenCT);
for i, v in ipairs(tokenCT) do
Debug.console(v);
end
end
Can someone help me? no output is being displayed for the value of tokenCT during the for loop. trying to figure out why/how to fix it..
when I print my variable this is what i get
26820
now what I haven't shown what i've attempted to do with it. I'm trying to split the values up and StringManager.split() doesn't do anything. the for loop i use earlier works but the second for loop which is identical in structure won't ever process it seems.
function onCall()
local tokenCT = CombatManager.getCombatantNodes(); --{ s'id-*****' = databasenode = {combattracker.list.id-***** }, s'id-*****' = databasenode = {combattracker.list.id-***** }}
Debug.console(tokenCT);
for i, v in ipairs(tokenCT) do
Debug.console(v);
end
end
Can someone help me? no output is being displayed for the value of tokenCT during the for loop. trying to figure out why/how to fix it..