No Goblins Allowed
http://862838.jrbdt8wd.asia/

Dice Rolling Thread
http://862838.jrbdt8wd.asia/viewtopic.php?f=25&t=226
Page 1 of 27

Author:  GobO_Sapper [ Thu Sep 26, 2013 2:33 pm ]
Post subject:  Dice Rolling Thread

Howdy Gang,

For the games that utilize dice NoGoblinsAllowed has a built in dice roller that's easy to use with simple BBC tags. For more information you can always check out Gobo_Welders Forum Tips and Tricks thread in the Metaboard.

Feel free to use this thread as a place to test the tool and see how it works, to roll things you need for your games, or simple to flip a coin or make a decision.

Dice

Add dice rolls using the [dice] bbcode:
Code:
[dice]3d6[/dice]

GobO_Sapper rolled 3d6 and got a total of 10:
2, 2, 6


You can do some math with the rolls:
Code:
[dice](3d6-4)*2[/dice]

GobO_Sapper rolled (3d6-4)*2 and got a total of 10:
1, 2, 6


Dice rolls can be displayed in a few different ways:
Code:
[dice=string]3d6[/dice]

GobO_Sapper rolled 3d6:
4, 6, 5


Code:
[dice=total]3d6[/dice]

GobO_Sapper rolled 3d6 and got a total of 10.


Code:
[dice=inline]3d6[/dice]

12

You can choose how dice images are displayed in your user control panel, under Board Preferences > Edit display options > Display dice.

Cheating precautions:

The dice rolls are reasonably secure against "cheating" the rolls.
  • Dice are not rolled until the post is submitted, so you can't just preview your post until you get numbers you like.
  • Rolls quoted from other posts are always displayed with a link to the original post, so you can't quote rolls you like to copy them. Like so:

    Someone else wrote:
    Original post: GobO_Welder rolled 3d12 and got a total of 17:
    2, 7, 8
    In inline mode: 17[here]

  • Removing rolls from a post leaves a notification that a roll has been removed, so you can't roll dice a bunch of times until you get results you like.


Best-of rolls:

You can also do "best-N-of-M" rolls: to roll 4d6 and keep the best 2, you would do "[dice]4d6b2[/dice]" to get
GobO_Sapper rolled 4d6b2 and got a total of 5:
3, 2, 1, 2

All the usual tricks -- arithmetic, different display modes -- work for best-of rolls as well.

Things you can't do:

Unfortunately, the mod we're using to implement dice has some limitations. The biggest ones are:
  • You can't do multiple rolls in one: [dice]3d6+1d10[/dice] doesn't work.
  • "Best of" rolls don't work: [dice]4d10b2[/dice] for "4 d10s, best 2". This works now!


Cheers!

~Sapper

Author:  GobO_Sapper [ Thu Sep 26, 2013 2:34 pm ]
Post subject:  Re: Dice Rolling

GobO_Sapper rolled 1d20 and got a total of 19:
19

GobO_Sapper rolled 1d20+6 and got a total of 18:
12

GobO_Sapper rolled 3d6 and got a total of 13:
5, 2, 6

GobO_Sapper rolled 1d20 and got a total of 16:
16

Author:  Bounty Hunter [ Thu Sep 26, 2013 2:53 pm ]
Post subject:  Re: Dice Rolling

Bounty Hunter rolled 4d6 and got a total of 9:
2, 2, 4, 1

Bounty Hunter rolled 1d20 and got a total of 11:
11

Author:  squinty_eyes [ Thu Sep 26, 2013 2:56 pm ]
Post subject:  Re: Dice Rolling

Those are some bad d6 rolls, there BH!

Thanks for the dice tags!

~SE++

Author:  Bounty Hunter [ Thu Sep 26, 2013 3:02 pm ]
Post subject:  Re: Dice Rolling

Yeah...guess CHA will have to be my dump stat. :roll:

Author:  Yarium [ Thu Sep 26, 2013 3:06 pm ]
Post subject:  Re: Dice Rolling

Lol, we can play Warhammer 40k by post?

EDIT: No, probably not for the best, as you can edit and just reroll quickly if you don't like the result :-P

EDIT: Oddly enough, I can't delete the fact that dice have been rolled in this post. So without further ado, I give you a random 1d6 roll.

Yarium rolled 1d6 and got a total of 3:
3

Yarium rolled 1d6 and got a total of 6:
6

Author:  Yarium [ Thu Sep 26, 2013 3:07 pm ]
Post subject:  Re: Dice Rolling

Bounty Hunter wrote:
Original post: Bounty Hunter rolled 4d6 and got a total of 9:
2, 2, 4, 1

