viewtopic.php?f=147&t=37945
I've tried to examine the scripts of existing scenarios but still I wonder, how do you use the "Move To" AI order to direct a bunch of units across the map.Rudankort wrote:AI zone is mandatory for the following 5 AI orders:
Move To. The unit will move to the nearest hex in AI zone, then next nearest and until the zone is exhausted. Then its behavior will reset to Default.
Random Move To. The unit will select random hex from AI zone and move there. Then its behavior will reset to Default.
Patrol. The unit will move to the nearest hex in AI zone, then next nearest etc. untis the zone is exhausted, then it will start from the first hex again etc. in a loop.
Random Patrol. On every turn the unit will choose a random hex from AI zone and move there.
Disembark. The unit will choose a random hex from AI zone and will move and then disembark there. Then its behavior will reset to Default. This behavior is similar to "Random Move To", only disembark action is added in the end.
All the other AI behaviors do not use AI zone setting.
Let's take an example: You have a British flotilla of perhaps ten units (warships and transports for an amphibious assault). I want to direct this group from one end of the map to a beach at the other end of the map, and for the transports to disembark the land units there while the naval units provide general support (and defend themselves).
Can I designate a Zone over by the landing area?
Do the zone specified in Move To have to be within immediate reach (the unit can reach it directly and move there immediately) - or will the AI find its way toward the zone using general pathing routines?
The instances of Move To I've found in existing scenarios always involve single units, and I'm worried Move To would force each naval vessel to visit each and every hex in the zone - which obviously isn't what I want. I want the group to move over to this zone over here, and I just assume I need to make this zone big enough to have one hex for each unit...
(My hopes are that I do not have to lead each and every unit by the nose, and that I have to create an individual set of zone for each unit. That would far too quickly use up all 32 zones... I hope I can direct a group of units with these AI orders)
Do units under a Move To command respond to hostile attacks? (Would the warships engage enemies or would they plow straight through ignoring enemies they would shoot at if under Attack/Defend orders?)
I have already understood that the way you "switch back" from Move To orders to general Attack/Defend behaviour (or Disembark for paratroopers) is by setting up a zone and when it gets filled by the units you want, it sets the AI orders for the units in that zone.

