Create account / Log in

Auto-Shuffle decks at the start of a game

Talk about module design ideas and techniques.

Moderators: Tim M, uckelman

Auto-Shuffle decks at the start of a game

Postby C36 » March 29th, 2020, 10:50 am

How can I get all decks of my module shuffled automatically at the start of a game?
C36
 
Posts: 2
Joined: March 19th, 2020, 4:02 pm

Re: Auto-Shuffle decks at the start of a game

Postby tar » March 29th, 2020, 7:25 pm

Depends a bit on exactly what deck behavior you want.

The simplest to do is to just set the deck property "Re-shuffle" to
"Always". That gives you a random draw from the deck.
This will work for you as long as you don't care about the order of cards
at all.

If you need to return cards that stay in order at the top of bottom of the
deck, then it will be more complicated.

On Sun, Mar 29, 2020, 7:42 AM C36 via messages
wrote:

> How can I get all decks of my module shuffled automatically at the start
> of a game?
>
> _______________________________________________
> Read this topic online here:
> viewtopic.php?p=58936#p58936
> _______________________________________________
> messages mailing list
> messages@vassalengine.org
> http://www.vassalengine.org/mailman/listinfo/messages
>
User avatar
tar
 
Posts: 776
Joined: January 2nd, 2008, 6:53 pm
Location: Los Angeles area


Return to Module Design

Who is online

Users browsing this forum: Bing [Bot] and 6 guests