Change the Value between two single pieces

I have two single pieces.

Lets say you are tracking Hit Points.

How do I change the hit points for single piece A, to also change the hit points for single piece B ? And vice versa.

How can i link these two pieces together?

You’ll want to use a global key command.

The first piece sends a Global Key Command – you could name it ChangeHP or you could have it be an actual CTRL+H, or whatever. In the “Matching” expression of the global key command, put an expression that will piece B to identify itself as the correct recipient… e.g. "BasicName == “Piece B” if you’re using the expression builder. That way you don’t send it to every piece on the board (even if they don’t have a trait to process the command, it can still add up to slowness).

So now the pieces are communicating. You could then have Piece A send that command when it changes its own hit points (e.g. as a second step issued from a Trigger trait) or you could have Piece A actually respond to the CTRL+H or ChangeHP itself.

Hey CattleSquat,
Yes that works well, however, what if you have multiple players that have pulled the same piece. For instance 4 players pulled “TokenA”
Knowing that you will soon have 70 or so pieces

So If you had 4 Global Properties

How would you use the trait “Set Global Property” for each token depending on the $PlayerSide$. It doesn’t seem like you can set a variable result for the Global Property Name.
Thanks for your feedback and help.

But you CAN have a variable result for the Global Property Name! Notice the little “expression builder” button over on the right of the Global Property name – that’s a sign that that field accepts expressions (and variable results).

If you want to see a couple examples, pull down the For The People module and open up the global prototypes section.
(1) In the “Army” prototype, look at the “Change Strength” Set-Global-Property trait – each army sets its own property
(2) In the “PC Marker” prototype, look at the “Current State” Set-Global-Property trait for an even zanier double-variable version.


Thanks Brian, I did figure out how to do this.
And also Thanks for the suggestion “For the People” I always love digging into other projects to learn.