Dice Roller

From CTwiki
Jump to navigation Jump to search

to generate dice rolls we will be using a piece of BBcode. this is the same way in which we do things like make an item bold or Underlined. To generate a roll simply add [code][roll] [/roll][/code] on either side of your desired dice roll. Additionally the [[File:]http://criticalthreat.gooberfodder.net/smf/Themes/darkbreak_20rc3/images/bbc/roll.gif]] button in your editor window will add the tags for you.


USAGE:

Basic Roll let us say that we want to roll 3d6. we would simply use the following piece of code: [roll]3d6[/roll]

The result would look something like this:

Rolled 3d6 : 2, 5, 3  total 10

Modifying a roll Of course we rarely use basic rolls. Often we want to modify these rolls in some way be it adding or subtracting from a roll or rolling the same set of dice multiple times as in stat generation.

To add or subtract an amount from a roll simply use the + or - modifiers like this: [roll]2d12+5[/roll]

This will result in something like this:

Rolled 2d12+5 : 6, 11 + 5, total 22

Now lets say that we wanted to create a grouped ATTACK and DAMAGE roll. The default description for a roll is "rolled." the result shows "ROLLED 2d12+5" but what if we wanted that label to say DAMAGE: 2d12+5? we can change this by simply enclosing the labels we want within '{ }' in our roll.

To illustrate this we will create a set of rolls for attack and damage. we want our rolls to say "ATTACK: 1d20+5" and DAMAGE: 2d6+7". The code we need for this is:[roll]{ATTACK:} 1d20+5 {DAMAGE:} 2d6+7 [/roll]

This results in a return of:

ATTACK: 1d20+5 : 13 +5, total 18
DAMAGE: 1d6+7: 2 +7, total 9

Rolling Stats The next issue is rolling basic stats. The normal CT rolling formula is 6 rolls of 4d6 rerolling anything 2 or under. so how do we do this with the new rolling tag? simple!

First we must learn how to roll MULTIPLE SETS of dice to do this we simply add a multiplier after the roll to be made like this: [roll]2d6x3[/roll]

This would result in:

Rolled 2d6 : 6, 3, total 9
Rolled 2d6 : 1, 4, total 5
Rolled 2d6 : 1, 5, total 6

Next we need to learn how to REROLL any roll of 2 or below. The carrot character '^' allows us to keep only rolls ABOVE a certain number while the 'v' character allows us to keep rolls BELOW a certain number. [roll]2d20^10[/roll] and [roll]2d20v10[/roll]

would respectively look like this:

Rolled 2d20^10 : [s]3 8 10 3[/s] 17, [s]2 10 9 10[/s] 14, total 31

and

Rolled 2d20v10 : [s]11[/s] 3, 3, total 6

as you can see all the rolls are still listed, however the unwanted rolls are struck through.

So lets roll some statistic now! the code we will use is as follows: [roll]4d6^2x6[/roll]

and this results in:

4d6^2 : 6, [s]1[/s] 5, 3, 3,  17
4d6^2 : 5, [s]1 2[/s] 3, 5, 4,  17
4d6^2 : [s]2 2[/s] 5, 4, 5,[s] 2 1 1[/s] 4,  18
4d6^2 : 3, [s]1[/s] 6, 3, 6,  18
4d6^2 : 4, 5,[s] 2[/s] 3, 5,  17
4d6^2 : 3, 4, 3, [s]2[/s] 3,  13

And there we are! I hope this article has helped explain the new changes to our site. please feel free to contact me with any questions you may have

-Krathognis