I'm looking for a variation of the solution given in: <a href="https://app.roll20.net/forum/post/4535214/to-hit-roll-table/" rel="nofollow">https://app.roll20.net/forum/post/4535214/to-hit-roll-table/</a> For context: It's for Warhammer Fantasy Battle. One character will swing at another (rolling a D6), and it will compare their attributes (in this case Weapon Skill, and in another macro, Strength VS Toughess), consult the chart, and output the result. The function I'm after is the same, I just need different variables, given below: To Hit: Target's Weapon Skill 1 2 3 4 5 6 7 8 9 10 Attacker's Weapon Skill 1 4 4 5 5 5 5 5 5 5 5 2 3 4 4 4 5 5 5 5 5 5 3 3 3 4 4 4 4 5 5 5 5 4 3 3 3 4 4 4 4 4 5 5 5 3 3 3 3 4 4 4 4 4 4 6 3 3 3 3 3 4 4 4 4 4 7 3 3 3 3 3 3 4 4 4 4 8 3 3 3 3 3 3 3 4 4 4 9 3 3 3 3 3 3 3 3 4 4 10 3 3 3 3 3 3 3 3 3 4 To Wound: Target's Toughness 1 2 3 4 5 6 7 8 9 10 Attacker's Strength 1 4 5 6 6 6 6 6 6 6 6 2 3 4 5 6 6 6 6 6 6 6 3 2 3 4 5 6 6 6 6 6 6 4 2 2 3 4 5 6 6 6 6 6 5 2 2 2 3 4 5 6 6 6 6 6 2 2 2 2 3 4 5 6 6 6 7 2 2 2 2 2 3 4 5 6 6 8 2 2 2 2 2 2 3 4 5 6 9 2 2 2 2 2 2 2 3 4 5 10 2 2 2 2 2 2 2 2 3 4 I just plain can't wrap my little brain around Silvyre's macro, any help is greatly appreciated. For the curious, I will implement it into this macro (which currently contains the macro previously provided by Silvyre, with the other variables): &{template:default} {{name=**@{selected|name}** attacks **@{target|name}** in melee}} {{Attacker's Weapon Skill:=[[@{selected|ws}]]}} {{Defender's Weapon Skill:=[[@{target|ws}]]}} {{Hits on a:=[[ [[2 + {3 - @{selected|ws}, 0}kh1]] + {[[2 + [[{-1, 1}=@{selected|ws}]] + {@{selected|ws} - 7, 0}kh1]], [[3 + [[{1, 2, 2}=@{selected|ws}]] + {@{selected|ws} - 3, 0}kh1]], [[11 - 2 * {2, 2, 3, 3, 4}=@{selected|ws}]], [[11 - {-1, 3}=@{selected|ws}]]}<@{target|ws} ]] or higher}}{{Successful Hits:=⚔[[?{Number of attacks|0}d6>[[ [[2 + {3 - @{selected|ws}, 0}kh1]] + {[[2 + [[{-1, 1}=@{selected|ws}]] + {@{selected|ws} - 7, 0}kh1]], [[3 + [[{1, 2, 2}=@{selected|ws}]] + {@{selected|ws} - 3, 0}kh1]], [[11 - 2 * {2, 2, 3, 3, 4}=@{selected|ws}]], [[11 - {-1, 3}=@{selected|ws}]]}<@{target|ws} ]]]]⚔}} How it works: two tokens in play need the "name" and "ws" attributes, the macro asks only for the number of attacks, then rolls that many D6's, and by comparing their Weapon Skills, tells you how many were successful. Thanks again!