This is my first time running into an error I couldn't troubleshoot so I figured why not ask the great Roll20 community :) I had been trying to mess around with making a macro for Fighter's Second Wind, essentially creating an attack that uses the resource as ammunition, plugging the ammo=id from the attack into a template:atk d10 roll. Although I couldn't get it quite right my ammo tracker started doing this: The ammo tracking portion is no longer inline and is separated and improperly formatted for all ammo tracking. I decided to revert all my changes and then delete/re-enable the script but this issue persisted. To help with troubleshooting: Sheets: D&D 5e by Roll20 Scripts: 5th Edition OGL by Roll20 Companion, PowerCards, ChatSetAttr Sheet settings: ammo tracking is enabled on the character sheet Resource: enabled Use As Resource: enabled Any help is much appreciated! EDIT: The below issue was resolved. A player had re-uploaded his old character into his journal again and since they had the same name there was a conflict. I still do need help figuring out why the ammo tracking is separated. Then when I attempted to attack with a Longbow +1 that tracks regular Arrows as ammo, this happens in console and the script crashes TypeError: Cannot read property 'set' of undefined
TypeError: Cannot read property 'set' of undefined
at handleammo (apiscript.js:2558:16)
at apiscript.js:2124:17
at eval (eval at <anonymous> (/home/node/d20-api-server/api.js:151:1), <anonymous>:65:16)
at Object.publish (eval at <anonymous> (/home/node/d20-api-server/api.js:151:1), <anonymous>:70:8)
at /home/node/d20-api-server/api.js:1634: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)
at /home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:111:400