Results 1 to 6 of 6

Thread: descr_campaign_ai_db question ?

Hybrid View

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

    Default descr_campaign_ai_db question ?

    I need help to understand something in this case :


    <min_entry num_turns_ceasfire="0" stance="Neutral" global_standing="0.25"/>
    <max_entry num_turns_ceasfire="10" stance="Neutral "target_human="false"/>
    <faction_attitude can_force_invade="false"/>


    What means "target_human="false" as max entry ?

  2. #2

    Default Re: descr_campaign_ai_db question ?

    i believ that it refers to an AI controlled faction.

    I believe that those three lines in themselves basically ask is AI faction 'A' Nuetral towards or has a cease fire with AI faction 'B', if so can Faction 'A' invade faction 'B', No... So it stops faction 'A' from attacking\invading faction 'B' if they are nuetral and in a cease fire.

    somthing like that...
    ...longbows, in skilled hands, could reach further than trebuchets...

  3. #3

    Default Re: descr_campaign_ai_db question ?

    Thanks for your help.

    if i understand it right "target_human="false" as max entry makes that it does not apply for human player.

    so if i remove "target_human="false" AI will respect ceasefire with human ?

  4. #4

    Default Re: descr_campaign_ai_db question ?

    Specifically, it makes an AI faction respect a ceasefire with another AI faction for 10 turns as long as that AI faction's global standing is semi-reasonable (.25 out of 1, on a -1 to 1 scale).

  5. #5

    Default Re: descr_campaign_ai_db question ?

    The variables "False" and "True" are interpreted as "0" and "1" integers respectively. Therefore you would never put a True condition under max_entry since it would include the False condition as well.

    Stances are also interpreted as integers, but since there are multiple stances you need to include the stance both in the min_entry and max_entry if you want only that particular stance to apply.

    Oh and to answer your second question, that decision is when parsed:

    IF we had a ceasfire for between 0 and 10 turns
    AND OUR stance is Neutral with the target
    AND OUR global standing is reasonably good (0.25 on a scale of -1.0 to 1.0)
    AND target is not a human
    THEN we're unable to invade.

    So yes if you removed target_human="false" then it would respect ceasefire with human for a maximum of 10 turns as long as the other conditions still applied.
    Last edited by CaesarDave; April 17, 2008 at 01:56 PM.

  6. #6

    Default Re: descr_campaign_ai_db question ?

    Thanks a lot for those explanations

Posting Permissions

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