Help - Search - Members - Calendar
Full Version: Custom ROLL BBcode?
Dumpshock Forums > Discussion > Dumpshock News, Bug Reports, Feature Requests, & Discussion
Witness
I was just thinking- as far as I can tell it isn't particularly difficult to add custom BBcode to IPB (the 'SPOILER' tag is non-standard isn't it?).

Looking at all those game threads in Welcome To The Shadows, it occurred to me that it ought to be relatively simple to create a custom ROLL tag to do auto-dicerolling in those threads.

Something like
CODE
[ROLL]9e,5,4[/ROLL]
for example would randomly generate 9 dice rolls with edge (therefore exploding), followed by 5 dice rolls, followed by 4, and display a special box with the answer- something like the box below but saying ROLL instead of CODE.
CODE
9 dice with edge: 6,6,5,5,4,3,3,3,2,1,1. HITS: 4
5 dice: 5,4,1,1,1. HITS: 1 , GLITCH
4 dice: 3,1,1,1. CRITICAL GLITCH


That'd be kinda neat. It's beyond my abilities to work out how to do it, but I would have thought that the combined geek power of the DS regulars ought to be able to figure out how to make that mod.

I suppose you'd need a seperate version for the 3rd Ed diehards, though.
Tanka
Then comes in the argument of computer-random vs true-random (of which I am in agreement with the latter).

It's a very neat feature, but if done badly, can easily just plain suck compared to flat-out rolling your own dice.

If you're that worried about players cheating, tell them you'll be rolling their rolls yourself.
Witness
QUOTE (Tanka)
Then comes in the argument of computer-random vs true-random (of which I am in agreement with the latter).

I doubt you or anybody else would be able to tell the difference. Cryptography might need real random, but this doesn't.


QUOTE (Tanka)
It's a very neat feature, but if done badly, can easily just plain suck compared to flat-out rolling your own dice.

If you're that worried about players cheating, tell them you'll be rolling their rolls yourself.

Yeah well not doing it badly would be the goal I guess! Personally I'm not worried about anything. I don't game online. Just thought it'd be useful for those who do.
Tanka
Actually, were I to see an extreme amount of 1s and 6s (which you tend to with computer random rolls), I'd notice the average isn't quite right.

Also; I've seen a few dice roller PHP codes before. They tend to lag up the system a lot.

It is a neat feature, but if done even the slightest bit improperly (or even done in such a manner that it takes up more processor than it should -- and most PHP applets do), it can suck up the bandwidth of a site so fast that you won't even know if it worked or not.
Witness
I can quickly demonstrate (and just have- to my own satisfaction) with a few lines of Python that there is absolutely no skewing towards any individual number produced using its pseudo random number generator. I may not be fully au fait with the inner workings of IPB but I do do the odd bit of coding.

There is, however, a strong tendency for human beings to see patterns in randomness, even if no real pattern exists, and for human beings to distrust computers and computer programs.

It is possible, of course, that you just used a badly written die roller program. But as criticisms go, I think this one is stretching things a bit!

As for system lag- well I'll take your word for it because I haven't seen or used any php die roller scripts, but the amount of computation required for such a bbcode mod would be absolutely trivial (assuming it is written properly). I would expect there to be no perceptible lag even if 1000 people all entered the 'roll' bbcode at once.

Anyway, while I agree that it could be done badly (everything can be done badly), you seem to be inherently resistant to the idea, and nobody else seems attracted by it, so nevermind.
Kagetenshi
The real problem is that you'd have to disable the edit function for any post with dierolls.

~J
Witness
I really saw it more as a convenience thing than an anti-cheating thing.

Although I guess if you were going back in and editing your post and your roll (if that were possible) you'd run the risk of somebody reading your post before (and later after) you've edited it, and catching you out.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Dumpshock Forums © 2001-2012