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 with individual card backs - possible?

1511690138
Lutz P.
Plus
Translator
What I found in the forum so far does not give me much hope, but … Is there a way to create a card deck where each card has a distinct back? Intended use: I need a deck of 24 cards. It must be possible to shuffle the deck and to draw (to the table); recall, deal and other deck functions are not required. Each card must have a disctinct front and back side (the back actually shows a hint about what to expect on the front plus an ID letter, the front shows the details and an ID/lookup number). Important: Each card may only be drawn once, i. e, the deck must be empty after the 24th card draw. Note: I have no problems at all to create graphics, and I know about custom decks and rollable tables: Card decks seem to allow only one back image for all cards, otherwise they would do all I want. Rollable tables , I think, do not keep track of which items have been drawn already, so I could possibly draw the same item multiple times. Does anyone see a way to do this with roll20?
1511692201

Edited 1511695412
Bast L.
API Scripter
Hmm, might actually be possible with API. It depends if there's a draw card event. Maybe something like on(change:deck:_currentindex). Then you check the index, and swap the avatar appropriately. Anyways, that's a pro feature. As for what you want with plus... I don't believe so. Edit: but after struggling a bit with what I thought would be a trivial script, I'm taking a break/giving up maybe :)
1511800861
Lutz P.
Plus
Translator
Thanks Bast, I was afraid that would be like this. Roll20 made little progress in the direction of non-RPG requirements, I'll change to VASSAl for my planned prototype.
1511804541
Finderski
Pro
Sheet Author
Compendium Curator
Bast, There was a Card Dealing Script written for Savage Worlds Initiative:&nbsp; <a href="https://github.com/pelwer1/Deal-Init" rel="nofollow">https://github.com/pelwer1/Deal-Init</a> Perhaps that could help with the script you were attempting? &nbsp;I'd think a front and back would be nothing more than two different "decks" and deck1[0] would be associated with deck2[0], sort of thing...?&nbsp; The script would need a little more modification, because this script actually updates the Initiative Tracker, and instead these cards may need to be output to Chat...?
1511938391
Lutz P.
Plus
Translator
The script may work, but (for me) it is much too complicated for sucha simple demand. The VASSAL module is ready now, no problem.
@Finderski: I was using the deck system, and it seems to work except it won't update the image until I manually hide and re-show the deck. I'm just guessing here, but maybe it need some update to the rendering. The odd thing is that I tried an await to give it a second to hide and then to re-show the deck, but it wasn't happening, however, it will re-show the deck if I manually hide it. So "shown" is not a read only property, it seems, and yet it didn't work when I tried to hide it and then show it... Anyways, this sorta works, but sucks, and you have to manually hide the deck in order to update the card back:&nbsp; <a href="https://gist.github.com/Bastlifa/838da4e7ac042e73d" rel="nofollow">https://gist.github.com/Bastlifa/838da4e7ac042e73d</a>... (table items should have the same names as cards)