Skip to content
This repository was archived by the owner on Jun 16, 2025. It is now read-only.

discourse/discourse-dice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

discourse-dice

A theme component that allows users to roll dice in their posts. For more information see [meta topic goes here].

Modifiers

Currently implemented rolling modifiers include:

  • +[N] and -[N] - add or subtract a modifier from the result
  • t[N] - report pass/fail versus a threshold
  • i - report individual results instead of summing up

plus the crit=N,N,N attribute on the wrap to specify which (natural) rolls are "criticals".

Examples

[wrap=dice crit=1,20]d20[/wrap]
[wrap=dice]2d6[/wrap]
[wrap=dice]2d6+1t9[/wrap]

About

Allow users to roll dice in their posts

Topics

Resources

License

Stars

Watchers

Forks

Contributors 12