RPTools.net

Discussion and Support

Skip to content

It is currently Tue Oct 17, 2017 7:16 pm 






Reply to topic  [ 6 posts ] 

Previous topic | Next topic 

  Print view

Author Message
 Offline
Kobold
 
Joined: Thu Sep 03, 2009 9:57 am
Posts: 1
 Post subject: website doce roller
PostPosted: Thu Sep 03, 2009 9:59 am 
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).


Top
 Profile  
 
User avatar  Offline
Site Admin
 
Joined: Mon Jun 12, 2006 12:20 pm
Posts: 12101
Location: Tampa, FL
 Post subject: Re: website dice roller
PostPosted: Thu Sep 03, 2009 10:19 am 
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).


Top
 Profile  
 
 Offline
Kobold
 
Joined: Tue Nov 24, 2009 12:57 pm
Posts: 2
 Post subject: Re: website doce roller
PostPosted: Tue Nov 24, 2009 1:07 pm 
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


Top
 Profile  
 
User avatar  Offline
Site Admin
 
Joined: Mon Jun 12, 2006 12:20 pm
Posts: 12101
Location: Tampa, FL
 Post subject: Re: website doce roller
PostPosted: Tue Nov 24, 2009 3:09 pm 
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.


Top
 Profile  
 
 Offline
Kobold
 
Joined: Tue Nov 24, 2009 12:57 pm
Posts: 2
 Post subject: Re: website doce roller
PostPosted: Wed Nov 25, 2009 11:45 am 
>> 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.


Top
 Profile  
 
User avatar  Offline
Site Admin
 
Joined: Mon Jun 12, 2006 12:20 pm
Posts: 12101
Location: Tampa, FL
 Post subject: Re: website doce roller
PostPosted: Wed Nov 25, 2009 2:53 pm 
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:
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:
(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


Top
 Profile  
 
Display posts from previous:  Sort by  
Reply to topic  [ 6 posts ] 

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:

Who is online

In total there is 1 user online :: 0 registered, 0 hidden and 1 guest (based on users active over the past 5 minutes)
Most users ever online was 243 on Sun Nov 04, 2012 6:14 am

Users browsing this forum: No registered users and 1 guest





Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

Style based on Andreas08 by Andreas Viklund

Style by Elizabeth Shulman