Triggering audio based on card draw

Can someone point me in the right direction? I want to have a wav triggered when a specific card is drawn. How do I do it?

I have the same question, except that I want the sound to occur for a deck when cards are sent to another deck.

Set a key command for move to/on the map (last field on the map properties) where the card will be when you want to hear the sound.

Add a trigger action to the card for the move to/on map key command with condition specific to when you want the sound to play, set it to trigger the key command on a play sound trait that you also put on the card or cards.

Possible trigger conditions for first requirement….

CurrentMap != OldMap …. This will make the sound play only on first moving to the map. If the draw pile is on the same map or the card is going to re enter the map at other times then it’s going to get more complicated. I suggest instead using a dynamic property that starts with value true and is set false on the card draw trigger, and is set true by a second trigger that fires when the card is discarded. That dynamic property becomes the draw-sound trigger condition (when true).

The condition for a move triggger when a card is enters a deck, discard pile or otherwise is simply…
DeckName = “name of the deck”

Hope this helps,

Mark

For this one, the play sound needs to be linked to the deck rather than the cards. if you are allowing the send to deck command as a right click menu item on the source deck, then I think there is a deck Hotkey that you can define to fire when the deck gets sent to another deck.

You will need to define a map level GLobal Key Command that listens for that Hotkey and sends a key command to a piece that will play the sound. Just set the button name and image blank.

Alternatively, if the send to deck is trigger only by a Global Hotkey trait on a piece then you can make the play sound part of the same action.