Trying to Program Campaign A.I. Gatherers

I’m trying to program the scripts for some computer factions for my upcoming campaign, but I have a couple of major issues that both have to do with gatherers.

  1. I can’t get anybody to build new Lumber or Mining Camps when they find new resources, so they always end up walking absurd distances later in the game to gather resources. The resource-found wood/gold/stone thing doesn’t work for me, and tinkering with the min/max dropoff distances had no effect.

  2. One of the factions is supposed to exclusively focus on gathering food and wood, but after exhausting enough farms, they keep trying to switch to gold or stone if they can find it. This is extremely annoying because even if I set the percentage of stone and gold gathers to 0, they still end up switching to gold at some point and abandon the farms they’re supposed to rebuild, leaving ugly patches of dirt 2 behind and preventing them from tributing the appropriate resources throughout the remainder of the mission.