Auto Harvest

Lord Regno

Active Member
Reaction score
19
How I do that a unit can turn auto harvest on and then the other units that are training are going to auto harvest.

I ask this because some players have sad that my map shall have auto havers... And I can't even find were auto havers are, I think it was an ability but I thinked wrong.

Are it a trigger, show me the the trigger, or are it a ability?

/ Regno
 

Kikac_NNGK

Well-Known Member
Reaction score
33
Just add them the Harvest ability and When a unit is trained and if unit type of trained unit equal to Peasant (your worker) order trained unit to Harvest
Here is the trigger:
Trigger:
  • Trigger
    • Events
      • Unit - A unit Finishes training a unit
    • Conditions
      • (Unit-type of (Trained unit)) Equal to Peasant
    • Actions
      • Set DestGroup = (Random destructible in (Entire map))
      • Unit - Order (Trained unit) to Harvest DestGroup

The only thing i dont know is how to set the closest destructible form the position of the training building
 

Lord Regno

Active Member
Reaction score
19
Just add them the Harvest ability and When a unit is trained and if unit type of trained unit equal to Peasant (your worker) order trained unit to Harvest
Here is the trigger:
Trigger:
  • Trigger
    • Events
      • Unit - A unit Finishes training a unit
    • Conditions
      • (Unit-type of (Trained unit)) Equal to Peasant
    • Actions
      • Set DestGroup = (Random destructible in (Entire map))
      • Unit - Order (Trained unit) to Harvest DestGroup

The only thing i dont know is how to set the closest destructible form the position of the training building

Perhaps this will help to haverst closest tree:

Trigger:
  • Auto
    • Events
      • Unit - A unit Finishes training a unit
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Dwarf Worker
    • Actions
      • Set DestGroupe = (Random destructible in (Region centered at (Position of (Triggering unit)) with size (150.00, 150.00)))
      • Unit - Order (Trained unit) to Harvest DestGroup


How I turn this on/off witch a ability (this I can) to only the player that using the ability (this I can't):?
 

Kikac_NNGK

Well-Known Member
Reaction score
33
At the place of (Region centered at (Position of (Triggering unit)) with size (150.00, 150.00))) there is the "Entire Map" action (or code).

As for the trigger:
Trigger:
  • Auto
    • Events
      • Unit - A unit Finishes training a unit
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Dwarf Worker
    • Actions
      • Set DestGroupe = (Random destructible in (Region centered at (Position of (Triggering unit)) with size (150.00, 150.00)))
      • Unit - Order (Trained unit) to Harvest No unit (can't find DestGroup here)

This will be somehow the closest tree but what if in that region are no trees? (btw i thought of that so thats why i chosed the "Entire Map")
 

Lord Regno

Active Member
Reaction score
19
K but in my map its full of trees, and only a player that set a tree out side the map is a newbie, because its a vampirirsm map :)

I ask again now (I edit before) How I turn this trigger on =(this I can)(help)= and turn it off for only the player that are using the ability, do I have to do 10 triggers for every player to get this to work?

and the trigger don't working:

Trigger:
  • Auto
    • Events
      • Unit - A unit Finishes training a unit
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Dwarf Worker
    • Actions
      • Set DestGroupe = (Random destructible in (Region centered at (Position of (Triggering unit)) with size (500.00, 500.00)))
      • Unit - Order (Trained unit) to Harvest DestGroupe
 

SaMmM

Member
Reaction score
4
Its simple:

Trigger:
  • auto harvest workers
    • Events
      • Unit - A unit Finishes training a unit
    • Conditions
      • Or - Any (Conditions) are true
        • Conditions
          • (Unit-type of (Trained unit)) Equal to Peasant
          • (Unit-type of (Trained unit)) Equal to Ghoul
    • Actions
      • Unit - Order (Trained unit) to Harvest Nearby Lumber
 

Lord Regno

Active Member
Reaction score
19
Th botch triggers its working, I have missed to change the type to trained, it was triggering unit :(
 

Lord Regno

Active Member
Reaction score
19
I sad that yours and the other person trigger are working fine because I missed to change unit type of (triggering unit) to trained unit.

And I haven't get answered how I fix auto harvest so that its only are the players ho are turning the trigger on witch a ability ho get auto harvest and the other that isn't clicking on it get auto harvest off.

I prefer set mark on tree instead of auto harvest, because then I get the worker there I want them to. Its a request from more than ten players that I most get auto harvest on my map.

/ Regno
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top