I'm trying to make a map where Protoss units spawn in one corner and Terran units spawn in another corner and upon spawning, will march towards each other and kill each other.
The goal of this map is for me to see what exactly constitutes a "balanced" Protoss and Terran fighting force. My early game is weak and I beleive that by watching several waves of Gateway units go against several waves of Barracks units, I can learn more. True, the computer ai isn't the best at micro, but these attack + location scenarios can give me some good ideas.
I was really excellent at working with the SC1 editor, I didn't bother at all with the WC3 editor, but I want to start making SC2 maps. I'm just more of a sci fi nerd. However, the galaxy editor interface is very intimidating.
I have created and labeled locations. How do I make a trigger so that units spawn from them, and units within the location receive an order to patrol to the opposite starting location?
The next wave of a given faction's units should spawn upon the death of the last member of their previous wave, something like [Player 2] possesses no units, spawn [Terran] units [Marine], [Marauder], [Reaper], at location [Terran start].
I really am looking for a little push in the right direction. Thank you very much.
1) Create two points. One where you want protoss units to spawn from and one where you want terran units to spawn from. You can create points by selecting the "Points" tool. You will be able to physically place these points on the map. Change the name of the points to the following (click on the points in the right-window and hit F2 to change their name, or right-click them and select Rename): Protoss Spawn and Terran Spawn
2) Open the Trigger Editor. We will need five triggers and at least two global variables to accomplish what you want (this can all actually be done with one trigger but it would be too complicated to write for a beginner).
Global Variables-
Protoss Unit Group
Terran Unit Group
Trigger 1: Initial spawn
Event - Whatever you want
Local Variables:
Point 1 = Protoss Spawn
Point 2 = Terran Spawn
LCunit = No unit
Conditions - Whatever you want
Actions -
Create a Zealot at Point 1
Set LCunit = last created unit
Add LCunit to Protoss Unit Group
Repeat this for stalker and other protoss units
Create a Marine at Point 2
Set LCunit = last created unit
Add LCunit to Terran Unit Group
Repeat this for Marauder and other terran units
Turn on Trigger 3
Turn off this Trigger
Trigger 2: Death Counter
Event -
Any unit Dies
Local Variables -
Dunit = no unit
Conditions-
[OR]
Dying unit is in Protoss unit Group = true
Dying is in Terran unit Group = true
It is essential that you select the OR command. This allows the trigger to fire as long as one condition is true.
Actions-
Set Dunit = dying unit
[ If ] - Dunit is in Protoss unit Group
Then - Remove Dunit from Protoss unit Group
Else - Remove Duni from Terran unit Group
Trigger 3 (initally off), future unit spawner
Event - Every 10 seconds of game time.
Conditions - NONE
Actions:
[ If ] Protoss unit group is empty
Then Run Trigger 4
Else - (leave blank)
Do not use "Turn on" trigger 4, use "Run" Trigger 4
[ If ] Terran unit group is empty
Then Run Trigger 5
Else - (leave blank)
Trigger 4 - Protoss unit Spawn
Event - (leave blank, trigger 3 is "the event" that runs this trigger at the right time)
Local Variables:
Point 1 = Protoss Spawn
Point 2 = Terran Spawn
LCunit = No unit
Conditions - NONE
Actions -
Create a Zealot at Point 1
Set LCunit = last created unit
Add LCunit to Protoss Unit Group
Repeat this for stalker and other protoss units
Create a Marine at Point 2
Set LCunit = last created unit
Add LCunit to Terran Unit Group
Repeat this for Marauder and other terran units
Trigger 5 - Terran unit Spawn
Event - (leave blank)
Local Variables:
Point 1 = Protoss Spawn
Point 2 = Terran Spawn
LCunit = No unit
Conditions - NONE
Actions -
Create a Marine at Point 1
Set LCunit = last created unit
Add LCunit to Protoss Unit Group
Repeat this for Marauder and other terran units
Can't you just make 2 regions, one on each corner, and say "Create 1 Marine in Centre of Region 1" and "When a Unit Enters Region 1- Order Triggering Unit to Attack Centre of Region 2"?
Set the Trigger for the Create 1 Unit to be a "Key Pressed" if you want, and you can easily make lots of triggers for the different kinds of units you want to battle.
Hey Edward could you possibly gimme some help for making triggers on attack waves for my map as well? Basically the way I have the map set it, me and my allies are kind of in the center and there are 3 zerg bases and 1 protoss base that we need to destroy. I'm trying to create attack waves for each enemy base that over time will increase in strength and such, and will only end when you destroy the respective hive or nexus in their bases.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I'm trying to make a map where Protoss units spawn in one corner and Terran units spawn in another corner and upon spawning, will march towards each other and kill each other.
The goal of this map is for me to see what exactly constitutes a "balanced" Protoss and Terran fighting force. My early game is weak and I beleive that by watching several waves of Gateway units go against several waves of Barracks units, I can learn more. True, the computer ai isn't the best at micro, but these attack + location scenarios can give me some good ideas.
I was really excellent at working with the SC1 editor, I didn't bother at all with the WC3 editor, but I want to start making SC2 maps. I'm just more of a sci fi nerd. However, the galaxy editor interface is very intimidating.
I have created and labeled locations. How do I make a trigger so that units spawn from them, and units within the location receive an order to patrol to the opposite starting location?
The next wave of a given faction's units should spawn upon the death of the last member of their previous wave, something like [Player 2] possesses no units, spawn [Terran] units [Marine], [Marauder], [Reaper], at location [Terran start].
I really am looking for a little push in the right direction. Thank you very much.
@Kurdaj: Go
I am willing to help you. It will take me about ten minutes to write a full response (while I'm waiting for help with my problem).
@EdwardSolomon: Go
Thank you very much! I'll hang out and put out the vibe ~
(subtle Dumb & Dumber reference)
1) Create two points. One where you want protoss units to spawn from and one where you want terran units to spawn from. You can create points by selecting the "Points" tool. You will be able to physically place these points on the map. Change the name of the points to the following (click on the points in the right-window and hit F2 to change their name, or right-click them and select Rename): Protoss Spawn and Terran Spawn
2) Open the Trigger Editor. We will need five triggers and at least two global variables to accomplish what you want (this can all actually be done with one trigger but it would be too complicated to write for a beginner).
Global Variables-
Protoss Unit Group
Terran Unit Group
Trigger 1: Initial spawn
Event - Whatever you want
Local Variables:
Point 1 = Protoss Spawn
Point 2 = Terran Spawn
LCunit = No unit
Conditions - Whatever you want
Actions -
Create a Zealot at Point 1
Set LCunit = last created unit
Add LCunit to Protoss Unit Group
Repeat this for stalker and other protoss units
Create a Marine at Point 2
Set LCunit = last created unit
Add LCunit to Terran Unit Group
Repeat this for Marauder and other terran units
Turn on Trigger 3
Turn off this Trigger
Trigger 2: Death Counter
Event -
Any unit Dies
Local Variables -
Dunit = no unit
Conditions-
[OR]
Dying unit is in Protoss unit Group = true
Dying is in Terran unit Group = true
It is essential that you select the OR command. This allows the trigger to fire as long as one condition is true.
Actions-
Set Dunit = dying unit
[ If ] - Dunit is in Protoss unit Group
Then - Remove Dunit from Protoss unit Group
Else - Remove Duni from Terran unit Group
Trigger 3 (initally off), future unit spawner
Event - Every 10 seconds of game time.
Conditions - NONE
Actions:
[ If ] Protoss unit group is empty
Then Run Trigger 4
Else - (leave blank)
Do not use "Turn on" trigger 4, use "Run" Trigger 4
[ If ] Terran unit group is empty
Then Run Trigger 5
Else - (leave blank)
Trigger 4 - Protoss unit Spawn
Event - (leave blank, trigger 3 is "the event" that runs this trigger at the right time)
Local Variables:
Point 1 = Protoss Spawn
Point 2 = Terran Spawn
LCunit = No unit
Conditions - NONE
Actions -
Create a Zealot at Point 1
Set LCunit = last created unit
Add LCunit to Protoss Unit Group
Repeat this for stalker and other protoss units
Create a Marine at Point 2
Set LCunit = last created unit
Add LCunit to Terran Unit Group
Repeat this for Marauder and other terran units
Trigger 5 - Terran unit Spawn
Event - (leave blank)
Local Variables:
Point 1 = Protoss Spawn
Point 2 = Terran Spawn
LCunit = No unit
Conditions - NONE
Actions -
Create a Marine at Point 1
Set LCunit = last created unit
Add LCunit to Protoss Unit Group
Repeat this for Marauder and other terran units
Can't you just make 2 regions, one on each corner, and say "Create 1 Marine in Centre of Region 1" and "When a Unit Enters Region 1- Order Triggering Unit to Attack Centre of Region 2"?
Set the Trigger for the Create 1 Unit to be a "Key Pressed" if you want, and you can easily make lots of triggers for the different kinds of units you want to battle.
Not sure why Unit Groups are necessary here. :S
Hey Edward could you possibly gimme some help for making triggers on attack waves for my map as well? Basically the way I have the map set it, me and my allies are kind of in the center and there are 3 zerg bases and 1 protoss base that we need to destroy. I'm trying to create attack waves for each enemy base that over time will increase in strength and such, and will only end when you destroy the respective hive or nexus in their bases.