There’s a way to
- set a property/trait of a Piece when it enters in a Zone, no matter if by a keystroke or a player dragging it there?
- send a keystroke, or set a property to all the pieces adjacent to the selected one (in a hexgrid, )?
There’s a way to
For detecting movement, use a Map Window’s bottom-most config option, the “Key Command to apply to all units ending movement on this map”. Individual pieces can react to the key command you define here, either directly or passed through a Trigger Action, which will give you more control using a property match expression (setting the conditions for when to respond to the map-based key command or ignore it). If a piece is being moved by a Send to Location trait, just use the exact same key command in a Dynamic Property in the piece.
Global Key Commands have a “Restrict Range” feature that can do this.
Well, if i’m not missing something, this would not help me: I have only one game map, it contains at least two Boards, the actual battlefield and a “side board”, and the Zone i would like to act in this way is in the latter. If i’m not wrong and not missing something, using that option will send tha Key Command for every single Piece (Units, tokens, maybe cards?) that just moves on the whole map;
Is this what yu had in mind for
this conditions test? so should i test for the actual location of every single piece that moves on the map?
Yes–your originally stated goal was essentially to do something when a piece enters a specified Zone. For manual drag-and-drop, the starting point to be able to do this is the map-based movement key command. From there, the pieces themselves need a Trigger Action with a property match expression of the form:
{CurrentZone=="Name-of-your-zone" && OldZone!="Name-of-your-zone"}
When that returns true, you know that the piece is in the zone but wasn’t before, so in the bottom portion of the Trigger Action you can set the key command that operates the piece’s Dynamic Property trait to set a property.
You can craft all kinds of property match expressions using the standard set of properties returned by all pieces to fine-tune response to map-based movement key commands.
Right. It will be sent to everything, but nothing will happen unless pieces are configured to do something in response to the sent command.