Original post: Bounty Hunter rolled 1d20 and got a total of 11:
11

Author:  GobO_Fire [ Thu Sep 26, 2013 3:08 pm ]
Post subject:  Re: Dice Rolling

GobO_Fire rolled 1d1 and got a total of 1:
1


:D

[dice]1d1000[/dice]

[dice]1d10000[/dice]

:evil:

And to add something useful to the thread...

the format is:

Code:
[dice]<what you want to roll>[/dice]

For example:

[dice]1d20+5[/dice]


And a test to see if something works...

[dice]1d20+5,1d8+4[/dice]

Author:  GobO_Fire [ Thu Sep 26, 2013 3:09 pm ]
Post subject:  Re: Dice Rolling

OK, so some of those don't work - but oddly enough 1d1 does work! Ha!

One more test:

[dice]1d20+1d6+5[/dice]

edit: OK, that doesn't work either. So, for example, somebody using an action point in an Eberron game will need to issue two dice commands and add together manually.

Author:  Yarium [ Thu Sep 26, 2013 3:10 pm ]
Post subject:  Re: Dice Rolling

Thanks GabO! I had no idea, and quoting just gave me "dice]4240" or some nonsense.

Author:  OakenHeart [ Thu Sep 26, 2013 3:15 pm ]
Post subject:  Re: Dice Rolling

OakenHeart rolled 6d6 and got a total of 26:
5, 4, 6, 2, 3, 6

[dice]1d6+1d4[/dice]
[dice]1d6;1d4[/dice]

Author:  Zinger2099 [ Fri Sep 27, 2013 5:43 pm ]
Post subject:  Re: Dice Rolling

Zinger2099 rolled 1d20 and got a total of 11:
11

Author:  Bounty Hunter [ Fri Sep 27, 2013 11:03 pm ]
Post subject:  Re: Dice Rolling

Bounty Hunter rolled 3d20 and got a total of 38:
19, 3, 16

Author:  PlaneShaper [ Sat Sep 28, 2013 9:57 am ]
Post subject:  Re: Dice Rolling

Some tests to see if ABD Diceroller was used/enabled. There was a nice, simple diceroller back in the phpbb2 days, but I don't know if that came over to 3.

PlaneShaper rolled 10/(3d20+3)*-2.5) and got a total of 9000.09961:
15, 14, 17

[diceSpot]1d20[/dice]
[dice]d6:3[/dice]

Author:  PlaneShaper [ Sat Sep 28, 2013 9:59 am ]
Post subject:  Re: Dice Rolling

Hooray for abandoned mods that still function! :P

Too bad "dice=Whatever" never got added.

Seems to still be some math parsing issues? I can't figure out how it got to ~9000.

More tests:
[dice](3d20+8)/2-5[/dice]
PlaneShaper rolled (1d6)/-2 and got a total of 0:
4

Author:  Bounty Hunter [ Sat Sep 28, 2013 7:26 pm ]
Post subject:  Re: Dice Rolling

Bounty Hunter rolled 1d20+5 and got a total of 17:
12

Bounty Hunter rolled 1d20+5 and got a total of 13:
8

Bounty Hunter rolled 1d20+5 and got a total of 22:
17

Bounty Hunter rolled 1d20+5 and got a total of 18:
13

Bounty Hunter rolled 1d20+5 and got a total of 18:
13

Author:  Bounty Hunter [ Sun Sep 29, 2013 6:06 pm ]
Post subject:  Re: Dice Rolling

Bounty Hunter rolled 1d20+4 and got a total of 20:
16

Bounty Hunter rolled 1d20+4 and got a total of 5:
1

Bounty Hunter rolled 1d20+4 and got a total of 15:
11

Bounty Hunter rolled 1d20+4 and got a total of 15:
11

Bounty Hunter rolled 1d20+6 and got a total of 22:
16

Author:  Bounty Hunter [ Sun Sep 29, 2013 6:10 pm ]
Post subject:  Re: Dice Rolling

Bounty Hunter rolled 1d6+3 and got a total of 6:
3

Author:  GobO_Stormageddon [ Sun Sep 29, 2013 6:13 pm ]
Post subject:  Re: Dice Rolling

GobO_Stormageddon rolled 1d20 and got a total of 12:
12

Author:  Bounty Hunter [ Sun Sep 29, 2013 7:14 pm ]
Post subject:  Re: Dice Rolling

Bounty Hunter rolled 1d20 and got a total of 7:
7

Bounty Hunter rolled 1d20+11 and got a total of 17:
6

Page 1 of 27 All times are UTC - 6 hours [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/