# Deck: Global key command unconditionally reports

**URL:** https://forum.vassalengine.org/t/deck-global-key-command-unconditionally-reports/1344
**Category:** Technical Support & Bugs
**Created:** [December 9, 2008, 8:54pm UTC](https://forum.vassalengine.org/t/deck-global-key-command-unconditionally-reports/1344 "2008-12-09T20:54:17Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![shilinski](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/shilinski/32/6980_2.png) [@shilinski](https://forum.vassalengine.org/u/shilinski)
#### Post date: [December 9, 2008, 8:54pm UTC](https://forum.vassalengine.org/t/deck-global-key-command-unconditionally-reports/1344/1 "2008-12-09T20:54:17Z")

</div>

I create a deck global key command attached to a Deck. The report unconditionally prints in the chat window even if the command does not execute (a properties mismatch).

This behavior occurs in v3.0 and 3.1.0-beta6.

Example. I set up a deck global key command to send the top card to the Mexican player’s private window. The matching properties field is “playerSide=Mexico”. The report format is “Mexico draws 1 card.”

If the Texas player attempts to do the command, the command does not execute, but the chat window still reports “Mexico draws 1 card.”

---

<div class="post-metadata">

### Author: ![Brent\_Easton](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/brent_easton/32/10_2.png) [@Brent\_Easton](https://forum.vassalengine.org/u/Brent_Easton)
#### Post date: [December 9, 2008, 9:41pm UTC](https://forum.vassalengine.org/t/deck-global-key-command-unconditionally-reports/1344/2 "2008-12-09T21:41:05Z")

</div>

> [@](#):
>
> I create a deck global key command attached to a Deck. The report  
> unconditionally prints in the chat window even if the command does not  
> execute (a properties mismatch).

Yes, The report is attached to the Global Key Command and is merely reporting that the Global Key Command has fired off.

At the moment, there is no way around this. Perphaps we need an additional variable $Count$ available which is set to the number of cards affected so you could have a report something like

\<Bill [Texan Player]\> Mexico Draws 1 Card (0 drawn)

This has the advantage of being able to report something like

\<Bob [Mexican Player]\> Mexico Draws 5 Cards (2 drawn)

if the deck runs out.

* * *

Messages mailing list  
[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))

---

<div class="post-metadata">

### Author: ![shilinski](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/shilinski/32/6980_2.png) [@shilinski](https://forum.vassalengine.org/u/shilinski)
#### Post date: [December 9, 2008, 10:16pm UTC](https://forum.vassalengine.org/t/deck-global-key-command-unconditionally-reports/1344/3 "2008-12-09T22:16:43Z")

</div>

I understand now. The command does execute; it simply does not do anything (in my case) when it does. It is probably best then that I remove the report.

---

<div class="post-metadata">

### Author: ![Brent\_Easton](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/brent_easton/32/10_2.png) [@Brent\_Easton](https://forum.vassalengine.org/u/Brent_Easton)
#### Post date: [December 9, 2008, 10:36pm UTC](https://forum.vassalengine.org/t/deck-global-key-command-unconditionally-reports/1344/4 "2008-12-09T22:36:54Z")

</div>

> [@](#):
>
> I understand now. The command does execute; it simply does not do  
> anything (in my case) when it does. It is probably best then that I remove  
> the report.

Or have each card actually drawn Report its arrival at the destination.

* * *

Messages mailing list  
[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))
