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

[API] Roll and Deal

1459867296
Tom
Pro
Sheet Author
This would seem like a simple application, so I'm hoping something like this already exists that I can easily modify. Is there a script that will roll dice and then deal a # of cards from a specified deck based on the result? Example: I roll a d6 and get 3.  I'm immediately dealt 3 cards from a "successes" deck. Do I even need a script to do that?
1459874253
The Aaron
Pro
API Scripter
Unfortunately, that isn't currently possible.  Decks and Hands are read only for the API. =(
1459883304
Tom
Pro
Sheet Author
Ok.  Good to know.  Thanks Aaron.
1459883599
The Aaron
Pro
API Scripter
Depending on the problem you're trying to solve, there might be some other solutions.  Whatcha got?