The Last Homely House
General => The Golden Hall => Topic started by: Kralik on November 01, 2008, 09:44:06 AM
-
I deleted my original announcement, and then had a problem with my second try... so here it goes again! Third time's the charm...
I was poking around the RPG forum and I noticed that some people were looking for a dice roller. I found one online that I installed, but then I found a purtier one to use. Here's the basic syntax:
:dice [# of dice]d[size of dice][sign][modifier]
Some examples (remove the extra space between : and dice):
: dice 5d18:

Rolling 5d18:
(11+14+16+12+9): Total = 62
: dice 2d9+1:

Rolling 2d9+1:
(7+8)+1: Total = 16
: dice 4d8-2:

Rolling 4d8-2:
(4+3+8+4)-2: Total = 17
Note two things:
1) It only works when you post (intentionally not in previews).
2) If you edit your post and/or try to change the dice rolls, it will give you gobbledygook.
Feel free to try it out on this thread. Enjoy! ;D
-
Note: I can't edit the above post, but I forgot the ending colon in the above syntax. The correct syntax is:
:dice [# of dice]d[size of dice][sign][modifier]:
-
>:( This is complicated.
-
Not really.
<hr><div><img src="http://lotrtcgdb.com/forums/Themes/bluee_plus/images/dice2.gif" alt="" /> Rolling 2d6: <span style="background-color: #87ceeb;">(5+2): Total = 7</span></div><hr>
(EDIT: Example of what happens if you edit your post.)
-
A perfect example of what happens if you edit your post! Don't do it. ;D
-
Sweetness.
:dice 2d6:
-

Rolling 1d7:
(2): Total = 2
-
(I tried rolling a 7.2-sided die.)
-
Sorry, too many rolls!
-
^^That was 10000 rolls. What's the limit?
-
NB and I have been experimenting. It looks like if you edit a post and try to add in a dice roll, it doesn't work. So hopefully the whole thing will discourage cheating. :)
-
Sorry, too many rolls!
-

Rolling 10d6:
(4+2+5+6+2+3+3+4+4+4): Total = 37
-
^^That was 10000 rolls. What's the limit?
I think it's 100d40. Let's try:
Sorry, too many rolls!
:twisted:
-
Nope! I'll check the code.
-
Ah, OK. It's 40d100:

Rolling 40d100:
(57+22+92+70+26+62+86+12+24+88+35+64+93+50+68+17+98+96+40+62+65+86+54+28+70+6+44+32+46+61+87+20+16+6+9+50+19+34+70+31): Total = 1996
-
Though those numbers are arbitrary and could be increased if needed.
-

Rolling 2d7:
(2+3): Total = 5
-
just an edit LOL
-
Sorry, too many rolls!
-
You have to post half a page of code. :roll:
-
GT, stop whining. The code is:
: dice 2d6:
Without the extra space. What's the big deal?!
-

Rolling 2d6:
(2+2): Total = 4
-
Oh, I see.
-

Rolling 2d6:
(5+4): Total = 9
What's the point of this?
-

Rolling 1d20:
(15): Total = 15
-
What's the point of this?
Roleplaying. :)
-
What's the point of this?
It's an easy way to randomize whether or not I'll drop seventeen tons of plague-ridden toads on your house.
-

Rolling 3d3:
(2+2+2): Total = 6
-
Cool! :up:
-

Rolling 10d6:
(5+3+6+2+6+3+5+2+5+5): Total = 42
-
Wow. Thanks, Kralik, awesome! And btw, this is why my Fireballs are so deadly, I mean, even in online randomized dice I STILL role better than average. A good deal better, btw. :D
-

Rolling 40d1:
(1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1): Total = 40
-
Wow - you rolled badly! 8-)
-
Wow. Thanks, Kralik, awesome! And btw, this is why my Fireballs are so deadly, I mean, even in online randomized dice I STILL role better than average. A good deal better, btw. :D
You ought to try it again and see if the RNG still rules in your favor. Or were you going to stop while you were ahead? :P
-
Can you role a die with 0 sides? Let's see...

