Page 1 of 1
AIPowerAffinity?
Posted: Tue Jun 14, 2016 7:09 pm
by johandenver2
What does AIPowerAffinity mean when used in brigade unitfiles?
Posted: Wed Jun 15, 2016 3:44 am
by Teatime
Basically, It is used to penalise or boost units like Militia that are outside or inside their home state
So for example Virginia Militia has these 2 attributes
HomeArea = $VA
AIPowerAffinity = $VA
So if it is outside VA then it will get penalties as defined in the GameLogic.opt file
// *********************************************************
// ************ HOME AREA PENALTY/BONUS ****************
// *********************************************************
// see HomeArea at the model level
areaOutsideHomeAbi = -1 // -1 level to abies (can render them inactive)
areaOutsideHomeStr = -2 // Strategic
areaOutsideHomeOff = -2 // Offensive
areaOutsideHomeDef = -1 // Defensive
areaOutsideHomeTQ = -3 // TQ (and 5 time that to max cohesion)
areaOutsideHomeMR = 66 // Move Ratio Coeff (x0.66) // [changed 120921 from 0.33]
cohLocalAreaBonus = 10 // bonus to max cohesion if at home
Posted: Wed Jun 15, 2016 3:47 am
by Teatime
This has more info as it may go beyond my explanation above
http://www.ageod-forum.com/archive/index.php/t-41945.html
If you ask the question in the general section you will probably get a more detailed answer than I can give as the one I gave may relate more to home area whereas the AIPowerAffinity may relate more to how the AI manages militia type units
Posted: Wed Jun 15, 2016 6:22 am
by johandenver2
Thanks!