Board Thread:Suggestions forum/@comment-27200931-20160525215424/@comment-27509628-20170330150728

OK, I'm going to work out how I think patrols should to work:

The patrols have a 1 in 18.000 chance of spawning (different for every faction, let's assume it's Gondor) every tick, so there should spawn one every 15 min (not sure about this, probably longer).

Patrols spawn in 2 groups, consisting 5-10 soldiers (random)

Both groups will have a central point 32 blocks away from the player, and 6-8 points 64-96 blocks around that point will be randomly selected.

The patrol will walk from point to point, and they will have an extreme sight range (I think 64, but if that costs to much processing power or is to OP, I think 32-48).

When they spot an enemy, they will call every npc within their sight range (this depends, if they will call atleast the amount of enemies there are, and an additional 10% extra) and attack that enemy.

Example: Let's say Gondor spawns a patrol, consisting of 2 groups of 7 and 9 soldiers.

These patrols get a center point, and start walking.

The patrol of 7 spots an group of 9 orcs. They will try to gather 9 + (9 / 10 = 0.9 ~= 1) = 10 soldiers. The other patrol will go help them, and than walk back with what is over from there patrol to the last point, and continue there patrol.

However, if the patrol of 9 spotted the orcs, it wouldn't have called for help, as they already had 9 men.

If they spotted a group of 25 orcs, they would call for help. However, there are no other soldiers available, so they are only with 16 men. As they are heavily outnumbered, they spawn an counter invasion. The troops of the counter invasion target the orcs (probably also an invasion, if there a 25) and fight them.

Then, when the orcs are killed, the troops of the counter invasion will just wander around, and the patrols also wander around if they have been to all points.

Is this a bit what you imagined? Note: this is probably completely wrong, don't be afraid to say something isn't right or is to OP.

Also, to reduce lag, maybe the NPCs from the counter invasion and patrol could just despawn. And make 1 troop in a patrol the "leader", and only process the enemy spotting for him, and not for the others.

OP means overpowered.