• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

Idle workers count

Status
Not open for further replies.
Level 18
Joined
Oct 17, 2012
Messages
826
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