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

How to gather from a building?

Status
Not open for further replies.
Level 4
Joined
Dec 10, 2015
Messages
85
Hello
So yeah, well...
I'm trying to make my worker to gather a specific building.
In short, Lumber isn't in my game, it is replaced by food.
I have a building called Field, I want workers to be able to gather food (lumber) from it.
However, even if it is targeted as Tree (in combat) and its unit classification is Tree (in stat), in-game, when I order worker to gather from the Field, it says it requires to target ressources.
Does anyone know how I can make my worker to gather lumber from a building?
Thanks

EDIT : Nevermind, I wanted to make Field building owned by a player, but I think I'll rather make it a neutral building like Tree.
 
Keep an eye out for ConstructableFarm when it updates. It requires JNGP with an updated JassHelper. I haven't checked how you can customise it to be neutral, but it should be a matter of changing the spell's targeting parameters.

Alternatively, since you don't have lumber in your game, just make your Tree a destructible and all the other trees to be not-trees so a normal lumber harvesting skill will only work on the custom Tree.
 
Status
Not open for further replies.
Top