Trigger("Player 3"){
//This trigger denotes that P3 is not currently fighting any monsters because his/her Victory Trigger has fired and he's gotten the $$ for the fight
Conditions:
Deaths("Player 3", "Kyadarin Crystal Formation", Exactly, 0);
Deaths("Player 3", "Zerg Zergling", Exactly, 0);
Deaths("Player 3", "Terran Ghost", Exactly, 0);
Deaths("Player 3", "Jim Raynor (Marine)", Exactly, 0);
Deaths("Player 3", "Protoss Zealot", Exactly, 0);
Deaths("Player 3", "Zerg Ultralisk", Exactly, 0);
Deaths("Player 3", "Aldaris (Templar)", Exactly, 0);
Deaths("Player 3", "Tassadar (Templar)", Exactly, 0);
Deaths("Player 3", "Goliath Turret", Exactly, 0);
Deaths("Player 3", "Terran Goliath", Exactly, 0);
Deaths("Player 3", "Hunter Killer (Hydralisk)", Exactly, 0);
Deaths("Player 3", "Terran Vulture", Exactly, 0);
Actions:
Set Deaths("Player 3", "Kyadarin Crystal Formation", Set To, 1);
Preserve Trigger();
}
//-----------------------------------------------------------------//
Trigger("Player 3"){
Conditions:
Deaths("Player 3", "Kyadarin Crystal Formation", Exactly, 1);
Deaths("Player 3", "Zerg Zergling", At least, 1);
Actions:
Set Deaths("Player 3", "Kyadarin Crystal Formation", Set To, 0);
Preserve Trigger();
}
//-----------------------------------------------------------------//
Trigger("Player 3"){
//This trigger initiates a battle for P3 vs a zergling solo
Conditions:
Bring("Player 3", "Men", "Location 123", At least, 1);
Bring("Player 8", "Zerg Zergling", "Location 123", At least, 1);
Switch("Switch9", not set);
Deaths("Player 3", "Floor Hatch (UNUSED)", Exactly, 0);
Deaths("Player 3", "Protoss Gateway", Exactly, 0);
Bring("Player 3", "Terran Firebat", "Location 134", Exactly, 0);
Bring("Player 3", "Terran Marine", "Location 134", Exactly, 0);
Bring("Player 3", "Zerg Hydralisk", "Location 134", Exactly, 0);
Bring("Player 3", "Zeratul (Dark Templar)", "Location 134", Exactly, 0);
Actions:
Set Switch("Switch9", set);
Move Location("Player 3", "Terran Firebat", "Location 123", "Location 140");
Move Location("Player 3", "Terran Marine", "Location 123", "Location 140");
Move Location("Player 3", "Zerg Hydralisk", "Location 123", "Location 140");
Move Location("Player 3", "Zeratul (Dark Templar)", "Location 123", "Location 140");
Move Location("Player 8", "Map Revealer", "Location 164", "Location 134");
Remove Unit At Location("Player 8", "Zerg Zergling", 1, "Location 123");
Move Unit("Player 3", "Terran Marine", All, "Location 95", "Location 141");
Move Unit("Player 3", "Zerg Hydralisk", All, "Location 95", "Location 141");
Move Unit("Player 3", "Zeratul (Dark Templar)", All, "Location 95", "Location 141");
Move Unit("Player 3", "Terran Firebat", All, "Location 95", "Location 141");
Set Invincibility("The Tenebrous", "Men", "Location 134", disabled);
Create Unit("Player 3", "Terran Marine", 1, "Location 140");
Give Units to Player("Player 3", "Player 12", "Terran Marine", 1, "Location 140");
Set Invincibility("Player 12", "Terran Marine", "Location 140", enabled);
Create Unit("Player 6", "Zerg Zergling", 1, "Location 140");
Set Invincibility("Player 6", "Zerg Zergling", "Location 140", enabled);
Create Unit("Player 8", "Zerg Zergling", 10, "Location 142");
Modify Unit Hit Points("Player 8", "Zerg Zergling", 8, 0, "Location 142");
Order("Created by: Vrael@USEast", "Men", "Location 142", "Location 141", attack);
Set Deaths("Player 3", "Zerg Zergling", Set To, 1);
Center View("Location 141");
Display Text Message(Always Display, "\x013\x004-= \x008B A T T L E \x004=-\r\n\r\n\r\n");
Preserve Trigger();
Comment("Goblin");
}
//-----------------------------------------------------------------//
Trigger("Player 3"){
//This trigger lets P3 win and get moved back to the world map and get money/exp, solo or shared battle
Conditions:
Bring("Foes", "Men", "Location 134", Exactly, 0);
Deaths("Player 3", "Zerg Zergling", At least, 1);
Deaths("Player 3", "Floor Hatch (UNUSED)", At most, 60);
Bring("Player 3", "Men", "Location 134", At least, 1);
Actions:
Remove Unit At Location("Player 12", "Terran Marine", 1, "Location 140");
Center View("Location 140");
Set Invincibility("The Tenebrous", "Men", "Location 134", enabled);
Move Unit("Player 3", "Terran Marine", All, "Location 134", "Location 140");
Move Unit("Player 3", "Zerg Hydralisk", All, "Location 134", "Location 140");
Move Unit("Player 3", "Zeratul (Dark Templar)", All, "Location 134", "Location 140");
Move Unit("Player 3", "Terran Firebat", All, "Location 134", "Location 140");
Set Deaths("Player 3", "Floor Hatch (UNUSED)", Set To, 60);
Set Deaths("Player 3", "Cocoon", Set To, 1);
Set Deaths("Player 3", "Zerg Zergling", Set To, 0);
Set Switch("Switch9", clear);
Kill Unit At Location("Player 6", "Zerg Zergling", 1, "Location 140");
Preserve Trigger();
Comment("Goblin Victory");
}
//-----------------------------------------------------------------//
Trigger("Player 3"){
//This trigger is for when something goes wrong for some reason and P3's victory trigger doesn't move him back properly
//there are also a couple other triggers like this one in case this one can't move him back, but they have the same conditions, so clearly aren't firing
Conditions:
Bring("Created by: Vrael@USEast", "Men", "Location 134", Exactly, 0);
Bring("Foes", "Men", "Location 134", Exactly, 0);
Bring("Player 3", "Men", "Location 134", At least, 1);
Deaths("Player 3", "Floor Hatch (UNUSED)", At most, 50);
Deaths("Player 3", "Kyadarin Crystal Formation", Exactly, 1);
Actions:
Set Invincibility("Player 3", "Men", "Location 134", enabled);
Move Unit("Player 3", "Terran Marine", All, "Location 134", "Location 140");
Move Unit("Player 3", "Zerg Hydralisk", All, "Location 134", "Location 140");
Move Unit("Player 3", "Zeratul (Dark Templar)", All, "Location 134", "Location 140");
Move Unit("Player 3", "Terran Firebat", All, "Location 134", "Location 140");
Set Deaths("Player 3", "Floor Hatch (UNUSED)", Set To, 50);
Set Switch("Switch9", clear);
Preserve Trigger();
Comment("Generic Victory Hero");
}
//-----------------------------------------------------------------//
Trigger("Player 3"){
//This trigger allows P3 to enter a P2 battle
Conditions:
Bring("Player 3", "Men", "Location 136", At least, 1);
Switch("Switch8", set);
Deaths("Player 3", "Floor Hatch (UNUSED)", Exactly, 0);
Switch("Switch9", not set);
Actions:
Set Switch("Switch9", set);
Move Location("Player 3", "Men", "Location 123", "Location 140");
Move Location("Player 9", "Zerg Drone", "Location 133", "Location 134");
Move Unit("Player 3", "Terran Firebat", All, "Location 123", "Location 134");
Move Unit("Player 3", "Terran Marine", All, "Location 123", "Location 134");
Move Unit("Player 3", "Zerg Hydralisk", All, "Location 123", "Location 134");
Move Unit("Player 3", "Zeratul (Dark Templar)", All, "Location 123", "Location 134");
Set Invincibility("Player 3", "Terran Firebat", "Location 134", disabled);
Set Invincibility("Player 3", "Terran Marine", "Location 134", disabled);
Set Invincibility("Player 3", "Zerg Hydralisk", "Location 134", disabled);
Set Invincibility("Player 3", "Zeratul (Dark Templar)", "Location 134", disabled);
Center View("Location 134");
Move Location("Player 8", "Map Revealer", "Location 133", "Location 134");
Preserve Trigger();
Comment("Hero Enter P2 Hero Battle");
}
//-----------------------------------------------------------------//
Trigger("Player 3"){
//This trigger sets P3's death count to the correct setting based on what unit P2 is fighting
Conditions:
Bring("Player 3", "Men", "Location 133", At least, 1);
Bring("Player 8", "Men", "Location 133", At least, 1);
Deaths("Player 3", "Zerg Zergling", Exactly, 0);
Deaths("Player 2", "Zerg Zergling", Exactly, 1);
Bring("Player 3", "Men", "Location 134", At least, 1);
Switch("Switch9", set);
Actions:
Set Deaths("Player 3", "Zerg Zergling", Set To, 1);
Preserve Trigger();
Comment("Multi-Player-DC");
}
Trigger keys:
Location 123 = constantly centered on Player 3's hero
Location 95 = constantly centered on Player 3's hero
Location 133 = Battle Location for Player 2
Location 134 = Battle Location for Player 3
Location 164 = Unmoving location in the center of Player 3's battle arena
Location 140 = Moving Location centered on Player 3's hero at the start of every battle for P3's hero to move back to (just sits there while battle is in progress)
Location 141 = Unmoving Location Near Location 164 for allied units to move to
Location 142 = Unmoving Location Near Locatin 164 for enemies to spawn at
Switch9 = Player 3's "I AM IN A BATTLE" switch (gets "Set" at the start of every battle, and "Cleared" upon victory or death)
Switch8 = Player 2's "I AM IN A BATTLE" switch
Floor Hatch (UNUSED) = Battle Cooldown Death Timer (cannot enter a battle while this death is greater than 0 )
Cocoon = Death Count used to denote which payment player is to recieve (ex 1 cocoon = 50 gold, 2 cocoon = 100 ect)
Zerg Zergling = denotes player is in a battle with a zergling
Kyadarin Crystal Formation = denotes player has recieved all payments due to battles and is not engaging enemies
Post has been edited 1 time(s), last time on May 19 2009, 6:25 pm by Vrael.
None.