Rolling 10d0:
(1+1+1+1+1+1+1+1+1+1): Total = 10
Negative sides?
:dice 5d-4:
-
Guess not ;)
-
Wow. Thanks, Kralik, awesome! And btw, this is why my Fireballs are so deadly, I mean, even in online randomized dice I STILL role better than average. A good deal better, btw. :D
You ought to try it again and see if the RNG still rules in your favor. Or were you going to stop while you were ahead? :P
Those were my thoughts for now, yes. ;)
-
Hmmm... let me try one!

Rolling 10d6:
(3+6+2+3+4+2+2+2+4+3): Total = 31
-
Truly, FM, you have amazing fireball casting skills.
-
(https://lotrtcgwiki.com/forums/proxy.php?request=http%3A%2F%2Flotrtcgdb.com%2Fforums%2FThemes%2Fbluee_plus%2Fimages%2Fdice2.gif&hash=d6ab3baefc2d010bc276ddd1252bb87452f93eef) Rolling 10d6: (6+6+6+6+6+6+6+6+6+6): Total = 60
Now if I can get the little background color thing working, I can cheat!
EDIT: Not working. Hm...
-
Truly, FM, you have amazing fireball casting skills.
Told ya. ;)
-
Now if I can get the little background color thing working, I can cheat!
Pretty close... though a mod could always modify the post to see if it used the <> style html code (genuine) or [] BB code (your attempt)
-

Rolling 3d20:
(17+11+17): Total = 45
-
oh yeah...you all just got owned by my sweet moves.
-

Rolling 20d6:
(3+5+2+3+6+3+5+3+2+3+4+2+2+3+6+4+2+5+3+5): Total = 71
-
Meh... We're talking... what? 2 hits? You'd still have to roll for damage, though. THAT'S where the real trick is!
-

Rolling 3d6+1:
(3+2+4)+1: Total = 10
-
Meh... We're talking... what? 2 hits? You'd still have to roll for damage, though. THAT'S where the real trick is!

Rolling 2d20:
(4+11): Total = 15
-
truly...FM speaks the truth...lets try again...

Rolling 2d20:
(15+8): Total = 23
-
Wow there is 4 pages on this dice roller... is that really necessary? Especially in the Golden Hall
-
y'know, besides the one sided dice (and zero sided dice) i never saw a single 1 rolled. it that on purpose?
-

Rolling 18d6:
(2+6+6+5+3+2+2+4+3+6+2+6+2+4+6+5+6+5): Total = 75
-

Rolling 20d2:
(2+2+2+2+2+2+1+2+2+2+2+1+1+2+2+1+2+2+2+2): Total = 36
-
Odd... it definitely seems to shy away from 1's! Maybe I can check the code.
Another test:

Rolling 20d3:
(3+2+2+3+2+2+3+3+2+2+3+3+2+2+2+2+3+3+3+2): Total = 49
-
Good call, mm. Doesn't seem random! I'll look into it. :gp:
-
thanks for the gold, matey! yeah, "seems to shy away from 1's" is a good way to put it. because it obviously rolled a few with the 2-sided die. but not many...
-
Well, after a lot of pulling my hair out, I rewrote the dice rolling code a bit. It was, in fact, perfectly good code... but for whatever reason it was "shying away" from the low end of the random number range (1 in this case). Now you should see quite a few more one's:

Rolling 20d6:
(1+3+6+1+4+6+2+1+2+3+1+6+6+6+6+4+3+5+5+3): Total = 74

Rolling 20d6:
(5+6+4+2+5+4+5+1+1+1+2+4+3+6+4+5+5+5+6+3): Total = 77

Rolling 20d6:
(3+3+1+2+1+3+4+1+4+1+4+1+1+1+1+5+5+4+1+5): Total = 51

Rolling 20d6:
(1+3+4+2+2+1+3+3+6+4+5+6+3+2+5+4+1+4+5+1): Total = 65

Rolling 20d6:
(3+3+2+6+1+6+5+2+2+5+6+4+3+3+1+3+1+4+6+2): Total = 68
-
cool! it works better methinks!