bowlofspinach says:
I wrote this dice code for Tales from the Loop / Things from the Flood. It highlights successes and instead of adding up the total of the dice, it counts how many successes you rolled.
I'm trying to update the code to work for Twilight 2000 which would need to count anything above a 6. I've figured out how to highlight the different numbers, but I can't seem to guess the logic to count the different numbers.
{
"background": {"image": ""},
"diceRules": [
{"rolled": "D8", "countTotal": "8"},
{"rolled": "D8","natural": "6","highlight": "info bold"},
{"rolled": "D8","natural": "7","highlight": "info bold"},
{"rolled": "D8","natural": "8","highlight": "info bold"}
],
"characterSheetIntegration": {"gmSheets": []},
"diceDefaults": {"rerollAces": false}
}
I've tried different variations of this, but still no luck.
{"rolled": "D8", "countTotal": ["6","7","8"]}
Do you have any thoughts on how to do this?