[messages] [Module Design] how to count property of cards in player window / hand

grouchysmurf lgrabun at gmail.com
Mon May 29 17:17:59 CEST 2017

Hey, rrvs.

Yours is definitely simpler and more easy to follow / implement. My
approach was based on one of the tutorials [1], where it says:

IMPORTANT WARNING: In other tutorials or forums you might suggested to
use values named OldMap, OldZone or any other variable started with
"Old"! I insist you don't do that! That's why: 1) these variables valid
only when you drag pieces by mouse, they do not work when you move piece
via command such as SendToLocation and ReturnToDeck; 2) using Dynamic
Property "Counted" is more error proof method. 

[1]. http://www.vassalengine.org/wiki/How_to ... tion/state[1].

[1] http://www.vassalengine.org/wiki/How_to_calculate_total_of_numeric_Property_of_all_pieces_in_partucular_location/state

Read this topic online here:

More information about the messages mailing list