Hi and welcome to the forum! Unfortunately, the only way I am aware is to actually select the ship and see the garrisoned number of people. There has been multiple suggestions to modify that so it will be addressed.
Could I possibly do it here:
// get a starting rallyPoint ... will be improved later
let rallyPoint;
let rallyAccess;
const allAccesses = {};
for (const base of gameState.ai.HQ.baseManagers())
{
if (!base.anchor || !base.anchor.position())
continue;
const access = getLandAccess(gameState, base.anchor);
if (!rallyPoint)
{
rallyPoint = base.anchor.position();
rallyAccess = access;
}
if (!allAccesses[access])
allAccesses[access] = base.anchor.position();
}
(It is in attackPlan.js starting at line 40)
I am not really familiar with ai scripting, is there a way you can get the classes, like:
if (this.target.hasclass == "scout") {
// Ignore target/pick new target
}