Looking at things like these two decisions
<decision_entry>
<!-- IF AT WAR AND WEAKER > DEFEND DEEP -->
<min_entry stance="AtWar" is_neighbour="true"/>
<max_entry stance="AtWar" military_balance="0.75" is_neighbour="true"/>
<faction_attitude at_war="true" defense="defend_deep" continue="true"/>
</decision_entry>
<decision_entry>
<!-- IF AT WAR AND EVEN > DEFEND FORTIFIED -->
<min_entry stance="AtWar" military_balance="0.75" is_neighbour="true"/>
<max_entry stance="AtWar" military_balance="2.75" is_neighbour="true"/>
<faction_attitude at_war="true" defense="defend_fortified" continue="true"/>
</decision_entry>
Should not continue="true" be continue="false" in these cases, since if the first decision entries min/max criteria are met, should you then not just move on to the next target.
Lets set up a scenario: I am a dim, but attractive spainish Ai, to the north of the region I am thinking about there is a region controlled by the evil human French, to the east a pathetic rebel, to the south a hated Moor, to the west safety as I control that region.
So if continue=true is set, do I go down the conditions, finding several that match my situation, and store that last one which matches my needs, as I check by region, in which case the order in the defend decisions has to be Slave, Ai, Human (as they are the ones I don't trust and should defend the most against), or do I check by faction, in which case continue=false makes sense as once I have found my decison, there is no point carring on, but then I end up with three defend decisions, so which do I pick.
Also does anyone know what makes up production_balance, is it a total of faction unit pools? If so is there any way of seperating out fleets from land units?
Edit:
Has anyone ever figured out what most_desirable is? as it exists in vanilla Ai, but not with pts_desire, so its not a total of these points.
:hmmm:maybe its victory condition locations
According to CalavryCmdr a faction can be AtWar=false and num_enemies =2 at the same time. Has anyone figured out how this is so? In other words can you use num_enemies in max criteria, as this may end up with a passive Ai.





Reply With Quote





