I'm running an unusual system that always rolls three d20s, but which d20 is actually the result varies depending on favorable/unfavorable circumstances. Normally you roll 3d20 and take the middle result, and I have the roll for that: [[ 3d20kl2dl1 ]] However this roll can include lucky or unlucky dice that trump the middle roll if they are the highest/lowest dice. So on a roll with 1 lucky die you roll 2 normal die and 1 lucky die, if the lucky die is the middle of low roll you don't do anything special, you just take the middle. If the lucky die is the high roll you use that instead of the middle roll however. Likewise you can have two lucky die and if one of those is the high roll it trumps the middle. Three lucky is easy because you just take the highest die and I know how to do that. Unlucky dice work the same way but the low roll trumps instead. On a physical table I just use different colored d20s to represent lucky or unlucky dice. Just in case I wasn't clear here are some example rolls, with the dice designated as lucky (L) or normal (N) 1(L) 10(N) 20(N) = 10 1(N) 10(L) 20(N) = 10 1(N) 10(N) 20(L) = 20 1(L) 10(L) 20(N) = 10 1(N) 10(L) 20(L) = 20 1(L) 10(N) 20(L) = 20 Any way to macro this? Basically I'd have seven macros Unlucky 3 3d20kl1 Unlucky 2 ??? Unlucky 1 ??? Normal: 3d20kl2dl1 Lucky 1 ??? Lucky 2 ??? Lucky 3 3d20kh1