Here is the overview of what I am ultimately wanting. I am going to be working on a game where players fight for control of contested regions/structures that spawn support units on a repeating timer. When a player's selected unit (hero) steps into a region containing one of the structures that spawn support units a progress bar will appear above the structure showing the countdown to player group control of that structure. Basically, when one of your team members enters and stays in a region for a set number of seconds (tbd) your team gets ownership of the spawned support units from that particular structure. The game works similar to a ToW in that spawned units will be moving to attack team bases. However, the ownership of these spawn points change based on player's heroes entering and then keeping the other team from entering these regions. I hope that makes sense.
So, here is where I am hung up. I am having trouble figuring out how to change the control when the region is being contest (within the region). If the region is "empty", meaning that no one on the other team is in the region then your hero should be able to move into the region and the countdown to ownership will simply start. However, and this where I am getting hung up, if there is an enemy hero already in the region they must leave the region (by exiting the region or dieing) before the countdown can start for you. I don't know how to create this trigger.
I am pretty new to all this but I have figured out how to create a simple "unit enters region" to "change ownership of unit". Here is what I have so far.
Events
Unit - Marine [43.00, 45.00] Enters Command Center Region
Game - Map initialization
Local Variables
Conditions
(Marine [43.00, 45.00] is in Command Center Region) == Change
Actions
Unit - Change ownership of Command Center [22.50, 49.50] to player 1 and Change Color
Note: I don't know if this is the proper way to handle this sort of trigger, as I figured it out on my own, so if there is a better way to do it then please let me know.
Here is the overview of what I am ultimately wanting. I am going to be working on a game where players fight for control of contested regions/structures that spawn support units on a repeating timer. When a player's selected unit (hero) steps into a region containing one of the structures that spawn support units a progress bar will appear above the structure showing the countdown to player group control of that structure. Basically, when one of your team members enters and stays in a region for a set number of seconds (tbd) your team gets ownership of the spawned support units from that particular structure. The game works similar to a ToW in that spawned units will be moving to attack team bases. However, the ownership of these spawn points change based on player's heroes entering and then keeping the other team from entering these regions. I hope that makes sense.
So, here is where I am hung up. I am having trouble figuring out how to change the control when the region is being contest (within the region). If the region is "empty", meaning that no one on the other team is in the region then your hero should be able to move into the region and the countdown to ownership will simply start. However, and this where I am getting hung up, if there is an enemy hero already in the region they must leave the region (by exiting the region or dieing) before the countdown can start for you. I don't know how to create this trigger.
I am pretty new to all this but I have figured out how to create a simple "unit enters region" to "change ownership of unit". Here is what I have so far.
Events
Unit - Marine [43.00, 45.00] Enters Command Center Region
Game - Map initialization
Local Variables
Conditions
(Marine [43.00, 45.00] is in Command Center Region) == Change
Actions
Unit - Change ownership of Command Center [22.50, 49.50] to player 1 and Change Color
Note: I don't know if this is the proper way to handle this sort of trigger, as I figured it out on my own, so if there is a better way to do it then please let me know.
Thanks, in advance, for any help.
-muse
What you want is something more like this: