Results 1 to 23 of 23

Thread: campaign_db_ai

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Member Member Re Berengario I's Avatar
    Join Date
    Nov 2003
    Location
    Italy
    Posts
    336

    Default Re: campaign_db_ai

    Example:
    <max_entry is_neighbour="false" />
    <max_entry is_neighbour="true" />

    The game selects ALL the factions

    <max_entry is_neighbour="true" />
    <max_entry is_neighbour="true" />

    The game selects only the factions that share borders with the actual faction processed

    <max_entry is_neighbour="false" />
    <max_entry is_neighbour="false" />

    The game selects only the factions that don't share borders with the actual faction processed

  2. #2
    Relentless Bughunter Senior Member FactionHeir's Avatar
    Join Date
    Dec 2006
    Location
    London, UK
    Posts
    8,115

    Default Re: campaign_db_ai

    Ermm concerning your post, do you mean
    <min_entry is_neighbour="false" />
    <max_entry is_neighbour="false" />

    for instance or really a duplication?
    Also, how come the default file has for example only the condition under either max or min but never under both?
    Spoiler Alert, click show to read: 

    <decision_entry>
    <!--
    if not our neighbour, and we have any settlements, and we are at the start of the game >>> minimal defense
    -->
    <min_entry num_settlements="1"/>
    <max_entry stance="Neutral" is_neighbour="false" turn_number="30"/>
    <faction_attitude defense="defend_minimal"/>
    </decision_entry>
    Want gunpowder, mongols, and timurids to appear when YOU do?
    Playing on a different timescale and never get to see the new world or just wanting to change your timescale?
    Click here to read the solution
    Annoyed at laggy battles? Check this thread out for your performance needs
    Got low fps during siege battles in particular? This tutorial is for you
    Want to play M2TW as a Vanilla experience minus many annoying bugs? Get VanillaMod Visit the forum Readme
    Need improved and faster 2H animations? Download this! (included in VanillaMod 0.93)

  3. #3
    Member Member Re Berengario I's Avatar
    Join Date
    Nov 2003
    Location
    Italy
    Posts
    336

    Default Re: campaign_db_ai

    Quote Originally Posted by FactionHeir
    Ermm concerning your post, do you mean
    <min_entry is_neighbour="false" />
    <max_entry is_neighbour="false" />

    for instance or really a duplication?
    Also, how come the default file has for example only the condition under either max or min but never under both?
    Spoiler Alert, click show to read: 

    <decision_entry>
    <!--
    if not our neighbour, and we have any settlements, and we are at the start of the game >>> minimal defense
    -->
    <min_entry num_settlements="1"/>
    <max_entry stance="Neutral" is_neighbour="false" turn_number="30"/>
    <faction_attitude defense="defend_minimal"/>
    </decision_entry>
    Because the others are already set as default as you listed in your first post. I usually rewrite them for my own practical logical understanding.

  4. #4
    Relentless Bughunter Senior Member FactionHeir's Avatar
    Join Date
    Dec 2006
    Location
    London, UK
    Posts
    8,115

    Default Re: campaign_db_ai

    Ahhhh now I understand what you mean.
    is_neighbour is set to false by default in min and true by default in max and you basically have to set it to false in max and true in min in the conditions.
    Want gunpowder, mongols, and timurids to appear when YOU do?
    Playing on a different timescale and never get to see the new world or just wanting to change your timescale?
    Click here to read the solution
    Annoyed at laggy battles? Check this thread out for your performance needs
    Got low fps during siege battles in particular? This tutorial is for you
    Want to play M2TW as a Vanilla experience minus many annoying bugs? Get VanillaMod Visit the forum Readme
    Need improved and faster 2H animations? Download this! (included in VanillaMod 0.93)

  5. #5
    Relentless Bughunter Senior Member FactionHeir's Avatar
    Join Date
    Dec 2006
    Location
    London, UK
    Posts
    8,115

    Default Re: campaign_db_ai

    OK maybe i don't understand you properly.

    The game sets is_neighbour = true by default under max.
    In this code:
    <decision_entry>
    <!--
    Not interested in factions that are not our neighbour, use defaults, may be overridden by forced/naval attacks
    -->
    <max_entry is_neighbour="false"/>
    </decision_entry>

    it then sets it to false under max too, so according to your above description, this would result in all factions being processed, but that would mean this section is going against what it should be doing?!?


    [edit]
    OK, I just gave it a bit more thought. So in default,
    min -> is_neighbour = false
    max -> is_neighbour = true

    in code:
    max -> is_neighbour = false

    yielding
    min AND max -> is_neighbour = false.

    So your above first posted code was actually meant to read min and then max instead of both!
    Last edited by FactionHeir; 04-04-2007 at 21:58.
    Want gunpowder, mongols, and timurids to appear when YOU do?
    Playing on a different timescale and never get to see the new world or just wanting to change your timescale?
    Click here to read the solution
    Annoyed at laggy battles? Check this thread out for your performance needs
    Got low fps during siege battles in particular? This tutorial is for you
    Want to play M2TW as a Vanilla experience minus many annoying bugs? Get VanillaMod Visit the forum Readme
    Need improved and faster 2H animations? Download this! (included in VanillaMod 0.93)

  6. #6
    Relentless Bughunter Senior Member FactionHeir's Avatar
    Join Date
    Dec 2006
    Location
    London, UK
    Posts
    8,115

    Default Re: campaign_db_ai

    Still on the same file but different question:

    What exactly does alliance_against do? not the one in the min/max entry but in the faction attitude entry? That one isn't commented and seems to range between 1 and 8 where mentioned at all.
    Does it by chance determine how hard it is to obtain an alliance with a faction? In that case, what is the actual range of that value and what happens if you get rid of the entry?
    Want gunpowder, mongols, and timurids to appear when YOU do?
    Playing on a different timescale and never get to see the new world or just wanting to change your timescale?
    Click here to read the solution
    Annoyed at laggy battles? Check this thread out for your performance needs
    Got low fps during siege battles in particular? This tutorial is for you
    Want to play M2TW as a Vanilla experience minus many annoying bugs? Get VanillaMod Visit the forum Readme
    Need improved and faster 2H animations? Download this! (included in VanillaMod 0.93)

  7. #7
    blaaaaaaaaaarg! Senior Member Lusted's Avatar
    Join Date
    Feb 2005
    Posts
    1,773

    Default Re: campaign_db_ai

    alliance_against refers to the size of an aliance fighting a nation, and the number refers to the number of nations in that alliance.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Single Sign On provided by vBSSO