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 .
×
May your rolls be merry + bright! 🎄
Create a free account

Infinite Deck Running Out

I have created a deck of 13 unique cards, set it to "infinite", and shuffled it. The issue is that dealing cards randomly depletes the deck. Dealing any card from the deck removes that card (until recalled). Once I have dealt all 13 cards, the deck picks one of the 13 at random and starts dealing that card over and over and over again. (However, I can still "choose" any card from the deck, strangely). The behaviour I am looking for is such that each time I deal a card from the deck randomly, it chooses one of the 13 cards without depleting. I think I can simulate this behaviour currently by doing one of the following: (a) duplicating all of the cards several times to create a fat deck with lots of duplicate cards. This will take quite a while to create each card, type its name, and drag in its artwork. (b) I could roll 1d13 for the card number for each deal and choose the corresponding card from the deck. This will make dealing 1-3 cards per player quite slow.
Bueller?
1454415741
The Aaron
Roll20 Production Team
API Scripter
The way the infinite decks work is as if you have an infinite number of shuffled copies of your deck stacked on to of each other. For a deck of 6 cards A-F, each card is represented for every 6 cards you deal out. If the first card dealt is D, you are guaranteed that it will not be in the next 5 cards, and will occur 1 time in the next 11, 2 times in the next 17, etc.  The fact that you get in a state of only dealing 1 card seems like a bug. Are you using the deal option on the deck's menu or dragging cards to player names?
Both.
1454438317
The Aaron
Roll20 Production Team
API Scripter
Ok.  Just so I'm clear on what's happening:  Assuming you have cards A-M, you might get this distribution? L I H C F D A M E G J B K F F F F F F F F F F F F F F F F F Can you post a screenshot of the settings for your deck so that I can try to duplicate the issue?
Distribution: Correct, that is what is happening.
*bump*
same thing is happening to me. i tried to make a tile laying game and after the number of tiles on the table and in the players hands exceed the number of the deck it just picks one card/tile and deals that one and only that one over and over to everyone until you recall all the cards (which dosen't really work for a tile laying game)
1456968322

Edited 1456972111
The Aaron
Roll20 Production Team
API Scripter
Sorry for the delay, this totally slipped below my radar.   I have duplicated this with a deck of 2 cards, as well as with the default player cards deck.  I created  this ticket for the issue which you may want to follow.  
thank you
1457561959

Edited 1457562211
Phil B.
Forum Champion
Sheet Author
I have fixed this, and the code changes should be out on the dev server now, so check it out (if you have a pro account, otherwise give it a bit before it makes it out to the main server). I also added an additional option to decide how exactly the infinite deck functions, while I was in there. You can choose to always draw a random card (like: 1, 1, 3, 5, 3, 2, 1...), or have it draw through the deck each time before it automatically reshuffles and draws through again (1, 2, 3, 4, 5, 5, 4, 3, 2, 1...).
1457564748
The Aaron
Pro
API Scripter
Very nice!  Just tried it out, suuuuuper awesome!!!
1457957794
Natha
KS Backer
Sheet Author
API Scripter
Very nice addition to infinte decks. Thanks!