Create account / Log in

Return to deck, ability to use expression

Topics related to Vassal game modules.

Moderators: uckelman, Tim M

Return to deck, ability to use expression

Postby deepnet » July 18th, 2020, 9:59 pm

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
deepnet
 
Posts: 14
Joined: July 7th, 2020, 9:44 pm

Re: Return to deck, ability to use expression

Postby deepnet » July 19th, 2020, 2:48 am

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
deepnet
 
Posts: 14
Joined: July 7th, 2020, 9:44 pm


Return to Module General Discussion

Who is online

Users browsing this forum: No registered users and 3 guests