Dice Roller
So what features do people want from their online dice roller? Does anyone have a good one we can steal gratefully use on this site? Anyone have a Drupal module that'll do the trick?
There are some pretty good ones out there - The dice engine here http://www.rpgobjects.com/index.php?c=orpg is pretty comprehensive allowing you to specify how many of what type of dice, take highest(x) dice (or lowest). But it's written in python rather than the nice php-ajax combination that would be required to work here with Drupal.
At the other end of the scale there's this simple script:
Free JavaScripts provided
by The JavaScript Source
The only drawbacks to this one are that it doesn't show what dice rolled what scores, it can't handle +x/-x modifiers and it can't do clever things like drop lowest die. Oh, yes. And it doesn't seem to work in this text box. But I'm sure if it was put into its own block, it'd work. The script is here: http://javascript.internet.com/games/dice-roller.html
I'm up for writing a dice roller - once my Drupal module development books arrive - but I'd need to know what features people want from it!
Fire away


Comments
For Hero games (and maybe others) I believe you need to know the number rolled on each die, and not just the total.
Thought that might be the case. So... How does this sound for a feature list:
And that's pretty much in order of priority as once the basic roll-and-display is in place, everything else is just bells and whistles to make people's lives easier.
Comments? Anything I've missed?
Well, if we're talking about coding a dice roller for special cases, how about an option for dice that produce -1, 0 or +1 (per die)? Then I could use "Fudge dice" if I ever wanted to do something on-site using the Fudge game sytem.
Synchronicity: I was just reading about the fate system this morning. Spirit of the Century sounds awesome and someone needs to start a game stat.
My favorite die roller is http://dicelog.com/dice
I just like it because it shows me the pretty dice. I'll be happy with anything that works though. AND, I love the idea of customizing it for certain gaming systems, like Ubiquity and such.
...and maybe even, being able to create our own 'popular rolls', like for hero, I always need a 3d6 for attacking. - but so not a big deal if we can't.
Yes, oddly enough, Spirit of the Century seems to be the random phrase of the day. I'd never heard of it till today... I guess that's what happens after a reveiw at rpg.net.
Those pretty pictures are rather nice. I'd never seen a d24 before! It's also got a few nifty commands there that I hadn't thought of - roll again on max value, re-roll 1s, that sort of thing. Stuff to add to the wishlist of features.
Where on the site are you wanting to put the roller? - left sidebar? Keep it open in a new tab? If you're thinking of keeping it for a separate tab, I'd bow to the experts who have already written something excellent like the dicelog one you've linked. Otherwise, I'll write something to go in a small sidebar block that could show on book and blog pages below the navigation menu (or above it, since it would probably be more useful there).
OK, I'll write the dice roller so that it will show as a separate page with full instructions from under the "My Tools" menu link and also as a streamlined block above book and blog pages so that you can resolve rolls whilst you're writing.
Done. I'll include that. Looking at some other system-specific ones as well:
Any other systems people want?
So far...
Handle basic rolls. 3d6, 14d10, 1d20, that sort of thing.- DONEHandle modifiers. 3d6+1, 1d20-5.- DONEI've put the prototype into the left-hand-sidebar for you to have a poke around with. It's right down at the bottom. Feedback requested... I'll post here with an update when I've sorted some of the other features.
oh...wow. Didn't expect to have a die roller to play with yet.
Just for fun- I rolled 11d6 (a common attack value in TCQ) and got. 3,1,1,1,3,5,1,4,1,1,1 = 22
I do believe that my players would lynch me for that *grin*.
I'll play with it more, for sure, so far I haven't seen any issues.
As far as other gaming systems... I don't really know much about the mechanics. D20 hops to mind, but it seems like that's straight up rolling, nothing fancy. ...but that's someone else's expertise.
And I loved that style chip counter that you did once upon a time as well. --but we can get to that later, cuz that was set to game and player permissions. ...but I love the idea of system specific utilities. Certainly not priorities though...just babbling in my fever crazed state.
We had to restore the database, cuz I messed something up. Anyways, I saved out the forum posts, and copied them back in. I apologize for the horrid formatting, AND for screwing up in general.
OK, I've updated the roller. As you can see, it now handles FUDGE, Storyteller and Ubiquity alongside the normal "just roll the dice" approach.
It also does re-rolls. 3d6r will re-roll a 1 once, 3d6R will re-roll until you don't get a 1.
Yet to do...
Anyone got any other suggestions?
Anyone got any other suggestions?
Not that I can think of gaming system wise.
Can we make the 'roll' function activate on enter? Just curious, no biggy if we can't.
Pretty cool stuffs Imajica.
Just out of curiosity, would it be possible to get one that counts the body for a hero system damage roll (1=0, 2-5=1, 6=2)? Not vital, since it shows each die, but fun if it wasn't too big a deal
Neat suggestion!
Imajiiiii---caaaaa?!