
I have an API Script for rolling Challenge Dice for Star Trek Adventures. They are just d6 dice with custom faces and numbers. It outputs the dice and the sums the results in the Chat. (! = 1 and Effect) Mechanically the Player can pick up any number of Dice and reroll them all together once. Usually the Player will reroll all the blank dice, but sometimes there might be a reason why they want to reroll other combinations. Currently the reroll button just prompts a query to select a number of Dice and rolls an new set. So the Player needs to say which Dice they are re-rolling and the add the new sums. Is there a way I can have the Player select the Dice they wish to Reroll then press the Reroll button and have only those rerolled? The other dice would stay the same and the new sum is updated. I was thinking making each dice a button that when clicked will be highlighted and then be rerolled when the Reroll button is clicked. In that case would I need to print out to the chat a new output with the clicked Dice highlighted or is there a way to make the dice be highlighted onclick?