Currently trying the new attachment traits and functions. Looks great ! But I am not sure how does this work in the current interface.
Release notes VASSAL 3.7 Release Notes - Vassal talk about a new set attachment property trait. I am not seeing this trait in 3.7 beta 5. I can see a “select by attachment” in the new “set piece property” but had no luck making it work.
I used the attachment trait to attach two pieces in auto mode with allow attachment to self checked. Both have the same attachment name.
Then I used a set piece property trait in one of those two pieces. Pre-select by location. Select by current attachments. Everything else blank. I set a key command up. Nothing fires. The same key command in a dynamic property works on the current piece.
What did I do wrong ?
Set Piece Property now includes the functionality of
Set Attachment Property as you discovered.
Can you please post screenshots of your Set Piece Property config, and of the two Attachment traits.
Here is the attachment trait (same for both pieces):
And here is the set piece property:
Also the same for both pieces. EIGHTH and AG F are then used to control layers to show that this piece belong to such army. That part is working on one piece using a dynamic property. I would like to use this set piece property to trigger the same behavior for both pieces from both pieces. The “select army” command show up in the right click menu for both pieces but no user prompt shows up.
I set up his same situation in a test module I have and it worked perfectly, so something else must be going on here. A few things to check:
- No Restrict Commands trait for Alt-A
- No other traits with a
Select Army menu command
- Counters have been refreshed if it is a save game or pre-defined setup.
If you are still having trouble, post a link to your module and a saved game that has the situation set up.
Thanks for helping !
I got it to work, and my mistake was much more fundamental: I did not understand that a set piece property does not create the property in the other piece. You need to create the dynamic property in the other piece, and then use a set piece property to modify it from the first piece.
Something useful to mention in the documentation I guess.