I'm looking at the advanced Roll Queries , and I just familiar enough to coding to be tragically stupid. I know I'm looking to emulate conditional statement (a nested If , or Case statement) SPECIFIC USE: I have a character in a 5e campaign using homebrew with a randomized table event driven ability (Wild Surge) 1t[Wild_Surge] Their ability is to grant advantage on that roll 2t[Wild_Surge]) pick between the results. But they also can modify the resulting random roll upward by expending spell slots ?{SPELL SLOT|Option1|Option2|Option3|Option4|Option5} - the % random table's elements are value oriented so that negative events are lower values on the table, better are higher. % (d100) Result 1 You explode, dealing (your level)d6 damage to every thing within 30ft of you (You immediately go to 0 HP), death saves are at disadvantage) 2 You instead create an explosion around yourself It functions like fireball except you’re a target too and damage is 9d4 piercing and slashing damage* 3 You cast Fireball 3rd level spell slot centered on you 4 Caster loses 1d10 maximum hit points until long rest ... 98 Your spell goes off as normal. If your spell does damage, it will do the maximum. 99 Spell Effect goes off as normal. Spell effectiveness (range, duration, area of effect, damage, etc.) is doubled. 100 Spell Effect goes off as normal. So I need to somehow PASS a modified d100 roll to the table for its result, or make a macro that uses conditional logic so that the roll + the queried value adjustment is factored into the result. If x = 1 then "/em explodes, dealing [[ @{target|level} d6]] Fire damage to every thing within 30ft of (@{Target|Name} goes immediately go to 0 HP), death saves are at disadvantage)" Else if x =2 Then " .... Is that possible?