rolldice

Allows users to make rolls using D20 notation. Usage: /rolldice XDY+Z

Privateunrated

Content

4 lines
{=(difficultyClass):12}
{=(difficultyClass):{if({contains(682449192869953602):{user(roleids)}}==true):25}{if({contains(680876082186027026):{user(roleids)}}==true):20}{if({contains(680877382638370817):{user(roleids)}}==true):18}{if({contains(680877421968490500):{user(roleids)}}==true):16}{if({contains(680877516592120010):{user(roleids)}}==true):14}{if({contains(680877565505699879):{user(roleids)}}==true):12}{if({contains(680877610561175584):{user(roleids)}}==true):10}}

{c:role remove {user(id)} DC {difficultyClass}}

Embed

1 line
{"color": 8675769, "author": {"name": "Dice Roll", "icon_url": "https://i.imgur.com/X5ad9GZ.png"}, "footer": {"text": "Powered by DiceMaster©.", "icon_url": "https://i.imgur.com/JbhKh1h.png"}, "thumbnail": {"url": "https://i.imgur.com/3bdfekT.png"}, "description": "{=(dicestring):{replace(D,|):{args}}}\n{=(dicestring):{replace(d,|):{dicestring}}}\n{=(dicestring):{replace(+,|):{dicestring}}}\n{=(dicestring):{replace(-,|-):{dicestring}}}\n{=(quantity):{dicestring(1):|}}\n{=(sides):{dicestring(2):|}}\n{=(mod):{dicestring(3):|}}\n\n{break({mod}=={dicestring}):{=(roll):{range:1-{sides}}}\n{=(vanillaroll):{roll}}\n{=(roll):{math:{roll}*{quantity}}}\n{=(roll):{math:trunc({roll})}}\n{user} rolls **{roll}** ({quantity}D{sides}){any({vanillaroll}==20|{vanillaroll}==1):!|.}\n}\n\n{break({quantity}==):<:dicemaster:521141727839387664> You must specify the number of dice. Use the format `AdX+B`.}\n{break({sides}==):<:dicemaster:521141727839387664> Dice must have at least one side. Use the format `AdX+B`.}\n\n{=(roll):{range:1-{sides}}}\n{=(vanillaroll):{roll}}\n{=(roll):{math:{roll}*{quantity}}}\n{=(roll):{math:{roll}+{mod}}}\n{=(roll):{math:trunc({roll})}}\n\n{all({roll}>={difficultyClass}|{vanillaroll}<20|{vanillaroll}>1):<:yes:574448369502781450> **Success!**}{all({roll}<{difficultyClass}|{vanillaroll}<20|{vanillaroll}>1):<:no:574448369548656640> **Failure!**}{if({vanillaroll}==20):<:yes:574448369502781450> **Critical Success!**}{if({vanillaroll}==1):<:no:574448369548656640> **Critical Failure!**} {user} rolls **{roll}** ({quantity}D{sides}{if({mod}>=0):+}{mod}){any({vanillaroll}==20|{vanillaroll}==1):!|.}"}
Raw JSON
{
  "id": 112864,
  "created_at": "2020-01-25T21:03:09.000Z",
  "tag_name": "rolldice",
  "nsfw": false,
  "owner_id": "206442032888021004",
  "uses": 94,
  "description": "Allows users to make rolls using D20 notation.\n\nUsage: /rolldice XDY+Z",
  "restricted": false,
  "shared": false,
  "deleted": false,
  "safe": "unrated",
  "hidden": false,
  "guild_id": "670347197253943296",
  "sharer": "206442032888021004",
  "content": "{=(difficultyClass):12}\n{=(difficultyClass):{if({contains(682449192869953602):{user(roleids)}}==true):25}{if({contains(680876082186027026):{user(roleids)}}==true):20}{if({contains(680877382638370817):{user(roleids)}}==true):18}{if({contains(680877421968490500):{user(roleids)}}==true):16}{if({contains(680877516592120010):{user(roleids)}}==true):14}{if({contains(680877565505699879):{user(roleids)}}==true):12}{if({contains(680877610561175584):{user(roleids)}}==true):10}}\n\n{c:role remove {user(id)} DC {difficultyClass}}",
  "embed": "{\"color\": 8675769, \"author\": {\"name\": \"Dice Roll\", \"icon_url\": \"https://i.imgur.com/X5ad9GZ.png\"}, \"footer\": {\"text\": \"Powered by DiceMaster©.\", \"icon_url\": \"https://i.imgur.com/JbhKh1h.png\"}, \"thumbnail\": {\"url\": \"https://i.imgur.com/3bdfekT.png\"}, \"description\": \"{=(dicestring):{replace(D,|):{args}}}\\n{=(dicestring):{replace(d,|):{dicestring}}}\\n{=(dicestring):{replace(+,|):{dicestring}}}\\n{=(dicestring):{replace(-,|-):{dicestring}}}\\n{=(quantity):{dicestring(1):|}}\\n{=(sides):{dicestring(2):|}}\\n{=(mod):{dicestring(3):|}}\\n\\n{break({mod}=={dicestring}):{=(roll):{range:1-{sides}}}\\n{=(vanillaroll):{roll}}\\n{=(roll):{math:{roll}*{quantity}}}\\n{=(roll):{math:trunc({roll})}}\\n{user} rolls **{roll}** ({quantity}D{sides}){any({vanillaroll}==20|{vanillaroll}==1):!|.}\\n}\\n\\n{break({quantity}==):<:dicemaster:521141727839387664> You must specify the number of dice. Use the format `AdX+B`.}\\n{break({sides}==):<:dicemaster:521141727839387664> Dice must have at least one side. Use the format `AdX+B`.}\\n\\n{=(roll):{range:1-{sides}}}\\n{=(vanillaroll):{roll}}\\n{=(roll):{math:{roll}*{quantity}}}\\n{=(roll):{math:{roll}+{mod}}}\\n{=(roll):{math:trunc({roll})}}\\n\\n{all({roll}>={difficultyClass}|{vanillaroll}<20|{vanillaroll}>1):<:yes:574448369502781450> **Success!**}{all({roll}<{difficultyClass}|{vanillaroll}<20|{vanillaroll}>1):<:no:574448369548656640> **Failure!**}{if({vanillaroll}==20):<:yes:574448369502781450> **Critical Success!**}{if({vanillaroll}==1):<:no:574448369548656640> **Critical Failure!**} {user} rolls **{roll}** ({quantity}D{sides}{if({mod}>=0):+}{mod}){any({vanillaroll}==20|{vanillaroll}==1):!|.}\"}",
  "last_fetched": "2026-10-20T20:53:42.586Z"
}