Return to deck, ability to use expression

Hello All:

I am enjoying programming a game in Vassal… thank you for creating this tool.

I notice that the ‘Return to deck’ trait only allows you to select an explicit deck. The challenge is that I am trying to make multiple player hands, and avoid as much replication of code/content as possible.

Being able to use an expression to indicate the return to deck would be very helpful! The issue I have is that I have defined the Return to Deck trait in the Prototype, so the deck is currently manually set, and an expression would allow me to leave it in the prototype.

Thanks,

Dan

FYI… I found a way to work around this:

  • I defined a (irregular) grid location for the deck
  • I removed the ‘Return to deck’ trait
  • I added a ‘Send to location’ trait, which is located at the new grid location for the deck, and assigned a key command.
  • This is in effect returns the card to the deck, no different than dragging the card to the deck.

Thanks,

Dan