Create account / Log in

Choose Random Pieces and Place on Map?

Talk about module design ideas and techniques.

Moderators: Tim M, uckelman

Choose Random Pieces and Place on Map?

Postby Dan1775 » August 13th, 2019, 3:20 am

Hello,

I have just starting working on VASSAL after years of looking at it thinking "what a wonderful idea!" :)

Any any case, I am trying to modify a module to add the feature of selecting some game pieces at random and placing them in a specified hex. Any tutorials on this anywhere?

More advanced, once I've done this, I would like to place a hidden counter (like an ASL concealment counter) on top of the aforementioned units.

Thanks in advance,
Dan
Dan1775
 
Posts: 1
Joined: August 13th, 2019, 3:16 am

Re: Choose Random Pieces and Place on Map?

Postby Benkyo » August 27th, 2019, 6:15 am

Easiest way, maybe the only way, to select pieces at random is to have them in an always-shuffled deck off-board or Return them to such a deck, then send Global Key Commands to the pieces in the deck that trigger Send To traits to put them in the specified hex.

Of course, this might not work for you, depending on your requirements.
Benkyo
 
Posts: 130
Joined: March 13th, 2013, 11:02 pm


Return to Module Design

Who is online

Users browsing this forum: No registered users and 3 guests

cron