# Rolling dice on the forum

**URL:** <https://tinytails.community/t/rolling-dice-on-the-forum/136>\
**Category:** General\
**Tags:** feature, dice\
**Created:** [5 September 2024 23:01 UTC](https://tinytails.community/t/rolling-dice-on-the-forum/136 "2024-09-05T23:01:04Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![hugh](https://tinytails.community/user_avatar/tinytails.community/hugh/32/101_2.png) [@hugh](https://tinytails.community/u/hugh)\
**Post date:** [5 September 2024 23:01 UTC](https://tinytails.community/t/rolling-dice-on-the-forum/136/1 "2024-09-05T23:01:04Z")

</div>

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

> [@Hey, it's Vijay!](https://tinytails.community/t/hey-its-vijay/64/3):
>
> Are there any dice bots on here?

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

---

<div class="post-metadata">

**Author:** ![dice](https://tinytails.community/user_avatar/tinytails.community/dice/32/148_2.png) [@dice](https://tinytails.community/u/dice)\
**Post date:** [5 September 2024 23:01 UTC](https://tinytails.community/t/rolling-dice-on-the-forum/136/2 "2024-09-05T23:01:10Z")

</div>

Rolling **2d10** :

> 🎲 **9** + **8** = **17**

Rolling **d6+d4** :

> 🎲 **2** + **4** = **6**

Rolling **d6 & D8** :

> 🎲 **2** & **6** = **26**

Rolling **d% + d10** :

> 🎲 **50** + **5** = **55**

Rolling **D100** :

> 🎲 **6**

Rolling **d20 disadvantage** :

> 🎲 Higher: **7**  
> 🎲 Lower: **2**

---

<div class="post-metadata">

**Author:** ![hugh](https://tinytails.community/user_avatar/tinytails.community/hugh/32/101_2.png) [@hugh](https://tinytails.community/u/hugh)\
**Post date:** [5 September 2024 23:04 UTC](https://tinytails.community/t/rolling-dice-on-the-forum/136/3 "2024-09-05T23:04:02Z")

</div>

@dice 1d20-4

---

<div class="post-metadata">

**Author:** ![dice](https://tinytails.community/user_avatar/tinytails.community/dice/32/148_2.png) [@dice](https://tinytails.community/u/dice)\
**Post date:** [5 September 2024 23:04 UTC](https://tinytails.community/t/rolling-dice-on-the-forum/136/4 "2024-09-05T23:04:04Z")

</div>

Rolling **1d20-4** :

> 🎲 **6** - 4 = **2**

---

<div class="post-metadata">

**Author:** ![hugh](https://tinytails.community/user_avatar/tinytails.community/hugh/32/101_2.png) [@hugh](https://tinytails.community/u/hugh)\
**Post date:** [5 September 2024 23:23 UTC](https://tinytails.community/t/rolling-dice-on-the-forum/136/5 "2024-09-05T23:23:53Z")

</div>

@dice 2d100

---

<div class="post-metadata">

**Author:** ![dice](https://tinytails.community/user_avatar/tinytails.community/dice/32/148_2.png) [@dice](https://tinytails.community/u/dice)\
**Post date:** [5 September 2024 23:23 UTC](https://tinytails.community/t/rolling-dice-on-the-forum/136/6 "2024-09-05T23:23:55Z")

</div>

Rolling **2d100** :

> 🎲 **15** + **91** = **106**

---

<div class="post-metadata">

**Author:** ![ellohir](https://tinytails.community/user_avatar/tinytails.community/ellohir/32/146_2.png) [@ellohir](https://tinytails.community/u/ellohir)\
**Post date:** [6 September 2024 07:18 UTC](https://tinytails.community/t/rolling-dice-on-the-forum/136/7 "2024-09-06T07:18:23Z")

</div>

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

@dice  
d100  
d%

---

<div class="post-metadata">

**Author:** ![dice](https://tinytails.community/user_avatar/tinytails.community/dice/32/148_2.png) [@dice](https://tinytails.community/u/dice)\
**Post date:** [6 September 2024 07:18 UTC](https://tinytails.community/t/rolling-dice-on-the-forum/136/8 "2024-09-06T07:18:25Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![ellohir](https://tinytails.community/user_avatar/tinytails.community/ellohir/32/146_2.png) [@ellohir](https://tinytails.community/u/ellohir)\
**Post date:** [6 September 2024 07:20 UTC](https://tinytails.community/t/rolling-dice-on-the-forum/136/9 "2024-09-06T07:20:14Z")

</div>

It speaks!

Is the dice bot a chatGPT wrapper? 🤔

---

<div class="post-metadata">

**Author:** ![hugh](https://tinytails.community/user_avatar/tinytails.community/hugh/32/101_2.png) [@hugh](https://tinytails.community/u/hugh)\
**Post date:** [6 September 2024 07:34 UTC](https://tinytails.community/t/rolling-dice-on-the-forum/136/10 "2024-09-06T07:34:46Z")

</div>

Well it looks like it already explained the difference 😄

> [@ellohir](#):
>
> Is the dice bot a chatGPT wrapper?

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).

---

<div class="post-metadata">

**Author:** ![Vijay](https://tinytails.community/user_avatar/tinytails.community/vijay/32/138_2.png) [@Vijay](https://tinytails.community/u/Vijay)\
**Post date:** [6 September 2024 13:22 UTC](https://tinytails.community/t/rolling-dice-on-the-forum/136/11 "2024-09-06T13:22:37Z")

</div>

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