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 .
×
Create a free account
This post has been closed. You can still view previous posts, but you can't post any new replies.

Need help with a Macro

ok first off im not great at this, i know just enough to get by. here is my macro  [[?{#}d?{dice}+?{mod}]]  its simple it just lets me roll any # of dice, any size dice and any mods. all i want to do is make it where it can be a single, advantage or disadvantage roll. i need help please and thank you
1472672415

Edited 1472672528
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Try this: [[?{(dis)advantage|Single,?{#}d?{dice}|Advantage,{?{#}d?{dice},?{#}d?{dice}}kh1|Disadvantage,{?{#}d?{dice},?{#}d?{dice}}kl1}+?{mod}]] You'll want to save this as an ability on a character sheet as the global macros parse the html entities whenever you reopen them.
Scott C. said: Try this: [[?{(dis)advantage|Single,?{#}d?{dice}|Advantage,{?{#}d?{dice},?{#}d?{dice}}kh1|Disadvantage,{?{#}d?{dice},?{#}d?{dice}}kl1}+?{mod}]] You'll want to save this as an ability on a character sheet as the global macros parse the html entities whenever you reopen them. the boxes pop up but it dosen't make a roll
1472674151
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Hmm, I'll take a look when I'm back at a computer. I may have mistyped something.
thank you
1472677330
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Ok, I've tested this one and it works: [[?{(dis)Advantage|Single,?{#}d?{dice}|Advantage,{?{#}d?{dice},?{#}d?{dice} }kh1|Disadvantage,{?{#}d?{dice},?{#}d?{dice} }kl1} + ?{mod}]] Also, is this for 5e, and if so, which sheet, because the 5e sheet templates have support for doing advantage/disadvantage rolls.
it is and we use the ogl sheets and yeah i know but this is for my DM so he can quickly roll any # and size of dice without pulling up a sheet
sorry last thing these need to be gm rolls do i just add /w gm at the front?
1472678423
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Master Azroth said: it is and we use the ogl sheets and yeah i know but this is for my DM so he can quickly roll any # and size of dice without pulling up a sheet Well in that case we can use the ogl simple roll template to do this a lot cleaner and easier (and without the html replacements). So, taking into account that you want these to be gm only: /w gm &{template:simple} {{rname=?{Rolling for what}}} {{mod=?{mod|0}}} {{r1=[[?{#dice|1}d?{die|20}+?{mod}[MOD]]]}} {{?{(dis)advantage|normal|advantage|disadvantage|always}=1}} {{r2=[[?{#dice|1}d?{die|20}+?{mod}[MOD]]]}} to give the nicely formatted output of: Selecting Always in the advantage selector will cause it to roll both, but won't gray the highest/lowest out. Hope that helps
Thanks so much
1472678905
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Np, happy rolling.