Hi all, I have a friend who is GMing a Shadowrun 6e and got me thinking about how to create a button for a dice roll with glitch detection. Pretty much, this means that if more than half of the dice rolled = 1, then that's a glitch (critical fail). If more than half of the dice rolled = 1 and none of the dice rolled hit AND there is a glitch, that's a critical glitch. I'm more focused on the first right now. How would I go about writing a macro that would do something like this? Essentially, I'd have the macro ask for the roller to enter X (the amount of dice to roll), allowing the macro to calculate half of X. But that's where things fall down. Is there a way to then calculate how many 1's are rolled, and if that number is greater than X, then display the total and also display the word "GLITCH!" Example: User has 10 dice to roll and enters 10 when the macro asks for number of dice to roll Dice rolls = 1,1,1,1,1,1,4,5,6,7 Macro displays: Roll total = 28 GLITCH! Is this possible?