Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Cthulhutech Dice API (mk II)

Since the old thread was closed (because there wasn't any issues with it for two plus months), and I am hoping for an adjustment, I am opening a new thread. I am would love to be able to roll multiple groups dice, and have the script form the total/formula from that.  For example: Shooting something while unskilled, but the gun has a super smart targeting system that increases the die pool by 2 would look like this: 1d5, 2d10, plus Agility.  The script can roll the 1d5 just fine, but it hates have extra dice groups.  If the skill is 4, with 2 specialization, and 2 drama/hero/save-your-backside points, I have to make the formula be "[[(4+2+2)d10]], and cannot do this formula: "[[4d10 + 2d10 + 2d10]]"
1453408139
The Aaron
Pro
API Scripter
So, they would all still be part of the same inline roll, just the dice are separated for convenience?
Yes.  
1453409391
The Aaron
Pro
API Scripter
Should be pretty easy, I'll see if I can't make that mod tonight and get it out the door.  =D
That would be awesome.  I have a game Saturday, and would need time to update the sheet.  Thanks for taking a look, but don't break bones to get it done.  I am very pleased with the script as it is, so don't feel any urgency.  
1453433104
The Aaron
Pro
API Scripter
Fixed! <a href="https://github.com/shdwjk/Roll20API/blob/master/CthulhuTechDice/CthulhuTechDice.js" rel="nofollow">https://github.com/shdwjk/Roll20API/blob/master/CthulhuTechDice/CthulhuTechDice.js</a>
...now I have to adjust my whole character sheet. &nbsp;I hate you. Thanks again. &nbsp;You do awesome work. &nbsp;Here it to hoping for a snow day.
1453435371
The Aaron
Pro
API Scripter
Hahaha. &nbsp;What sort of adjusting? &nbsp;Something that could be scripted?
1453435842

Edited 1453435890
Coal Powered Puppet
Pro
Sheet Author
The Aaron said: Hahaha. &nbsp;What sort of adjusting? &nbsp;Something that could be scripted? Nononononono! &nbsp;Vince already told me about you and your tempting to the darkside. &nbsp;I will resist! Right now every skill is a drop down menu ranging from "0" to "5". &nbsp;That's how many 1d10's it rolls. &nbsp;Until now I have had it roll "[[ [[@{skill-rating}+@{skill-specialization}@@{skill-mod} ]]d10]]". &nbsp;Now I have to change every down down menu from # to #d10 (except 0, which gets turned into 1d5), and remove d10 from all the buttons. &nbsp; My Copy-and-Paste Fu will do just fine, thank you very much, Darth The Aaron. &nbsp; Edit: Snow day!
1453435952
The Aaron
Pro
API Scripter
I can do that with one regular expression in my editor.. about 3minutes work likely... &nbsp;wanna pm me a gist link?
Nah. &nbsp;Really, you did the hard part. &nbsp;The adjustments will keep me busy and off the roads. &nbsp;Which, if you've seen the people drive around here, is a good thing when there isn't ice and snow.