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

Flipping Cards Quickly

Is there a macro or API function that can be used to flip a card instantly? It gets difficult and painstaking when the menu falls off the screen and makes it unclickable.
1418703233

Edited 1418703282
vÍnce
Pro
Sheet Author
You can hold the shift key when placing them on the table/map. Not sure of API interaction with card decks
Sorry, I was referring to cards that are already on the table, which I guess would be more difficult. Thanks though.
1418749419
The Aaron
Roll20 Production Team
API Scripter
API wise, cards have sides just like rollable tokens or dice images (which I suppose are rollable tokens really). Side 0 is the face of the card, Side 1 is the back of the card. Choosing the Flip Card option switches which side is set. Side can be set by the API. HOWEVER: Side changes made by the API do not cause an update to the current imgsrc! I started a thread of API bugs and such that it would be nice to see fixed in the API pass that Riley mentioned he was going soon and listed that one among it. If that gets fixed, it would be trivial to write a script that flipped cards. It would only be a question of the interface at that point.
So if "Flip" is an API option, can "Take Card" also be done? That would be another excellent way to speed up gameplay.
1418793573
The Aaron
Roll20 Production Team
API Scripter
Not right now. The API can get the current hand, but can't modify it. Also, the API can't delete objects, so couldn't remove it from the table.
All right. Maybe someday.