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 chill this holiday season!
Create a free account

Pre-set Deck Order

I've created a few custom decks for a tarokka card reading in my game. However, I want to create the illusion that the drawing is random chance, when in actually actuality, I'll have decided what is drawn. I know I can use the choose function, but I would love for my characters to be able to draw from a stacked deck. Is there any way to set the order of a deck in the deck macros?
1494530717
The Aaron
Pro
API Scripter
There isn't.  It's possible the deck might begin in a known order based on the order you upload images. Another option would be to lay all the cards down "memory" style, then have them flip one card at a time.  You'd need a script that knows what cards to show them and the order, then it can just manage things so that ALL the cards are 'the next card', then have them all change to a black card. =D  I seem to remember Strahd getting a blank card at some point in the novels, which was cool. =D  That wouldn't be a terribly difficult script to write.  The hard part would be setting up the associations, but if you've already got a deck setup, that becomes much easier.
1494531401
The Aaron
Pro
API Scripter
The API can't affect the deck, but it can affect the cards. Another option would be, on shuffle of the deck, rewrite the top 5 cards to be whatever you want.  Also not a terribly difficult script to write, and easier than the above.
Oh! Your second post - that is exactly what I want to do. But I don't know anything about the scripting on Roll20. Where can I learn how to do that sort of thing? P.s. @The Aaron I really appreciate your help. I notice you are on these forums quite a bit. You are awesome!
1494536268
The Aaron
Pro
API Scripter
How soon do you need it by?  I think I have 90% of the code in a script I wrote for a friend to setup Betrayal at house on the Hill decks...
1494536307
The Aaron
Pro
API Scripter
(and yeah, I'm not saying I have 4 monitors on my desk with one auto refreshing the forum every 5 minutes..... ok... I am saying that... =D )
The Aaron said: There isn't.  It's possible the deck might begin in a known order based on the order you upload images. Another option would be to lay all the cards down "memory" style, then have them flip one card at a time.  You'd need a script that knows what cards to show them and the order, then it can just manage things so that ALL the cards are 'the next card', then have them all change to a black card. =D  I seem to remember Strahd getting a blank card at some point in the novels, which was cool. =D  That wouldn't be a terribly difficult script to write.  The hard part would be setting up the associations, but if you've already got a deck setup, that becomes much easier. It doesn't. Once a deck is shuffled, it never goes back to its default, original state.
1494537193
The Aaron
Pro
API Scripter
I meant before ever shuffling, but probably you can't even draw from it until it's shuffled.
I'm probably going to need it this saturday. We run our game at 1:30, but we are just starting. It's possible I won't need it for until next saturday.
1494539827
The Aaron
Pro
API Scripter
Cool.  If you wanna PM me an invite and GM, I can get it all set up. =D
Sick! Thank you. I'm sorry it took me a little bit to respond.
1494543310
The Aaron
Pro
API Scripter
No worries. :). Will give me something to do during tonight's game when it's not my turn...  =D