I fixed it based on Roy's solution and got victory while playing as P7/computer P8 and P8/computer P7. Transmission is a blocking (wait) action, so it can cause strange things to happening. The trouble was once P7 set his victory switch, P8 would run triggers next and hit the victory action before P7 had another chance to go through the triggers. I was able to get it working with the following trigger order:
Trigger { -- Victory Switch
players = {Force1},
conditions = {
Bring(Force1, AtLeast, 2, "Cerberus Firebat", "Mine Entrance");
Switch("Victory Transmission", Cleared);
},
actions = {
SetSwitch("Victory Transmission", Set);
Comment("Victory Switch");
},
}
Trigger { -- P7 Victory Switch
players = {P7},
conditions = {
Switch("Victory Transmission", Set);
},
actions = {
SetInvincibility(Enable, "Cerberus Firebat", Force1, "Mine Entrance");
CenterView("Mine Entrance");
MuteUnitSpeech();
Transmission("Cerberus Firebat", "Mine Entrance", "staredit\\wav\\T2M20ucf.wav", Subtract, 0, "\x03 CERBERUS FIREBAT\r\n\x04 Sir, tac team has reached the installation.\r\n\x04 You watch things out here. We'll take care\r\n\x04 things inside.", 4);
UnMuteUnitSpeech();
SetSwitch("P7 Victory", Set);
Comment("P7 Victory Switch");
},
}
Trigger { -- Victory
players = {Force1},
conditions = {
Switch("P7 Victory", Set);
Switch("P8 Victory", Set);
},
actions = {
CreateUnit(1, "Terran Battlecruiser", "Mine Entrance", CurrentPlayer);
SetAllianceStatus(Force1, AlliedVictory);
Victory();
Comment("Victory");
},
}
Trigger { -- P8 Victory Switch
players = {P8},
conditions = {
Switch("Victory Transmission", Set);
},
actions = {
SetInvincibility(Enable, "Cerberus Firebat", Force1, "Mine Entrance");
CenterView("Mine Entrance");
MuteUnitSpeech();
Transmission("Cerberus Firebat", "Mine Entrance", "staredit\\wav\\T2M20ucf.wav", Subtract, 0, "\x03 CERBERUS FIREBAT\r\n\x04 Sir, tac team has reached the installation.\r\n\x04 You watch things out here. We'll take care\r\n\x04 things inside.", 4);
UnMuteUnitSpeech();
SetSwitch("P8 Victory", Set);
Comment("P8 Victory Switch");
},
}