
Hi! I wrote some dice rolling code for a new character sheet. I have have some things that are computed within the body of the startRoll function, for example how much strain the caster took while casting the spell - which depends on how they rolled. I want to display that information in the roll template I made. My code can do that right now but I don't think I am doing it correctly. In the roll formula I specify a new dummy roll (within the bigger roll formula): {{casterStrain=[[0d0]]}} Start a roll: startRoll(rollFormula, (results) => { [...] I compute the value of the strainTaken variable Within the finishRoll function I override the dummy roll result with my custom value: finishRoll(results.rollId, {casterStrain: strainTaken}); Then I display it in the roll template: <p>It caused <b>{{computed::casterStrain}}</b> to the caster</p> but, since it is defined as a roll, it is displayed in the yellow box and you can hover over it to see the 0d0 dummy roll. I suppose it wouldn't be the most terrible thing in the world to leave it like this, but I don't like it. So my question is: is there a better way of displaying a value computed during a roll in the roll template? - Or is this the only way to do this? I tried {{casterStrain=[[]]}} or {{casterStrain=""}} and similar, but neither worked.