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

Looking for Help (Paid) with Card Game API

Hello!  I have a card game of my own design that I'm trying to put into Roll20 for play-testing and demo purposes. I have it set up that it can be played totally manually, but it's a bit fiddly.  I would really like to have it automated as much as possible (so, for example, if I play a card that says "Play the top card of X deck", the API will automatically flip the top card of the corresponding deck and play the card in the appropriate area of the game board). Is this even possible?  Does anyone here have any interest in taking on a project like that?  Thanks in advance!
1691936965
The Aaron
Roll20 Production Team
API Scripter
It is probably possible. The card functions for the Mod API are a bit fiddly, but something like that should work. In the example you listed, the script would need to know: What deck to draw from. What location to play to. What card triggers that action.  That seems pretty simple from the onset, but is complicated in the details. What I gather is there are playing zones on the page (are they player specific or global or both?), there are multiple decks (do players draw from the same decks, or do they have their own copy?), and there are actions that take effect when you play to the table (are there other places that things get activated, like discarding a card, picking up a card on the table? Are there optional effects that players choose? Are there choices as part of an action?). All of those things must be represented in a way the script can interpret them.