Help test the new dice roller


log in or register to remove this ad

Feature idea for the dice roller: Allow people to add the dice roll into their post between BBCode tags, like [ROLL]1d20+5[/ROLL].

When you're just previewing the post nothing would happen (it would just show the raw text) but once you've actually posted it would add a die roll to the post just as if you had clicked the "add roll" button after the fact. The [ROLL][/ROLL] tags would be stripped out of the post, and if the user edited the post and added them back in it would add an additional roll to the post.

So, for example, someone could make this post:

I attack with my longsword: [ROLL]1d20+5[/ROLL]

And the completed post would show up like this, with the 1d20+5 roll attached:

I attack with my longsword: 1d20+5

Then if the user wanted they could edit the post and add a damage roll, for example:

I attack with my longsword: 1d20+5
I hit for [ROLL]1d6+5[/ROLL] damage

And the final edited post would look like:
I attack with my longsword: 1d20+5
I hit for 1d6+5 damage

with the original 1d20+5 roll and an additional 1d6+5 roll attached.

This might be a good compromise for the people that want to be able to create the post and the roll at the same time. I don't know if it's possible or feasible, but I thought I'd at least mention it.
 

A bb code, unfortunately, is only text. Which means it can edited. It's actually very easy to add a bb code die roller but there is zero security possible with one. There's no possible way to allow someone to edit their post and not be able to edit the b codes (or their output).

The only way to make sure it's secure is to keep it as a separate attachment to the post.
 


I think for something like the Brutal 1 property, it might be easier to ignore the re-roll aspect and just make the random number from 2 to X. I don't know how it would be indicated fairly though. A numerical input could easily be faked (sure, I got 7 9's... what, Brutal 9, no way!). Perhaps it could be indicated in the result box that it was Brutal 1 or whatever.

After some testing, another suggestion: you may want to limit input in the text boxes to numbers only (or scrub to remove text). Also, if there is a text error, instead of going to the Database Error screen, you could throw up a custom error page.
 
Last edited:


... I suspect most games will hide the rolls behind a spoiler tag though, so that could help... .

I wouldn't as it is attached under the post. You cannot put it behind a spoiler tag. Will the dice shown on the same background as the rest of the forum (default = black)? Or will they have a white background with colored dice to a white on black text?
 


I wouldn't as it is attached under the post. You cannot put it behind a spoiler tag.

Oh, you're right! :(

Hopefully they get the streamlined user settings put in quickly for just a simple text representation of the dice and rolls. Then the folks that like the whizbang graphics can see them and those of us that prefer a subdued browsing experience can disable them.
 

Ok I like having a dice roller right to hand.

But I really don't like the look it gives posts. When I run a game I like the posts to flow like a story as much as possible. But that big block with colored dice doesn't really work for me. And I'm sure there are a few others too.

Could you set up the dice roller to automatically hide itself? I know we can't put sblocks around it, but is there a way to have it do it automatically? So all I see at the bottom of my post is

[sblock=Rolls]
Dice Roll
d20_20.png
+5
1d20 + 5
longsword vs orc

25​

Dice Roll
d8_1.png
+3
1d8 + 3
damage

4​
[/sblock]

And not -
 
Last edited:

Remove ads

Top