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 Testbed for Free Customers?

I want to experiment with creating an API-based plugin to support my system of choice (One Roll Engine), but I don't feel like I can justify paying $10/month to get access to the API just so I can find out if it's even capable of what I need! Is there any chance you could create a testbed for potential developers who want to experiment or build things for the community, so we can start exploring what your API is capable of and building up systems to support a new engine without paying for access during our experimental development time? I completely understand why creating a campaign and inviting people using API scripts is a paid feature, and it's something I would (will) sign up for in a moment once I've finished building what I need to actually host a game but until then I'm caught in a bit of a bind; I can't justify the cost until I can actually run what I need, but I can't run what I need until I see how the API works!
1385856899
Stephen S.
Pro
Marketplace Creator
Sheet Author
API Scripter
<a href="https://app.roll20.net/forum/post/431906/testing-how-to-set-up-automated-tests-that-execute-outside-of-roll20-environment#post-431995" rel="nofollow">https://app.roll20.net/forum/post/431906/testing-how-to-set-up-automated-tests-that-execute-outside-of-roll20-environment#post-431995</a>
1385858108
Stephen S.
Pro
Marketplace Creator
Sheet Author
API Scripter
That might be one solution for you. What is it you are looking to do? I am just glancing over the system... I think you could do a lot with API here.
1385905113

Edited 1385905229
Lithl
Pro
Sheet Author
API Scripter
I just threw together this fiddle that might work for some uses. It's obviously not going to cover all bases (I flat out ignore change, add, and destroy events since they won't happen without the R20 UI), but hey... it's a fiddle. =P (Note: I tested the fiddle code a bit while writing it, but I'm presenting it extremely "as-is".)
1385993381

Edited 1385993726
EepMoody
API Scripter
Thanks for all the links! I'll dig into those a bit and see if I can cobble together the core functionality I need using one of these. I'm looking to build out support for One Roll Engine's fairly unique dice mechanic, where the goal is to accumulate sets of matching dice rather than a given total or individual value on the dice. It also includes dice that can be set before (called "expert dice" or "ed") or after the roll (called "master dice" or "md") to increase the odds of a certain result. The ideal basic input/output I'm hoping to achieve is something like: /roll 6do+ed10 2x2 3 6 3x10 //their roll generates the numbers 2 2 3 6 10 10 and a non-random 10 is added for their expert dice with italics showing the location where the expert die ended up. I'd also like to look into doing some sort of in-system dialog that shows the person their roll and lets them input a value for a master dice, then adds the result to the chat stream. (if they had used md instead of ed10 in our previous example, and chosen 10 for a value, the result might instead look like 2x2 3 6 3x10 so that the GM and other people can see how the roll was modified.) Since the values of various sets can change as a round resolves, and also determine initiative (and people can act more than once in the same turn) I'd even like to look into building a tool where everyone sort of "locks in" their dice pool for the round, then they all get rolled at once and feed into the initiative tracker, with ability to edit sets as the turn resolves. (With some way for a person to indicate that they are entitled to more than one action that turn) I actually built out a very simple version of this with Joshua Owen's codebase a while ago, but at the time I was just editing the source for the tool rather than looking at API integration. (and it was before he integrated his work with other projects to create Roll20)
1386036012

Edited 1386036081
Lithl
Pro
Sheet Author
API Scripter
I made a quick sample script for the ORE dice. Use similar to !r 3d3e53h (3 dice, 3 expert dice @ 5, 3 hard dice) or !r 3de{3,5,7}3h (3 dice, 3 expert dice one each at 3, 5, and 7, and 3 hard dice). The expert and hard dice are optional, and their order may be switched. Use 0 for 10 on expert dice. This script simply outputs the list of dice (rolled or unrolled) in descending order once it's done. You could edit it starting after line 61 to better format it (eg, 3x10), and/or to have it output as though the player/character is the one saying it, instead of "SYSTEM". <a href="https://gist.github.com/Lithl/7762600" rel="nofollow">https://gist.github.com/Lithl/7762600</a>