Author Topic: How to use the dice bbc  (Read 8095 times)

Offline Duce

  • Administrator
  • Regular Member
  • *****
  • Posts: 71
  • Tech Admin
How to use the dice bbc
« on: July 04, 2014, 05:36:41 AM »
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:
Rolled 1d6 : 3, total 3


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


[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:
Rolled 2d20^10 : 12, 7 19, total 31


[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:
Rolled 2d20v10 : 5, 5, total 10


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


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


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:
Freezing 1d10 : 4, total 4
Fire 1d20 : 18, total 18


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:
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



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:
Rolled 2d6 : 4, 3, total 7
Rolled 2d6 : 5, 6, total 11
Rolled 2d6 : 1, 3, total 4