Results 1 to 6 of 6

Thread: Campaign AI

  1. #1
    Magnar's Avatar Artifex
    Join Date
    Jul 2013
    Location
    The last place you look
    Posts
    4,370

    Default Campaign AI

    This thread is for testing out campaign ai tables and values to see what actually works and what doesn't

    Currently there are two members of Vae Victis mod working through the ai tables to shed light on it.

    Rather than keep this stashed away in our developers forum, we've decided to make a public thread so that others can also help uncover the functionality of the campaign ai. We are making our findings public with the expectation that others will help us to speed up the process. If it ends up that we are the only ones working on it then we will move our findings back to our developers forum and maybe release something if we ever get it all figured out.

    Below will be collected the results of all tests. The first thing to test is whether a value is actually being used so large entries will be important there. The next is what affect small and large/ poistive and negative values etc have. Balancing is up to in the individual mods so not relevant to this thread.

    Collection of Camapaign AI tests and results:

    table name: cai_personality_diplomatic_treaty_values
    description: determines the bonus to diplomatic relations with another faction that you have the treaty with. Positive values give bonus to diplomatic relations.
    Tests conducted:
    Spoiler Alert, click show to read: 

    Column: Trade Agreement
    Value Tested: -1000
    Result:
    - Before trade agreement relations: +5
    - After trade agreement relations: -1227
    Conclusion: Values in this table are affected by multipliers elsewhere eg cultural multipliers, before being added to diplomatic relations


    table name: cai_personality_deal_evaluation_deal_component_values
    description: Positive values give bonuses to chance to accept treaty
    Spoiler Alert, click show to read: 

    deal component tested: TRADE_AGREEMENT
    current relations: +5 neutral
    columns: neutral value
    Value Tested: 100
    Result:
    -no change, trade not accepted

    current relations: +5 neutral
    columns: unfriendly value value
    Value Tested: 100
    Result:
    -trade now accepted with neutral relations
    Last edited by Magnar; December 13, 2014 at 11:48 AM.

  2. #2
    Magnar's Avatar Artifex
    Join Date
    Jul 2013
    Location
    The last place you look
    Posts
    4,370

    Default Re: Campaign AI

    Test 1:

    table name: cai_personality_diplomatic_treaty_values

    Column: Trade Agreement
    Value Tested: -1000
    Result:
    - Before trade agreement relations: +5
    - After trade agreement relations: -1227
    Conclusion: Values in this table are affected by multipliers elsewhere eg cultural multipliers, before being added to diplomatic relations

  3. #3
    Junaidi83 de Bodemloze's Avatar Dont Mess With Me
    Join Date
    Feb 2011
    Location
    Indonesia
    Posts
    2,616

    Default Re: Campaign AI

    sound you already crack one tables by yourself
    Modding is like accursed wine, you try a sip and you ended empty the whole glass
    Under Proud Patronage of Shankbot de Bodemloze

  4. #4
    Magnar's Avatar Artifex
    Join Date
    Jul 2013
    Location
    The last place you look
    Posts
    4,370

    Default Re: Campaign AI

    test 2:

    table name: cai_personality_deal_evaluation_deal_component_values

    deal component tested: TRADE_AGREEMENT
    current relations: +5 neutral
    columns: neutral value
    Value Tested: 100
    Result:
    -no change, trade not accepted

    current relations: +5 neutral
    columns: unfriendly value value
    Value Tested: 100
    Result:
    -trade now accepted with neutral relations

  5. #5
    Junaidi83 de Bodemloze's Avatar Dont Mess With Me
    Join Date
    Feb 2011
    Location
    Indonesia
    Posts
    2,616

    Default Re: Campaign AI

    Test 1

    After some trial and error i think i found how diplomacy bonus on diplomacy screen decided

    The formula itself
    (cai_personality_diplomatic_event_values + cai_personality_diplomatic_treaty_values) - (diplomacy bonus penalty) = total diplomacy

    example
    Faction tested : Rome
    all faction set on : diplomat
    treaty : trade agreement
    cai_personality_diplomatic_event_values on trade agreement set on diplomat : 50
    cai_personality_diplomatic_treaty_values on trade agreement set on diplomat : 50
    diplomacy penalty : 25 % (seem C.A wrong on describe rome get 25 % reduce on public order on culture penalty,more like diplomacy penalty)

    result : (50 + 50) - 25 % = 75, same number both on monitor and on paper

    next experiment
    Faction tested : Athen
    all faction set on : diplomat
    treaty : trade agreement
    cai_personality_diplomatic_event_values on trade agreement set on diplomat : 50
    cai_personality_diplomatic_treaty_values on trade agreement set on diplomat : 50
    diplomacy penalty : none

    result : (50 + 50) - 0 % = 100, same number both on monitor and on paper
    Modding is like accursed wine, you try a sip and you ended empty the whole glass
    Under Proud Patronage of Shankbot de Bodemloze

  6. #6
    Gyan-Avspar's Avatar Foederatus
    Join Date
    Aug 2017
    Location
    Islamic Republic of Iran,Mazandaran,Chalus
    Posts
    44

    Default

    Useful,but Magnar,can make a tutorial about scripting and make missions?
    Last edited by Frunk; September 18, 2017 at 08:53 AM. Reason: Posts merged.

Posting Permissions

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