So if you ask a question you can do something like this: ?{NumberofMissiles|1,([[1d4+1]])|2,([[1d4+1]] and [[1d4+1]])|3,([[1d4+1]] and [[1d4+1]] and [[1d4+1]])|4,([[1d4+1]] and [[1d4+1]] and [[1d4+1]] and [[1d4+1]])|5,([[1d4+1]] and [[1d4+1]] and [[1d4+1]] and [[1d4+1]] and [[1d4+1]])} But what if I want to do a macro that calculates the number of missiles and then roles the number of sets? [[{5,(ceil((@{Selected|MageLevel})/2))}kl1)]] and that gives me a result of 1 to 5 which I then want to use as input for the query. Is there some way to do this? I need to see each role seperately as the different results can be applied to different targets