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

[Spell] Building Harvesting Lumber

Status
Not open for further replies.
Level 9
Joined
Jul 26, 2005
Messages
553
As the title reveals. I am trying to get a building to harvest lumber.

Trouble maker fact, if a single unit (or building) is BOTH a harvester, and a "drop zone" (as my building is) then it wont acknowledge itself as a "drop zone" until it began moving towards another "drop zone" (usually just a minor turn and that's not an issue)

So, given that fact, a unit incapable of moving (aka building) won't auto-harvest within it's range, and must be commanded manually to both harvest and return the lumber.

Making a dummy "drop zone" stand at the same place did not work. so how do I get it to DO work?
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
Yeah, trees are also acting like a normal unit (has HP, and can die due to damage of spells (Flame Strike) or being hit by heavy projectiles (Demolisher) and such)

Once you create the building, run a 1.1 seconds interval of damaging the trees (standard setting for Peasant's interval for Harvesting a tree)

Each 5.5 seconds (5 times damages a tree), you can add +5 lumber to the respective player

I can provide you a test map but I need a better understanding of the situation that you want

Maybe I mislead, perhaps ?
 
Level 9
Joined
Jul 26, 2005
Messages
553
Well, I can't be online 24/7 can I?

Anyway what you suggest sounds like it can do the trick, but how to trigger it properly to harm a single tree, and if no tree in around not to add lumber?

The wanted income rate is 1 every second, harvesting a single tree at a time clean and simple. (abit fast, but it IS immobile so you gotta keep building these at new lumber concentrations...)
 
Level 9
Joined
Jul 26, 2005
Messages
553
That was...incredible quick...
Destructible groups huh? didn't think of that one...

mind being a bit more specific though on how to put that into work? I think this will need multiple layers of groups because you can build multiple of these...won't it?
 
Level 17
Joined
Jun 17, 2010
Messages
2,275
well because you set tree equal to a unit, so the conidition has to state, there must be a unit Not equal to No unit. so your income trigger
  • Events
    • Time - every 1.0 seconds of game time
  • Conditions
    • (Tree) is not equal to No tree
  • Actions
    • Player - Add 10 (Lumber) to player
(BTW i say unit but i mean the tree i just hate type destructible)
 
Level 9
Joined
Jul 26, 2005
Messages
553
Yea...I might be just dumb or something, but can you go a bit more basic there? what exactly do I need to configure there to make it work properly? because I seriously get confused from all them loops, or I got the whole idea wrong...
 
Status
Not open for further replies.
Top