
Hi guys, I'm trying to find the way to represent correctly the way to handle the dice roll for Qin Warring States. It's not that complex, but I have a hard time to handle it correctly in Roll20. Here's how the system works : You roll 2 10-sided dice. One is Yin, the other is Yang. The result is the absolute value of the difference between the 2 dice. I shall specify that the face 0 means 0, not 10. If the 2 dice rolled the same value, then it's a critical success,
except if the dice rolled 0, in which case it's a critical failure
instead When you attack an opponent, you do your rolls and if you get a critical success, you add the face value of one of the dice (they're both the same) and you add it to the damage of your weapon (which is a fixed value). So let's say I'm attacking with a sword that does 6 damage, if I roll 2 sixes, I do 12 damage. If your yang dice is higher than your yin dice, you add the difference to your damage. I would like to make an attack rolltemplate that roll for attack and tells how much damage you do if the GM says the attack is a success. So, I came with that kind of roll template : &{template:simpleRoll} {{title=^{AttackRoll}}} {{roll= [[ @{Metal} + @{metalskilllvl} + [[ abs( [[1d10-1]] - [[1d10-1]] ) ]] ]] }} {{Yin=$[[0]]}} {{Yang=$[[1]]}} {{diff=$[[2]]}} {{result=$[[3]]}} {{damage=[[ @{weaponDamage}+@{Metal} ]]}} But now, how can I handle the result and alter the damage based on a critical succes or a higher Yang dice? Something like {{critdamage=[[ @{metdmg}+@{Metal} + $[[0]] ]] }} does obviously not work since I cannot use a rollId in a mathematic operation. I didn't found a way to do that inside the rolltemplate html presentation. Maybe using a sheetworker would work, but I have no idea how, since javascript is as strange to me as a shoe would be to a shark. And I gave up using powercards since I cannot figure a way to nest a RollId inside another RollId (since I need to store the difference between the dice) I'd be impressed and very thankful if anyone would see a way to handle that. Thanks for your time.