how to deal to hands

This is my first attempt at making a module and I can’t figure out how to make it deal out a set number of cards to each players hand. (I know this can be done, I’ve seen it in twilight struggle but looking at the module I can’t figure out how it was done.)

How would I go about doing this ?

I have a deck on the main map and I need to deal out 10 cards to each players hand (6 players total).

Simple steps would be most helpful, most of this is still greek to me.

I looked around and couldn’t find anything on this that made since to me, If this is covered somewhere else could someone point me to it.

TS uses custom code so probably not going to help you.

However this can be done with normal Vassal traits without custom code. See this thread

https://forum.vassalengine.org/t/a-deck-question/1476/1

Different methods how are explained here

I could put together a sample mod for you pretty easily on this. Back later today.

On 14 April 2011 12:32, paul88 yoshiki_ni@hotmail.com wrote:

This is my first attempt at making a module and I can’t figure out how
to make it deal out a set number of cards to each players hand. (I now
this can be done, I’ve seen it in twilight struggle but looking at the
module I can’t figure out how it was done.)

Tim is correct. This isn’t done using standard VASSAL properties in the TS
module.

  • M.

Attached is a sample mod that deals cards to 6 player hands named P1 thru P6.

Just change the .zip extension to .vmod

Feel free to ask any questions you may have either here or send me an E-mail.

DrNostromo@DrNostromo.com

Thanks for the help guys.

I’ll work on this over the week end when I have time.