Funciones para Dice roll (Tirada de dados)

Iniciado por Kelemvor Freshbane, Marzo 20, 2013, 17:34:39

Kelemvor Freshbane

1d6 - rolls 1 6-sided dice
Might result in:
CitarRolled 1d6 : 2, total 2



2d12+5 - roll 2 12-sided dice and add 5 to the result
Might result in:
CitarRolled 2d12+5 : 6, 11 + 5, total 22



2d20^10 - roll 2 20-sided dice, re-rolling any result necessary so that the dice rolls are greater than 10.
CitarRolled 2d20^10 : 3 8 10 3 17, 2 10 9 10 14, total 31



2d20v10 - roll 2 20-sided dice, re-rolling any result necessary so that the dice rolls are less than 10.
CitarRolled 2d20v10 : 11 3, 3, total 6



2d20<10 - roll 2 20-sided dice, discarding any result where the roll was not less than 10.
CitarRolled 2d20<10 : 4, 20, total 4



2d20>10 - roll 2 20-sided dice, discarding any result where the roll was not greater than 10.
CitarRolled 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:
{Freezing} 1d10 {Fire} 1d20
CitarFreezing 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.
{Uberdamage} 15d100+10^10v90<80>20 - 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.
CitarUberdamage 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:
2d6x3 - roll 2d6 3 times and display the results overall
CitarRolled 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.

There are also limitations to prevent abuse; the most dice that can be used at once is 20, and the highest value of dice is 1000-sided.

Trebolillo Jackson

[blockquote]Rolled 1d6 : 4, total 4[/blockquote]

MrOizo

[blockquote]Rolled 6d6>4 : 4, 1, 5, 3, 5, 1, total 10[/blockquote] Tirada tí­pica de Shadowrun con NO tí­pico.  icon_gusta
Groobab, DM Troll de D&D nivel 51


TinyPortal 1.6.3 © 2005-2019