
Hey, before I start I just want you to know that I am not using the non roll in the sheetworker script, it is just being passed through Now, I have a field that is filled in through a sheetworker, using the side bar in chrome I can check the coding and the variable is showing the changed value But when I actually use the value in the roll template it shows as empty on("change:repeating_war:activeN", function(eventInfo) { if (eventInfo.sourceType === 'sheetworker') return; const output = {}; getAttrs(['repeating_war_activeN', 'repeating_war_activeSlot', 'repeating_war_activeName'], function(values) { output["repeating_war_activeSlot"] = eventInfo.newValue ? eventInfo.newValue : "Active WAR"; output["repeating_war_activeName"] = eventInfo.newValue ? eventInfo.newValue : "Active WAR"; setAttrs(output); }); }); on('clicked:repeating_war:damage', (info) => { startRoll("&{template:active} {{type=[[@{repeating_war_activeType}]]}} {{name=@{repeating_war_activeName}}} {{typeName=@{repeating_war_activeTypeName}}} {{prefix=0}} {{suffix=0}} {{opposing=[[0]]}} {{baseRoll=[[0]]}} {{underwhelming=[[0]]}} {{overwhelming=[[0]]}} {{rollResult=[[0]]}} {{critical=[[0]]}} {{mitigation=[[0]]}} {{roll=[[1d10]]}} {{result=[[0]]}} {{whelming=[[1d10]]}} {{bonus=(?{Bonus Modifier|0})}} {{target=[[?{Opposing Statistic|0}]]}} {{defence=[[0]]}} {{resistance=[[0]]}}", (results) => { const roll = results.results.roll.result; console.log(results); const overwhelming = roll + results.results.whelming.result; const underwhelming = roll - results.results.whelming.result; const critical = results.results.whelming.result; const defence = results.results.defence.result; const mitigation = results.results.mitigation.result; const resistance = results.results.resistance.result; //const type = results.results.type.result; const opposing = results.results.target.result; const opposingDefence = defence > opposing ? 1 : 0; const opposingResistance = resistance > opposing ? 1 : 0 ; finishRoll( results.rollId, { //rollResult: type === 1 ? roll + mitigation : roll + resistance, roll: roll === 10 ? overwhelming : roll === 1 ? underwhelming : roll, baseRoll: roll === 10 ? critical : roll === 1 ? critical : roll, //opposing: type === 1 ? opposingDefence : opposingResistance, //overwhelming: type === 1 ? overwhelming + mitigation : overwhelming + resistance, //underwhelming: type === 1 ? underwhelming + mitigation : underwhelming + resistance, result: roll === 10 ? 1 : roll === 1 ? -1 : 0, critical: critical === 10 ? 1 : 0 } ); }); }); < rolltemplate class = "sheet-rolltemplate-active" > < div class = "sheet-template-container" > < div class = "sheet-template-header" > Active WAR: {{name}} </ div > < div class = "sheet-template-subheader" > {{typeName}} </ div > < div class = "sheet-template-row-outcome" > {{outcome}} </ div > </ div > </ rolltemplate > It is a very simple rolltemplate, but the {{name}} is showing as blank