VASSAL Reference Manual
Deck Send Key Command
This Deck Sub-Component adds an action that sends cards from this Deck to another Deck The Send action can be initiated by a right-click menu action, or by a Global Hotkey sent from another Vassal trait or component. To add a Deck Send Key Command to one of your Decks, use the Editor’s configuration window to navigate to the [Deck] entry for the Deck you want to add it to. Right-click on the [Deck] entry and select Add Deck Send Key Command. Deck Send Key Commands can also be placed in a component Folder created under the Deck. When initiated, Cards will be sent one by one from the top of this Deck to the top of the target Deck. Options are available to limit which and how many cards are sent and to which Deck. Description: An optional description for your own reference. Menu command: Text for an entry in the Deck’s right-click context menu that will activate the Deck Send Key Command. If no Menu Command is entered, the Send Command will not be available from the Deck’s menu, but only by Hotkey. HotKey: A Key Command or Named Key Command that will be used to activate the send from other Vassal traits or components. If no Hotkey is provided, then the send can only be initiated via the Deck’s right-click menu. Report format: A Message Format that is echoed to the chat log whenever the Deck Send Key Command is activated. The following additional report properties are provided:
Variable target deck: Checking this option changes from using a fixed Deck as the target, selected when the module is developed to a variable Deck, evaluated via an Expression when the Deck Send command is run. Target deck name: A drop-down box listing all Decks defined in the module. Used to select a fixed target Deck when the Variable target deck option is unchecked. Target deck name expression: An Expression that must evaluate to the name of a Deck in the module when the Send Command is run. This option appears when the Variable target deck option is checked. If the expression does not return the name of a valid Deck in the module, a Bad Module Data error will be generated. Only send selected cards: When unchecked, all cards in the Deck will be sent to the target Deck. When checked, a Property Match Expression is used to select a specific selection of cards to send. When checked, cards that do not match the expression will be completely ignored by the Deck Send Command. Only send cards that match expression: A Property Match Expression that selects which cards are to be sent. Limit total number of cards sent to target: When unchecked, all cards that meet the selection criteria will be sent to the target Deck. When checked, the total number of cards that will be sent will be limited to the value of the Expression in the next option.
Stop sending cards when condition met: When checked, allows you to stop cards being sent to the target Deck when a particular card is reached. Stop sending expression: A Property Match Expression that when it matches a card, no more cards will be sent to the target Deck as part of this Deck Send Command. Also send card that matches stop condition:* Controls whether the card that triggers the Stop sending expression is sent to the target Deck or not. |
|


