Probe returning: From which mineral field it gathered resources?

Probe returning: From which mineral field it gathered resources? - Top view of large area with black coal with car tracks in daytime

If I have a Probe returning with minerals back to the base (Issued order "ProbeHarvest",1), how do I know where it was mining from? I would like to write a trigger which orders the probe to return back to the mineral field early.

To clarify: I have a trigger whose action is one of those:

  • order to return resources back to Nexus:

    TriggerAddEventUnitOrder(null, "ProbeHarvest", 1)

  • used an ability to return resources back to Nexus:

    TriggerAddEventUnitAbility(null, "ProbeHarvest", 1, c_abilHarvestStageApproachDropOff, false)

and in the trigger action I want to learn were it was mining from.

Note: I know how learn when the probe is approaching the mineral field TriggerAddEventUnitOrder(null, "ProbeHarvest", 0), but I don't need that information at that time.



Best Answer

You will need to read up on Units (anything you can click on). Each unit has an ID.

Next, you will have to use a trigger. When a harvester starts to harvest from a mineral patch, you will make a trigger that assigns that harvester to the mineral patch.

You can learn the basics of triggers here.

So once a probe starts harvesting, you can trigger a countdown or whatever you have in mind. Then in that trigger you will command it to go back to the ID it just harvested from which can be found from the resources it is currently gathering or the X/Y axis on the map (I'm also assuming there are other ways to get the ID of what it came from)




Pictures about "Probe returning: From which mineral field it gathered resources?"

Probe returning: From which mineral field it gathered resources? - Blue sky above salt fields in evening
Probe returning: From which mineral field it gathered resources? - Rock rough cliff near grassy green valley
Probe returning: From which mineral field it gathered resources? - Calm field with poor greenery and amazing mineral rocky mountains under clear blue sky



How many minerals per minute sc2?

The first and second workers on a single mineral patch will each collect approximately 40 minerals per minute. The third worker will collect approximately 20 minerals per minute. Each saturated mineral patch (3 workers) will yield approximately 102 minerals/minute.

How many minerals are in base sc2?

A normal base has eight mineral fields, consisting of four large nodes with 1800 minerals per field and four small nodes with 900 minerals per field, for a total of 10,800 minerals per base.

How many workers per base sc2?

The ideal amount of workers ranges between 22 (16 harvesting minerals + 6 harvesting gas) to 30 (24 harvesting minerals + 6 harvesting gas). Worker count can be determined by using ctrl+left click on one of the workers at a base, then counting the units in the unit pane.

How much does an SCV mine per minute?

- One SCV on one mineral patch harvests 39-45 minerals per game minute, depending on distance. - Two SCVs on one mineral patch harvest 78-90 minerals per game minute, depending on distance. - Three SCVs on one mineral patch harvest ~102 minerals per game minute.



8 STUPID MISTAKES everybody makes in Kerbal Space Program




Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

Images: Kelly, 蔡宗翰, Julia Volk, Alexander Kozlov