Something like this should do the trick: [[?{How many dice?|6}d10>10f<[[?{Difficulty?|5}-1]]cf<[[?{Difficulty?}-1]] + ?{How many dice?}]] This is an inline roll, good for inserting into a template or an emote - the die rolls are on mouseover. If you want a bigger output with all the dice roll values, remove the leading [[ and final ]] and put /r at the start instead (then a space). Is it always a d10? You can throw another query in there to change the die type if you wish. You can also change the ?{How many dice?} Query into an Attribute call if it's tied to something on a character sheet (not familiar at all with the game, sorry). The basic formula was shamelessly stolen from GiGs... he posted it somewhere else, no idea if it was the same game or not.