So, I'm nearing the completion of a beta version of much current project, but have a bit of an issue when it comes to attack waves. My map is comprised of four teams; the Colonists, Infested, Infested Hordes, and Zerg Swarm. Every 300 seconds a trigger runs to spawn a number of Infested Terrans (Civilians and Marines) for the Infested Hordes faction. Is there a way to have all the spawned units be placed in a unit group (or alternatively a command issued to the entire team) to attack a specific point?
The basics of it is simple: at 300 seconds, 600 seconds, ect, spawn X Infested Colonist and X Infested Marine, which then attack-move towards 'Start Location Player'.
Semi-related, is it then possible to add all remaining units in the 'Infested' team to the 'Infested Hordes' team and run the same attack-order later in the map?
The way I do it in wave-based attack maps is I make a trigger where the event is "Any unit enters Entire Map" and then in the conditions check to see if the entering unit is from the owner of the enemies that I'm making attack. Then issue the order.
If you're looking to add all units of the player who owns the Infested to a unit group (including remainders) at every 300 seconds (or whatever interval you want to use) you could add a "Unit Group-Pick each unit in (Any units in (Entire Map) owned by player [insert the player number of the player who owns the enemies] Excluded: Missile, Dead Hidden, with at most Any Amount) and do (Actions)" action either at the beginning or the end of your trigger that creates the enemies. and in the "Actions" of that Pick Units action put a "Add (Picked Unit) to Unit Group" action.
It would look like this:
Events
-Timer-Every 300 seconds of Game Time
Actions
-Unit Group-Pick each unit in (Any units in (Entire map) owned by player [enemy player number] matching Excluded: Missile, Dead, Hidden, with at most Any Amount) and do (Actions)
--Actions
---Add (Picked Unit) to [enemy unit group]
As for the "Attack a specific point" trigger, I usually just do this:
Events
-Unit-Any Unit Enters (Entire Map)
Conditions
-(Owner of (Triggering Unit)) == [infested hordes player number]
Actions
-Unit-Order Unit to ( Attack targeting [Start Location Player]) (Replace Existing Orders)
I'm looking through what you suggested, and actually can't find the triggers you've suggested. I'm not sure if I'm just blind, or if they're actually not there.
Nor can I find an order to simple attack a location.
I am now gravely concerned I've broken something.
As for what my current trigger is, if it helps.
Events -Timer-Every 300 seconds of Game Time
Actions
-Unit - Create 15 Infested Terran (Campaign) (ID is InfestedCivilian) for player 4 at Wave Spawn East facing (Position of Command Center [135.50, 110.50]) (No Options)
-Unit -Create 15 Infested Terran (Campaign) (ID is InfestedCivilian) for player 4 at Wave Spawn East facing (Position of Command Center [135.50, 110.50]) (No Options)
I'm looking through what you suggested, and actually can't find the triggers you've suggested. I'm not sure if I'm just blind, or if they're actually not there.
Nor can I find an order to simple attack a location.
I am now gravely concerned I've broken something.
As for what my current trigger is, if it helps.
Events -Timer-Every 300 seconds of Game Time
Actions
-Unit - Create 15 Infested Terran (Campaign) (ID is InfestedCivilian) for player 4 at Wave Spawn East facing (Position of Command Center [135.50, 110.50]) (No Options)
-Unit -Create 15 Infested Terran (Campaign) (ID is InfestedCivilian) for player 4 at Wave Spawn East facing (Position of Command Center [135.50, 110.50]) (No Options)
Oh they're inside the spoilers, sorry, I wasn't sure if they were too large or not.
I would create a Unit Group type variable and have the Add Unit To Unit Group action after your Create Units action using the variable for the unit group and the Last Created Unit function.
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
So, I'm nearing the completion of a beta version of much current project, but have a bit of an issue when it comes to attack waves. My map is comprised of four teams; the Colonists, Infested, Infested Hordes, and Zerg Swarm. Every 300 seconds a trigger runs to spawn a number of Infested Terrans (Civilians and Marines) for the Infested Hordes faction. Is there a way to have all the spawned units be placed in a unit group (or alternatively a command issued to the entire team) to attack a specific point?
The basics of it is simple: at 300 seconds, 600 seconds, ect, spawn X Infested Colonist and X Infested Marine, which then attack-move towards 'Start Location Player'.
Semi-related, is it then possible to add all remaining units in the 'Infested' team to the 'Infested Hordes' team and run the same attack-order later in the map?
The way I do it in wave-based attack maps is I make a trigger where the event is "Any unit enters Entire Map" and then in the conditions check to see if the entering unit is from the owner of the enemies that I'm making attack. Then issue the order.
If you're looking to add all units of the player who owns the Infested to a unit group (including remainders) at every 300 seconds (or whatever interval you want to use) you could add a "Unit Group-Pick each unit in (Any units in (Entire Map) owned by player [insert the player number of the player who owns the enemies] Excluded: Missile, Dead Hidden, with at most Any Amount) and do (Actions)" action either at the beginning or the end of your trigger that creates the enemies. and in the "Actions" of that Pick Units action put a "Add (Picked Unit) to Unit Group" action.
It would look like this:
As for the "Attack a specific point" trigger, I usually just do this:
Alternatively, you could also add the unit to the unit group when it enters the map.
I'm looking through what you suggested, and actually can't find the triggers you've suggested. I'm not sure if I'm just blind, or if they're actually not there.
Nor can I find an order to simple attack a location.
I am now gravely concerned I've broken something.
As for what my current trigger is, if it helps.
Events
-Timer-Every 300 seconds of Game Time
Actions
-Unit - Create 15 Infested Terran (Campaign) (ID is InfestedCivilian) for player 4 at Wave Spawn East facing (Position of Command Center [135.50, 110.50]) (No Options)
-Unit -Create 15 Infested Terran (Campaign) (ID is InfestedCivilian) for player 4 at Wave Spawn East facing (Position of Command Center [135.50, 110.50]) (No Options)
Just use an Add Unit To Unit Group action.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
No, no! XD I opened the spoilers. I can't find them in the editor.
I would create a Unit Group type variable and have the Add Unit To Unit Group action after your Create Units action using the variable for the unit group and the Last Created Unit function.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
I've tried that, and unless I'm doing it wrong, it's not working.
Which is a running theme with your advice, really.
You got any triggers the clear stuff from the unit group?
Also got a pic of your latest trigger version?
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
How would I check my trigger version?
Also, no. No triggers to clear stuff from unit groups either.
Create units
add last created units to unit group
Make sure it's units with an s (plural). That way it adds all of them and not just the last unit from the create units action.
So, if there are multiple types of units, I would do
Create Units X 35
add last created units to unit group
Create Units Y 10
add last created units to unit group
Right?
Yes, that is correct.
Thanks! When I get the chance, I'll get around to adding it in and giving it a test.