# Deleting certain markers on a new Turn

**URL:** <https://forum.vassalengine.org/t/deleting-certain-markers-on-a-new-turn/89430>\
**Category:** Module Design\
**Created:** [October 6, 2025, 7:13am UTC](https://forum.vassalengine.org/t/deleting-certain-markers-on-a-new-turn/89430 "2025-10-06T07:13:14Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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, 8:11am UTC](https://forum.vassalengine.org/t/deleting-certain-markers-on-a-new-turn/89430/2 "2025-10-06T08:11:21Z")

</div>

A [Turn counter hotkey](https://vassalengine.org/doc/latest/ReferenceManual/TurnTracker.html#Hotkey) is _not_ sent to [Game Piece](https://vassalengine.org/doc/latest/ReferenceManual/GamePiece.html#top)s - only to the [Game Module](https://vassalengine.org/doc/latest/ReferenceManual/GameModule.html#top) or [Map Window](https://vassalengine.org/doc/latest/ReferenceManual/Map.html#top). To propagate the command to [Game Piece](https://vassalengine.org/doc/latest/ReferenceManual/GamePiece.html#top)s you need a trampoline [Global Key Command](https://vassalengine.org/doc/latest/ReferenceManual/Map.html#GlobalKeyCommand). For example

- Module
  - Turn Counter
    - Hotkey
      - Global hotkey: `clearOrders`
      - Match properties: `{Phase == "Orders Phase"}`

  - Global Key Command
    - Global Key: `clearOrders` # Same as in turn counter hotkey
    - Key: `Ctrl+D`
    - Additional matching expression: `{Order==true && Order_Active==true && Order_Level == 1}`

  - Game Piece
    - Mark trait  
Name: `Order`  
Value: `true`
    - Layer Trait  
Name: `Order`  
…
    - Delete Trait
      - Key: `Ctrl+D`

Note that I encoded the condition in the Global Hotkey Command rather than as a Trigger trait in the piece.

> [@Joe](#):
>
> I am probably doing some syntax wrong or something…

No, I don’t think you are, but you’re not using the turn counter element correctly. It is not surprising - that the turn counter hotkey only sends to the module or maps is rather poorly documented ([see also this thread](https://forum.vassalengine.org/t/best-way-to-translate-a-phisical-game-gesture-in-a-module/86617/5)).

> The [Keystroke or Named Command](https://vassalengine.org/doc/latest/ReferenceManual/NamedKeyCommand.html#top) to fire. The module will respond exactly as if one of the players had pressed this key or selected a menu item corresponding to a Named Command.

Note that it says “… selected a menu item corresponding to a Named Command.” That’s the clue - albeit rather obscure.

Yours,  
_Christian_

---

_[View the full topic](https://forum.vassalengine.org/t/deleting-certain-markers-on-a-new-turn/89430)._
