No it is not correct. Yes you are right sorry. But this script means:
Defense the houses of player 1(yes, this is right)
Defense the militars of player 2(this is not right)
Defense the militars of player 3 (and that, too)
I think, it is an little mistake...it should be named, as Defense the militas of player 4, I think. Because this is the village in west..your friend!??!
It
IS correct. We are using the mission scripts and other data files from KaM (SR3 B7) so there should not be any mistakes in the script.
Please read the briefings. It says "Spare the civilian country folk and fight only the enemy soldiers who are stationed there." Goal 6 is "Military Buildings and Troops". This means if you destroy his military buildings as well as his troops you will lose. Military buildings are defined as: "Coal mine, Weapons Workshop, Tannery, Armor workshop, Stables, Iron mine, Iron smithy, Weapons smithy, Armor smithy, Barracks, Town hall and Vehicles Workshop" (I tested every building in KaM years ago when making my mission editor so if you want to argue about this definition, test it in KaM yourself)
So if you destroy all of those, you are just killing innocent civilians who were forced to make weapons for the rebels. You must destroy the troops but not his village.
Still, I don't understand why i am losing after slaying all enemy soldiers...
It is just because r2411 the goal "military buildings and troops" was treated as just being "all troops". Therefore the victory and defeat conditions were actually treated as the same, except that to win you would have had to have destroyed the armies of BOTH enemies, but to lose you only need to destroy one of them. So as soon as you killed one enemy's army, the condition survival condition "protect military buildings and troops of player X" was not satisfied because we were only using the troops part, not the buildings. But it's fixed now, so thanks for reporting
I have made it so a victory will overwrite a defeat as this is the case in KaM.