I'm enjoying using Custom Roll Parsing for calculating totals on my character sheet, and when that value is sent to the chat, it works great. When I add &{tracker} the value sent to the Turn Tracker is the total before the Parsing, even though it sends the total after the Parsing to the Chat. I thought I had a brilliant solution by having the Parsing send 2 rolls like: ...
setAttrs({"temp_value": total});
finishRoll(results.rollId,{total: total});
});
startRoll("&{template:default} [[@{temp_value} &{tracker}]]", (results) => {finishRoll(results.rollId);}); Unfortunately, the 2nd startRoll triggers before the 1st finishRoll. (This also leaves a black line in the chat, but I can solve that seperately) My next attempt was to put in a delay, to insure that the 2nd startRoll triggers later. setTimeout(function() {
startRoll("&{template:default} [[@{temp_value} &{tracker}]]", (results) => {finishRoll(results.rollId);});
}, 3000); Now, the 2nd startRoll doesn't trigger at all. Sigh. I don't know what I'm doing wrong there, or if I'm even on the right track. Any help would be appreciated, thank you.