I am trying to figure out a way to make exploding dice, only keeping the highest dice rolled, and counting ones. currently we just manually count how many ones we roll but it would be great if there was a way for it to do it for us. I am crap at programming type stuff, but I am decent at google fu, and can't seem to find the answer. 


currently one of my macros looks like this

/em rolls [[3d8!!kh1]] to punch for [[4d10kh1]] damage  to their [[1t[HitLocation]]]

rolling 3d8, only keeping the highest, allowing exploding, and then it rolls on a hit location table. is there a way to also make it count ones? for instance if i rolled 2 ones, and a 7, my roll should be a seven, but also a failure or glitch.