You'll need a macro of the form {1d20+?{Mod|0}}>X where X is the value from the table lookup. Transcribing tables can be arduous so it might be best to use roll queries. Here is a template you can fill in the actual values with /r {1d20+?{Mod|0}}>[[?{Weapon Class| One (1) , ?{AC&vert; 10 &comma; X10 &vert; 9 &comma; X9 &vert; 8 &comma; X8 &vert; 7 &comma; X7 &vert; 6 &comma; X6 &vert; 5&comma; X5 &vert; 4 &comma; X4 &vert; 3 &comma; X3 &vert; 2 &comma; X2 &vert; 1 &comma; X1 &rcub; | Two (2) , ?{AC&vert; 10 &comma; X10 &vert; 9 &comma; X9 &vert; 8 &comma; X8 &vert; 7 &comma; X7 &vert; 6 &comma; X6 &vert; 5&comma; X5 &vert; 4 &comma; X4 &vert; 3 &comma; X3 &vert; 2 &comma; X2 &vert; 1 &comma; X1 &rcub; | Three (3) , ?{AC&vert; 10 &comma; X10 &vert; 9 &comma; X9 &vert; 8 &comma; X8 &vert; 7 &comma; X7 &vert; 6 &comma; X6 &vert; 5&comma; X5 &vert; 4 &comma; X4 &vert; 3 &comma; X3 &vert; 2 &comma; X2 &vert; 1 &comma; X1 &rcub; | Four (4) , ?{AC&vert; 10 &comma; X10 &vert; 9 &comma; X9 &vert; 8 &comma; X8 &vert; 7 &comma; X7 &vert; 6 &comma; X6 &vert; 5&comma; X5 &vert; 4 &comma; X4 &vert; 3 &comma; X3 &vert; 2 &comma; X2 &vert; 1 &comma; X1 &rcub; | Five (5) , ?{AC&vert; 10 &comma; X10 &vert; 9 &comma; X9 &vert; 8 &comma; X8 &vert; 7 &comma; X7 &vert; 6 &comma; X6 &vert; 5&comma; X5 &vert; 4 &comma; X4 &vert; 3 &comma; X3 &vert; 2 &comma; X2 &vert; 1 &comma; X1 &rcub; | Six (6) , ?{AC&vert; 10 &comma; X10 &vert; 9 &comma; X9 &vert; 8 &comma; X8 &vert; 7 &comma; X7 &vert; 6 &comma; X6 &vert; 5&comma; X5 &vert; 4 &comma; X4 &vert; 3 &comma; X3 &vert; 2 &comma; X2 &vert; 1 &comma; X1 &rcub; | Seven (7) , ?{AC&vert; 10 &comma; X10 &vert; 9 &comma; X9 &vert; 8 &comma; X8 &vert; 7 &comma; X7 &vert; 6 &comma; X6 &vert; 5&comma; X5 &vert; 4 &comma; X4 &vert; 3 &comma; X3 &vert; 2 &comma; X2 &vert; 1 &comma; X1 &rcub; | Eight (8) , ?{AC&vert; 10 &comma; X10 &vert; 9 &comma; X9 &vert; 8 &comma; X8 &vert; 7 &comma; X7 &vert; 6 &comma; X6 &vert; 5&comma; X5 &vert; 4 &comma; X4 &vert; 3 &comma; X3 &vert; 2 &comma; X2 &vert; 1 &comma; X1 &rcub; | Nine (9) , ?{AC&vert; 10 &comma; X10 &vert; 9 &comma; X9 &vert; 8 &comma; X8 &vert; 7 &comma; X7 &vert; 6 &comma; X6 &vert; 5&comma; X5 &vert; 4 &comma; X4 &vert; 3 &comma; X3 &vert; 2 &comma; X2 &vert; 1 &comma; X1 &rcub; | Ten (10) , ?{AC&vert; 10 &comma; X10 &vert; 9 &comma; X9 &vert; 8 &comma; X8 &vert; 7 &comma; X7 &vert; 6 &comma; X6 &vert; 5&comma; X5 &vert; 4 &comma; X4 &vert; 3 &comma; X3 &vert; 2 &comma; X2 &vert; 1 &comma; X1 &rcub; | Eleven (11) , ?{AC&vert; 10 &comma; X10 &vert; 9 &comma; X9 &vert; 8 &comma; X8 &vert; 7 &comma; X7 &vert; 6 &comma; X6 &vert; 5&comma; X5 &vert; 4 &comma; X4 &vert; 3 &comma; X3 &vert; 2 &comma; X2 &vert; 1 &comma; X1 &rcub; | Twelve (12) , ?{AC&vert; 10 &comma; X10 &vert; 9 &comma; X9 &vert; 8 &comma; X8 &vert; 7 &comma; X7 &vert; 6 &comma; X6 &vert; 5&comma; X5 &vert; 4 &comma; X4 &vert; 3 &comma; X3 &vert; 2 &comma; X2 &vert; 1 &comma; X1 &rcub; | Thirteen (13), ?{AC&vert; 10 &comma; X10 &vert; 9 &comma; X9 &vert; 8 &comma; X8 &vert; 7 &comma; X7 &vert; 6 &comma; X6 &vert; 5&comma; X5 &vert; 4 &comma; X4 &vert; 3 &comma; X3 &vert; 2 &comma; X2 &vert; 1 &comma; X1 &rcub; | Fourteen (14), ?{AC&vert; 10 &comma; X10 &vert; 9 &comma; X9 &vert; 8 &comma; X8 &vert; 7 &comma; X7 &vert; 6 &comma; X6 &vert; 5&comma; X5 &vert; 4 &comma; X4 &vert; 3 &comma; X3 &vert; 2 &comma; X2 &vert; 1 &comma; X1 &rcub; | Fifteen (15) , ?{AC&vert; 10 &comma; X10 &vert; 9 &comma; X9 &vert; 8 &comma; X8 &vert; 7 &comma; X7 &vert; 6 &comma; X6 &vert; 5&comma; X5 &vert; 4 &comma; X4 &vert; 3 &comma; X3 &vert; 2 &comma; X2 &vert; 1 &comma; X1 &rcub; | Sixteen (16) , ?{AC&vert; 10 &comma; X10 &vert; 9 &comma; X9 &vert; 8 &comma; X8 &vert; 7 &comma; X7 &vert; 6 &comma; X6 &vert; 5&comma; X5 &vert; 4 &comma; X4 &vert; 3 &comma; X3 &vert; 2 &comma; X2 &vert; 1 &comma; X1 &rcub; }]] Wherever there is a X followed by a number that needs to be replaced by the actual value required to hit that AC with that line's Weapon class. So X10 for class 1 might be replaced by 16 for example