Here is a snippet from Phantom BGH Classic. Be careful you don't Randomize, then check for P1, randomize again, check for P2, etc. This will cause the first few players to have a greater chance than the others.
//> Choose Phantom
// 3 Switches for 8 combinations. Khalis Crystal ensures one randomization per trigger cycle.
Trigger("All players"){
Conditions:
Elapsed Time(At least, 77);
Deaths("All players", "Goliath Turret", Exactly, 0);
Switch("Switch6", not set);
Deaths("All players", "Khalis Crystal", Exactly, 0);
Actions:
Set Switch("Switch1", randomize);
Set Switch("Switch2", randomize);
Set Switch("Switch3", randomize);
Set Deaths("All players", "Khalis Crystal", Set To, 1);
Preserve Trigger();
}
//-----------------------------------------------------------------//
Trigger("Player 1"){
Conditions:
Switch("Switch1", not set);
Switch("Switch2", not set);
Switch("Switch3", not set);
Elapsed Time(At least, 77);
Actions:
Set Deaths("Current Player", "Goliath Turret", Set To, 1);
}
//-----------------------------------------------------------------//
Trigger("Player 2"){
Conditions:
Switch("Switch1", set);
Switch("Switch2", not set);
Switch("Switch3", not set);
Elapsed Time(At least, 77);
Actions:
Set Deaths("Current Player", "Goliath Turret", Set To, 1);
}
//-----------------------------------------------------------------//
Trigger("Player 3"){
Conditions:
Switch("Switch1", not set);
Switch("Switch2", set);
Switch("Switch3", not set);
Elapsed Time(At least, 77);
Actions:
Set Deaths("Current Player", "Goliath Turret", Set To, 1);
}
//-----------------------------------------------------------------//
Trigger("Player 4"){
Conditions:
Switch("Switch1", set);
Switch("Switch2", set);
Switch("Switch3", not set);
Elapsed Time(At least, 77);
Actions:
Set Deaths("Current Player", "Goliath Turret", Set To, 1);
}
//-----------------------------------------------------------------//
Trigger("Player 5"){
Conditions:
Switch("Switch1", not set);
Switch("Switch2", not set);
Switch("Switch3", set);
Elapsed Time(At least, 77);
Actions:
Set Deaths("Current Player", "Goliath Turret", Set To, 1);
}
//-----------------------------------------------------------------//
Trigger("Player 6"){
Conditions:
Switch("Switch1", set);
Switch("Switch2", not set);
Switch("Switch3", set);
Elapsed Time(At least, 77);
Actions:
Set Deaths("Current Player", "Goliath Turret", Set To, 1);
}
//-----------------------------------------------------------------//
Trigger("Player 7"){
Conditions:
Switch("Switch1", not set);
Switch("Switch2", set);
Switch("Switch3", set);
Elapsed Time(At least, 77);
Actions:
Set Deaths("Current Player", "Goliath Turret", Set To, 1);
}
//-----------------------------------------------------------------//
Trigger("Player 8"){
Conditions:
Switch("Switch1", set);
Switch("Switch2", set);
Switch("Switch3", set);
Elapsed Time(At least, 77);
Actions:
Set Deaths("Current Player", "Goliath Turret", Set To, 1);
}
//-----------------------------------------------------------------//
Trigger("All players"){
Conditions:
Deaths("Current Player", "Khalis Crystal", Exactly, 1);
Actions:
Set Deaths("Current Player", "Khalis Crystal", Set To, 0);
Preserve Trigger();
}
//-----------------------------------------------------------------//
Trigger("All players"){
Conditions:
Deaths("All players", "Goliath Turret", Exactly, 1);
Deaths("Current Player", "Goliath Turret", Exactly, 0);
Actions:
Display Text Message(Always Display, "The Phantom has been chosen. Gather your wits and prepare for battle!");
Play WAV("sound\\Zerg\\LURKER\\ZLuPss03.WAV", 0);
Set Deaths("All players", "Nuclear Missile", Add, 1);
Set Switch("Switch6", set);
}
//-----------------------------------------------------------------//
Trigger("All players"){
Conditions:
Deaths("Current Player", "Goliath Turret", Exactly, 1);
Actions:
Display Text Message(Always Display, "\x013\x006YOU ARE THE PHANTOM - KILL THEM ALL!");
Play WAV("sound\\Zerg\\Hydra\\ZHyPss00.WAV", 0);
Set Deaths("All players", "Nuclear Missile", Add, 1);
Set Switch("Switch6", set);
}
//-----------------------------------------------------------------//
//<