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
}
Update on the LR_Teambalancer:
Removed the game setup page .xml including the buttons to balance the teams and evaluate the current teams. The new popular mod extraplayers overrides it.
Commands in the game setup:
/balance
/evaluate
/rate playername 2000
Also to clarify a common confusion:
The teams are paired by the conservative rating e.g. 1800 - 400 = 1400
The winning estimation is calculated by the raw rating e.g. 1800
Might be confusing, but my attempt to simplify it wasn't better (e.g. using only conservative).
Also if @Mentula doesn't like me to hijack the thread, just say if I should detach or so. IMO it belongs here best.
LocalRatings_Teambalancer.zip