I understand the basics and everything of how they work but I seem to run into a problem every time.
Now, the way I think this works is like this
Quote
Trigger("Player 1"){
Conditions:
Deaths("Current Player", "Terran Ghost", Exactly, 1);
Actions:
Set Deaths("Current Player", "Terran Ghost", Set To, 0);
Set Deaths("Current Player", "Alan Schezar (Goliath)", Set To, 96);
Preserve Trigger();
Comment("Start Respawn");
}
//-----------------------------------------------------------------//
Trigger("Player 1"){
Conditions:
Deaths("Current Player", "Alan Schezar (Goliath)", Exactly, 1);
Actions:
Set Switch("Switch1", randomize);
Set Switch("Switch2", randomize);
Set Switch("Switch3", randomize);
Preserve Trigger();
Comment("Start Randomization Of Respawn");
}
//-----------------------------------------------------------------//
Trigger("Player 1"){
Conditions:
Deaths("Current Player", "Alan Schezar (Goliath)", At least, 1);
Actions:
Set Deaths("Current Player", "Alan Schezar (Goliath)", Subtract, 1);
Preserve Trigger();
Comment("Subtract Respawn Timer");
}
//-----------------------------------------------------------------//
Trigger("Player 1"){
Conditions:
Command("Current Player", "Terran Ghost", Exactly, 0);
Deaths("Current Player", "Alan Schezar (Goliath)", Exactly, 0);
Switch("Switch1", not set);
Switch("Switch2", not set);
Switch("Switch3", not set);
Actions:
Create Unit("Current Player", "Terran Ghost", 1, "Respawn Location 1");
Set Switch("Switch1", clear);
Set Switch("Switch2", clear);
Set Switch("Switch3", clear);
Preserve Trigger();
Comment("Respawn Location 1-1");
}
//-----------------------------------------------------------------//
Trigger("Player 1"){
Conditions:
Command("Current Player", "Terran Ghost", Exactly, 0);
Deaths("Current Player", "Alan Schezar (Goliath)", Exactly, 0);
Switch("Switch1", set);
Switch("Switch2", set);
Switch("Switch3", set);
Actions:
Create Unit("Current Player", "Terran Ghost", 1, "Respawn Location 2");
Set Switch("Switch1", clear);
Set Switch("Switch2", clear);
Set Switch("Switch3", clear);
Preserve Trigger();
Comment("Respawn Location 2-1");
}
//-----------------------------------------------------------------//
Trigger("Player 1"){
Conditions:
Command("Current Player", "Terran Ghost", Exactly, 0);
Deaths("Current Player", "Alan Schezar (Goliath)", Exactly, 0);
Switch("Switch1", set);
Switch("Switch2", not set);
Switch("Switch3", not set);
Actions:
Create Unit("Current Player", "Terran Ghost", 1, "Respawn Location 3");
Set Switch("Switch1", clear);
Set Switch("Switch2", clear);
Set Switch("Switch3", clear);
Preserve Trigger();
Comment("Respawn Location 3-1");
}
//-----------------------------------------------------------------//
Trigger("Player 1"){
Conditions:
Command("Current Player", "Terran Ghost", Exactly, 0);
Deaths("Current Player", "Alan Schezar (Goliath)", Exactly, 0);
Switch("Switch1", not set);
Switch("Switch2", set);
Switch("Switch3", not set);
Actions:
Create Unit("Current Player", "Terran Ghost", 1, "Respawn Location 1");
Set Switch("Switch1", clear);
Set Switch("Switch2", clear);
Set Switch("Switch3", clear);
Preserve Trigger();
Comment("Respawn Location 1-2");
}
//-----------------------------------------------------------------//
Trigger("Player 1"){
Conditions:
Command("Current Player", "Terran Ghost", Exactly, 0);
Deaths("Current Player", "Alan Schezar (Goliath)", Exactly, 0);
Switch("Switch1", not set);
Switch("Switch2", not set);
Switch("Switch3", set);
Actions:
Create Unit("Current Player", "Terran Ghost", 1, "Respawn Location 2");
Set Switch("Switch1", clear);
Set Switch("Switch2", clear);
Set Switch("Switch3", clear);
Preserve Trigger();
Comment("Respawn Location 2-2");
}
//-----------------------------------------------------------------//
Conditions:
Deaths("Current Player", "Terran Ghost", Exactly, 1);
Actions:
Set Deaths("Current Player", "Terran Ghost", Set To, 0);
Set Deaths("Current Player", "Alan Schezar (Goliath)", Set To, 96);
Preserve Trigger();
Comment("Start Respawn");
}
//-----------------------------------------------------------------//
Trigger("Player 1"){
Conditions:
Deaths("Current Player", "Alan Schezar (Goliath)", Exactly, 1);
Actions:
Set Switch("Switch1", randomize);
Set Switch("Switch2", randomize);
Set Switch("Switch3", randomize);
Preserve Trigger();
Comment("Start Randomization Of Respawn");
}
//-----------------------------------------------------------------//
Trigger("Player 1"){
Conditions:
Deaths("Current Player", "Alan Schezar (Goliath)", At least, 1);
Actions:
Set Deaths("Current Player", "Alan Schezar (Goliath)", Subtract, 1);
Preserve Trigger();
Comment("Subtract Respawn Timer");
}
//-----------------------------------------------------------------//
Trigger("Player 1"){
Conditions:
Command("Current Player", "Terran Ghost", Exactly, 0);
Deaths("Current Player", "Alan Schezar (Goliath)", Exactly, 0);
Switch("Switch1", not set);
Switch("Switch2", not set);
Switch("Switch3", not set);
Actions:
Create Unit("Current Player", "Terran Ghost", 1, "Respawn Location 1");
Set Switch("Switch1", clear);
Set Switch("Switch2", clear);
Set Switch("Switch3", clear);
Preserve Trigger();
Comment("Respawn Location 1-1");
}
//-----------------------------------------------------------------//
Trigger("Player 1"){
Conditions:
Command("Current Player", "Terran Ghost", Exactly, 0);
Deaths("Current Player", "Alan Schezar (Goliath)", Exactly, 0);
Switch("Switch1", set);
Switch("Switch2", set);
Switch("Switch3", set);
Actions:
Create Unit("Current Player", "Terran Ghost", 1, "Respawn Location 2");
Set Switch("Switch1", clear);
Set Switch("Switch2", clear);
Set Switch("Switch3", clear);
Preserve Trigger();
Comment("Respawn Location 2-1");
}
//-----------------------------------------------------------------//
Trigger("Player 1"){
Conditions:
Command("Current Player", "Terran Ghost", Exactly, 0);
Deaths("Current Player", "Alan Schezar (Goliath)", Exactly, 0);
Switch("Switch1", set);
Switch("Switch2", not set);
Switch("Switch3", not set);
Actions:
Create Unit("Current Player", "Terran Ghost", 1, "Respawn Location 3");
Set Switch("Switch1", clear);
Set Switch("Switch2", clear);
Set Switch("Switch3", clear);
Preserve Trigger();
Comment("Respawn Location 3-1");
}
//-----------------------------------------------------------------//
Trigger("Player 1"){
Conditions:
Command("Current Player", "Terran Ghost", Exactly, 0);
Deaths("Current Player", "Alan Schezar (Goliath)", Exactly, 0);
Switch("Switch1", not set);
Switch("Switch2", set);
Switch("Switch3", not set);
Actions:
Create Unit("Current Player", "Terran Ghost", 1, "Respawn Location 1");
Set Switch("Switch1", clear);
Set Switch("Switch2", clear);
Set Switch("Switch3", clear);
Preserve Trigger();
Comment("Respawn Location 1-2");
}
//-----------------------------------------------------------------//
Trigger("Player 1"){
Conditions:
Command("Current Player", "Terran Ghost", Exactly, 0);
Deaths("Current Player", "Alan Schezar (Goliath)", Exactly, 0);
Switch("Switch1", not set);
Switch("Switch2", not set);
Switch("Switch3", set);
Actions:
Create Unit("Current Player", "Terran Ghost", 1, "Respawn Location 2");
Set Switch("Switch1", clear);
Set Switch("Switch2", clear);
Set Switch("Switch3", clear);
Preserve Trigger();
Comment("Respawn Location 2-2");
}
//-----------------------------------------------------------------//
With that being said, do I need to create like, ~8 different triggers per location to complete the cycle of all 3? If theres an easier way to completely randomize this that would be great. Thanks!
None.