Global command to shuffle multiple Decks

I’m looking for a Global command to shuffle multiple Decks

Premises:

Each of up to 4 players has one [Player Hand], containing a plain white board [Map Boards], with a Damage Deck [Deck] and Discard Pile [Deck].

I only want the cards in the Damage Deck to be shuffled once, at game start. Or manually, if the deck runs out of cards and the discard pile needs to be shuffled back in.

The manual part is not a problem.

What I can’t get to work is a global key command to trigger the reshuffling. I’ve tried with Deck Global Key Commands, and Module level Global Key Commands. Nothing works, as I can’t get the Deck to trigger the shuffle.

Is it not possible, or am I doing it wrong?

Reshuffe hotkey is not a “Global Key Command”, but “Global Hotkey”.

OK, didn’t stop that one, but that explains it.

So basically it’s impossible to make a button to shuffle a deck, but you can do it using a hotkey?

Sounds a bit odd.

Doesn’t Action Button do what you want?

I dunno…never tried it (still very much learning new features every time I try to do something). Let me give it a try!

Yup, that did the trick. Never used that function before. Thanks!

Ah! Sorry. If you want do it by Startup Global Key Command then do following. Make invisible piece, assign to it Global Hotkey trait, which will fire reshuffle. Then make Sturtup Global Key Command send to that piece a command, which will fire Global Hotkey, wich will fire reshuffle. )

That’s even better!

I’ll implement it right away.

It worked, sort of:

  • I made an invisible piece with 4 Global Hotkey traits (since there are 4 decks to shuffle)
  • A made a Startup Global Key Command that sent a command to the invisible piece

All 4 decks gets shuffled, no problem.

However, when a deck is shuffled, it generates a report. This is as intended.

BUT

When I start a new game, then close it, then start another game, it looks like the startup command keeps triggering new shuffles in the old damage decks.

Here is an example after I’ve started 3 new games. If I start a 4th, I get 4 lines per message.

  • Green Knight shuffled Damage Deck 1
  • Green Knight shuffled Damage Deck 1
  • Green Knight shuffled Damage Deck 1
  • Green Knight shuffled Damage Deck 2
  • Green Knight shuffled Damage Deck 2
  • Green Knight shuffled Damage Deck 2
  • Green Knight shuffled Damage Deck 3
  • Green Knight shuffled Damage Deck 3
  • Green Knight shuffled Damage Deck 3
  • Green Knight shuffled Damage Deck 4
  • Green Knight shuffled Damage Deck 4
  • Green Knight shuffled Damage Deck 4

Since the reports are triggered by hotkey, not key command, I can’t suppress individual reports.

I tried setting a global property that changes when the decks are shuffled, but it looks like this property is discard when I close a game and start a new one.

Or I’m just doing it wrong.

Any suggestions?

Btw

The same thing happened when I used an Action button to shuffle the decks. For each instance of new game I get one report.

I’ve tried even more variations over this theme, and the result is always the same:

If I start multiple games, I get multiples of the same message.

Strangely, if I manually press the relevant hotkeys, I do not get the same duplication.