• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[General] Neutral Passive peasant stops harvesting lumber - How to disable stopping?

Status
Not open for further replies.
Level 5
Joined
Jun 25, 2005
Messages
92
The Neutral Passive player on my map has a Lumber Mill and Peasants. The Peasants are sent to harvest wood. They start harvesting until they're full, but then don't return the lumber.

It works when I set ownership to one of the "normal" players.
The Peasants of Neutral Passive also actually can be sent to return lumber and go back to a tree to harvest, if I take full control of Neutral Passive and right-click the Lumber Mill with a peasant that is "full of lumber".

How can I make the Neutral Passive player Peasants behave like normal player Peasants, i.e. making them return their harvest and continue harvesting?

I guess I can trigger this with periodic checks, but I suspect there's an easier solution I'm missing.
 
Level 19
Joined
Jul 2, 2011
Messages
2,162
The Neutral Passive player on my map has a Lumber Mill and Peasants. The Peasants are sent to harvest wood. They start harvesting until they're full, but then don't return the lumber.

It works when I set ownership to one of the "normal" players.
The Peasants of Neutral Passive also actually can be sent to return lumber and go back to a tree to harvest, if I take full control of Neutral Passive and right-click the Lumber Mill with a peasant that is "full of lumber".

How can I make the Neutral Passive player Peasants behave like normal player Peasants, i.e. making them return their harvest and continue harvesting?

I guess I can trigger this with periodic checks, but I suspect there's an easier solution I'm missing.
is this purely for aesthetics or do you want the to actually collect lumber as a resource to be used.

If it is just for looks you can create a separate lumber harvesting upgrade for them that causes them to harvest 0 lumber until they are holding a bundle of 10 lumber

this will cause them to infinitely pick at the tree but never harm it or harvest any lumber
 
Level 9
Joined
Dec 12, 2007
Messages
489
a checklist:
- does the peasant have the correct Harvest Lumber ability?
- does the lumber mill have the correct Return Lumber ability?

though since the interaction works when controlled manually, I guess the checklist above is fulfilled already.

perhaps it has something to do with being Neutral Passive, hence the name "Passive".
maybe you should try assign the units and buildings to unused player slot.
 
Level 11
Joined
Nov 23, 2013
Messages
665
I agree with Dark_Axl: that is likely to be caused by the use of Neutral Passive player.
Dr Super Good recently said something about this in another thread:
Also be aware that Neutral players have their own AI that can cause them to do unexpected things. For example Neutral Hostile units might ignore orders in order to sleep, might ignore attacking buildings and might suddenly cancel movement orders to return to guard position.
I would also recommend to change the ownership of your units, if you have an available player slot. You may want to set the alliance setting to friendly with other players, change its color to black, and it should do the trick.
 
Level 5
Joined
Jun 25, 2005
Messages
92
It is purely for aesthetics, but I do want them to finish off trees.

The peasant has Harvest Lumber and the mill has Return Lumber.

All the player slots are used, so I can't assign them to another player.
 
Level 19
Joined
Jul 2, 2011
Messages
2,162
It is purely for aesthetics, but I do want them to finish off trees.

The peasant has Harvest Lumber and the mill has Return Lumber.

All the player slots are used, so I can't assign them to another player.
since it is purely for aesthetics why not add a timer to when all the trees are suddenly chopped down

I take it an event triggers once the peasants have chopped all the tries down?

the other option is to manually order them to return wood using the

unit order String

trigger... but that will probably have unintended consequences
 
Level 5
Joined
Jun 25, 2005
Messages
92
Is it possible to change the AI behaviour so that Neutral Passive returns harvested lumber?

Also, I considered just de-selecting the peasant selected, so that a player can't use it, but the de-selection is too slow. You still can issue orders, if you're quick.
 
Level 9
Joined
Dec 12, 2007
Messages
489
Also, I considered just de-selecting the peasant selected, so that a player can't use it, but the de-selection is too slow. You still can issue orders, if you're quick.

only for pure aesthetic and you don't want players to be able to click them?
you should consider adding Locust to the peasant and assign the peasant to some normal player slot.
 
Level 5
Joined
Jun 25, 2005
Messages
92
The peasants must be killable by normal units, so I can't use locust.
They're supposed to be background units that play no real role, kinda like critters. They shouldn't be mistaken for units that can be used tactically, so I prefer them not to be on a player slot, because that'd both make the peasant not have a player colour and be controllable.
 
Level 19
Joined
Jul 2, 2011
Messages
2,162
The Neutral Passive player on my map has a Lumber Mill and Peasants. The Peasants are sent to harvest wood. They start harvesting until they're full, but then don't return the lumber.

It works when I set ownership to one of the "normal" players.
The Peasants of Neutral Passive also actually can be sent to return lumber and go back to a tree to harvest, if I take full control of Neutral Passive and right-click the Lumber Mill with a peasant that is "full of lumber".

How can I make the Neutral Passive player Peasants behave like normal player Peasants, i.e. making them return their harvest and continue harvesting?

I guess I can trigger this with periodic checks, but I suspect there's an easier solution I'm missing.
here's an idea

give them the night elves wisp gather ability

that way they collect wood without ever having to chop down the tree or return limber
 
Status
Not open for further replies.
Top