Results 1 to 15 of 15

Thread: Alliances

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    TheFirstONeill's Avatar Father of Thera
    Join Date
    May 2007
    Location
    Knutsford Cheshire, England
    Posts
    16,172

    Default Alliances

    Is it possble to code it so that factions can only ally with other factions of the same religion or culture ?

    cheers
    Jason

    House of Wilpuri :By the Patronage of Elrond: Patron of Caki : Aduellist : Borissomeone
    Proud Creator of Thera, Legacy of the Great Torment: Opifex :

  2. #2
    Gigantus's Avatar I am not special - I am a limited edition.
    Moderator Emeritus Administrator Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    52,682
    Blog Entries
    35

    Default Re: Alliances

    You could set the faction standings in descr_strat to absolute negative between different religions.










  3. #3
    TheFirstONeill's Avatar Father of Thera
    Join Date
    May 2007
    Location
    Knutsford Cheshire, England
    Posts
    16,172

    Default Re: Alliances

    Quote Originally Posted by gigantus View Post
    You could set the faction standings in descr_strat to absolute negative between different religions.
    absolute negative ? so what value would that be -1 ?

    House of Wilpuri :By the Patronage of Elrond: Patron of Caki : Aduellist : Borissomeone
    Proud Creator of Thera, Legacy of the Great Torment: Opifex :

  4. #4
    Gigantus's Avatar I am not special - I am a limited edition.
    Moderator Emeritus Administrator Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    52,682
    Blog Entries
    35

    Default Re: Alliances

    That should do just fine.

    On the other hand that might prevent even the negotiation for a trade agreement and will quickly trigger wars. Haven't tried it myself, but if you do the settings between religions then you will most certainly end up with religious wars.
    Last edited by Gigantus; May 03, 2008 at 10:22 PM.










  5. #5
    TheFirstONeill's Avatar Father of Thera
    Join Date
    May 2007
    Location
    Knutsford Cheshire, England
    Posts
    16,172

    Default Re: Alliances

    I was looking thru the campaign AI files hping there was an easy setting in there, will need to look at little deeper into it

    cheers for the replies
    Jason

    House of Wilpuri :By the Patronage of Elrond: Patron of Caki : Aduellist : Borissomeone
    Proud Creator of Thera, Legacy of the Great Torment: Opifex :

  6. #6
    Gigantus's Avatar I am not special - I am a limited edition.
    Moderator Emeritus Administrator Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    52,682
    Blog Entries
    35

    Default Re: Alliances

    Quote Originally Posted by TheFirstONeill View Post
    I was looking thru the campaign AI files hping there was an easy setting in there, will need to look at little deeper into it

    cheers for the replies
    Jason
    In matters campaign AI you should get in touch with xeryx










  7. #7
    Lusted's Avatar Look to the stars
    Join Date
    Jan 2005
    Location
    Brighton, Sussex, England.
    Posts
    18,184

    Default Re: Alliances

    You could infact do very simple decision entries in the AI file to prevent factions of one religion allying with factions of another religion. The Ai file explains itself pretty well at the top.
    Creator of:
    Lands to Conquer Gold for Medieval II: Kingdoms
    Terrae Expugnandae Gold Open Beta for RTW 1.5
    Proud ex-Moderator and ex-Administrator of TWC from Jan 06 to June 07
    Awarded the Rank of Opifex for outstanding contributions to the TW mod community.
    Awarded the Rank of Divus for oustanding work during my times as Administrator.

  8. #8
    TheFirstONeill's Avatar Father of Thera
    Join Date
    May 2007
    Location
    Knutsford Cheshire, England
    Posts
    16,172

    Default Re: Alliances

    Lusted,
    Thanks been tip toeing thru the file, and have a made some notes on what to try, I was hoping you would see this thread, as I know you are the AI meister, its your latest version that im tinkering with.

    thanks again Lusted

    cheers
    Jason

    House of Wilpuri :By the Patronage of Elrond: Patron of Caki : Aduellist : Borissomeone
    Proud Creator of Thera, Legacy of the Great Torment: Opifex :

  9. #9
    Lusted's Avatar Look to the stars
    Join Date
    Jan 2005
    Location
    Brighton, Sussex, England.
    Posts
    18,184

    Default Re: Alliances

    Well there's already stuff in my mod to reduce the likelihood of Islamic and Catholic factions allying with each other, but the whole alliance against thing messes that up somewhat.
    Creator of:
    Lands to Conquer Gold for Medieval II: Kingdoms
    Terrae Expugnandae Gold Open Beta for RTW 1.5
    Proud ex-Moderator and ex-Administrator of TWC from Jan 06 to June 07
    Awarded the Rank of Opifex for outstanding contributions to the TW mod community.
    Awarded the Rank of Divus for oustanding work during my times as Administrator.

  10. #10

    Default Re: Alliances

    @TheFirstONeill,

    I don't know but I think this was already in Lusted's CAI, or maybe I added it from the Crusades CAI. Add this entry below to the Catholic label.

    <decision_entry>
    <!--
    DON'T ALLY WITH ISLAMIC FACTIONS
    -->
    <min_entry target_religion="islam"/>
    <max_entry target_religion="islam"/>
    <faction_attitude want_ally="false" pts_alliance="-50" continue="true"/>
    </decision_entry>

    For islamic factions you can add a similar entry like so:

    <decision_entry>
    <!--
    DON'T ALLY WITH CATHOLIC FACTIONS
    -->
    <min_entry target_religion="catholic"/>
    <max_entry target_religion="catholic"/>
    <faction_attitude want_ally="false" pts_alliance="-50" continue="true"/>
    </decision_entry>

    Personally I do not use an Orthodox label I just make them use the Default label. But I'm sure you can see how easy it would be to copy the above for Orthodox.

    All the best
    Dave

  11. #11

    Default Re: Alliances

    @Snipafist,

    Before I used these parameters I was getting the Moors allied to the Papal States and stupid stuff like that Also I can remember how annoying the Turks used to be. Sending their diplomats all over the place and making alliances with half of christendom.. We all have our own preferences though of course.

    Dave

  12. #12
    TheFirstONeill's Avatar Father of Thera
    Join Date
    May 2007
    Location
    Knutsford Cheshire, England
    Posts
    16,172

    Default Re: Alliances

    Im tinkering on a fantasy mod, so all the religions are different and I want to make cultural power bases, so I'm trying to use religion to stop cross culture alliances, Ive added two new ai_labels, Pagan and Meso, and have added

    <decision_entry>
    <!--
    DON'T ALLY WITH PAGAN FACTIONS
    -->
    <min_entry target_religion="pagan"/>
    <max_entry target_religion="pagan"/>
    <faction_attitude want_ally="false" pts_alliance="-150" continue="true"/>
    </decision_entry>
    <decision_entry>
    <!--
    DON'T WANT ALLY WITH ISLAMIC FACTIONS
    -->
    <min_entry target_religion="islam"/>
    <max_entry target_religion="islam"/>
    <faction_attitude want_ally="false" pts_alliance="-150" continue="true"/>
    </decision_entry>

    <decision_entry>
    <!--
    DON'T WANT ALLY WITH ORTHODOX/SUN GOD FACTIONS
    -->
    <min_entry target_religion="orthodox"/>
    <max_entry target_religion="orthodox"/>
    <faction_attitude want_ally="false" pts_alliance="-150" continue="true"/>
    </decision_entry>

    to each ai-label (different versions per religions), so they can only ally with own religion, I will test it and let you know how it goes,

    cheers for the advice guys, have rep'ed you all

    cheers
    Jason
    Last edited by TheFirstONeill; May 04, 2008 at 08:43 AM.

    House of Wilpuri :By the Patronage of Elrond: Patron of Caki : Aduellist : Borissomeone
    Proud Creator of Thera, Legacy of the Great Torment: Opifex :

  13. #13

    Default Re: Alliances

    I never liked the idea of outright barring cross-religious alliances. For instance, Spain throughout most of the medieval period was a constant balancing act between Portugal, the Moors, and the Spaniards (all in various states of unification), with Christians and Muslims forming temporary alliances when it suited them. The same is true of some of the medieval states predating on the Byzantines and forming temporary alliances with the Turks, and with some Muslim states allying themselves with the crusaders as a means of getting a political leg-up over their enemies who were in the crusaders' cross-hairs. Disallowing that in M2TW would be a shame.

  14. #14

    Default Re: Alliances

    Well, it's not hard to ensure the papal states at least will never ally with Muslims (which, if you don't do it, leads to some bizarre crusading behavior, let me tell you), but I'd advise against similar restrictions on other AIs.

  15. #15
    TheFirstONeill's Avatar Father of Thera
    Join Date
    May 2007
    Location
    Knutsford Cheshire, England
    Posts
    16,172

    Default Re: Alliances

    well after 50 turns into the testing I am getting cross cultural allaiances, but only if one faction is dominating the other, so this appears to fit what I want. If both faction are on an equal standing they do not ally.

    Before the changes, 10 turns in, everyone was allying with each other making it all rather dull, so the solution appears to be working, thanks for the advice gentlemen

    cheers
    Jason

    House of Wilpuri :By the Patronage of Elrond: Patron of Caki : Aduellist : Borissomeone
    Proud Creator of Thera, Legacy of the Great Torment: Opifex :

Posting Permissions

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