There isn't a way to do if/then type logic. You can have each thing you need to do have a line of code. I don't know what your roll table name is, so that would need to be put in correctly, but something like this should work: &{template:default} {{name=Random Encounter}} {{Encounter Chance=[[1d20cs>12cf<11]]}} {{Encounter Type=[[1t[rolltablenamehere]]]}} With it set up that way, any roll of 12 or higher is highlighted in green, while 11 or lower is highlighted in red. If it is green, you check out your table result. If you are like me, you may want to have a duplicate 2nd line for the rollable table. If there are a lot of potential results, it could be that some will fit the current situation (or just be more interesting) better than others.