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

Card Deck Help

Hi All, 2 questions regarding the Card Decks. 1.) my cards are in a specific order and I don't want the cards to be shuffled, ever, especially by accident.  Is there a way to turn off the "shuffle" button. 2.) Each deck has up to 80 cards and it is hard to find the right one to "choose" due to small text. Is there a way to choose the card via the "card name". Thanks again for such a great, responsive community! --GTH
1517506197
The Aaron
Pro
API Scripter
Outside the API: 1) no 2) no.  2 can be partially addressed with some Stylish changes to make the cards appear much larger, or with a bookmarklet.  Here's a bookmarklet that makes cards 400px wide: javascript:(function(){$('<style type="text/css">#showndecks {width:400px;} #showndecks .deckstack {width: 400px;} #showndecks .card {width:400px;}</style>').appendTo('head');}()) Stylish could be used to make that always the case locally. With the API: 1) I have an API script that will let you set the order of a deck, provided all the images are in a user library and not from the marketplace.  You could use that to reset the correct order each time after shuffling.  Because of how the decks work, it technically does not change the order, but rather changes all the cards so that whatever card is first will have the properties of the card you want first, etc.  That means it would change cards in peoples hands as well. 2) The API could certainly find a card by name, but there aren't mechanics (currently) for drawing or dealing it.  If it's image isn't from the marketplace, it could be created on the table, but it would still be in the deck and could be drawn.
Thanks Aaron,  I think if I can solve #2 by making the card size larger, then #1 isn't really an issue.  Now to figure out how to add javascript commands ;o). best regards, GTH
1517508682
The Aaron
Pro
API Scripter
For bookmarklets, you just make a bookmark with the above as the URL.  When you click on the bookmark it runs it in the context of the page. Probably a stylish style would be a better option: #showndecks{     width: 400px; } #showndecks .deckstack {     width: 400px; } #showndecks .card {     width: 400px; } Let me know if that does it for you.
Hi Aaron, Thanks for the help, however I am embarrassed to say that I wasn't successful (yet) in getting the card size to change with the above, mostly likely as I don't how to bookend that command properly in the API.  I'll keep trying and if frustration gets the better of me, I'll hit you up again ;o) Best regards, Gil
1517515746
The Aaron
Pro
API Scripter
It's not in the API, it's in the browser.&nbsp; You'd put it in as a bookmark, like you would for a url, but with that above JS where the URL would be.&nbsp; Honestly, the Stylish Extension is probably a better option:&nbsp;<a href="https://userstyles.org/" rel="nofollow">https://userstyles.org/</a>