This was requested, so here's a dice roll mod, you'll see a button that looks like a dice appearing now on the far right of your posting page.
This mod allows users to roll dice. They can use the preview function to preview dice rolls to make sure they have it right for what they want, but once they press Post, the dice rolls are embedded in the post, meaning that the only way they can change is if the post is edited, but a warning is issued if that is attempted.
It starts from a [roll] tag, and outputs a
This dice roll has been tampered with! tag (implemented just for the mod) - trying to use the blockquote tag outside of [roll] circumstances (such as quoting the post, or better, editing the post) generates a visible warning.
There are a variety of options you can have inside the roll tag:
[blockquote]Rolled 1d6 : 1, total 1[/blockquote]
- rolls 1 6-sided dice.
Might result in:
Rolled 1d6 : 2, total 2
[roll]
Rolled 2d12+5 : 9, 5 + 5, total 19
[/roll]- roll 2 12-sided dice and add 5 to the result
Might result in:
Rolled 2d12+5 : 6, 11 + 5, total 22
[roll]
Rolled 2d20^10 : 7 17, 7 15, total 32
[/roll] - roll 2 20-sided dice, re-rolling any result necessary so that the dice rolls are greater than 10.
Rolled 2d20^10 : 3 8 10 3 17, 2 10 9 10 14, total 31
[blockquote]Rolled 2d20v10 : [s]16[/s] [s]16[/s] [s]18[/s] 5, 9, total 14[/blockquote]
- roll 2 20-sided dice, re-rolling any result necessary so that the dice rolls are less than 10.
Rolled 2d20v10 : 11 3, 3, total 6
[blockquote]Rolled 2d20<10 : 4, 2, total 6[/blockquote]
- roll 2 20-sided dice, discarding any result where the roll was not less than 10.
Rolled 2d20<10 : 4, 20, total 4
[roll]
Rolled 2d20>10 : 1, 6, total 0
[/roll] - roll 2 20-sided dice, discarding any result where the roll was not greater than 10.
Rolled 2d20>10 : 9, 10
Normally it will add the word 'Rolled' in front - you can customise this. For example, a spell that does some serious damage in a game:
[blockquote]Freezing 1d10 : 10, total 10
Fire 1d20 : 8, total 8[/blockquote]
Freezing 1d10 : 1, total 1
Fire 1d20 : 2, total 2
You can also nest the requirements, with the proviso of stating the things as they are in order here.
[blockquote]Uberdamage 15d100+10^10v90<80>20 : 46, 31, 48, 70, [s]10[/s] [s]5[/s] 53, 29, 59, [s]13[/s], 47, 59, [s]98[/s] [s]14[/s], [s]1[/s] [s]98[/s] 24, [s]97[/s] [s]84[/s], [s]82[/s], 74 + 10, total 550[/blockquote]
- 15 100-sided dice, adding 10 to the result, rerolling anything 10 or less, rerolling anything 90 or higher, and if after that, you have values 20 or less, or 80 or higher, they get dropped.
Uberdamage 15d100+10^10v90<80>20 : 82, 7 61, 3 36, 59, 30, 86, 14, 42, 70, 22, 99 58, 100 73, 46, 93 1 91 42, 12 + 10, total 549
Lastly you can also have an iterator at the end:
[blockquote]Rolled 2d6 : 4, 5, total 9
Rolled 2d6 : 2, 1, total 3
Rolled 2d6 : 3, 1, total 4[/blockquote]
- roll 2d6 3 times and display the results overall
Rolled 2d6 : 6, 3, total 9
Rolled 2d6 : 1, 4, total 5
Rolled 2d6 : 1, 5, total 6
BBcode is not supported anywhere inside the [roll] tag.