Results 1 to 30 of 85

Thread: Campaign/Diplomacy AI

Threaded View

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

    Default Re: Campaign/Diplomacy AI

    Second thing...

    May be obvious to people but just in case it isn't--if you want a faction to start as a vassal of another faction then you can rig the campaign AI file to make them do it in the first turn.

    Say you wanted milan to be a vassal of hre for example.

    1. Make a copy of the "catholic" profile in the campaign AI file
    2. Rename it "catholic_milan"
    3. Assign milan the ai_label "catholic_milan" in the strat file.
    4. Add this clause at the top of the "catholic_milan" profile's <defend decisions> bit.


    <decision_entry>
    <min_entry stance="AtWar" target_faction="hre"/>
    <max_entry stance="AtWar" target_faction="hre" turn_number="4"/>
    <faction_attitude want_peace="true" want_be_protect="true" defense="defend_deep"/>
    </decision_entry>
    4. Repeat the process for hre, copy the catholic profile, rename the copy and assign it to hre.
    5. Add this clause to the top of the new "catholic_hre" profile's <attack decisions>


    <decision_entry>
    <min_entry stance="AtWar" target_faction="milan"/>
    <max_entry stance="AtWar" target_faction="milan" turn_number="4"/>
    <faction_attitude invade="invade_immediate" invade_priority="1500" want_offer_protect="true"/>
    </decision_entry>
    6. Start hre and milan at war.
    7. Make sure there's no milan diplomats around.
    8. Start an hre diplomat next to milan
    9. Job done.


    edit: The order in which the two factions move may matter. The faction you want to be a vassal needs to have one turn to process their decison entries and decide they want to be a protectorate. So if the boss faction moves first their diplomat will be turned down on turn 1 (turn 0 in the code). Not sure if that would affect things. If you want it to definitely happen on the first turn then the "vassal" faction has to have their turn first.
    Last edited by nikolai1962; 11-27-2007 at 03:48.
    It's not a map.

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