I am trying to build a module that has both cards and pieces. I want to have specific cards linked to specific side played. For example I choose the side “Americans” I only want the deck linked to the americans to show up. If I choose Germans I only want the deck for the germans to show up etc.
How do I get started.
PS is there any really good tutorials out there? Ive read some and messed with other mods but sometimes the tutorials are confusing and the mods arent exactly what I want.
There’s probably several ways to do this and the Vassal gurus may have better suggestions then I but here’s one way of doing that.
Create a Private Window for each player side. Then place each deck in it’s own private window. That way, only the Americans can access the American window and card deck and so on.
If you set up hotkeys to open the window, you can use the same hotkey for all private windows to avoid confusion and the use of multiple hotkeys.
Theoretically, if a player hits that hotkey, all the windows will be activated but, since each window is restricted to a player side, the only window that opens is the one that belongs to the player using the hotkey.
By doing it that way, you can have one button or one menu entry called something like “Get Card” and the appropriate window and deck will open depending on which side selected that option.