VASSAL Script programing question?

Is it possible to run Script commands inside VASSAL? I use Script commands inside AutoCAD (Computer Aided Drafting) software to import data from a database files into my drawings.

My goal is to do mass commands within VASSAL, such as flip all German counters (pieces) without picking them individually to face up, face down (BACK) or hidden. Ultimately, I want to call up by Divisions or Brigades individually from a pull-down menu to give orders.

All German/Soviet counters (pieces) had unique pattens to their file name so I could perform mass commands. Note: All Divisions/ Brigades back side have one master counter/piece. Sample: “GER_*************BACK.png”

German 71 Infantry Division

GER_71_ID_072_PIO_BN_LEADER.png
GER_71_ID_086_PZJAG_BN_1_CO.png

German 16 Panzer Division

GER_16_PZD_028_PZ_BN_III_MED.png
GER_16_PZD_034_PGR_RGT_1_ARM_CO.png

German 100 Jäger Division

GER_100_JD_018_INF_RGT_1_BN_II_1_CO.png
GER_100_JD_079_DIV_BACK.png

Here are sample pics to give you a better ideal of my final goal.



You can achieve this type of mass-command by using a Global Key Command.

You need to edit the module to add this button. You can also incorporate a GKC into as a command on a piece.

@WOTR_STALINGRAD_1942 - to learn more about Vassal module editing, see Joel Toppen’s tutorial series on YouTube. If you are already familiar with the basics, then skip to Lesson 9 for an example of configuring a Global Key Command in a Navajo Wars module.

Big thanks! bud

I had seen all of his videos before. I reviewed them again but did not see anything comparable to what I was wanting to achieve.

I downloaded around thirty modules and found one that had something close to what I wanted. With some slight modification and now I have something that works!

1 Like