I'm new to Macros in Roll20, system is Pathfinder and I'm having a hard time figuring out the correct syntax for this task. I want to have a die as bonus damage in my buff slot instead of a fixed number. I tried: 1d6 +1d6 /roll1d6 [[1d6]] [[+1d6]] +[[/roll1d6] [[ @{1d6} ]] +[[ @{1d6} ]] Google gives me generic results, none of them is specifically about adding a damage die as a buff. I'm confused. ******************* UPDATE********************* Thread was auto-closed, in the meantime I found a solution: Add this in the weapon notes: Sneak Attack Damage: [[ [[ ceil([[ @{repeating_buff_$x_buff-enable_toggle} + @{repeating_buff_$y_buff-enable_toggle} + @{repeating_buff_$z_buff-enable_toggle} ]]/3) ]] *nd6 ]] n = insert the number of your character's sneak attack dice x,y, and z obviously represent the buff number associated. I'm using these: X = Flanking Buff (adds +2 to hit) Y = Invisibility Buff (will be used in the Stealth Skill, also gives +2 to hit) Z = Any other cause of sneak attack with no bonuses ingrained (succesful feint, flat-footed, hunter's surprise, whatever) What it does: 1) Uses the "@{repeating_buff_$#_buff-enable_toggle}" function to check if buff # is active (value=1) or not (value=0) 2) Adds together the relevant buffs 3) Divides by 3 This produces 2 possible results: - 0, because no condition is met - fraction between 0 and 1, because one or more conditions are met 4) The "ceil()" function always rounds up. Therefore, if it was 0, it stays 0 if it was >0 AND <1, it becomes 1 (note: it cannot be >1 because we divided by 3. If we're using more conditions, adjust the number accordingly) 5) multiplies the result (either 0 or 1) by the number of sneak attack dice In short: As long as at least one condition is met, sneak attack will happen. There, done. Thanks to everybody who posted in this thread. I couldn't do this without your help.