website doce roller

Thoughts, Help, Feature Requests

Moderators: dorpond, Azhrei, giliath

Post Reply
Anivair
Kobold
Posts: 1
Joined: Thu Sep 03, 2009 10:57 am

website doce roller

Post by Anivair »

I like the RPTools dice roller. I'm not sure I get something, though. Is there a way to put it on my website so that all my players can use it from their separate browsers? Or do they all need to have their own version of the client to make it run?

I'm not sure how to do the former, if it's possible, but I'd like them to be able to use it online (and ideally, to send me the results).

User avatar
Azhrei
Site Admin
Posts: 12057
Joined: Mon Jun 12, 2006 1:20 pm
Location: Tampa, FL

Re: website dice roller

Post by Azhrei »

No, there is not a web interface to DiceTool. There are plenty of other web-based dice rollers, though. DiceTool is really focused on each client having the tool available while running a game (online or F2F).

mxtbcca
Kobold
Posts: 2
Joined: Tue Nov 24, 2009 12:57 pm

Re: website doce roller

Post by mxtbcca »

I've been doing some hacking of Google's App Engine and have a basic dice roller at

http://dd.winterknights.ca/

I've been thinking of building an API for it and if there's some interest I could get started.

Please check it out and send me some feedback via Google's gmail.com at mxtbcca.

Michael.

THINK
think different
Think Open Source

User avatar
Azhrei
Site Admin
Posts: 12057
Joined: Mon Jun 12, 2006 1:20 pm
Location: Tampa, FL

Re: website doce roller

Post by Azhrei »

Hey, that's kind cool. Short, sweet, and simple. :)

It doesn't handle multiple dice in a single expression, though. So "2d6+4d8" doesn't work, for example. I tried that to see if there would be a separate link for each die roll portion, so the "2d6" and the "4d8" would each receive separate links... Not sure if it's useful that way, but I was curious. :)

Looks like a good start.

mxtbcca
Kobold
Posts: 2
Joined: Tue Nov 24, 2009 12:57 pm

Re: website doce roller

Post by mxtbcca »

>> Hey, that's kind cool. Short, sweet, and simple. :)

Thanks. That's my driving design criteria.

>> It doesn't handle multiple dice in a single expression, though. So "2d6+4d8" doesn't work, for example.

OK - I'll work on this.

>> I tried that to see if there would be a separate link for each die roll portion,
>> so the "2d6" and the "4d8" would each receive separate links... Not sure if
>> it's useful that way, but I was curious. :)

In the results the underlined roll 2d6 is an active link that will regenerate the roll.

Try
- - - http://dd.winterknights.ca/roll?toss=2d6 to get
- - - 2d6 → 6, 3 = 9

- - - http://dd.winterknights.ca/roll?toss=2d6%2B3 to get
- - - 2d6+3 → 5, 6 + 3 = 14

- - - the plus (%2B → "+") has to be URL escaped

and
- - - http://dd.winterknights.ca/roll?toss=4d8 to get
- - - 4d8 → 4, 6, 3, 7 = 20

- - - http://dd.winterknights.ca/roll?toss=4d8%2B2
- - - 4d8+2 → 8, 5, 2, 4 + 2 = 21

do those somewhat work?

Given an input of 2d6+4d8 how would you like to see the output?

My first thought is

- - - 4d8+2d6 → 3, 8, 4, 2 + (6, 3) = 17 + 9 = 26

>> Looks like a good start.

Thanks again.

User avatar
Azhrei
Site Admin
Posts: 12057
Joined: Mon Jun 12, 2006 1:20 pm
Location: Tampa, FL

Re: website doce roller

Post by Azhrei »

mxtbcca wrote:Given an input of 2d6+4d8 how would you like to see the output?

My first thought is

- - - 4d8+2d6 → 3, 8, 4, 2 + (6, 3) = 17 + 9 = 26

>> Looks like a good start.

Thanks again.

Hmm, that's a good question. I have a Perl script that does some of my dice rolling. For example, here's one that calculates the hp for a creature with 2d12+3d6+4d8+24:

Code: Select all

21+14+24+24 = 83

Of course, I don't need individual rolls in this case. (IMC, the first HD is max, the others are 75% of max. So the Perl scripts give the first HD a 12, the second a 9, and then 75% for the others as well. For the d6, it applies 5 hp for the first d6 and 4 hp for the second, which averages out to 75%. :))

Anyway, I think an expanded version where each "die group" was in parens would be best. So the output above would become:

Code: Select all

(3, 8, 4, 2) + (6,3) = 17 + 9 = 26

Perhaps that's what you meant and the first set of parens got lost?

For the links, how about something that looks like this, where "Full" means the entire die string again, while the individual links roll just that die group? Make sense?

Full 4d8+2d6

Post Reply

Return to “DiceTool”