I am updating The Supreme Commander for multiplayer. There are units which I currently have masked to hide whether they are decoys or not. While adding more player sides, I realized that Italy could technically join the Allies instead of the Axis through a game mechanic. Is there a way I can make who has ownership of Italians pieces with the masking trait dynamic while keeping the ownership of the other nation’s pieces static?
Example: At the beginning of the game, UK, France, and USSR are allies. Their support units are masked from Germany and vice versa. If Italy joins Germany, Italy’s support units should be masked from UK, France, and USSR. If Italy join the Allies, their support units should be masked from Germany.
In the module I am working on, units also should be masked but it also may happen that due to some events they may change sides. I have set that the unit can be masked by “Any side” – first who masks, he can see the unit, the others – not so much. Should the unit change sides, player should unmask it and the other side should have it masked again.
Yeah, that’s how I was originally doing it. The problem is the pieces are unmasked often through the game and the non-owning player would sometimes accidentally select all of them and mask the italian units and thus taking ownership of them.
I was considering making two versions of each italian unit that masks, one which is owned by the German player and one which is owned by the allied player(s). Then put a replace with other trait to swap them out. There aren’t a lot of them so I may see if I this works.
Yeah, that’s how I was originally doing it. The problem is the pieces
are unmasked often through the game and the non-owning player would
sometimes accidentally select all of them and mask the italian units and
thus taking ownership of them.
I was considering making two versions of each italian unit that masks,
one which is owned by the German player and one which is owned by the
allied player(s). Then put a replace with other trait to swap them out.
There aren’t a lot of them so I may see if I this works.