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

Need a quick dice macro that I cannot figure out for Colonial Gothic's 2d12 roll under TN. Please help.

Hi, I hope one of you guys can help me with this. I have tried several different methods, but I really need a better start on this because I don't know how to get both outputs from the same die roll. Here's what I need: Colonial Gothic uses the following to determine success: Roll 2d12 under a Target Number Need to know BOTH of the following: a) The actual roll b) the total number of points under or over the Target Number (because this determines damage multiplier or other success factors) Example: Shoot musket against a Redcoat Target number =14 example roll = (8) is shown The difference (6) is shown Thanks! Jay H
1420315000
Pat S.
Forum Champion
Sheet Author
the easiest way would probably be [[{2d12}-14]] and that would hardcode the target number into the roll but if your target number changes try this instead: [[{2d12}- ?{target number|14}]] That would give you a query for your target number with the default at 14 which you could set it up as an default number.
1420315765

Edited 1420316634
[EDIT: Thanks, great start :) Still not showing both original 2d12 roll and difference (just the difference) How do I do show both? Thanks for the help so far. Here's what shows up: Jay H. (GM): rOLLING 3 3 = 3
1420316828
Pat S.
Forum Champion
Sheet Author
If you mouse over the roll it will show dice roll and the target number.
1420317050
Pat S.
Forum Champion
Sheet Author
What i used is called inline roll [[dice formula]].
Thanks for that answer. Any way to see those results automatically without the mouse-over or is there more detailed scripting needed? Thanks again. jh
1420317416

Edited 1420318974
Ah, I removed the inline brackets and it shows. :) All this is good practice for me since I"m a noob to this. I'll have to work on cleaning up the output appearance somehow.
1420322413
Pat S.
Forum Champion
Sheet Author
As you notice, if you do the /r {2d12}-14 or /r {2d12}- ?{target number|14} you have the actual dice displayed in the chat.