How to count cards in play?

There’s probably a simple way to do this, but I can’t seem to figure it out.

If I have a deck of 20 cards, is there a way to count how many are in play? I’ve tried $20-deck_numPieces$ and other variables of that, but can’t get it to work.

Thanks much.
DC

variable = 20 - $nameofthedeck_numPieces$


From: dennycrane1414 dennycrane1414@hotmail.com
To: messages@vassalengine.org
Sent: Tue, January 29, 2013 11:47:26 AM
Subject: [messages] [Module Design] How to count cards in play?

There’s probably a simple way to do this, but I can’t seem to figure it
out.

If I have a deck of 20 cards, is there a way to count how many are in
play? I’ve tried $20-deck_numPieces$ and other variables of that, but
can’t get it to work.

Thanks much.
DC


Read this topic online here:
https://forum.vassalengine.org/t/how-to-count-cards-in-play/5664/1


messages mailing list
messages@vassalengine.org
vassalengine.org/mailman/listinfo/messages

Erm… Can you be more specific? Where is that supposed to go… in the Text field or somewhere else? Is there other formatting? Because that just shows a thing that says “variable = 20 - 20.” I had tried “20 - $deckname_numPieces” in the text field, but that just shows “20 - 20” and I only want the remainder shown.

You must add a trait “Calculated Property” and display it in the text field.