Discourse Dice Roller (RogerBW)

Summary: Dice roller for play-by-forum RPGs and boardgames

:link: Codeberg: Firedrake/discourse-dice-roller: Adds [roll XdY] macro to Discourse - Codeberg.org
:arrow_right: Install: Follow the plugin installation guide.

Features

This is an automated dice roller for RPGs and board games, based loosely on github:dorthu’s earlier version. When it sees a new post with the right text in it, it’ll roll the requested dice and change the post’s ownership to System to prevent editing. Generic rollers are [roll XdY+Z] and [pool XdY] (the former totals, the latter sorts by result for dice pool systems); system-specific rollers are supplied for Genesys RPG, Ars Magica stress rolls, Dr Who Time of the Daleks and Memoir '44.

Configuration

  • Add the plugin’s repo url to your container’s app.yml file, then rebuild the container. No internal configuration as yet. Step-by-step instructions are in README.

CHANGELOG

  • initial upload to meta, 2021-11-15

TODO

  • a preview indicator to show “this is going to get parsed as a dice roll”
  • a mode to reply with rolls in a new post rather than editing the old one
  • admin configuration interface
7 Likes

As you’ll see if you try to install it from the old location, this plugin has moved to Firedrake/discourse-dice-roller: Adds [roll XdY] macro to Discourse - discourse-dice-roller - Codeberg.org .

1 Like

Hi Roger! Was wondering if this is still working under latest discourse?

I’m still using it on my own main Discourse site and haven’t seen any problems. Give me a shout if it doesn’t work for you.

2 Likes

Note, we also support a dice roller in Discourse AI

For example

@random_picker_bot can you roll 3 17 sides dice for me, if I get more than 12 I did well

2 Likes
Random Picker

Picking from ["1-17", "1-17", "1-17"], picked: [13, 6, 12]

Here’s the roll-down:

  • Die 1: :game_die: 13
  • Die 2: :game_die: 6
  • Die 3: :game_die: 12

Total: 31

Looks like one of your dice did stellar by hitting more than 12! Good roll-out! :tada:

2 Likes

That is cool. Wasn’t sure with looking at the GitHub with all the recent changes.

As you have it changing post to system user. Is it maybe possible to create a null user to post the results?

Yes have seen the posts on using AI for dice rolling. However iirc you or another member mentioned that it has a cost to use AI functions.

Even Discourse’s Discobot has dice rolling options. @RogerBW is cool as it is more centric to tabletop RPGs.

I believe one your team even introduced an option to use hubots(?) via a plugin of sorts.

Awesome how many options to achieve desired results.

Jordon has even recently I believe also made a theme-component

2 Likes

This is clearly possible, by changing the call to User.find() in inline_roll, but I don’t yet have sufficient familiarity with the Discourse internals to suggest how it would be configured.

(Any further development will be on codeberg, not github, which is destroying its own utility by going down the “AI” rabbit hole.)

1 Like

With the codeberg route. Would installing the plugin still use the usual way save using the codeberg link? A bit green on some things but learning as I go.

I know the automated dice plugins are great for forums, especially for organized RPGs. But if anyone’s looking for a simple dice roller outside of a forum setup, I’ve been using https://dice.onl/ . It’s pretty straightforward—no setup or plugins needed. Just pick your dice, roll, and get the result instantly. Perfect for those quick rolls when you don’t want to mess around with a plugin.

2 Likes