In the map OVERLORDS there are some buildings I've selected to rotate between eachother.
In order for one building to move, one building must be missing from the spot that it's about to be.
So at this point I created a "displacement" slot, this takes the first building in the rotation, and teleports it to a spot I made.
When the players are done picking their starting units, this trigger is set to stop. The only issue is, sometimes it stops with a building in the displacement slot I made, leaving one of the real slots empty.
I created another trigger to help counter this within a short time gap within the timing of picking a starting group and the ending of the rotation. (little less than a second)
A lot of the time, this trigger is successful at ending the rotation correctly, but in 20 playtests, I can still experience this error 5 to 6 times, which is far from ideal.
Code
//-----------------------------------------------------------------//
Trigger("Player 8"){
Conditions:
Bring("Foes", "Terran Civilian", "STARTINGUNITS", At least, 1);
Actions:
Move Unit("Player 8", "Buildings", All, "BUILDINGSLOT1", "DISPLACEMENT SLOT");
Wait(10);
Move Unit("Player 8", "Men", All, "BUILDINGSLOT1", "DISPLACEMENT SLOT");
Wait(5);
Move Unit("Player 8", "Buildings", All, "BUILDINGSLOT2", "BUILDINGSLOT1");
Wait(10);
Move Unit("Player 8", "Men", All, "BUILDINGSLOT2", "BUILDINGSLOT1");
Wait(5);
Move Unit("Player 8", "Buildings", All, "DISPLACEMENT SLOT", "BUILDINGSLOT3");
Wait(10);
Move Unit("Player 8", "Men", All, "DISPLACEMENT SLOT", "BUILDINGSLOT3");
Wait(5);
Preserve Trigger();
}
//-----------------------------------------------------------------//
Trigger("Player 8"){
Conditions:
Bring("Foes", "Terran Civilian", "STARTINGUNITS", At least, 1);
Bring("Player 8", "Buildings", "BUILDINGSLOT2", Exactly, 0);
Actions:
Move Unit("Player 8", "Buildings", All, "BUILDINGSLOT3", "BUILDINGSLOT2");
Wait(10);
Move Unit("Player 8", "Men", All, "BUILDINGSLOT3", "BUILDINGSLOT2");
Wait(5);
Preserve Trigger();
}
//-----------------------------------------------------------------//
Trigger("Player 8"){
Conditions:
Bring("Foes", "Terran Civilian", "STARTINGUNITS", At least, 1);
Actions:
Move Unit("Player 8", "Buildings", All, "BUILDINGSLOT1", "DISPLACEMENT SLOT");
Wait(10);
Move Unit("Player 8", "Men", All, "BUILDINGSLOT1", "DISPLACEMENT SLOT");
Wait(5);
Move Unit("Player 8", "Buildings", All, "BUILDINGSLOT2", "BUILDINGSLOT1");
Wait(10);
Move Unit("Player 8", "Men", All, "BUILDINGSLOT2", "BUILDINGSLOT1");
Wait(5);
Move Unit("Player 8", "Buildings", All, "DISPLACEMENT SLOT", "BUILDINGSLOT3");
Wait(10);
Move Unit("Player 8", "Men", All, "DISPLACEMENT SLOT", "BUILDINGSLOT3");
Wait(5);
Preserve Trigger();
}
//-----------------------------------------------------------------//
Trigger("Player 8"){
Conditions:
Bring("Foes", "Terran Civilian", "STARTINGUNITS", At least, 1);
Bring("Player 8", "Buildings", "BUILDINGSLOT2", Exactly, 0);
Actions:
Move Unit("Player 8", "Buildings", All, "BUILDINGSLOT3", "BUILDINGSLOT2");
Wait(10);
Move Unit("Player 8", "Men", All, "BUILDINGSLOT3", "BUILDINGSLOT2");
Wait(5);
Preserve Trigger();
}
//-----------------------------------------------------------------//
Post has been edited 1 time(s), last time on Sep 27 2016, 4:03 am by zsnakezz.
I made the following maps; Hyperion 2, The Undead, The Undead Coop, Realm Rpg beta, and Overlords.