Can I set a global value equal to the number of players?

Simple question right?

I am just wondering if there is a way for the engine to recognise the number of players in game.

For example a game that can be 3 to 8 players. If I have only 5 players then I would like to be able to take that into account for things like turn counters and whatnot.

Say each player has 4 actions during a round, at 5 players thats 20 actions before the round advances, but if there are 7 player then the trigger value for round advancement becomes 28.

What I would like to know is if there is some way for me to include strings like $# of players$ + $value$ and if so what would be the proper syntax.

Thanks

In Vassal 3.2, from what I understand, you’ll be able to use expressions and mathematics. But for now, you can’t use expressions like that in the stock Vassal engine.

What I usually do is create a Global Property called NumActivePlayers. Then, at the beginning of the game, each player will click some sort of icon. I call them player initialization icons. You can then have each icon increase the NumActivePlayers by 1.

good idea thanks :slight_smile: