
I am not very good at JavaScript, and I am struggling to understand how to tell it what I need. I am working from the sheet and roll templates made for Fantasy AGE and its related games . I have managed to make an adjustment to the sheet so it always shows the Healing ability, as with Initiative, and when clicked it rolls as follows: on('clicked:healing_check', (info) => { getAttrs(["chirurgy-bonus"], function(v) { let total = 0; startRoll("@{wtype}&{template:age-roller} {{color-@{color}=1}} {{total=[[@{cunning} + @{heal-bonus} - @{fatigue}]]}} {{mod=[[@{cunning}]]}} {{ability=@{cunning_label}}} {{extramod1=[[@{heal-bonus}]]}} {{extramod1-name=@{healing_adjustment}}} {{desc=@{healing}}} {{fatigue=[[@{fatigue}]]}} {{player=@{char-name-option}}} {{die1=[[1d6]]}} {{die2=[[1d6]]}} {{drama=[[1d6]]}} {{drama2=[[@{stunts2-select}]]}}", (results) => { total = results.results.die1.result + results.results.die2.result + results.results.drama.result + results.results.total.result finishRoll(results.rollId,{total: total}); }); }); }); It does its job. Puts out the result in chat, displayed like it should be: But how do I tell it to take the result of that third die (results.results.drama.result) and have it use that number in an additional calculation that returns HP Healed = ([drama.result]*[multiplier])+ [stat] ? If it can't be done in the code above, how would I make a mod where what is sent to chat is clickable and uses that same result? Would I have to make an attribute that holds that result to then pull down for the next roll? Any advice would be greatly appreciated.