Create account / Log in

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

Topics related to the main Vassal engine.

Moderators: uckelman, Tim M

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

Postby wookiemart » May 2nd, 2010, 6:24 pm

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
wookiemart
 
Posts: 6
Joined: May 2nd, 2010, 6:16 pm

Postby DrNostromo » May 3rd, 2010, 4:41 am

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.
User avatar
DrNostromo
 
Posts: 1061
Joined: December 21st, 2007, 3:54 am
Location: Wine Country, Cal. USA

Postby wookiemart » May 4th, 2010, 5:27 pm

good idea thanks :)
wookiemart
 
Posts: 6
Joined: May 2nd, 2010, 6:16 pm


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 5 guests