# Problem with locating markers in the stack

**URL:** <https://forum.vassalengine.org/t/problem-with-locating-markers-in-the-stack/90225>\
**Category:** Module Design\
**Created:** [June 23, 2026, 3:20pm UTC](https://forum.vassalengine.org/t/problem-with-locating-markers-in-the-stack/90225 "2026-06-23T15:20:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kamil](https://forum.vassalengine.org/letter_avatar_proxy/v4/letter/k/94ad74/32.png) [@Kamil](https://forum.vassalengine.org/u/Kamil)\
**Post date:** [June 23, 2026, 3:20pm UTC](https://forum.vassalengine.org/t/problem-with-locating-markers-in-the-stack/90225/1 "2026-06-23T15:20:18Z")

</div>

Hi guys,

My name is Kamil and I’m a beginner at creating modules in Vassal.

I’d like to ask for your advice on how to solve the following problem in a module I’m creating.

When there are multiple units in a single hex, and then one of them in the stack is supposed to receive marker, than instead of being assigned to a choosen unit, the marker automatically lands at the top of the stack.

I’d like to achieve that each unit in the stack can have own marker next to him, not all of them on the top.

Below the example of my problem ;/

 ![example](https://forum.vassalengine.org/uploads/default/original/2X/c/ce62b31b9069c2e7741f406c86f8940ba6c0eb6c.jpeg)

Could you tell me what I need to change to make this work?

Thank you in advance.

Kamil

---

<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:** [June 23, 2026, 4:07pm UTC](https://forum.vassalengine.org/t/problem-with-locating-markers-in-the-stack/90225/2 "2026-06-23T16:07:14Z")

</div>

Implement the required markers not as standalone pieces that stack with everything else, but as [Layer traits](https://vassalengine.org/doc/latest/ReferenceManual/Layer.html) on each piece capable of receiving them that can toggle on/off. This way you avoid the stack problems and when an individual unit carrying such a marker moves away from other units, there’s much less fuss required to have the marker go with it.

---

<div class="post-metadata">

**Author:** ![Kamil](https://forum.vassalengine.org/letter_avatar_proxy/v4/letter/k/94ad74/32.png) [@Kamil](https://forum.vassalengine.org/u/Kamil)\
**Post date:** [June 24, 2026, 10:42am UTC](https://forum.vassalengine.org/t/problem-with-locating-markers-in-the-stack/90225/3 "2026-06-24T10:42:48Z")

</div>

Hi Joel,

Thank you for your respond, but can you tell me where to change this option? I went thrue all markers and definitions but I dont have idea how to change them 😕

Kamil

---

<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:** [June 24, 2026, 10:00pm UTC](https://forum.vassalengine.org/t/problem-with-locating-markers-in-the-stack/90225/4 "2026-06-24T22:00:14Z")

</div>

The documentation of the [Layer](https://vassalengine.org/doc/latest/ReferenceManual/Layer.html#top) is in the [Reference Manual](https://vassalengine.org/doc/latest/ReferenceManual/index.html#toc). The Reference Manual explains in some details what concepts such as [Game pieces](https://vassalengine.org/doc/latest/ReferenceManual/GamePiece.html#top) and _Traits_ are.

**TL;DR** : _traits_ are defined on _game pieces_ to give the game pieces different capabilities, such as being able to rotate, delete, clone, etc. a game piece. Other traits, such as [Layer](https://vassalengine.org/doc/latest/ReferenceManual/Layer.html#top) gives a piece the ability to change appearance. _Game pieces_ are any kind of object that can be moved, placed, etc. on the game _map_.

Perhaps you want to take a look at some of the resources available in [Documentation Index](https://forum.vassalengine.org/t/documentation-index/78944/1) - in particular the ones under the heading [Module Creation](https://forum.vassalengine.org/t/documentation-index/78944#p-158070-module-creation-7). There, you can find tutorial videos and much more. l

Yours,  
_Christian_
