VASSAL Reference Manual

Home > Concepts > Passing values to pieces

Passing values to pieces

There are several techniques that can be used to pass the values of properties between different pieces

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

Set Piece Property

Global Key Commands

Passing values via Global properties>

Using GetProperty functions.