• Check out the results of the Techtree Contest #19!
  • Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

[General] Worker count on gold mines.

Status
Not open for further replies.
Level 4
Joined
Oct 17, 2020
Messages
11
Hello,

Let me start off with that I have almost 0 knowledge about map editor.
I m wondering if it's possible and if someone is able to create or guide me through the process of creating a worker count on gold mines like on this screenshot!

aReqCu1.png

I would really appreciate all the help!

Thank you,
Piotr.
 
You can detect the order "harvest" or "smart" issued to a worker and if the target is a goldmine, add the worker to a unit group attached to that gold mine.
Then if the worker gets any other order than "resumeharvesting" or "harvest" or if the target of "harvest" is not the same goldmine, remove the unit from the group.

Then you would need to create a text tag on top of the goldmine, and periodically set the text to the number of units in the group.

To have this on multiple goldmines would also need all these variables (group, text tag) to be arrays.
 
You can detect the order "harvest" or "smart" issued to a worker and if the target is a goldmine, add the worker to a unit group attached to that gold mine.
Then if the worker gets any other order than "resumeharvesting" or "harvest" or if the target of "harvest" is not the same goldmine, remove the unit from the group.

Then you would need to create a text tag on top of the goldmine, and periodically set the text to the number of units in the group.

To have this on multiple goldmines would also need all these variables (group, text tag) to be arrays.
Thank you for respond :D
Atleast it lead me somehow somewhere,
I'll see if I can do it myself
 
Status
Not open for further replies.
Back
Top