# Trigger command/keystroke grayed-out?

**URL:** <https://forum.vassalengine.org/t/trigger-command-keystroke-grayed-out/2722>\
**Category:** Module Design\
**Created:** [January 22, 2010, 6:36pm UTC](https://forum.vassalengine.org/t/trigger-command-keystroke-grayed-out/2722 "2010-01-22T18:36:14Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Neumannium](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/neumannium/32/2562_2.png) [@Neumannium](https://forum.vassalengine.org/u/Neumannium)\
**Post date:** [January 22, 2010, 6:36pm UTC](https://forum.vassalengine.org/t/trigger-command-keystroke-grayed-out/2722/1 "2010-01-22T18:36:14Z")

</div>

Hi all,

I have been having some issues with triggers not firing in one of my modules. To see if I was doing something wrong, I created a tea module with one at-start stack which had one piece. On the piece I have 2 traits: basic piece and trigger action.

In the trigger action, I have the menu command box filled (the word “test”) and the KeyStroke box filled (with “ctrl T”).

When I go to right-click on the piece image, the menu item “test ctrl T” is shown, but disabled and grayed out. I have no command restrictions on the piece at all.

Anyone have an idea what I’m doing wrong?

Thanks,  
Dave  
[/b]

---

<div class="post-metadata">

**Author:** ![mycenae](https://forum.vassalengine.org/letter_avatar_proxy/v4/letter/m/35a633/32.png) [@mycenae](https://forum.vassalengine.org/u/mycenae)\
**Post date:** [January 22, 2010, 6:55pm UTC](https://forum.vassalengine.org/t/trigger-command-keystroke-grayed-out/2722/2 "2010-01-22T18:55:20Z")

</div>

I had the same issue recently as well, with a command on a counter which was supposed to send the piece to a dead pile, and was mysteriously grayed out. Turns out I had forgotten that I changed the name of the map window that the dead pile was located in, and as a result, the command was disabled.

In your case, do you have any actual commands in the trigger sequence? It’s possibly grayed out because a trigger doesn’t actually do anything but fire other commands.

---

<div class="post-metadata">

**Author:** ![Neumannium](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/neumannium/32/2562_2.png) [@Neumannium](https://forum.vassalengine.org/u/Neumannium)\
**Post date:** [January 22, 2010, 7:11pm UTC](https://forum.vassalengine.org/t/trigger-command-keystroke-grayed-out/2722/3 "2010-01-22T19:11:03Z")

</div>

Okay, I checked that map that the board is assigned to and it is correct.

To the trigger action, I have in the “perform these keystrokes” box alt T.

I have a dynamic property (numerical) that is set to 0 and can increment when it receives an “alt T”. I also have a text label with the value of the dynamic property displayed on the piece so I can see if it changes.

Still grayed out.

---

<div class="post-metadata">

**Author:** ![Tim\_M](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/tim_m/32/2_2.png) [@Tim\_M](https://forum.vassalengine.org/u/Tim_M)\
**Post date:** [January 22, 2010, 8:47pm UTC](https://forum.vassalengine.org/t/trigger-command-keystroke-grayed-out/2722/4 "2010-01-22T20:47:56Z")

</div>

What Vassal version?

In 3.1.10 onward there was a hidden bug related to trigger since fixed with 3.1.13

Post your demo mod just in case

---

<div class="post-metadata">

**Author:** ![Neumannium](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/neumannium/32/2562_2.png) [@Neumannium](https://forum.vassalengine.org/u/Neumannium)\
**Post date:** [January 22, 2010, 9:23pm UTC](https://forum.vassalengine.org/t/trigger-command-keystroke-grayed-out/2722/5 "2010-01-22T21:23:38Z")

</div>

I am using 3.1.12.

I found that the triggers are actually working if I start a game. They are just greyed out when I am editing. It would make life easier if I could debug withou having to start a game, but it is not the end of the world.

Is that what was changed in 3.1.13? I am at work rightnow and can’t get to the site to download it (I’m checking the forums on my iPhone).

Dave

---

<div class="post-metadata">

**Author:** ![Tim\_M](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/tim_m/32/2_2.png) [@Tim\_M](https://forum.vassalengine.org/u/Tim_M)\
**Post date:** [January 22, 2010, 9:39pm UTC](https://forum.vassalengine.org/t/trigger-command-keystroke-grayed-out/2722/6 "2010-01-22T21:39:13Z")

</div>

Possibly.

see the comments in bug 2900930 as to what happened  
[http://sourceforge.net/tracker/?func=detail&aid=2900930&group\_id=90612&atid=594231](http://sourceforge.net/tracker/?func=detail&aid=2900930&group_id=90612&atid=594231)

From: Neumannium [messages@forums.vassalengine.org](mailto:messages@forums.vassalengine.org)  
To: [messages@forums.vassalengine.org](mailto:messages@forums.vassalengine.org)  
Sent: Fri, January 22, 2010 3:23:40 PM  
Subject: [Module Design]Re: Trigger command/keystroke grayed-out?

I am using 3.1.12.

I found that the triggers are actually working if I start a game. They are just greyed out when I am editing. It would make life easier if I could debug withou having to start a game, but it is not the end of the world.

Is that what was changed in 3.1.13? I am at work rightnow and can’t get to the site to download it (I’m checking the forums on my iPhone).

Dave

* * *

Messages mailing list  
[Messages@forums.vassalengine.org](mailto:Messages@forums.vassalengine.org) ([Messages@forums.vassalengine.org](mailto:Messages@forums.vassalengine.org))  
[forums.vassalengine.org/mailman/ … engine.org](http://forums.vassalengine.org/mailman/listinfo/messages_forums.vassalengine.org)

Post generated using Mail2Forum ([mail2forum.com](http://www.mail2forum.com))
