
Hi there, I would like to come up with a function that returns a token representing a given character by providing the character ID. I've tried the following: let token = findObjs({_pageid: Campaign().get("playerpageid"), _type:'graphic', represents:'-MqVD13GTyVM5CVtFfEb'}); log("token: "+token.get("represents")); However, I cannot get this function to work and get the following error message: TypeError: token.get is not a function TypeError: token.get is not a function at functiontest (apiscript.js:5270:25) at apiscript.js:5257:13 at eval (eval at <anonymous> (/home/node/d20-api-server/api.js:168:1), <anonymous>:65:16) at Object.publish (eval at <anonymous> (/home/node/d20-api-server/api.js:168:1), <anonymous>:70:8) at /home/node/d20-api-server/api.js:1736:12 at /home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:93:560 at hc (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:39:147) at Kd (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:93:546) at Id.Mb (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:93:489) at Zd.Ld.Mb (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:94:425) What am I doing wrong? I have checked that the character ID is correct using @{selected|character_id}