Ok, it still doesn’t work.
I will be delighted to share the module with you, but I don’t know how to do it here. Would you give me an e-mail so I could sent it?
Anyway I’ll write a description of what I have done step to step to see if you can figure out what I am doing wrong (needless to say that I have spend some hours trying other options, none of them worked).
So that’s what I have done, step by step, according to Shilinski and Christian:
1. At the Map window I have created a Global Property called ShowBorders, with initial value true, is numeric.
2. At each piece prototype I have inserted a Border Outline trait called ShowBorders, with the property name called ShowBorders, left the comparison box at AND, no second property (empty box), color blue (for French) and red (for Allied), thickness 10.
3. I have created an at start stack (positioned 0,0 on the map) with a piece with the following traits: 1. Basic piece called multipurpose, no image, with a 2. Border Outline Trait (like the other pieces), with a 3. does not stack trait (all things selected to NEVER), with a 4. set global property trait called ShowBorders, numeric, with the menu command ShowBorders, the Key command ShowBorders, type Set value Directly and the expression {!ShowBorders} and finally 5. a marker trait called ShowBorders and a property value ShowBorders=true.
4. Lastly I add a Global Key Command at the main map window called ShowBorders, Button tex ShowBorders, tootip text: ShowBorders, Global Key Command ShowBorders, with the box ticked (by default) to apply to all pieces, with a Dynamic Property Name ShowBorders and a value to set ShowBorders==true.
I saved the whole thing. When I start a new game, all pieces come with the borders showing correctly; I click at the menu Button “ShowBorders” and all the borders disappear – Fine! But when I click it again (and again, and again), nothing happens, the borders wont’ reappear…
That’s the point where I’m stuck…