Sorry if this should be read the wiki stuff, but i can't figure out how to spawn units into a region defined by a variable. (Like Tya Desert strike)
I've got a basic Trigger which picks each of unit in a region and spawn for each picked unit,
i've set spawn into a Random point of Region > Value from data table (only thing which might select a variable to me)
but i can't find any way to link some sort of banks or preset..
I've watched some of similars maps available and can't find it the way i would it done..
One method I can think of, is to monitor when a unit is build, then add it to a unit group. Then pick each unit in the unit group and spawn a unit of the unit type of picked unit in the region you want.
Something like that. When a unit is finished constructing, add finished unit to unit group. If the unit uses a "Sell" ability, remove it from unit group.
Hello
Sorry if this should be read the wiki stuff, but i can't figure out how to spawn units into a region defined by a variable. (Like Tya Desert strike)
I've got a basic Trigger which picks each of unit in a region and spawn for each picked unit, i've set spawn into a Random point of Region > Value from data table (only thing which might select a variable to me)
but i can't find any way to link some sort of banks or preset..
I've watched some of similars maps available and can't find it the way i would it done..
If you want to use a variable, you'll need to create one in the editor, then set that variable in a trigger. Then you can create units in that region.
If you want to use a data table value, you'll still need to set it using a trigger, but then you reference it using the data table lookup instead.
One method I can think of, is to monitor when a unit is build, then add it to a unit group. Then pick each unit in the unit group and spawn a unit of the unit type of picked unit in the region you want.
Something like that. When a unit is finished constructing, add finished unit to unit group. If the unit uses a "Sell" ability, remove it from unit group.
https://www.sc2mapster.com/maps/just-another-tug-map/
That is a test "tug of war" map I made, it is free to open and use as you'd like. You can see how I spawned units based on the structure built.
Skype: [email protected] Current Project: Custom Hero Arena! US: battlenet:://starcraft/map/1/263274 EU: battlenet:://starcraft/map/2/186418