Little old topic but I think my post fits perfectly here
.
I played a few times in this scenario via the network with other people as opponents and found out that it has several issues, causes the scenario is unplayable.
funny E.g.
when the two available positions are occupied by people and "human" units themselves decide to attack the enemy unit who captured the flag
A few days ago I decided to dig inside it and if I can improve it and now I say that with the current lua functions I rather can't do it.
I can do a decent local scenario, or a bit poor network scenario, but not a good universal scenario because I need a function/entry which can detect the situation when both players are people (or second player is human...).
E.g. entry: "if humanFaction() == 1 and humanFaction() == 2 then" doesn't do this, because
humanFaction() function returns the faction index of the human player, but take into account players only on my client/computer, and working like "my faction number is -> x".
showMarker lua function have a network issue relies on that:
when we want to display a marker for one player when such as "factionIndex = 2", the second player(opponent) also sees it (it shouldn't), but as the default marker with "factionIndex = -1".
By the way I might add that it would be good to can show a marker for one player(team) but with other than the default color (or shape or something ...) when you have to show more than one marker (similarly situation with the flags),
e.g. of this scenario you can see that the marker with "factionIndex = -1" doesn't fit to the role as a second marker.