Results 1 to 2 of 2

Thread: Campaign Ai process

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default Campaign Ai process

    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.
    Last edited by Quark; August 14, 2008 at 10:38 AM.

    To err is human, but to really foul things up you need a computer.
    Paul Ehrlich

  2. #2
    xeryx's Avatar Follow the White Rabbit
    Join Date
    Nov 2006
    Location
    Wyoming, Usa
    Posts
    4,337

    Default Re: Campaign Ai process

    "Continue=True or false"

    is uses strictly for sequential reading of the file, if you want the Ai to make more decisions the use true, if not then false
    Proudly patronized by B. Ward Click Sig Logo for Downloads, Click forums here and here
    "Do not try and bend the spoon, that is impossible, instead only try and realize the truth.
    There is no spoon, and you will see, it is not the spoon that bends, only yourself."-The Matrix


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •