Non-threaded

Forums » Advanced Editor Forum » Read Thread

Get help from the experts on variables, scripts, items, and other scary things.

Most efficient way of simulating a deck of cards

17 hours ago

For a game I am working on I have a "deck" of cards that will be randomly drawn from.  As things progress I need to know which cards have been pulled so as to prevent duplicates and know when the whole deck has been used.  Playing around with it, the only way I can think to do it is basically create a variable for each card in the deck to indicate 1/0 if the card has been drawn.  The cards are not items that can be interacted with by the player directly, but they do define what happens on given pages, so I wasn't looking at it as a bunch of items.  Is there a more efficient way of managing the card draw tracking?

Most efficient way of simulating a deck of cards

16 hours ago
https://chooseyourstory.com/help/articles/article.aspx?ArticleId=4293

God speed you brave soul.

Most efficient way of simulating a deck of cards

15 hours ago

Thanks.  I don't know why I couldn't find that on the article list.  I knew I had seen something like it somewhere.