Is it possible to add a copy of a Game Piece to a "deck", when that piece is moved to the Game Board?

I am trying to have a chit-pull deck for the Game Pieces that are drawn by the players to the Game Board. The aim is to have copies (or “representations”) of the actually used game pieces to be created in the draw cup, so that during the game the players can use the draw cup to draw a counter which will then be activated.

Is it possible, and/or is there a Module that uses this, that I could check?

Also, if a piece is destroyed, that “copy” would be removed from the chit-pull deck…

Sure, this is pretty straightforward.

The first piece is the all-important “Key command to apply to all units ending movement on this map” feature of a Map Window:

image

You put either a Named Command (preferable in my opinion) or a Keystroke Command here, and that’s how movement of a piece that a player drags to the game board will be detected and can do something in response.

From there, the pieces themselves need a Trigger Action trait. A Trigger Action is just a way of listening for something, then doing a sequence of things in reaction.

What is the piece listening for? Whatever command you defined above, the inbound movement-based command sent from the map. In order to have this happen only when a piece is first dragged to the relevant map and not every single time you move it, add in a property match expression–only when this expression evaluates to true will the Trigger actions be performed. This will usually take the form of something like: {CurrentMap==”your-mapname-here” && OldMap!=”your-mapname-here”}. I.e., it’s on the map now, but wasn’t before you moved it.

Now, what is the piece doing in response? Copying itself (Clone trait) and then sending itself to the draw cup (likely a Return to Deck trait). The named commands shown are merely examples, they are not defined things you have to use.

To delete both an on-map piece and its “copy” in the cup, a Global Key Command trait should work. Send a command to all pieces matching the piece name that both the on-map and in-cup ones should share. What command? A key command on the piece’s Delete trait that’s “silent”–i.e. it exists but has no menu command for players to right-click and see.

Thx! WIll try it.

Thanks for working this out.

I have a game that I’ve been wanting to prototype (starting with a battle of Midway Game that starts off at the end of the Battle of the Coral Sea).

Part of the game involves chit-drawing representing intelligence developments, and I’ve been trying to figure out how to implement it in VASSAL