LotR TCG Wiki → Card Sets:  All 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 → Forums:  TLHH CC

Author Topic: Dice Roller  (Read 12 times)

0 Members and 1 Guest are viewing this topic.

November 01, 2008, 08:57:02 am
Read 12 times

Kralik

  • Guest
Dice Roller
« on: November 01, 2008, 08:57:02 am »
I was poking around the RPG forums and noticed that some of you wanted a dice roller. So here it is! This was coded by a guy named Mock, who borrowed from a bunch of other people. So I suppose it's a collaborative effort.

There should be a pop-up link that gives you a variety of options, but I can't seem to get it working. Fortunately, it's quite simple to add the "code" to roll dice. Here are the instructions:

Quote
# Roll-and-sum 4d8 - : dice 4d8 :
# Percentile - : perc sm,t : - where s is a plus or minus sign, m is the modifier to the roll, and t is the target percentage to roll under. The modifier part is required, even if it's 0 - you have to put a + or -0. Not elegant, but it works.
# ORE - simply put : ore p :, where p is the size of the pool.
# Wushu - format is : wushu a, d, t : where a is the number of offense dice, d is the number of defensive dice, and t is the target number. Note that mine is customized for Wuxalted, so the readout displays Scarlet and Ebon dice.
# Fudge - just put : fudge : - this code was written by Mothlos from the SMF User Forums
# Mixed roll - the format is : mixed a,b,c,d,e,f,g :. A-F represent the number of d4s through d20's to roll, respectively, and g represents whether the dice should explode (reroll if they hit their highest number; you should put y or n). Again, you must put a number for each type, even if it's zero. Not elegant, but it works.

OK, I don't know what half of those things are, but maybe y'all do. From examining the source code there are a bunch of other features as well, such as setting a minimum roll to beat and having it automatically role and tell whether you beat it. (Example: To hit, you have to roll a 12 or more. 5d6 rolls... 11. You miss!) If you guys want to see this work, let me know. In the meantime, the summary of those instructions is that you role using : dice xdx :

Now, I'm having to insert extra spaces so that it doesn't roll automatically. Remove the extra spaces inside the colons. Then roll! Let's try a 6d8:

: dice 6d8 : becomes...

Rolling 6d8: (4+8+2+6+3+4): Total = 27

Feel free to use this thread as practice if you wish. Also, note that you don't get the rolls in previews -- you have to post! :P

November 01, 2008, 08:58:19 am
Reply #1

SomeRandomDude

  • ********
  • Information Offline
  • Maia
  • Posts: 7004
  • Most Likely To Usurp Kralik and Dáin
    • My Wordpress
Re: Dice Roller
« Reply #1 on: November 01, 2008, 08:58:19 am »
Rolling 6d8: (7+6+8+7+4+4): Total = 36
Rolling 1d6: (4): Total = 4
NB- 4 year veteran of CC/TLHH

"It was like:
Kralik: "What hath God wrought"
NB: "I dunno, but I'm in ur house eating ur food.""
-Elessar's Socks

Trade List- ft. Aragorn, Defender of Rohan

November 01, 2008, 08:59:12 am
Reply #2

Kralik

  • Guest
Re: Dice Roller
« Reply #2 on: November 01, 2008, 08:59:12 am »
You're quick! :o

EDIT: Looks like it also is trying to add an image of a die... if anyone finds a small, smiley-sized die for me to upload, let me know. :up:

November 01, 2008, 08:59:54 am
Reply #3

SomeRandomDude

  • ********
  • Information Offline
  • Maia
  • Posts: 7004
  • Most Likely To Usurp Kralik and Dáin
    • My Wordpress
Re: Dice Roller
« Reply #3 on: November 01, 2008, 08:59:54 am »
Hm...I see an opportunity to cheat here, though. :( Well...hopefully the honor system will work on the boards. :D RPG, here we come.

I was keeping an eye out when I saw you messing around in the dead pile. :D
NB- 4 year veteran of CC/TLHH

"It was like:
Kralik: "What hath God wrought"
NB: "I dunno, but I'm in ur house eating ur food.""
-Elessar's Socks

Trade List- ft. Aragorn, Defender of Rohan

November 01, 2008, 09:01:50 am
Reply #4

Kralik

  • Guest
Re: Dice Roller
« Reply #4 on: November 01, 2008, 09:01:50 am »
Hm...I see an opportunity to cheat here, though. :( Well...hopefully the honor system will work on the boards. :D RPG, here we come.

I don't see any good way around cheating, so we'll have to assume our GM's are honest. ;)