Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×

Please help with programming this macro!

I'm trying to modify this so it also adds a 1d6 roll to this history check, except I dont know where to insert the "+1d6". Anyone know where I add this in? Here is the History part of the macro: |History,+[[(@{selected|history_bonus}@{selected|pbd_safe}*(1-ceil((@{selected|npc})*0.00001)))+(@{selected|npc_history}*@{selected|npc})]][ARC] ]]}} {{rname=^{history-u}}} {{mod=[[ [[(@{selected|history_bonus}@{selected|pbd_safe}*(1-ceil((@{selected|npc})*0.00001)))+(@{selected|npc_history}*@{selected|npc})]][HIST] ]]}} {{r1=[[@{selected|d20}+[[(@{selected|history_bonus}@{selected|pbd_safe}*(1-ceil((@{selected|npc})*0.00001)))+(@{selected|npc_history}*@{selected|npc})]][HIST] ]] 
1610430553

Edited 1610430783
Oosh
Sheet Author
API Scripter
There are two places you'll need to add it, though it's going to roll two different values if you have Advantage or Disadvantage. If you (or your GM) don't mind that, this should work: |History,+[[(@{selected|history_bonus}@{selected|pbd_safe}*(1-ceil((@{selected|npc})*0.00001)))+(@{selected|npc_history}*@{selected|npc})]][ARC] +1d6[Bonus] ]]}} {{rname=^{history-u}}} {{mod=[[ [[(@{selected|history_bonus}@{selected|pbd_safe}*(1-ceil((@{selected|npc})*0.00001)))+(@{selected|npc_history}*@{selected|npc})]][HIST] ]]}} {{r1=[[@{selected|d20}+[[(@{selected|history_bonus}@{selected|pbd_safe}*(1-ceil((@{selected|npc})*0.00001)))+(@{selected|npc_history}*@{selected|npc})]][HIST] +1d6[Bonus] ]] If you want the 1d6 rolled once, and the same number applied to both Advantage/Disadvantage rolls, you'll need to switch the template. At the start of the macro, change &{template:simple} to &{template:simple3D} .Then change the History part to this, instead: |History,+[[(@{selected|history_bonus}@{selected|pbd_safe}*(1-ceil((@{selected|npc})*0.00001)))+(@{selected|npc_history}*@{selected|npc})]][ARC]]]}} {{r3= + [[1d6[Bonus]]]}} {{rname=^{history-u}}} {{mod=[[ [[(@{selected|history_bonus}@{selected|pbd_safe}*(1-ceil((@{selected|npc})*0.00001)))+(@{selected|npc_history}*@{selected|npc})]][HIST] ]]}} {{r1=[[@{selected|d20}+[[(@{selected|history_bonus}@{selected|pbd_safe}*(1-ceil((@{selected|npc})*0.00001)))+(@{selected|npc_history}*@{selected|npc})]][HIST] ]] In both cases, change the [Bonus] to the name of wherever you get this bonus from if you wish, and add cf0cs0 if you don't want the crit colouring. For example: [[ 1d6cs0cf0[Librarian] ]] Due to limitations with re-using roll values in Roll20, you can't combine the two methods. So you can't have a roll result added to both Advantage and Disadvantage rolls and have the total reported - it will always be displayed as Roll + Modifier, much like using Global Modifiers.
You are amazing. Thank you so much