I am trying to create NPCs using scripting (yes not the best idea but I wanna) I am having trouble with the actions section. It will populate the name but I cannot click on it. Also the gear does not work. If I make a new action in the sheet then it will open the first one I made, however can still not click on it to put it into chat. Here is the relevant code: `` const CreateAttr = (id, attr, cur, max = null) => { if (max != null) { createObj("attribute", { characterid: id, name: attr, current: cur, max: max, }); const ret = getAttr(id, attr); log(`${attr} = ${ret}`); } else { createObj("attribute", { characterid: id, name: attr, current: cur }); const ret = getAttr(id, attr); log(`${attr} = ${ret}`); } }; const getAttr = (charId, name, def = null) => { const a = findObjs({ type: "attribute", characterid: charId, name })[0]; return a ? a.get("current") : def; }; const makeRowId = () => { const chars = 'abcdefghijklmnopqrstuvwxyz0123456789-ABCDEFGHIJKLMNOPQRSTUVWXYZ'; let result = ''; for (let i = 0; i < 19; i++) { result += chars.charAt(Math.floor(Math.random() * chars.length)); } return result; }; const addNpcAction = (npc,n) => { // Create a new repeating row const rowid = makeRowId(); const prefix = `repeating_npcaction_${rowid}_`; CreateAttr(npc.id, `${prefix}name`, ACTION_NAMES[n]); CreateAttr(npc.id, `${prefix}attack_flag`, ACTION_ATTACK[n]); CreateAttr(npc.id, `${prefix}attack_tohit`, ACTION_TO_HIT[n]); CreateAttr(npc.id, `${prefix}attack_range`, ACTION_ATTACK_RANGE[n]); CreateAttr(npc.id, `${prefix}attack_damage`, ACTION_ATTACK_DAMAGE_ONE[n]); }; const createNpc = () => { const npc = createObj("character", { name: NPC_NAME, archived: false, controlledby: "", }); createObj("attribute", { characterid: npc.id, name: "npc", current: NPC_MODE, }); addNpcAction(npc,0); `` Where const NPC_MODE = 1; // make sure the sheet is in NPC mode const ACTION_NAMES = ["Dagger"]; const ACTION_ATTACK = ["on"];//Can be on or 0 const ACTION_TO_HIT = ["5"]; const ACTION_ATTACK_RANGE = ["1ft"]; const ACTION_ATTACK_DAMAGE_ONE = ["1d10"];`` I can post more of the code if it matters.