Big Bang Burger Bar Welcome, Guest. Please login or register.

Login with username, password and session length
30 December 2024, 19:19:42 *
 
   Home   Help Latest Posts Calendar Links Login Register  
HHGG Quote:
Count the heads. - Zaphod Beeblebrox
Pages: [1]   Go Down
  Print  
Author Topic: Dice Rolling Mod  (Read 3163 times)
0 Members and 1 Guest are viewing this topic.
Zarniwoop
Sysop
Administrator
Deep One
*******

Karma: 37
Offline Offline

BoardgameGeek: Oridyne
Posts: 2139


"One who cares is one who listens."


WWW
« on: 21 September 2009, 20:14:49 »

Dice Roller Mod

Just installed this mod which looks appropriate and useful. Not sure how we will use it but any suggestions post them here.

If you want to try the mod please use the Sand Pit

This mod allows users to roll dice. They can use the preview function to preview dice rolls to make sure they have it right for what they want, but once they press Post, the dice rolls are embedded in the post, meaning that the only way they can change is if the post is edited, but that should be visible (admins can, of course, disallow editing in that board)

It starts from a [roll] tag, and outputs a [blockquote] tag (implemented just for the mod).

There are a variety of options you can have inside the roll tag:

[roll]1d6[/roll] - rolls 1 6-sided dice.
Might result in:

Quote
Rolled 1d6 : 2, total 2

[roll]2d12+5[/roll] - roll 2 12-sided dice and add 5 to the result
Might result in:

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

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

Quote
Rolled 2d20^10 : 3 8 10 3 17, 2 10 9 10 14, total 31

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

Quote
Rolled 2d20v10 : 11 3, 3, total 6

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

Quote
Rolled 2d20<10 : 4, 20, total 4

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

Quote
Rolled 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:
[roll]{Freezing} 1d10 {Fire} 1d20[/roll]

Quote
Freezing 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.
[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.

Quote
Uberdamage 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:
[roll]2d6x3[/roll] - roll 2d6 3 times and display the results overall

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

Regards,
Zarniwoop

<*> I'm dangerous when I know what I'm doing <*>

Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines
Privacy Policy
Valid XHTML 1.0! Valid CSS!
Mimipunk | www.iconshock.com icons used contain images © by Douglas Adams

Google visited last this page 17 November 2024, 00:17:22