Is there anyway to create 2d20 conan Combat Dice [CD] as a macro. Yhey are a d6 with special effects on certain numbers

The dice table is as follows

D6 Result

1 1

2 2

3 0

4 0

5 1 + effect

6 1 + effect

I need the code to add up the numbers and detail the number of effects.

For example

if I roll 4 [CD] and the results are 1,2,4,6 the total is 4 + 1 effect

if I roll 7 [CD] and the results are 1,2,2,3,4,6,6 the total is 7 + 2 effect

I thought about adding tables to the system somehow, but I've never gotten around to it. If there is enough interest, I'll do it.

Love the idea. I am also starting to play a 2d20 system.

Custom tables would be a great way to use non standard dice results.

Is there anyway to create 2d20 conan Combat Dice [CD] as a macro. Yhey are a d6 with special effects on certain numbers

The dice table is as follows

D6 Result

1 12 23 04 05 1 + effect

6 1 + effect

I need the code to add up the numbers and detail the number of effects.

For example

if I roll 4 [CD] and the results are 1,2,4,6 the total is 4 + 1 effect

if I roll 7 [CD] and the results are 1,2,2,3,4,6,6 the total is 7 + 2 effect