So let's assume the countdown timer is at 0:00 (After counting down from 20:00)
Team 1 has a score of 100
Team 2 has a score of 90
Obviously, team 1 is the winner.
Code
Trigger("Team 1"){
Conditions:
Most Resources(ore);
Countdown Timer(Exactly, 0);
Elapsed Time(At least, 200);
Command("Player 12", "Terran Flag Beacon", Exactly, 0);
Actions:
Set Switch("Switch140", set);
Preserve Trigger();
Comment("Force1Winning");
}
//-----------------------------------------------------------------//
Conditions:
Most Resources(ore);
Countdown Timer(Exactly, 0);
Elapsed Time(At least, 200);
Command("Player 12", "Terran Flag Beacon", Exactly, 0);
Actions:
Set Switch("Switch140", set);
Preserve Trigger();
Comment("Force1Winning");
}
//-----------------------------------------------------------------//
Code
Trigger("Team HOT"){
Conditions:
Switch("Switch140", set);
Switch("Switch141", not set);
Countdown Timer(Exactly, 0);
Actions:
Display Text Message(Always Display, "\x013\x005Team 1 wins!");
Victory();
Comment("Victory");
}
//-----------------------------------------------------------------//
Conditions:
Switch("Switch140", set);
Switch("Switch141", not set);
Countdown Timer(Exactly, 0);
Actions:
Display Text Message(Always Display, "\x013\x005Team 1 wins!");
Victory();
Comment("Victory");
}
//-----------------------------------------------------------------//
And vice verse for a losing team.
Now, that seems to work fine, but I wan't an OT trigger as well, and it seems to break sometimes?
Code
Trigger("All players"){
Conditions:
Countdown Timer(Exactly, 0);
Elapsed Time(At least, 10);
Switch("Switch140", set);
Switch("Switch141", set);
Actions:
Set Countdown Timer(Set To, 120);
Set Switch("Switch41", set);
Comment("SetOver-time");
}
//-----------------------------------------------------------------//
Conditions:
Countdown Timer(Exactly, 0);
Elapsed Time(At least, 10);
Switch("Switch140", set);
Switch("Switch141", set);
Actions:
Set Countdown Timer(Set To, 120);
Set Switch("Switch41", set);
Comment("SetOver-time");
}
//-----------------------------------------------------------------//
Code
Trigger("All players"){
Conditions:
Switch("Switch41", set);
Actions:
Set Switch("Switch41", clear);
Comment("ClearOver-Time");
}
//-----------------------------------------------------------------//
Conditions:
Switch("Switch41", set);
Actions:
Set Switch("Switch41", clear);
Comment("ClearOver-Time");
}
//-----------------------------------------------------------------//
Those two triggers are right on top of each other. In that order.
None.





