RPTools.net

Discussion and Support

Skip to content

It is currently Sat Dec 16, 2017 11:08 pm 






Reply to topic  [ 7 posts ] 

Previous topic | Next topic 

  Print view

Author Message
 Offline
Kobold
 
Joined: Fri Dec 15, 2006 8:26 am
Posts: 1
 Post subject: Exploding Dice?
PostPosted: Fri Dec 15, 2006 8:30 am 
Is their anyway to make this program use exploding dice? I'm considering moving my earthdawn game from table top to web, but While the map deal works great, I need to figure out how to role as an expample.

D20+d4 and if either rolls max they roll again and add up, while also seeing all the original rolls. I.E. 15,2=17 or 10,4,4,2=20

Is their anyway to accomplish this in the system?


Top
 Profile  
 
User avatar  Offline
Dragon
 
Joined: Tue Jan 31, 2006 8:24 pm
Posts: 382
 Post subject:
PostPosted: Fri Dec 15, 2006 4:12 pm 
You can us javascript (I think it's javascript) to extend dicetool, but I don't know if you can do this particularly.

_________________
Chaotic Neutral means never having to say you're sorry.


Top
 Profile  
 
User avatar  Offline
Codeum Arcanum (RPTools Founder)
 
Joined: Mon Jan 09, 2006 4:16 pm
Posts: 11390
Location: Austin, Tx
 Post subject:
PostPosted: Fri Dec 15, 2006 4:21 pm 
That is correct, you can use javascript to make custom roll systems. You'll have to contact giliath to get the details

_________________
Dreaming of a 1.3 release


Top
 Profile  
 
 Offline
Kobold
 
Joined: Tue Oct 27, 2009 2:04 pm
Posts: 3
 Post subject: Re: Exploding Dice?
PostPosted: Tue Oct 27, 2009 2:43 pm 
I set up my tab like this:
Step 1: ED(4)-2
Step 2: ED(4)-1
Step 3: ED(4)
Step 4: ED(6)
Step 5: ED(8)
Step 6: ED(10)
Step 7: ED(12)
Step 8: ED(6):ED(6)
Step 9: ED(8):ED(6)
Step 10: ED(10):ED(6)
Step 11: ED(10):ED(8)
Step 12: ED(10):ED(10)
Step 13: ED(12):ED(10)
Step 14: ED(20):ED(4)
Step 15: ED(20):ED(6)
Step 16: ED(20):ED(8)
Step 17: ED(20):ED(10)
Step 18: ED(20):ED(12)
Step 19: ED(20):ED(6):ED(6)
Step 20: ED(20):ED(8):ED(6)

You can change the :'s to +'s if you only want to see the result, but I like to see each die's result.

And here's my functions.js:
Code:
function registerFunctions() {
   var map = new java.util.HashMap();
   map.put("ED", step01);
   return map;
}



function step01(a) {
   row.label="ED("+a+")";
   var roll = Math.floor(Math.random()*a)+1;
   var result = roll;
   if (roll == 1) {
   row.setForegroundColor(255,0,0);
   }
   while (roll == a) {
   roll = Math.floor(Math.random()*a)+1;
   result = result + roll;
        row.setForegroundColor(0, 255, 0);
   row.label="ED("+a+")+";
   }
   return result;
}


Top
 Profile  
 
User avatar  Offline
RPTools Team
 
Joined: Tue Feb 07, 2006 1:07 am
Posts: 1766
Location: Austin, Tx
 Post subject: Re: Exploding Dice?
PostPosted: Wed Oct 28, 2009 11:35 am 
Corwin wrote:
Is their anyway to make this program use exploding dice? I'm considering moving my earthdawn game from table top to web, but While the map deal works great, I need to figure out how to role as an expample.

D20+d4 and if either rolls max they roll again and add up, while also seeing all the original rolls. I.E. 15,2=17 or 10,4,4,2=20

Is their anyway to accomplish this in the system?
I believe you want to add an e to the end to get exploding dice. Your example is: d20e + d4e. Not exactly sure what is shown.


Top
 Profile  
 
 Offline
Kobold
 
Joined: Tue Oct 27, 2009 2:04 pm
Posts: 3
 Post subject: Re: Exploding Dice?
PostPosted: Wed Oct 28, 2009 12:39 pm 
jay wrote:
I believe you want to add an e to the end to get exploding dice. Your example is: d20e + d4e. Not exactly sure what is shown.


Is that a feature in the maptools? I tried your example in Dicetools and get a parsing error.


Top
 Profile  
 
User avatar  Offline
RPTools Team
 
Joined: Tue Feb 07, 2006 1:07 am
Posts: 1766
Location: Austin, Tx
 Post subject: Re: Exploding Dice?
PostPosted: Wed Oct 28, 2009 12:52 pm 
It is in the dice library code, so it must just be in maptools. Not sure why it didn't get back to dicetool...


Top
 Profile  
 
Display posts from previous:  Sort by  
Reply to topic  [ 7 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