[Question] AI scripting - Naval transport

Post Reply
W4lth3r
Posts: 32
Joined: Fri Jan 15, 2021 7:33 pm

[Question] AI scripting - Naval transport

Post by W4lth3r »

Hello all,

I'm currently scripting the AI for one of my campaigns. There I would require the AI to naval transport a bunch of units through naval loops to their destination.

So far I managed to transport the regular core units (detachments, divisions, cavalry div) as well as an HQ. It looks like though as if the AI cannot transport Garrison units.
Reading the naval transport script parameter descriptions I found the limitations around non-core units (Garrisons are not listed there) and the strength requirement of >5. After increasing Garrisons max strength to 6, the AI still doesn't transport them.

Is there a way to make the AI transport Garrisons?

Thanks,
Walther
User avatar
Hubert Cater
Posts: 5988
Joined: Mon Jul 22, 2013 11:42 am
Contact:

Re: [Question] AI scripting - Naval transport

Post by Hubert Cater »

This does look to be the case, and unfortunately my coding notes indicate that too many Garrisons were being added to these plans, so they've been purposefully left out for now so the plans could maintain priority on 'core' units.
W4lth3r
Posts: 32
Joined: Fri Jan 15, 2021 7:33 pm

Re: [Question] AI scripting - Naval transport

Post by W4lth3r »

Alright, I will let the AI cheat and just spawn them in then.

But maybe it would be good to have some override possibility so that for these exceptions the AI could still do it. Also, the strength limitation would stop garrison transports anyways, with them being capped at 5 by default, no?
Post Reply

Return to “MODS and Scenarios”