The Irate Pirate RPG Forums

Title: How to use the Dice Roller Tool
Post by: Otter on February 25, 2017, 12:15:57 AM

We have installed a dice roll tool that allows users to roll dice! You can use the preview function to preview dice rolls to make sure you have the correct syntax for the role you want, but once you press Post, the dice rolls are embedded in the post. This means that the only way you can change it is if the post is edited--but a warning is issued if that is attempted.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.

[ roll ]2d20^10[/roll] means Roll (2) 20-sided dice, re-rolling any result necessary so that the dice rolls are greater than 10

Rolled 2d20^10 : 16, 15, total 31

[ roll ]2d20v10[/roll] means Roll (2) 20-sided dice, re-rolling any result necessary so that the dice rolls are less than 10

Rolled 2d20v10 : 1115 4, 3, total 7

[ roll ]2d20<10[/roll] means Roll (2) 20-sided dice, discarding any result where the roll was not less than 10)

Rolled 2d20<10 : 16, 18, total 0

[ roll ]2d20>10[/roll] means Roll (2) 20-sided dice, discarding any result where the roll was not greater than 10)

Rolled 2d20>10 : 4, 13, total 13

Normally it will add the word 'Rolled' in front - you can customize this. For example, a spell that does some serious damage in a game:[ roll ]{Freezing} 1d10 {Fire} 1d20[/roll]

Freezing 1d10 : 2, total 2Fire 1d20 : 7, total 7

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] means Roll (15) 100-sided dice, add 10 to the result; reroll anything 10 or less, reroll anything 90 or higher, and if after that, you have values 20 or less, or 80 or higher, they get dropped