# Replacing a layered unit with another is there a way to get it to the same layer level?

**URL:** <https://forum.vassalengine.org/t/replacing-a-layered-unit-with-another-is-there-a-way-to-get-it-to-the-same-layer-level/89436>\
**Category:** Module Design\
**Created:** [October 6, 2025, 7:35pm UTC](https://forum.vassalengine.org/t/replacing-a-layered-unit-with-another-is-there-a-way-to-get-it-to-the-same-layer-level/89436 "2025-10-06T19:35:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ChuckS](https://forum.vassalengine.org/letter_avatar_proxy/v4/letter/c/db5fbb/32.png) [@ChuckS](https://forum.vassalengine.org/u/ChuckS)\
**Post date:** [October 6, 2025, 7:35pm UTC](https://forum.vassalengine.org/t/replacing-a-layered-unit-with-another-is-there-a-way-to-get-it-to-the-same-layer-level/89436/1 "2025-10-06T19:35:16Z")

</div>

I have a figured based unit that is cav and I want it to show the same number of figures when replaced with an infantry counter when it is dismounted and the same when it mounts back.

Thanks for any help!

---

<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:** [October 6, 2025, 9:21pm UTC](https://forum.vassalengine.org/t/replacing-a-layered-unit-with-another-is-there-a-way-to-get-it-to-the-same-layer-level/89436/2 "2025-10-06T21:21:55Z")

</div>

If you use the [Replace with Other](https://vassalengine.org/doc/latest/ReferenceManual/Replace.html#top) trait, then you have the configuration **Match current state** , or one of

- **Copy Dynamic Property values where Property name matches**
- **Set Dynamic Properties in marker**
- **Key Command to apply after placement**

can help you define the behaviour you want. If, for example, your [Layer](https://vassalengine.org/doc/latest/ReferenceManual/Layer.html#top) trait is set to **Levels follow expression value** of a [Dynamic Property](https://vassalengine.org/doc/latest/ReferenceManual/DynamicProperty.html#top) then it seems fairly straight forward to do.

Yours,  
_Christian_
