Hi,
I'm trying to figure out a way to change all mineral fields on the map to rich mineral fields. Is there some way I can apply a behaviour to all the units on the map of a certain type? I would remove the normal mineral field behaviour and then apply the rich minerals behaviour, Or I could remove all the minerals and place high yield at the position of each but both methods require either a lot of work and triggers or being able to apply something to all units of certain type.
Event: Map init
Conditions: None
Local vars: None
Actions: Pick each unit in unit group (entire 'Mineral Cystal's in entire map) and do actions;
Actions: Kill picked unit;
Create unit (High yield minerals) at position of unit (picked unit) facing angle 270;
Will kill all normal minerals and create a high yield version at it's location.
Hi, I'm trying to figure out a way to change all mineral fields on the map to rich mineral fields. Is there some way I can apply a behaviour to all the units on the map of a certain type? I would remove the normal mineral field behaviour and then apply the rich minerals behaviour, Or I could remove all the minerals and place high yield at the position of each but both methods require either a lot of work and triggers or being able to apply something to all units of certain type.
trigger:
Event: Map init Conditions: None Local vars: None Actions: Pick each unit in unit group (entire 'Mineral Cystal's in entire map) and do actions; Actions: Kill picked unit; Create unit (High yield minerals) at position of unit (picked unit) facing angle 270;
Will kill all normal minerals and create a high yield version at it's location.
lol so easy... Thank you.
Be warned, that will reset all the mineral patches to full, and make everything mining from them at the time stop (I believe).