# How to send a piece in a specific grid position of a specific zone?

**URL:** <https://forum.vassalengine.org/t/how-to-send-a-piece-in-a-specific-grid-position-of-a-specific-zone/86721>\
**Category:** Module Design\
**Created:** [September 26, 2025, 3:31pm UTC](https://forum.vassalengine.org/t/how-to-send-a-piece-in-a-specific-grid-position-of-a-specific-zone/86721 "2025-09-26T15:31:35Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Parduz](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/parduz/32/2604_2.png) [@Parduz](https://forum.vassalengine.org/u/Parduz)\
**Post date:** [September 26, 2025, 3:31pm UTC](https://forum.vassalengine.org/t/how-to-send-a-piece-in-a-specific-grid-position-of-a-specific-zone/86721/1 "2025-09-26T15:31:35Z")

</div>

I have this Main Map layout:

 ![image](https://forum.vassalengine.org/uploads/default/original/2X/0/07b5c7824f3f47b1b9c89838a244758ded06e711.png)

P1 and P2 Tokens Area grid is a 1 row, 7 columns grid.

I need to send a piece either on the P1 Tokens Area or P2 Tokens Area.  
The piece has two Dynamic properties, `Owner` and `GridPosition`, which are set before the Send to Location trait.

I’m able to send it to the right zone

 ![image](https://forum.vassalengine.org/uploads/default/original/2X/5/53edef1175ca36ad493e4de86dd1a1a269703a36.png)

but how can i place it on the right grid column? **\***

**\*** _(using the Grid numberin, and not using the offsets as pixels, ‘cause it requires to know exactly how much pixels is the zone width)_

---

<div class="post-metadata">

**Author:** ![jrwatts](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/jrwatts/32/6972_2.png) [@jrwatts](https://forum.vassalengine.org/u/jrwatts)\
**Post date:** [September 26, 2025, 11:06pm UTC](https://forum.vassalengine.org/t/how-to-send-a-piece-in-a-specific-grid-position-of-a-specific-zone/86721/2 "2025-09-26T23:06:00Z")

</div>

If you make sure your [Zones’ Location Format](https://vassalengine.org/doc/latest/ReferenceManual/ZonedGrid.html) is set to “`$gridLocation$`”, then you can use the `Region on selected Map` option of [Send to Location](https://vassalengine.org/doc/latest/ReferenceManual/SendToLocation.html). It will also be necessary to modify the [Grid Numbering](https://vassalengine.org/doc/latest/ReferenceManual/GridNumbering.html) component of each Zone, so that their `Location format` fields yield unique identifiers (for example, make the `Location format` for the `P1 Draw` Zone “`P1$gridLocation$`“, and then set the destination `Region` of your `Send to Location` to “`P$Owner$$GridPosition$`”).

---

<div class="post-metadata">

**Author:** ![Parduz](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/parduz/32/2604_2.png) [@Parduz](https://forum.vassalengine.org/u/Parduz)\
**Post date:** [September 27, 2025, 8:22am UTC](https://forum.vassalengine.org/t/how-to-send-a-piece-in-a-specific-grid-position-of-a-specific-zone/86721/3 "2025-09-27T08:22:47Z")

</div>

> [@jrwatts](#):
>
> make the `Location format` for the `P1 Draw` Zone “`P1$gridLocation$`“

OH! THAT’s the way to use it! I didn’t understood the whole concept of the “Location format” at all.

Thank you a lot!

---

<div class="post-metadata">

**Author:** ![jrwatts](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/jrwatts/32/6972_2.png) [@jrwatts](https://forum.vassalengine.org/u/jrwatts)\
**Post date:** [September 27, 2025, 10:18am UTC](https://forum.vassalengine.org/t/how-to-send-a-piece-in-a-specific-grid-position-of-a-specific-zone/86721/4 "2025-09-27T10:18:15Z")

</div>

Oops, that should have been “`P1 Tokens Area`", not “`P1 Draw`", but hopefully you figured that out.

---

<div class="post-metadata">

**Author:** ![Parduz](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/parduz/32/2604_2.png) [@Parduz](https://forum.vassalengine.org/u/Parduz)\
**Post date:** [September 27, 2025, 7:31pm UTC](https://forum.vassalengine.org/t/how-to-send-a-piece-in-a-specific-grid-position-of-a-specific-zone/86721/5 "2025-09-27T19:31:37Z")

</div>

I was hoping to have this part solved, but i have a problem i can’t understand.

Here’s my settings:

 ![{96614342-AEC6-44D7-8327-CFE164A4D41E}](https://forum.vassalengine.org/uploads/default/original/2X/a/a5c71d467adec1eab6f2230831a48af9c163aa78.png)

 ![image](https://forum.vassalengine.org/uploads/default/original/2X/c/c25502a49229af668d278ee9b35db47dd119c20a.png)

 ![image](https://forum.vassalengine.org/uploads/default/original/2X/f/fe5e2756d051eef6024a1ac76fc11dd7dd296f88.png)

 ![image](https://forum.vassalengine.org/uploads/default/original/2X/7/7334cc6d19e0c1613008e04240f1b0cea47069d5.png)

Why, on the map, i have this numbers?

 ![{7BAD37ED-1EF8-4BB0-994B-68D249828398}](https://forum.vassalengine.org/uploads/default/original/2X/8/8e55bb43bc39f505af66bb05bd342de55f2e12f4.png)

Seems like it is counting the cells from the very top of the board, and I don’t understand why, given that the “Use board’s grid” is unchecked.

What am i doing wrong?

---

<div class="post-metadata">

**Author:** ![jrwatts](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/jrwatts/32/6972_2.png) [@jrwatts](https://forum.vassalengine.org/u/jrwatts)\
**Post date:** [September 27, 2025, 9:05pm UTC](https://forum.vassalengine.org/t/how-to-send-a-piece-in-a-specific-grid-position-of-a-specific-zone/86721/6 "2025-09-27T21:05:11Z")

</div>

> [@Parduz](#):
>
> What am i doing wrong?

Failing to read the [Reference Manual page for Grid Numbering](https://vassalengine.org/doc/latest/ReferenceManual/GridNumbering.html): it explicitly states:

| Note | If you are creating a grid inside a [Zone](https://vassalengine.org/doc/latest/ReferenceManual/ZonedGrid.html#top) the first cell refers to the first cell if the grid was applied to the whole board. You will have to allow for how many cells are between the board edge and the zone edge. | |
| --- | --- | --- |
| | | |

You need to set the first cells to “-23” and “-2”, based on that image.

---

<div class="post-metadata">

**Author:** ![Parduz](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/parduz/32/2604_2.png) [@Parduz](https://forum.vassalengine.org/u/Parduz)\
**Post date:** [September 27, 2025, 9:11pm UTC](https://forum.vassalengine.org/t/how-to-send-a-piece-in-a-specific-grid-position-of-a-specific-zone/86721/7 "2025-09-27T21:11:31Z")

</div>

> [@jrwatts](#):
>
> Failing to read the [Reference Manual page for Grid Numbering](https://vassalengine.org/doc/latest/ReferenceManual/GridNumbering.html)

Sorry 😑

---

<div class="post-metadata">

**Author:** ![Parduz](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/parduz/32/2604_2.png) [@Parduz](https://forum.vassalengine.org/u/Parduz)\
**Post date:** [September 28, 2025, 8:06am UTC](https://forum.vassalengine.org/t/how-to-send-a-piece-in-a-specific-grid-position-of-a-specific-zone/86721/9 "2025-09-28T08:06:41Z")

</div>

> [@jrwatts](#):
>
> If you make sure your [Zones’ Location Format](https://vassalengine.org/doc/latest/ReferenceManual/ZonedGrid.html) is set to “`$gridLocation$`”, then you can use the `Region on selected Map` option of [Send to Location](https://vassalengine.org/doc/latest/ReferenceManual/SendToLocation.html). It will also be necessary to modify the [Grid Numbering](https://vassalengine.org/doc/latest/ReferenceManual/GridNumbering.html) component of each Zone, so that their `Location format` fields yield unique identifiers (for example, make the `Location format` for the `P1 Draw` Zone “`P1$gridLocation$`“, and then set the destination `Region` of your `Send to Location` to “`P$Owner$GridPosition$`”).

Ok, after a night of struggles, turns out that the right options to use is **`Grid Location on Selected Map`** _; the_ `Region on selected Map` never works and fires errors like

> 2025-09-28 09:35:52,384 [27316-AWT-EventQueue-0] WARN VASSAL.tools.ErrorDialog - Piece: Morale Order Trait: Send To Location - Send this to the player Token zone grid - MoveOrderTokenToPlayerArea Source: Region[{“P”+Owner+“Orders\_1-”+(GridPosition)}]=P1Orders\_1-3 Error: Region not found.

even if moving the piece on grid reports the same exact string (P1Orders\_1-3).

Thanks.

---

<div class="post-metadata">

**Author:** ![JoelCFC25](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/joelcfc25/32/2687_2.png) [@JoelCFC25](https://forum.vassalengine.org/u/JoelCFC25)\
**Post date:** [September 28, 2025, 12:54pm UTC](https://forum.vassalengine.org/t/how-to-send-a-piece-in-a-specific-grid-position-of-a-specific-zone/86721/10 "2025-09-28T12:54:54Z")

</div>

Yep–`Region on selected Map` is for when you have an [Irregular Grid](https://vassalengine.org/doc/latest/ReferenceManual/IrregularGrid.html#top), which is made up of a set of named points (regions).

---

<div class="post-metadata">

**Author:** ![cholmcc](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/cholmcc/32/8319_2.png) [@cholmcc](https://forum.vassalengine.org/u/cholmcc)\
**Post date:** [September 28, 2025, 6:21pm UTC](https://forum.vassalengine.org/t/how-to-send-a-piece-in-a-specific-grid-position-of-a-specific-zone/86721/11 "2025-09-28T18:21:30Z")

</div>

In the trait [Send to Location](https://vassalengine.org/doc/latest/ReferenceManual/SendToLocation.html#top), the options

- _Location on Selected Map_  
uses _only_ the configurations `Map`, `Board`, `X-position`, and `Y-position` which are pixel coordinates in the chosen _board_ ([Map Window](https://vassalengine.org/doc/latest/ReferenceManual/Map.html#top) and [Map Boards](https://vassalengine.org/doc/latest/ReferenceManual/Map.html#MapBoards)). Note that `Map`, `Board`, `X-position`, and `Y-position` can be [Expression](https://vassalengine.org/doc/latest/ReferenceManual/Expression.html#top)s
- _Zone on Selected Map_  
Uses _only_ the configurations `Map` and `Zone` ([Map Window](https://vassalengine.org/doc/latest/ReferenceManual/Map.html#top) and [Zone](https://vassalengine.org/doc/latest/ReferenceManual/ZonedGrid.html#Zone)). Note that `Map` and `Zone` can be an [Expression](https://vassalengine.org/doc/latest/ReferenceManual/Expression.html#top)s
- _Region on Selected Map_  
Uses _only_ the configurations `Map` and `Region` ([Map Window](https://vassalengine.org/doc/latest/ReferenceManual/Map.html#top) and [Irregular Grid](https://vassalengine.org/doc/latest/ReferenceManual/IrregularGrid.html#top)). Note that `Map` and `Region` can be [Expression](https://vassalengine.org/doc/latest/ReferenceManual/Expression.html#top)s
- _Any counter, selected by properties_  
uses _only_ the configuration `Property match`, which can be a [Property Match Expression](https://vassalengine.org/doc/latest/ReferenceManual/PropertyMatchExpression.html#top).
- _Cycle through counters, selected by properties_  
uses _only_ the configuration `Property match`, which can be a [Property Match Expression](https://vassalengine.org/doc/latest/ReferenceManual/PropertyMatchExpression.html#top).
- _Nearest counter, selected by properties_  
uses _only_ the configuration `Property match`, which can be a [Property Match Expression](https://vassalengine.org/doc/latest/ReferenceManual/PropertyMatchExpression.html#top).
- _Grid Location on Selected Map_  
uses _only_ the configurations `Map`, `Board`, and `Grid location` ([Map Window](https://vassalengine.org/doc/latest/ReferenceManual/Map.html#top) and [Map Boards](https://vassalengine.org/doc/latest/ReferenceManual/Map.html#MapBoards)). Note that `Map`, and `Board` can be [Expression](https://vassalengine.org/doc/latest/ReferenceManual/Expression.html#top)s, but `Grid Location` _cannot_ be an expression (must be constant).

Because the choice _Grid Location on Selected Map_ does not allow for expressions for `Grid Location` (sigh!), it is not the right choice if you need to calculate the destination. However, _Region on Selected Map_ should work _even if_ the destination is a [Hex Grid](https://vassalengine.org/doc/latest/ReferenceManual/HexGrid.html#top), or [Rectangular Grid](https://vassalengine.org/doc/latest/ReferenceManual/RectangularGrid.html#top) coordinate. Note, however, that the grid needs to be inside a [Zone](https://vassalengine.org/doc/latest/ReferenceManual/ZonedGrid.html#Zone) and that Zone’s _Location format_ configuration _must_ contain `$gridLocation$`. However, it could be that it doesn’t quite work as described.

Yours,  
_Christian_

---

<div class="post-metadata">

**Author:** ![Parduz](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/parduz/32/2604_2.png) [@Parduz](https://forum.vassalengine.org/u/Parduz)\
**Post date:** [September 28, 2025, 8:39pm UTC](https://forum.vassalengine.org/t/how-to-send-a-piece-in-a-specific-grid-position-of-a-specific-zone/86721/12 "2025-09-28T20:39:30Z")

</div>

> [@cholmcc](#):
>
> Because the choice _Grid Location on Selected Map_ does not allow for expressions for `Grid Location` (sigh!), it is not the right choice if you need to calculate the destination. However, _Region on Selected Map_ should work _even if_ the destination is a [Hex Grid](https://vassalengine.org/doc/latest/ReferenceManual/HexGrid.html#top), or [Rectangular Grid](https://vassalengine.org/doc/latest/ReferenceManual/RectangularGrid.html#top) coordinate.

On my module, it works differently.

 ![image](https://forum.vassalengine.org/uploads/default/original/2X/4/4e778edd5a94b1972fab03cd3e058eefec17f2fd.png)

This never works (tried also with `{ }` style expression)

 ![image](https://forum.vassalengine.org/uploads/default/original/2X/1/15ee2654eea131b97726ba9191f67a6515d3d0c4.png)

This works as intended.

If you want to take a look, this is a [dropbox link](https://www.dropbox.com/scl/fi/0nsii3rrapd7rzxt8lmmw/test-sendToRegion.vmod?rlkey=racecc07djfwd2meg6k97wnk0&dl=0) to a tiny module that just tests this functioning (open a new game as Observer, then right-click on the token pile and click on “Roll for Order Tokens”)

---

<div class="post-metadata">

**Author:** ![jrwatts](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/jrwatts/32/6972_2.png) [@jrwatts](https://forum.vassalengine.org/u/jrwatts)\
**Post date:** [September 28, 2025, 8:40pm UTC](https://forum.vassalengine.org/t/how-to-send-a-piece-in-a-specific-grid-position-of-a-specific-zone/86721/13 "2025-09-28T20:40:22Z")

</div>

Yep, according to the docs, `Region on selected map` _should_ work, but apparently it doesn’t (I haven’t tried it myself, so I’m not that surprised). I suppose I should file a bug report.

I also notice that the `Grid location on selected Map` option input fields don’t match those in the documentation, either.

---

<div class="post-metadata">

**Author:** ![cholmcc](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/cholmcc/32/8319_2.png) [@cholmcc](https://forum.vassalengine.org/u/cholmcc)\
**Post date:** [September 28, 2025, 10:26pm UTC](https://forum.vassalengine.org/t/how-to-send-a-piece-in-a-specific-grid-position-of-a-specific-zone/86721/14 "2025-09-28T22:26:22Z")

</div>

> [@cholmcc](#):
>
> However, _Region on Selected Map_ should work _even if_ the destination is a [Hex Grid](https://vassalengine.org/doc/latest/ReferenceManual/HexGrid.html#top), or [Rectangular Grid](https://vassalengine.org/doc/latest/ReferenceManual/RectangularGrid.html#top) coordinate. Note, however, that the grid needs to be inside a [Zone](https://vassalengine.org/doc/latest/ReferenceManual/ZonedGrid.html#Zone) and that Zone’s _Location format_ configuration _must_ contain `$gridLocation$`

Testing the above it turns out that you _cannot_ use a [Hex Grid](https://vassalengine.org/doc/latest/ReferenceManual/HexGrid.html#top), or [Rectangular Grid](https://vassalengine.org/doc/latest/ReferenceManual/RectangularGrid.html#top) coordinate as the destination “region” of a _Region on Selected Map_ of a [Send to Location](https://vassalengine.org/doc/latest/ReferenceManual/SendToLocation.html#top) trait. In other words, if you need a calculated destination, then that destination _must_ be a region in an [Irregular Grid](https://vassalengine.org/doc/latest/ReferenceManual/IrregularGrid.html#top).

Annoying and unfortunate, but that’s how it is.
