Thread:Shay gman/@comment-91.246.115.124-20150907154146

zones have straight value according to (size of zone //for start, maybe customizable). zones keeping variables of all sides which forces are inside the zone, zones without forces (excluding civ) keeping variable free, free zones getting yellow priority. aggressive behavior squads getting orders to refill zones which forces straight lover than straight of zone (!not more than max zone straight!), they orders to move to zone keeping zone's priority value. occupation function filling zones according their straight //maybe make it as an option.

if (squad's (all) cargo seats > or = another squad's mens) and ( if (squad speed fast) then { if (range another squad to waypoint > or = 2000) than {   if (squad have waypoint) then {    if (another squad's order priority > or = squad order priority) then {     if (range squad to another squad < 2 * range another squad to waypoint)      then {true};    };   };  }; } else {  if (squad speed medium) then {   if (range another squad to waypoint > or = 1500) than {    if (squad have waypoint) then {     if (another squad's order priority > or = squad order priority) then {      if (range squad to another squad <  range another squad to waypoint)      then {true};

};  }   else { if range another squad to waypoint > or = 1000) than {    if (range squad to another squad < 2 / range another squad to waypoint)      then {true};   }  case :

And planes acting with airfields like choppers with they landing positions. Add to list of zones "Whole map" same as zone.

else }

Have:


 * zone 1, strength 50 //Can start with size of zone (maybe can be seted personally);, (blufor strength 0, opfor strength 0, indep strength 2)->indep, green|,
 * zone 2, strength 30, (blufor strength 4, opfor strength 0, indep strength 6)->blufor indep, red|,
 * zone 3, strength 15, (blufor strength 0, opfor strength 0, indep strength 0)->free,-> yellow|,

Blufor: Independent:
 * Alpha 1-1, infantry, 2 units, strength 4, aggressive|
 * Alpha 1-1, infantry, 6 units, strength 12, aggressive|
 * Alpha 1-2, infantry, 3 units, strength 6, defensive //->not to CC;|
 * Bravo 1-1, unarmed helicopter, 8 cargo seats, strength 10, aggressive|
 * Charlie 1-1, infantry, 4 units, strength 8, aggressive|
 * Charlie 1-2, infantry, 1 units, strength 2, aggressive|
 * Charlie 1-3, mechanized, 6 units, 8 cargo seats, strength 22, aggressive|
 * Delta 1-1, indep, recon infantry, 2 units, strength 6, aggressive|

CC:

Blufor: Independent:
 * zone 1, indep, green //priority;, need 44 strength|,
 * zone 2, blufor, red, reinforce 26 strength|,
 * zone 2, indep, red, reinforce 28 strength|,
 * zone 3, blufor, yellow, reinforce 15 strength|,
 * zone 3, opfor, yellow, reinforce 15 strength|,
 * zone 3, indep, yellow, reinforce 15 strength|;
 * Alpha 1-1, slow, 4 //straight, t 2 //slow=mens;|,
 * Alpha 1-1, slow, 12, t 6|,
 * Bravo 1-1, fast, 10, t 8 //fast=cargo seats;|,
 * Charlie 1-1, slow, 8, t 4|,
 * Charlie 1-2, slow, 2, t 1|,
 * Charlie 1-3, medium, 22, t 2 //medium=cargo seats;|,
 * Delta 1-1, slow, 6, t 2|.

Action: if zone staying with forces straight lower than 20% of zone straight it getting 1 priority up (All zones). if zone changing priority, (side) all orders with the zone rewriting!

CC: Independent:
 * zone 1, closest units for 44 //straight: Alpha 1-1, Bravo 1-1, Charle 1-3 -move, green|,
 * zone 2, closest units for 28: Alpha 1-1, Charle 1-3 -move, red|,
 * zone 3, closest units for 15: Bravo 1-1, 