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

Drawing cards with a macro/chat command

1549374975

Edited 1549375014
I've googled this and realise that it has been asked in the past and that this feature is not natively supported. However, with access to the API, would I be able to make it so that players can draw cards from a deck using a prebuilt macro or chat command? Ideally I would have them be able to draw between 1-8 cards, with each number being its own macro, i.e. they click "draw 3" and it will draw 3 cards directly into their hand.
1549387185
The Aaron
Roll20 Production Team
API Scripter
As of last year, this is possible with the API via the card functions:&nbsp; <a href="https://app.roll20.net/forum/post/6223396/slug%7D" rel="nofollow">https://app.roll20.net/forum/post/6223396/slug%7D</a>
Thanks for the reply. Sorry for my late response. I tried playing around with it but my knowledge of JS is sorely lacking, despite looking at a few API script examples. Any chance you would be able to help get me started? I'm just looking for: If player types !draw1 it draws 1 card from the top of the deck (how to get the deck id?) !draw2, !draw3, etc Then the players can turn those into simple macro buttons so they don't need to type them out each time. Appreciate any help a lot.