Roll Dice

Component ID

2727005

Component name

Roll Dice

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Component created

Component changed

Component body

This is a sandbox project, right now only an idea, yet to be implemented.

I need a die roller. I'm thinking of doing this in a block, with four fields and a log of recent roles showing. The log of rolls will look something like this:

[number]d[number] + [modifier] = [result]: [description]

First number is the count of the dice rolled. Second number is the number of sides on the dice. Modifier would be a number added or subtracted to the result, description would likely be prepended with the person's username, though settings would exist to change this. The numbers are positive, modifier can be negative. Result is computed. Existing values cannot be altered after the fact, unless one has a permission to do so.

Planning for a unique log of rolls per node, and should there not be a single node on the page, the block would be hidden unless a global rolling mode was enabled.