I’m working on a game with a hex grid that starts blank and is explored by the players. I have a Deck of tiles that I want to draw from to explore. The map is fairly large and I don’t want players to have to drag and drop every tile. Is there a way to give my exploring units a global property to fetch a tile to their current location?
First, if your Hex Grid is contained within a Zone, make sure the Zone has its “Location Format” set to $gridLocation$. Now, you can use the property $LocationName$ on your pieces to determine where on the hex grid they are, so you can use a Global Key Command to trigger a Send to Location trait on the next tile to send it to the piece’s current location. Make sure you have Game Piece Layers configured so that the tiles are on a lower layer than the pieces.
Edit: I skipped a step–you would need a Set Global Property trait to store the LocationName in a Global Property that the tiles can access, before calling the Global Key Command.
It’s not a lot of work imo, every tile can be identical, and the UI benefit is clear to me. Players used to the physical boardgame might not think of the units themselves as the gateway to the tiles, or think of moving them to an empty space before drawing a tile.
That said, an on-move trigger for exploring units might be better still, that’s how an app would probably do it, so might be seen as intuitive.
That would be a good idea, yes. For @awaxy : if you followed my previous directions, you would also want a Trigger Action. You can give it a Menu Command if you want the players to be able to right-click on the piece to trigger it, otherwise it just needs a Key Command (named command or actual key is up to you; if it’s a named command it can’t be manually triggered by the players, unless it also has the Menu Command). The Trigger Action would then call the Set Global Property and Global Key Commands from before.
To make this happen automatically when you move the piece, you want to go to the properties for the main map (double-click the map name or right-click and select Properties), and set the Key Command to apply to all units ending movement on this map to the key command for the Trigger Action.
If you automate it this way, you would also want some logic in the Trigger Action to prevent it triggering when the piece moves to a hex that already contains a tile. That’s an exercise for another day.
It would be pretty simple, I think. The button/piece would function in basically the same way as the exploring piece jrwatts described, sending a map tile to its location. Every piece could be identical, as they all do exactly the same thing, the only required difference being its location on the map.