[messages] [Module Design] create a counter that keeps track of clicks of a button

barbanera barbanera at fantafoot.com
Sat Apr 28 01:49:24 MST 2012

I am not sure I understand your example.. 

Do you mean something (the turn counter? some command on some counter?)
triggers a phase where some players are drawing cards from a deck, while
another player has to sit out till N cards are drawn? And after N are
drawn another phase starts?

If so, then you could make use of the <deckname>_numPieces global
property associated with a certain deck. Whatever starts phase A should
set a global property CardNumber to be equal to <deckname>_numPieces.
Then just add on the cards a trigger trait to trigger when
<deckname>_numPieces = CardNumber - N and proceed to stop phase A and
move to phase B.

Read this topic online here:

More information about the messages mailing list