Hey,
so I've been mapping for a time back then in Warcraft III and now starting with Starcraft II. Now I had a trigger in one of my WC3 maps which was quite simple.
It was about a region and neutrals spawning in this region (periodically) if they're dead/or not in the region (similar to Dota neutrals). That was quite simple there, something happens, they spawn, and then I had a trigger that added units within Region 001 to Unit Group "X". I even opened my WC3 editor after those 2 years to look at the trigger:
I want to do a very similar function in Starcraft II but I'm new to Starcraft II and can't find the trigger/function. So a player enters "RegionDoor" , and a few units are being created at the position/region "EvilGuys". Now all I want to do is: Create a Unit Group of all the units in this particular area and order an issue (to attack the player).
The tricky part (which should be REALLY simple) is creating a unit group who are standing in a Region. All I find in "Add a Unit to Unit Group" with Region is "Unit attached to Region" which is nonsense... Couldn't it be as simple as the WC3 Editor?
//EDIT: CAN BE CLOSED NOW! I'm just stupid. Found the answer by playing around. The logic is a little bit different in Starcraft II Editor.
Generally it's just : "Unit Group - Pick each unit in (Any units in Banelings owned by player Any Player matching (No Value), with at most Any Amount) and do (Actions)" and then do action with the picked units.
so I've been mapping for a time back then in Warcraft III and now starting with Starcraft II. Now I had a trigger in one of my WC3 maps which was quite simple.
It was about a region and neutrals spawning in this region (periodically) if they're dead/or not in the region (similar to Dota neutrals). That was quite simple there, something happens, they spawn, and then I had a trigger that added units within Region 001 to Unit Group "X". I even opened my WC3 editor after those 2 years to look at the trigger:
-
TopLeftCreeps
-
Events
- Time - Elapsed game time is 0.00 seconds
- Conditions
-
Actions
- Unit Group - Add all units of (Units in CreepsTopLeft <gen>) to TopLeftCreepsGroup
-
Events
I want to do a very similar function in Starcraft II but I'm new to Starcraft II and can't find the trigger/function. So a player enters "RegionDoor" , and a few units are being created at the position/region "EvilGuys". Now all I want to do is: Create a Unit Group of all the units in this particular area and order an issue (to attack the player).
The tricky part (which should be REALLY simple) is creating a unit group who are standing in a Region. All I find in "Add a Unit to Unit Group" with Region is "Unit attached to Region" which is nonsense... Couldn't it be as simple as the WC3 Editor?
//EDIT: CAN BE CLOSED NOW! I'm just stupid. Found the answer by playing around. The logic is a little bit different in Starcraft II Editor.
Generally it's just : "Unit Group - Pick each unit in (Any units in Banelings owned by player Any Player matching (No Value), with at most Any Amount) and do (Actions)" and then do action with the picked units.
Last edited: