News:

New Board created - Goofy Pic Posting. Go populate it and stuff.  :P

Main Menu

* TalkBox

TalkBox v1.0
 

How to use the dice bbc

Started by Duce, July 04, 2014, 03:36:41 AM

Previous topic - Next topic

Duce

Here's the how the mod says it works.

It starts from a [roll] tag, and outputs a [blockquote] 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:

[roll]1d6[/roll] - rolls 1 6-sided dice.
Might result in:
[blockquote]Rolled 1d6 : 3, total 3[/blockquote]

[roll]2d12+5[/roll] - roll 2 12-sided dice and add 5 to the result
Might result in:
[blockquote]Rolled 2d12+5 : 6, 10 + 5, total 21[/blockquote]

[roll]2d20^10[/roll] - roll 2 20-sided dice, re-rolling any result necessary so that the dice rolls are greater than 10.
Might result in:
[blockquote]Rolled 2d20^10 : 12, 7 19, total 31[/blockquote]

[roll]2d20v10[/roll] - roll 2 20-sided dice, re-rolling any result necessary so that the dice rolls are less than 10.
Might result in:
[blockquote]Rolled 2d20v10 : 5, 5, total 10[/blockquote]

[roll]2d20<10[/roll] - roll 2 20-sided dice, discarding any result where the roll was not less than 10.
Might result in:
[blockquote]Rolled 2d20<10 : 6, 3, total 9[/blockquote]

[roll]2d20>10[/roll] - roll 2 20-sided dice, discarding any result where the roll was not greater than 10.
Might result in:
[blockquote]Rolled 2d20>10 : 18, 16, total 34[/blockquote]

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:
[roll]{Freezing} 1d10 {Fire} 1d20[/roll]
Might result in:
[blockquote]Freezing 1d10 : 4, total 4
Fire 1d20 : 18, total 18[/blockquote]

You can also nest the requirements, with the proviso of stating the things as they are in order here.
[roll]{Uberdamage} 15d100+10^10v90<80>20[/roll] - 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.
Might result in:
[blockquote]Uberdamage 15d100+10^10v90<80>20 : 56, 91 14, 95 41, 46, 89, 88, 98 67, 94 13, 27, 72, 80, 17, 74, 48, 82 + 10, total 441[/blockquote]


Lastly you can also have an iterator at the end:
[roll]2d6x3[/roll] - roll 2d6 3 times and display the results overall

Might result in:
[blockquote]Rolled 2d6 : 4, 3, total 7
Rolled 2d6 : 5, 6, total 11
Rolled 2d6 : 1, 3, total 4[/blockquote]