Deck: Global key command unconditionally reports

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.”

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
forums.vassalengine.org/mailman/ … engine.org

Post generated using Mail2Forum (mail2forum.com)

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
forums.vassalengine.org/mailman/ … engine.org

Post generated using Mail2Forum (mail2forum.com)