• 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.

Idle workers count

Status
Not open for further replies.
Level 19
Joined
Oct 17, 2012
Messages
859
Do you mean with Triggers? Or something else? You must be more specific so we know what you want exactly.

Code

You gotta specify exactly what you need, cause I would try to help but I have no idea what effect you're trying to accomplish

He did.

He wants the number of workers that are not doing anything. The game shows this number in the left bottom corner with the icons of the units. How can this number be stored in a variable for later use? is the question.
 
Level 16
Joined
Mar 24, 2017
Messages
827
My best bet on this is give all peon type that are idle some sort of passive ability that has a buff (put this ability inside of a disabled spellbook so it doesn't show up), set the buff icon to no icon so it doesn't show up and use a trigger to count how many units have this buff. This is my best bet as I have never dealt with this before.
 
Status
Not open for further replies.
Top