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

barbanera barbanera at fantafoot.com
Sat Apr 28 01:50:10 MST 2012


[This message has been edited.]

I am not sure I understand your example.. 

Do you mean something (the turn counter? some command on some counter?)
triggers a phase A 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 B 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:
http://www.vassalengine.org/forum/viewtopic.php?p=33565#p33565


More information about the messages mailing list