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

Help Appreciated...

Status
Not open for further replies.
Level 10
Joined
Jul 22, 2008
Messages
363
I need a trigger somewhat like a unit comes within 10 of this unit.
Condition(the part of having trouble with)- Make sure this unit has at least 1 lumber.
ActionTake away 1 lumber and create 1 wolf at target location.


All I need help with is the condition. Help is appreciated.:thumbs_up:
 
Level 14
Joined
Nov 4, 2006
Messages
1,241
you mean like if a worker carries more then 1 lumber which he harvested i guess? there was a topic on counting how many lumber a unit carries, but i can't find it right now, so i dont know if it was solved, but, you might be able to do it this way: add the worker to a special unitgroup, when he starts harvesting, and remove him when he deposits his lumber, then use as condition a check wether the unit is in this unitgroup.

have a look for this other topic, maybe there is a better way to do it
 
Status
Not open for further replies.
Top