Rolling dice on the forum

The other day, @Vijay asked about a dice roller on this forum:

Well, we didn’t have a good one at that time, but now we do!

To use the dice roller at any time, simply mention the user @dice and include the dice notation you need. It can handle most things, but please reply to this post to say if there’s anything else you think should be included. Anyone can use this, and you can do it in the main post of a topic, or in a reply.

Some things it can handle are:

  • Basic rolls of any number of dice - e.g. d6, 1d8, 2d10, 3d100
  • Basic modifiers - e.g. 1d8+4, d20-5
  • Dice as modifiers - e.g. d8+d6
  • Multiple dice combined - e.g. d6 & d6 will mimic a d66 roll
  • Percentage die: d%
  • Advantage/disadvantage - e.g. d20 advantage or d12 disadvantage

Some notes:

  • You can perform multiple rolls in one request by putting each one on a new line (see below).
  • The ‘d’ is not case-sensitive, so you can make it lower or upper case.

Please continue to test it out by replying to this post with anything you like to see how it works. If something doesn’t work as expected, let me know!

Here’s an example of the roller in action - the first reply to this post will include the results:

@dice 2d10
d6+d4
d6 & D8
d% + d10
D100
d20 disadvantage

1 Like

Rolling 2d10:

:game_die: 9 + 8 = 17

Rolling d6+d4:

:game_die: 2 + 4 = 6

Rolling d6 & D8:

:game_die: 2 & 6 = 26

Rolling d% + d10:

:game_die: 50 + 5 = 55

Rolling D100:

:game_die: 6

Rolling d20 disadvantage:

:game_die: Higher: 7
:game_die: Lower: 2

@dice 1d20-4

Rolling 1d20-4:

:game_die: 6 - 4 = 2

@dice 2d100

Rolling 2d100:

:game_die: 15 + 91 = 106

Very cool. What’s the difference between these two?

@dice
d100
d%

1 Like

The difference between d100 and d% lies in the range of results they produce:

  • d100: This indicates a 100-sided die, which produces a result ranging from 1 to 100.

  • d%: This represents a percentage die, which produces a result from the set of multiples of ten: 0, 10, 20, 30, 40, 50, 60, 70, 80, 90.

In summary, d100 gives you a number between 1 and 100, while d% results in a number from 0 to 90 in increments of ten.

2 Likes

It speaks!

Is the dice bot a chatGPT wrapper? :thinking:

2 Likes

Well it looks like it already explained the difference :smile:

Discourse (the platform this site runs on) has built-in AI features. You need to connect it to a service - in this case I went with GPT-mini - and then you can create “personas” to interact with. I created the dice roller persona, explained TTRPG dice notation to it, and told it how to respond. None of the content on the site, persona instructions, or anything else from here is fed back to the model though - it’s all self-contained on this site.

I might tell it not to respond to anything other than dice notation going forward, so it doesn’t answer other questions in the post like it did for you (although that was actually quite helpful in this case).

1 Like

Thanks @hugh! This is great - I specially love the AI dice - that’s actually really cool!

1 Like