[ Open in New Window ]
Macros [hide]
[X]
Name: (Save the dice roll as a re-usable button)
Campaigns [?] [hide]
Campaigns allow multiple people to share and use a single dice roller. All rolls are logged to the group so you can see who rolled what and what the result was. Useful for play-by-post or email!
Directions [?] [hide]
Syntax | |
1d20 | Rolls a 20-sided die. The first number is the amount of dice and the second is the number of faces on each die. |
2d20+5 | Rolls two 20-sided dice and adds 5 to them. |
d10-d4 | Rolls a 10-sided die and a 4-sided die and subtracts the two. |
5*d100 | Rolls a 100-sided die and multiplies the result by 5. |
d6+d6+d6+d6-low | Rolls four 6-sided dice and subtracts the lowest result. |
d20+d20-high | Rolls two 20-sided dice and subtracts the highest result. 5e Disadvantage, to use Advantage you can do d20+d20-low. |
d6r2 | Rolls a 6-sided die and will reroll on a result of 2 or lower. |
d20+5;d8+3 | Use a semicolon to make multiple rolls at once. |
Input any sort of dice string you wish to roll followed by any valid arithmetic. Syntax is: [number of dice]d[number of sides on die][arithmetic]. Some examples separated by commas: d6, 1d20+5, 1d4+(5-2)/2, 3d8-6+2, d10+5+1d8, 5*1d100
You can also use "low" or "high" to use the lowest/highest dice roll in your result. For example, for 4d6 drop the lowest: d6+d6+d6+d6-low
You can reroll dice below a certain amount (like for rolling brutal weapons in D&D 4e) syntax is #d#r# where the third # is the number to reroll on. Some examples: d8r2+5, 2d6r1
If you register on the left, you can create a campaign, which allows a group of people to share a single dice roller. After creating a campaign, you can add usernames to your group, and they'll be able to access and use an instance of that dice roller. Whenever anyone in your group makes a roll it will be broadcasted to the entire group, and show who rolled and what they rolled. If you run a pbp, pbe, or any sort of online game where the DM primarily needs to resolve the rolls for everyone, you can use a campaign to allow the players to roll instead since they won't be able to fake their results in the dice generator or hide rerolls.
When rolling in a campaign you can optionally specify a description of your roll to broadcast to other players, and/or select a target to roll against. The targets are set by the group owner, and their number value cannot be seen by the players. When you roll against a target, a roll above the taget amount will be a 'hit,' while a roll below will be a 'fail.' Using these allows your players to know if they've succeeded or not right away, without necessarily telling them the number they need to roll. It's up to you to decide how to determine the target numbers and what a hit or fail means.
'; par.appendChild(div);}function saveAllMacros() { var inps = $('diceMacroList').getElementsByTagName("input"); svar.name=[]; svar.txt=[]; for (var i = 0; i < inps.length; ++i) { svar.name.push(inps[i].value); var txt = ""+inps[i].onclick; svar.txt.push(txt.match(/'(.*?)'/)[1]); } var svtx = JSON.stringify(svar); localStorage.setItem("diceMacros",svtx); //$('diceMacroVar').value=svtx; //ajSub($('diceMacroForm'),onSub);}function ajSub(form, callback) { var xhr = aI(); var params = [].filter.call(form.elements, function (el) {return !(el.type in ['checkbox', 'radio']) || el.checked;}) .filter(function(el) { return !!el.name; }) .filter(function(el) { return !el.disabled; }) .map(function(el) { return encodeURIComponent(el.name) + '=' + encodeURIComponent(el.value); }).join('&'); xhr.open("POST", form.action); xhr.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); xhr.onload=function(){callback(xhr);}; xhr.send(params); return false;}function onSub(a){ if (a.responseText.startsWith("login")) { $('errmsg').innerHTML="If you log in on the left your macros will be accessible on any device you use."; } else if (a.responseText.startsWith("error")) { $('errmsg').innerHTML="Error! You should email kassoon@kassoon.com with this: "+a.responseText; }}
This website exists thanks to the contribution of patrons on Patreon. If you find these tools helpful, please consider supporting this site. Even just disabling your adblocker will help (it's only text and plain image ads I promise). Becoming a patron will upgrade your account to premium, giving you no ads and more features.
Shout outs: Stacey, Sarah Burbridge, Lugia, Completely Colorless, Revan#4962, Jane McClintock, Elisa Martinez, Ryan Flagg, JMartins, Jade Arrowood, Sean Kane, Angelo Anderson, yoland katamari, Jamie Ryan Rose, Dave Walker, Rhonda Seiter, Noble Saffron, Alexa Hobusch, Jonathan Lekse, DMMichael7000, Katie White, Subzotic, JollyGamer, Jayden wingler, Yi Tan, Emma Holloway, Ashley Sullivan, Gillian Tolbert, David R Abbott, S.T. Jenkins, Vanda Leipold, Rick Marsh, Brittany DeNicholas, Phillip Hash, Bobbie Crane, Amanda Kettles, Anthony Brown, Lou Bliss, Treighton, Pythor Sen, Michael Isberg, Nat, Cory Evans, Thomas Wilhelm, Krueger82, BestWorseCaseScenario, Damian Steele, Icarus Unleashed, Mark L, Conall Reilly, Alex, keith oneal rogers, Moss, Ash Harkness, Merissa, Patrick Natale, Cam Largent, Thaddeus Johnson, Siren, Donavan Guay, AstroLass, Chandlor Desper, Lizzie, Jordan, Rincewind, Michael Hamilton, Rob Hale, Vedie V, Mylon Schroder, Nathan, Tiffany Mathis, Joseph Mitchell, Jordan Florez, Robert Rich, Rodney O'Dell, Robin Ellis-Foster, Deanna Pyle, Jess, Meme Pitt-Melton, Zee Livezey, Kevin, ryan scott, Kerry Melton, Mary Kieser, SallySparrow132, Lunesolace, DJ_Kelf, Cassandra Keyes, Naomi B, Millergendraft, Nick Soucy, Ellen Mitchell, Melanie Warga, Jeremiah Walker, Bryan Sheairs, Bryan Kempka, chris wilson, Max Hops, Sarah Holland, Joshua David Maddox, Jennifer Smith, Ray Bissonnette, Joe Dalby, Joline Tran, Nicholas Zamora, ShortyMcgibble, Mr. Vinclair, mtnman1979@aol.com, KFB_Patreon, eric sun, Dani, Bruce Willison, Gundar Wez, Ken Shapiro, Nahellion, Ben Pytlik, Serena Verden, bilbens baggo, Stuart, Brysen Packer, Galygious, Tim Mason, Maxwell Mayer, Gannon Dubay, Thobek, Aaron Teupe, Felix Schmäche, XMrMonkyx ., Miss Zilla M, Jordan Brazeal, Kyle Clark, Jake Lane, Adam Ruiz, Phillip P Torchia, Natalie Luttrell, Stefan Gottschalk's, Remora Jewel, Buffonturtle, jeremy baisch, Zealot23, Shane Andrews, CJMAXP, Chevy Jones, KingHavok1217, Mx Charlie, Shazear, Curran Vallejo, Steve Rosenlund, Leanna Orr, lufink, Ezzela1891, John Nazario, Gary, Gordon Alexander Fallon, Jason Clark, Trey Vickory
Their contribution stands as a beacon of hope for all adventurers!