Discourse 주사위 굴리기 (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개의 좋아요

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 - Codeberg.org .

1개의 좋아요

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개의 좋아요

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개의 좋아요
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개의 좋아요

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?

AI를 주사위 굴리기에 활용하는 게시글들을 확인했습니다. 그런데 제 기억이 맞다면, 귀하나 다른 멤버 중 누군가가 AI 기능을 사용하려면 비용이 발생한다고 언급했던 것 같습니다.

Discourse의 Discobot에도 주사위 굴리기 옵션이 있습니다. @RogerBW는 테이블톱 RPG에 더 특화되어 있어 좋습니다.

팀 중 한 명이 플러그인 형태로 hubots(?)를 사용할 수 있는 옵션을 도입했다고 생각합니다.

원하는 결과를 얻을 수 있는 옵션이 이렇게나 다양하다니 정말 놀랍네요.

Jordon도 최근 #customization:theme-component를 만들었다고 들었습니다.

2개의 좋아요

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개의 좋아요

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.