VASSAL Reference Manual
Passing values to pieces
There are several techniques that can be used to pass the values of properties between different pieces
-
Set multiple Dynamic Property values in a newly created Markers created with the Place Marker or Replace With Other trait.
-
Set multiple Dynamic Property values when running any Global Key Command.
-
Set individual Dynamic Property values directly using the Set Piece Property trait.
-
Reading values from other pieces using Get Property functions.
Newly created markers
When creating a new marker with the Place Marker or Replace With Other, you can set any number of Dynamic Properties in the created marker to calculated properties:
Each property is set in the order listed to the values of the specified Expressions. The values used to satisfy the Properties included the expressions are taken from the new marker, not from the piece that is creating the marker.
You can reference properties in the piece creating the marker using $$ variables. These are literally replaced in the expression before it is evaluated on the new marker.
So, in our examples above, The Morale
Dynamic Property in the markers i