I've been working on a Triggers that will work with 3 regions and a Key unit the Nexus that must be built in the 3 regions for the Main Action to take place. My goal is to have one trigger that is capable of recognizing when there is a Nexus in each Desired Region to do the desired Action.
Nexus 001(Switch)
Events:
Unit - Any Unit Enters Nexus 001
Conditions:
(Owner of (Triggering unit)) == 1
(Unit type of (Triggering unit)) == Nexus
Actions:
Trigger - Turn Nexus 002(Switch) On
Nexus 002(Switch)
Events:
Unit - Any Unit Enters Nexus 002
Conditions:
(Owner of (Triggering unit)) == 1
(Unit type of (Triggering unit)) == Nexus
Actions:
Trigger - Turn Nexus 003(Switch) On
Nexus 003(Switch)
Events:
Unit - Any Unit Enters Nexus 003
Conditions:
(Owner of (Triggering unit)) == 1
(Unit type of (Triggering unit)) == Nexus
(Nexus 003(Switch) is on) == True
Actions:
Main Action
My first set of triggers above worked as a staircase. Where each trigger Must be Completed in order for the Main action to happen. Because the Triggering Unit is a Structure (Nexus) the only way for it to enter the region is for the Nexus to be built in the region and for it to leave the region it must be destroyed. Now this is where things start to fall apart for the Structure as opposed to a Movable Unit that is capable of moving in and out of the Region. When a Nexus is built inside the Region before the trigger is set to ON. The trigger will not function when the trigger is set to ON. Because the Nexus never truly enters the region to trigger the event.
The triggers down below Is what I've been working with now with no success.
Nexus Group
Events:
Unit - Any Unit Enters Nexus 001
Unit - Any Unit Enters Nexus 002
Unit - Any Unit Enters Nexus 003
Conditions:
(Owner of (Triggering unit)) == 1
(Unit type of (Triggering unit)) == Nexus
Actions:
Unit Group - Add (Triggering unit) to Nexus Group
Nexus Switch
Events:
Unit - Any Unit Enters Nexus 001
Unit - Any Unit Enters Nexus 002
Unit - Any Unit Enters Nexus 003
Conditions:
(Owner of (Triggering unit)) == 1
(Unit type of (Triggering unit)) == Nexus
((Unit 1 from Nexus Group) is in Nexus 001) == True
((Unit 1 from Nexus Group) is in Nexus 002) == True
((Unit 1 from Nexus Group) is in Nexus 003) == True
I got this trigger to work as intended but very it is sketchy because it works of the Third Nexus base being built in the Correct Region...
Nexus Switch
Events:
Unit - Any Unit Enters Nexus 001
Unit - Any Unit Enters Nexus 002
Unit - Any Unit Enters Nexus 003
Conditions:
(Owner of (Triggering unit)) == 1
(Unit type of (Triggering unit)) == Nexus
Actions:
General - If (Conditions) then do (Actions) else do (Actions)
If
((Closest unit to Nexus Point 001 in Nexus Group) is in Nexus 001) == True
((Closest unit to Nexus Point 002 in Nexus Group) is in Nexus 002) == True
Then
Main Action
Else
Unit Group - Add (Triggering unit) to Nexus Group
After some refinement to the trigger In the Above Post. I got this trigger to work in a particular way. This one works by using the probe to attack the nexus to trigger the main action. I thought the Unit Construction Progress trigger would do the Job but that event does nothing.
Nexus Switch
Events:
Unit - Any Unit is attacked with Any Weapon
Unit - Any Unit Enters Nexus 001
Unit - Any Unit Enters Nexus 002
Unit - Any Unit Enters Nexus 003
Conditions:
(Owner of (Triggering unit)) == 1
(Unit type of (Triggering unit)) == Nexus
Actions:
General - If (Conditions) then do (Actions) else do (Actions)
If
((Closest unit to Nexus Point 001 in Nexus Group) is in Nexus 001) == True
((Closest unit to Nexus Point 002 in Nexus Group) is in Nexus 002) == True
((Closest unit to Nexus Point 003 in Nexus Group) is in Nexus 003) == True
You may find the simplest solution to be running a loop which periodically checks each region for a Nexus instead of relying on the Unit Enters Region event.
The most basic structure of the trigger would be like this:
How would you combined multiple regions events with a certain unit: (nexus) into one trigger and make it run only once to for the desired action to take place?
Next Question is
How would you get the one trigger to run when the Final Nexus is finished it's construction process inside the region?
I finally got this unit construction progress event trigger to work as desired with the Nexus. Triggering progress unit is what allowed the Nexus to be recognize by the trigger.
I've been working on a Triggers that will work with 3 regions and a Key unit the Nexus that must be built in the 3 regions for the Main Action to take place. My goal is to have one trigger that is capable of recognizing when there is a Nexus in each Desired Region to do the desired Action.
Events: Unit - Any Unit Enters Nexus 001
Conditions: (Owner of (Triggering unit)) == 1 (Unit type of (Triggering unit)) == Nexus
Actions: Trigger - Turn Nexus 002(Switch) On
Events: Unit - Any Unit Enters Nexus 002
Conditions: (Owner of (Triggering unit)) == 1 (Unit type of (Triggering unit)) == Nexus
Actions: Trigger - Turn Nexus 003(Switch) On
Events: Unit - Any Unit Enters Nexus 003
Conditions: (Owner of (Triggering unit)) == 1 (Unit type of (Triggering unit)) == Nexus (Nexus 003(Switch) is on) == True
Actions: Main Action
My first set of triggers above worked as a staircase. Where each trigger Must be Completed in order for the Main action to happen. Because the Triggering Unit is a Structure (Nexus) the only way for it to enter the region is for the Nexus to be built in the region and for it to leave the region it must be destroyed. Now this is where things start to fall apart for the Structure as opposed to a Movable Unit that is capable of moving in and out of the Region. When a Nexus is built inside the Region before the trigger is set to ON. The trigger will not function when the trigger is set to ON. Because the Nexus never truly enters the region to trigger the event.
The triggers down below Is what I've been working with now with no success.
Events: Unit - Any Unit Enters Nexus 001 Unit - Any Unit Enters Nexus 002 Unit - Any Unit Enters Nexus 003
Conditions: (Owner of (Triggering unit)) == 1 (Unit type of (Triggering unit)) == Nexus
Actions: Unit Group - Add (Triggering unit) to Nexus Group
Events: Unit - Any Unit Enters Nexus 001 Unit - Any Unit Enters Nexus 002 Unit - Any Unit Enters Nexus 003
Conditions: (Owner of (Triggering unit)) == 1 (Unit type of (Triggering unit)) == Nexus ((Unit 1 from Nexus Group) is in Nexus 001) == True ((Unit 1 from Nexus Group) is in Nexus 002) == True ((Unit 1 from Nexus Group) is in Nexus 003) == True
Actions: Main Action
I got this trigger to work as intended but very it is sketchy because it works of the Third Nexus base being built in the Correct Region...
Nexus Switch
Events: Unit - Any Unit Enters Nexus 001 Unit - Any Unit Enters Nexus 002 Unit - Any Unit Enters Nexus 003
Conditions: (Owner of (Triggering unit)) == 1 (Unit type of (Triggering unit)) == Nexus
Actions: General - If (Conditions) then do (Actions) else do (Actions) If ((Closest unit to Nexus Point 001 in Nexus Group) is in Nexus 001) == True ((Closest unit to Nexus Point 002 in Nexus Group) is in Nexus 002) == True Then Main Action Else Unit Group - Add (Triggering unit) to Nexus Group
After some refinement to the trigger In the Above Post. I got this trigger to work in a particular way. This one works by using the probe to attack the nexus to trigger the main action. I thought the Unit Construction Progress trigger would do the Job but that event does nothing.
Events:
Unit - Any Unit is attacked with Any Weapon
Unit - Any Unit Enters Nexus 001
Unit - Any Unit Enters Nexus 002
Unit - Any Unit Enters Nexus 003
Conditions:
(Owner of (Triggering unit)) == 1
(Unit type of (Triggering unit)) == Nexus
Actions:
General - If (Conditions) then do (Actions) else do (Actions)
If
((Closest unit to Nexus Point 001 in Nexus Group) is in Nexus 001) == True
((Closest unit to Nexus Point 002 in Nexus Group) is in Nexus 002) == True
((Closest unit to Nexus Point 003 in Nexus Group) is in Nexus 003) == True
Then
Main Actions
Else
Unit Group - Add (Triggering unit) to Nexus Group
I dont mean to sound rude or anything, but whats the question here? can you clarify, simplify, and make the question bold or something?
@SolidSC: Go
You may find the simplest solution to be running a loop which periodically checks each region for a Nexus instead of relying on the Unit Enters Region event.
The most basic structure of the trigger would be like this:
@BasharTeg: Go
Thanks!! Very simple indeed. I'll see what I can make happen.
@SoulTaker916: Go
My Question Is
How would you combined multiple regions events with a certain unit: (nexus) into one trigger and make it run only once to for the desired action to take place?
Next Question is
How would you get the one trigger to run when the Final Nexus is finished it's construction process inside the region?
I finally got this unit construction progress event trigger to work as desired with the Nexus. Triggering progress unit is what allowed the Nexus to be recognize by the trigger.
To answers your questions u can do both.
stacking events in a trigger will cause that trigger to run if any one of the events is fired. and there is an event on unit completion.