Dougansf said: Result [[ [[ {?{Step}+d0}>14 + {?{Step}+d0}>36 ]]d20! + [[ {?{Step}+d0}=7 + {?{Step}+d0}=13 + {?{Step}+d0}=18 + {?{Step}+d0}=24 + {?{Step}+d0}=29 + {?{Step}+d0}=35 + {?{Step}+d0}=40 ]]d12! + [[ {?{Step}+d0}=6 + {?{Step}+d0}=10 + {?{Step}+d0}=11 + {?{Step}+d0,?{Step}+d0}=12 + {?{Step}+d0}=13 + {?{Step}+d0}=17 + {?{Step}+d0}>21 + {?{Step}+d0}=23 + {?{Step}+d0}=28 + {?{Step}+d0}=32 + {?{Step}+d0}=33 + {?{Step}+d0,?{Step}+d0}=34 + {?{Step}+d0}=35 + {?{Step}+d0}=39 ]]d10! + [[ {?{Step}+d0}=5 + {?{Step}+d0}=9 + {?{Step}+d0}=11 + {?{Step}+d0}=16 + {?{Step}+d0}=20 + {?{Step}+d0}=22 + {?{Step}+d0}>25 + {?{Step}+d0}=27 + {?{Step}+d0}=31 + {?{Step}+d0}=33 + {?{Step}+d0}=38 ]]d8! + [[ {?{Step}+d0}=4 + {?{Step}+d0,?{Step}+d0}=8 + {?{Step}+d0}=9 + {?{Step}+d0}=10 + {?{Step}+d0}=15 + {?{Step}+d0,?{Step}+d0}=19 + {?{Step}+d0}=20 + {?{Step}+d0}=21 + {?{Step}+d0}=26 + {?{Step}+d0,?{Step}+d0}=30 + {?{Step}+d0}=31 + {?{Step}+d0}=32 + {?{Step}+d0}=37 ]]d6! + [[ {?{Step}+d0}<3 + {?{Step}+d0}=14 + {?{Step}+d0}=25 + {?{Step}+d0}=36 ]]d4! - [[ {?{Step}+d0}<2 * (3 - ?{Step}) ]] + ?{Karma #}d6!]] Ah, I updated that macro to support more than 40 steps! Result [[ [[{1e3, 14}<[[(?{Step}) % 22]] +
floor((?{Step}) / 22)]]d20! + [[{0, 1, 1, 2, 6, 10}=[[(?{Step}) % 11]] -
{-1, 1}>[[?{Step}]] + floor((?{Step} - 3) / 22)]]d10! + [[{0, 5,
9}=[[(?{Step}) % 11]] + {-1, 2}>[[?{Step}]] + floor((?{Step} - 3) /
22)]]d8! + [[{-1, 8}=[[(?{Step}) % 11]] - {0, 1, 5, 6}=[[(?{Step}) %
11]] + {0, 1}=[[?{Step}]] + 1]]d[[4 + 2 * {4, 8, 9, 10}=[[(?{Step}) %
11]] + 8 * ({2, 7}=[[(?{Step}) % 11]] * (1 - {-1, 2}=[[?{Step}]]))]]! -
[[{-1, 2}>[[?{Step}]] * (3 - (?{Step}))]] + ?{Karma #}d6! ]]