Page 2 of 4 FirstFirst 1234 LastLast
Results 21 to 40 of 82

Thread: Archaon's Modification Files: Player restrictions on attacking aliies [M2TW & M2TW-K] - PLUS ALL OTHER MODS! **Now with some scripts available for added realism and AI assistance**

Hybrid View

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

    Default Re: Archaon's Loyal Allies Modification Files [M2TW & M2TW-K] - PLUS ALL OTHER MODS! **Now with some scripts available for added realism and AI assistance**

    ...
    Read the OP - there are many ways the Alliance can break, all without a diplomats involvement or scripts..

  2. #2

    Default Re: Archaon's Loyal Allies Modification Files [M2TW & M2TW-K] - PLUS ALL OTHER MODS! **Now with some scripts available for added realism and AI assistance**

    Quote Originally Posted by Archaon View Post
    ...
    Read the OP - there are many ways the Alliance can break, all without a diplomats involvement or scripts..
    I am sorry, I am not implying that the mod is not working. As far as I can tell, the majority of the stated functionality are working. But I -did- read the mod readme. "For the AI and player alike, there are many other ways the Alliance can break", but unless I am understanding this incorrectly, breaking an alliance is the precondition for an attack that affects the player and AI alike. The AI cannot attack without breaking the alliance first, which would require a diplomatic exchange initiated by either the player or the AI or a similar action which makes possible the breaking of the alliance (eg. allies going to war with each other, going to war with one of the betraying faction's ally, etc.). Certain conditions are in place to minimize the AI's ability to break alliance with and attack the player in the same turn in one fell swoop. In the scenario I am describing, none of that happened. The French just marched their army up to one of my cities, and betrayed the alliance. Now I did have a couple of merchants in French territory, but while that can be grounds for ticking them off, it doesn't allow them to attack without breaking the alliance in the preceding turn or using a diplomat in the same turn, does it?

  3. #3
    Werebear's Avatar For Mother Russia
    Join Date
    Jan 2007
    Location
    Russia, Moscow
    Posts
    2,519

    Default Re: Archaon's Loyal Allies Modification Files [M2TW & M2TW-K] - PLUS ALL OTHER MODS! **Now with some scripts available for added realism and AI assistance**

    Quote Originally Posted by Archaon View Post
    ...
    Read the OP - there are many ways the Alliance can break, all without a diplomats involvement or scripts..
    You dont understand what we are talking about... AI can break this file limitation

    As i say When i disallow diplomats to make conversation with enemy, enemy still can conversation with me, but i cant with enemy...

    similarly thing with inquisitors... pope still can use them against allies...

  4. #4

    Default Re: Archaon's Loyal Allies Modification Files [M2TW & M2TW-K] - PLUS ALL OTHER MODS! **Now with some scripts available for added realism and AI assistance**

    Quote Originally Posted by isilendil View Post
    You dont understand what we are talking about... AI can break this file limitation

    As i say When i disallow diplomats to make conversation with enemy, enemy still can conversation with me, but i cant with enemy...

    similarly thing with inquisitors... pope still can use them against allies...
    I am not sure we are talking about the same issue. Can you maybe clarify what you mean when you say you "disallow diplomats to make conversation with [the] enemy, [but the] enemy still can conversation with you"? This mod does not prevent allies from breaking alliances, or initiating negotiations with your faction, and as far as I can tell, makes no changes regarding inquisitors. But I am not sure if that is what you are referring to.

  5. #5

    Default Re: Archaon's Loyal Allies Modification Files [M2TW & M2TW-K] - PLUS ALL OTHER MODS! **Now with some scripts available for added realism and AI assistance**

    Quote Originally Posted by yupper99 View Post
    I am not sure we are talking about the same issue. Can you maybe clarify what you mean when you say you "disallow diplomats to make conversation with [the] enemy, [but the] enemy still can conversation with you"? This mod does not prevent allies from breaking alliances, or initiating negotiations with your faction, and as far as I can tell, makes no changes regarding inquisitors. But I am not sure if that is what you are referring to.
    I didn't make diplomats unable to start conversations. It was advice that i gave to a member because 'his' preference was to keep alliances even stronger than my mod makes it.

    Quote Originally Posted by Archaon
    For the AI and player alike, there are many other ways the Alliance can break. For instance, an allied factions diplomat receives a terrible proposal, they inform you an alliance is no longer necessary! happens all the time!
    Other ways the alliance can break, is if two factions are allied, but one goes to war with a faction the other ally is allied to, then the original 2 factions will break their alliance.

    Then the cold war tactics could also break to alliance, (AS IT SHOULD), Assassins, spies, merchant, any of these fail a mission or acquisition, it is highly possible your ally will find out an not be too pleased.
    This tells you that ALL agents are left un modified, they can still break an alliance, and set to Neutral OR in you game, betray the alliance.

    Also, if you use the scripts, they break alliances too. but i guess you are not using the scripts.

    EDIT: added to the OP;
    NOTE: THIS DOES NOT MAKE UNBREAKABLE ALLIANCES - Read the entire first post, and the thread itself for more info.

  6. #6
    Smeel's Avatar Semisalis
    Join Date
    Feb 2008
    Location
    Sweden
    Posts
    468

    Default Re: Archaon's Loyal Allies Modification Files [M2TW & M2TW-K] - PLUS ALL OTHER MODS! **Now with some scripts available for added realism and AI assistance**

    Amazing Work, This is one of the greatest additions to the m2tw engine so far!

    On Idéas for new scripts, I can't stop dreaming about a potential succession war. Is it possible to script the AI to break an alliance and declare war if you have an Marriage alliance, and the old king dies, and the new one have low authority or something like that? Then you could make the other allies chose sides too.

    Another idea which isn't directly connected to your mod, but since you seem to be a really good coder, is there a way to get easier cease fire, after say 5 years, 10 years etc ect? Most wars didn't rage anywhere near 10 years, and After that long time, both parties should be seeking a truce. is this possible?

    Keep up the amazing work

    For animals, the entire universe has been neatly divided into things to
    (a) mate with, (b) eat, (c) run away from, and (d) rocks.

  7. #7
    Titus le Chmakus's Avatar Biarchus
    Join Date
    Aug 2014
    Location
    Skiing on the Spine of the World or hunting in Lurkwood
    Posts
    648

    Default Re: Archaon's Loyal Allies Modification Files [M2TW & M2TW-K] - PLUS ALL OTHER MODS! **Now with some scripts available for added realism and AI assistance**

    Quote Originally Posted by Archaon View Post

    NOTE: THIS DOES NOT MAKE UNBREAKABLE ALLIANCES - Read the entire first post, and the thread itself for more info.
    Is there any way to do so ? I would need a script for 3 of my factions. Does it have to be in descr_factions_standings or in campaign_script ?

  8. #8
    Smeel's Avatar Semisalis
    Join Date
    Feb 2008
    Location
    Sweden
    Posts
    468

    Default Re: Archaon's Loyal Allies Modification Files [M2TW & M2TW-K] - PLUS ALL OTHER MODS! **Now with some scripts available for added realism and AI assistance**

    Okay, well i guess mods like DLV and the such has enough script-length as it is....

    For animals, the entire universe has been neatly divided into things to
    (a) mate with, (b) eat, (c) run away from, and (d) rocks.

  9. #9

    Default Re: Archaon's Loyal Allies Modification Files [M2TW & M2TW-K] - PLUS ALL OTHER MODS! **Now with some scripts available for added realism and AI assistance**

    Because it is a lots of boring work to write the "New Leader, new views" - Script, I want to share it
    with the community. It is for Vanilla for all 17 playable Factions.

    This 5 factions aren't included:

    timurids
    aztecs
    papal_state
    mongols
    slave

    I hope it will help you.
    I change the Authority, because it does not often happen, that a Faction Leader has 2 or lower Authority. So I changed it to 3

    regards weissnicht

    Code:
    ;---------- England ----------
    
    monitor_event BecomesFactionLeader FactionType england
        and DiplomaticStanceFromFaction france = Allied
        and I_FactionLeaderAttribute england Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance england france neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType england
        and DiplomaticStanceFromFaction hre = Allied
        and I_FactionLeaderAttribute england Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance england hre neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType england
        and DiplomaticStanceFromFaction spain = Allied
        and I_FactionLeaderAttribute england Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance england spain neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType england
        and DiplomaticStanceFromFaction venice = Allied
        and I_FactionLeaderAttribute england Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance england venice neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType england
        and DiplomaticStanceFromFaction sicily = Allied
        and I_FactionLeaderAttribute england Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance england sicily neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType england
        and DiplomaticStanceFromFaction milan = Allied
        and I_FactionLeaderAttribute england Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance england milan neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType england
        and DiplomaticStanceFromFaction scotland = Allied
        and I_FactionLeaderAttribute england Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance england scotland neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType england
        and DiplomaticStanceFromFaction byzantium = Allied
        and I_FactionLeaderAttribute england Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance england byzantium neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType england
        and DiplomaticStanceFromFaction russia = Allied
        and I_FactionLeaderAttribute england Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance england russia neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType england
        and DiplomaticStanceFromFaction moors = Allied
        and I_FactionLeaderAttribute england Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance england moors neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType england
        and DiplomaticStanceFromFaction turks = Allied
        and I_FactionLeaderAttribute england Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance england turks neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType england
        and DiplomaticStanceFromFaction egypt = Allied
        and I_FactionLeaderAttribute england Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance england egypt neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType england
        and DiplomaticStanceFromFaction denmark = Allied
        and I_FactionLeaderAttribute england Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance england denmark neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType england
        and DiplomaticStanceFromFaction portugal = Allied
        and I_FactionLeaderAttribute england Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance england portugal neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType england
        and DiplomaticStanceFromFaction poland = Allied
        and I_FactionLeaderAttribute england Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance england poland neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType england
        and DiplomaticStanceFromFaction hungary = Allied
        and I_FactionLeaderAttribute england Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance england hungary neutral
    end_monitor
    
    ;---------- France ----------
    
    monitor_event BecomesFactionLeader FactionType france
        and DiplomaticStanceFromFaction england = Allied
        and I_FactionLeaderAttribute france Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance france england neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType france
        and DiplomaticStanceFromFaction hre = Allied
        and I_FactionLeaderAttribute france Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance france hre neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType france
        and DiplomaticStanceFromFaction spain = Allied
        and I_FactionLeaderAttribute france Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance france spain neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType france
        and DiplomaticStanceFromFaction venice = Allied
        and I_FactionLeaderAttribute france Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance france venice neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType france
        and DiplomaticStanceFromFaction sicily = Allied
        and I_FactionLeaderAttribute france Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance france sicily neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType france
        and DiplomaticStanceFromFaction milan = Allied
        and I_FactionLeaderAttribute france Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance france milan neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType france
        and DiplomaticStanceFromFaction scotland = Allied
        and I_FactionLeaderAttribute france Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance france scotland neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType france
        and DiplomaticStanceFromFaction byzantium = Allied
        and I_FactionLeaderAttribute france Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance france byzantium neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType france
        and DiplomaticStanceFromFaction russia = Allied
        and I_FactionLeaderAttribute france Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance france russia neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType france
        and DiplomaticStanceFromFaction moors = Allied
        and I_FactionLeaderAttribute france Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance france moors neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType france
        and DiplomaticStanceFromFaction turks = Allied
        and I_FactionLeaderAttribute france Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance france turks neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType france
        and DiplomaticStanceFromFaction egypt = Allied
        and I_FactionLeaderAttribute france Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance france egypt neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType france
        and DiplomaticStanceFromFaction denmark = Allied
        and I_FactionLeaderAttribute france Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance france denmark neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType france
        and DiplomaticStanceFromFaction portugal = Allied
        and I_FactionLeaderAttribute france Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance france portugal neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType france
        and DiplomaticStanceFromFaction poland = Allied
        and I_FactionLeaderAttribute france Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance france poland neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType france
        and DiplomaticStanceFromFaction hungary = Allied
        and I_FactionLeaderAttribute france Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance france hungary neutral
    end_monitor
    
    ;---------- HRE ----------
    
    monitor_event BecomesFactionLeader FactionType hre
        and DiplomaticStanceFromFaction england = Allied
        and I_FactionLeaderAttribute hre Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance hre england neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType hre
        and DiplomaticStanceFromFaction france = Allied
        and I_FactionLeaderAttribute hre Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance hre france neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType hre
        and DiplomaticStanceFromFaction spain = Allied
        and I_FactionLeaderAttribute hre Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance hre spain neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType hre
        and DiplomaticStanceFromFaction venice = Allied
        and I_FactionLeaderAttribute hre Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance hre venice neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType hre
        and DiplomaticStanceFromFaction sicily = Allied
        and I_FactionLeaderAttribute hre Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance hre sicily neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType hre
        and DiplomaticStanceFromFaction milan = Allied
        and I_FactionLeaderAttribute hre Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance hre milan neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType hre
        and DiplomaticStanceFromFaction scotland = Allied
        and I_FactionLeaderAttribute hre Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance hre scotland neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType hre
        and DiplomaticStanceFromFaction byzantium = Allied
        and I_FactionLeaderAttribute hre Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance hre byzantium neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType hre
        and DiplomaticStanceFromFaction russia = Allied
        and I_FactionLeaderAttribute hre Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance hre russia neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType hre
        and DiplomaticStanceFromFaction moors = Allied
        and I_FactionLeaderAttribute hre Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance hre moors neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType hre
        and DiplomaticStanceFromFaction turks = Allied
        and I_FactionLeaderAttribute hre Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance hre turks neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType hre
        and DiplomaticStanceFromFaction egypt = Allied
        and I_FactionLeaderAttribute hre Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance hre egypt neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType hre
        and DiplomaticStanceFromFaction denmark = Allied
        and I_FactionLeaderAttribute hre Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance hre denmark neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType hre
        and DiplomaticStanceFromFaction portugal = Allied
        and I_FactionLeaderAttribute hre Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance hre portugal neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType hre
        and DiplomaticStanceFromFaction poland = Allied
        and I_FactionLeaderAttribute hre Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance hre poland neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType hre
        and DiplomaticStanceFromFaction hungary = Allied
        and I_FactionLeaderAttribute hre Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance hre hungary neutral
    end_monitor
    
    ;---------- Spain ----------
    
    monitor_event BecomesFactionLeader FactionType spain
        and DiplomaticStanceFromFaction england = Allied
        and I_FactionLeaderAttribute spain Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance spain england neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType spain
        and DiplomaticStanceFromFaction france = Allied
        and I_FactionLeaderAttribute spain Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance spain france neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType spain
        and DiplomaticStanceFromFaction hre = Allied
        and I_FactionLeaderAttribute spain Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance spain hre neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType spain
        and DiplomaticStanceFromFaction venice = Allied
        and I_FactionLeaderAttribute spain Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance spain venice neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType spain
        and DiplomaticStanceFromFaction sicily = Allied
        and I_FactionLeaderAttribute spain Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance spain sicily neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType spain
        and DiplomaticStanceFromFaction milan = Allied
        and I_FactionLeaderAttribute spain Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance spain milan neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType spain
        and DiplomaticStanceFromFaction scotland = Allied
        and I_FactionLeaderAttribute spain Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance spain scotland neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType spain
        and DiplomaticStanceFromFaction byzantium = Allied
        and I_FactionLeaderAttribute spain Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance spain byzantium neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType spain
        and DiplomaticStanceFromFaction russia = Allied
        and I_FactionLeaderAttribute spain Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance spain russia neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType spain
        and DiplomaticStanceFromFaction moors = Allied
        and I_FactionLeaderAttribute spain Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance spain moors neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType spain
        and DiplomaticStanceFromFaction turks = Allied
        and I_FactionLeaderAttribute spain Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance spain turks neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType spain
        and DiplomaticStanceFromFaction egypt = Allied
        and I_FactionLeaderAttribute spain Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance spain egypt neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType spain
        and DiplomaticStanceFromFaction denmark = Allied
        and I_FactionLeaderAttribute spain Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance spain denmark neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType spain
        and DiplomaticStanceFromFaction portugal = Allied
        and I_FactionLeaderAttribute spain Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance spain portugal neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType spain
        and DiplomaticStanceFromFaction poland = Allied
        and I_FactionLeaderAttribute spain Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance spain poland neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType spain
        and DiplomaticStanceFromFaction hungary = Allied
        and I_FactionLeaderAttribute spain Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance spain hungary neutral
    end_monitor
    
    ;---------- Venice ----------
    
    monitor_event BecomesFactionLeader FactionType venice
        and DiplomaticStanceFromFaction england = Allied
        and I_FactionLeaderAttribute venice Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance venice england neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType venice
        and DiplomaticStanceFromFaction france = Allied
        and I_FactionLeaderAttribute venice Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance venice france neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType venice
        and DiplomaticStanceFromFaction spain = Allied
        and I_FactionLeaderAttribute venice Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance venice spain neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType venice
        and DiplomaticStanceFromFaction hre = Allied
        and I_FactionLeaderAttribute venice Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance venice hre neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType venice
        and DiplomaticStanceFromFaction sicily = Allied
        and I_FactionLeaderAttribute venice Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance venice sicily neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType venice
        and DiplomaticStanceFromFaction milan = Allied
        and I_FactionLeaderAttribute venice Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance venice milan neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType venice
        and DiplomaticStanceFromFaction scotland = Allied
        and I_FactionLeaderAttribute venice Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance venice scotland neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType venice
        and DiplomaticStanceFromFaction byzantium = Allied
        and I_FactionLeaderAttribute venice Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance venice byzantium neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType venice
        and DiplomaticStanceFromFaction russia = Allied
        and I_FactionLeaderAttribute venice Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance venice russia neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType venice
        and DiplomaticStanceFromFaction moors = Allied
        and I_FactionLeaderAttribute venice Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance venice moors neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType venice
        and DiplomaticStanceFromFaction turks = Allied
        and I_FactionLeaderAttribute venice Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance venice turks neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType venice
        and DiplomaticStanceFromFaction egypt = Allied
        and I_FactionLeaderAttribute venice Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance venice egypt neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType venice
        and DiplomaticStanceFromFaction denmark = Allied
        and I_FactionLeaderAttribute venice Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance venice denmark neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType venice
        and DiplomaticStanceFromFaction portugal = Allied
        and I_FactionLeaderAttribute venice Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance venice portugal neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType venice
        and DiplomaticStanceFromFaction poland = Allied
        and I_FactionLeaderAttribute venice Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance venice poland neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType venice
        and DiplomaticStanceFromFaction hungary = Allied
        and I_FactionLeaderAttribute venice Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance venice hungary neutral
    end_monitor
    
    ;---------- Sicily ----------
    
    monitor_event BecomesFactionLeader FactionType sicily
        and DiplomaticStanceFromFaction england = Allied
        and I_FactionLeaderAttribute sicily Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance sicily england neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType sicily
        and DiplomaticStanceFromFaction france = Allied
        and I_FactionLeaderAttribute sicily Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance sicily france neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType sicily
        and DiplomaticStanceFromFaction spain = Allied
        and I_FactionLeaderAttribute sicily Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance sicily spain neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType sicily
        and DiplomaticStanceFromFaction venice = Allied
        and I_FactionLeaderAttribute sicily Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance sicily venice neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType sicily
        and DiplomaticStanceFromFaction hre = Allied
        and I_FactionLeaderAttribute sicily Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance sicily hre neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType sicily
        and DiplomaticStanceFromFaction milan = Allied
        and I_FactionLeaderAttribute sicily Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance sicily milan neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType sicily
        and DiplomaticStanceFromFaction scotland = Allied
        and I_FactionLeaderAttribute sicily Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance sicily scotland neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType sicily
        and DiplomaticStanceFromFaction byzantium = Allied
        and I_FactionLeaderAttribute sicily Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance sicily byzantium neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType sicily
        and DiplomaticStanceFromFaction russia = Allied
        and I_FactionLeaderAttribute sicily Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance sicily russia neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType sicily
        and DiplomaticStanceFromFaction moors = Allied
        and I_FactionLeaderAttribute sicily Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance sicily moors neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType sicily
        and DiplomaticStanceFromFaction turks = Allied
        and I_FactionLeaderAttribute sicily Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance sicily turks neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType sicily
        and DiplomaticStanceFromFaction egypt = Allied
        and I_FactionLeaderAttribute sicily Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance sicily egypt neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType sicily
        and DiplomaticStanceFromFaction denmark = Allied
        and I_FactionLeaderAttribute sicily Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance sicily denmark neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType sicily
        and DiplomaticStanceFromFaction portugal = Allied
        and I_FactionLeaderAttribute sicily Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance sicily portugal neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType sicily
        and DiplomaticStanceFromFaction poland = Allied
        and I_FactionLeaderAttribute sicily Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance sicily poland neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType sicily
        and DiplomaticStanceFromFaction hungary = Allied
        and I_FactionLeaderAttribute sicily Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance sicily hungary neutral
    end_monitor
    
    ;---------- Milan ----------
    
    monitor_event BecomesFactionLeader FactionType milan
        and DiplomaticStanceFromFaction england = Allied
        and I_FactionLeaderAttribute milan Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance milan england neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType milan
        and DiplomaticStanceFromFaction france = Allied
        and I_FactionLeaderAttribute milan Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance milan france neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType milan
        and DiplomaticStanceFromFaction spain = Allied
        and I_FactionLeaderAttribute milan Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance milan spain neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType milan
        and DiplomaticStanceFromFaction venice = Allied
        and I_FactionLeaderAttribute milan Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance milan venice neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType milan
        and DiplomaticStanceFromFaction sicily = Allied
        and I_FactionLeaderAttribute milan Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance milan sicily neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType milan
        and DiplomaticStanceFromFaction hre = Allied
        and I_FactionLeaderAttribute milan Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance milan hre neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType milan
        and DiplomaticStanceFromFaction scotland = Allied
        and I_FactionLeaderAttribute milan Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance milan scotland neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType milan
        and DiplomaticStanceFromFaction byzantium = Allied
        and I_FactionLeaderAttribute milan Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance milan byzantium neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType milan
        and DiplomaticStanceFromFaction russia = Allied
        and I_FactionLeaderAttribute milan Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance milan russia neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType milan
        and DiplomaticStanceFromFaction moors = Allied
        and I_FactionLeaderAttribute milan Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance milan moors neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType milan
        and DiplomaticStanceFromFaction turks = Allied
        and I_FactionLeaderAttribute milan Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance milan turks neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType milan
        and DiplomaticStanceFromFaction egypt = Allied
        and I_FactionLeaderAttribute milan Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance milan egypt neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType milan
        and DiplomaticStanceFromFaction denmark = Allied
        and I_FactionLeaderAttribute milan Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance milan denmark neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType milan
        and DiplomaticStanceFromFaction portugal = Allied
        and I_FactionLeaderAttribute milan Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance milan portugal neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType milan
        and DiplomaticStanceFromFaction poland = Allied
        and I_FactionLeaderAttribute milan Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance milan poland neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType milan
        and DiplomaticStanceFromFaction hungary = Allied
        and I_FactionLeaderAttribute milan Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance milan hungary neutral
    end_monitor
    
    ;---------- Scotland ----------
    
    monitor_event BecomesFactionLeader FactionType scotland
        and DiplomaticStanceFromFaction england = Allied
        and I_FactionLeaderAttribute scotland Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance scotland england neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType scotland
        and DiplomaticStanceFromFaction france = Allied
        and I_FactionLeaderAttribute scotland Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance scotland france neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType scotland
        and DiplomaticStanceFromFaction spain = Allied
        and I_FactionLeaderAttribute scotland Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance scotland spain neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType scotland
        and DiplomaticStanceFromFaction venice = Allied
        and I_FactionLeaderAttribute scotland Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance scotland venice neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType scotland
        and DiplomaticStanceFromFaction sicily = Allied
        and I_FactionLeaderAttribute scotland Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance scotland sicily neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType scotland
        and DiplomaticStanceFromFaction milan = Allied
        and I_FactionLeaderAttribute scotland Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance scotland milan neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType scotland
        and DiplomaticStanceFromFaction hre = Allied
        and I_FactionLeaderAttribute scotland Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance scotland hre neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType scotland
        and DiplomaticStanceFromFaction byzantium = Allied
        and I_FactionLeaderAttribute scotland Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance scotland byzantium neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType scotland
        and DiplomaticStanceFromFaction russia = Allied
        and I_FactionLeaderAttribute scotland Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance scotland russia neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType scotland
        and DiplomaticStanceFromFaction moors = Allied
        and I_FactionLeaderAttribute scotland Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance scotland moors neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType scotland
        and DiplomaticStanceFromFaction turks = Allied
        and I_FactionLeaderAttribute scotland Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance scotland turks neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType scotland
        and DiplomaticStanceFromFaction egypt = Allied
        and I_FactionLeaderAttribute scotland Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance scotland egypt neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType scotland
        and DiplomaticStanceFromFaction denmark = Allied
        and I_FactionLeaderAttribute scotland Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance scotland denmark neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType scotland
        and DiplomaticStanceFromFaction portugal = Allied
        and I_FactionLeaderAttribute scotland Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance scotland portugal neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType scotland
        and DiplomaticStanceFromFaction poland = Allied
        and I_FactionLeaderAttribute scotland Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance scotland poland neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType scotland
        and DiplomaticStanceFromFaction hungary = Allied
        and I_FactionLeaderAttribute scotland Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance scotland hungary neutral
    end_monitor
    
    ;---------- Byzanztium ----------
    
    monitor_event BecomesFactionLeader FactionType byzantium
        and DiplomaticStanceFromFaction england = Allied
        and I_FactionLeaderAttribute byzantium Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance byzantium england neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType byzantium
        and DiplomaticStanceFromFaction france = Allied
        and I_FactionLeaderAttribute byzantium Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance byzantium france neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType byzantium
        and DiplomaticStanceFromFaction spain = Allied
        and I_FactionLeaderAttribute byzantium Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance byzantium spain neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType byzantium
        and DiplomaticStanceFromFaction venice = Allied
        and I_FactionLeaderAttribute byzantium Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance byzantium venice neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType byzantium
        and DiplomaticStanceFromFaction sicily = Allied
        and I_FactionLeaderAttribute byzantium Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance byzantium sicily neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType byzantium
        and DiplomaticStanceFromFaction milan = Allied
        and I_FactionLeaderAttribute byzantium Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance byzantium milan neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType byzantium
        and DiplomaticStanceFromFaction scotland = Allied
        and I_FactionLeaderAttribute byzantium Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance byzantium scotland neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType byzantium
        and DiplomaticStanceFromFaction hre = Allied
        and I_FactionLeaderAttribute byzantium Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance byzantium hre neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType byzantium
        and DiplomaticStanceFromFaction russia = Allied
        and I_FactionLeaderAttribute byzantium Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance byzantium russia neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType byzantium
        and DiplomaticStanceFromFaction moors = Allied
        and I_FactionLeaderAttribute byzantium Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance byzantium moors neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType byzantium
        and DiplomaticStanceFromFaction turks = Allied
        and I_FactionLeaderAttribute byzantium Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance byzantium turks neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType byzantium
        and DiplomaticStanceFromFaction egypt = Allied
        and I_FactionLeaderAttribute byzantium Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance byzantium egypt neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType byzantium
        and DiplomaticStanceFromFaction denmark = Allied
        and I_FactionLeaderAttribute byzantium Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance byzantium denmark neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType byzantium
        and DiplomaticStanceFromFaction portugal = Allied
        and I_FactionLeaderAttribute byzantium Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance byzantium portugal neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType byzantium
        and DiplomaticStanceFromFaction poland = Allied
        and I_FactionLeaderAttribute byzantium Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance byzantium poland neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType byzantium
        and DiplomaticStanceFromFaction hungary = Allied
        and I_FactionLeaderAttribute byzantium Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance byzantium hungary neutral
    end_monitor
    
    ;---------- Russia ----------
    
    monitor_event BecomesFactionLeader FactionType russia
        and DiplomaticStanceFromFaction england = Allied
        and I_FactionLeaderAttribute russia Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance russia england neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType russia
        and DiplomaticStanceFromFaction france = Allied
        and I_FactionLeaderAttribute russia Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance russia france neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType russia
        and DiplomaticStanceFromFaction spain = Allied
        and I_FactionLeaderAttribute russia Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance russia spain neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType russia
        and DiplomaticStanceFromFaction venice = Allied
        and I_FactionLeaderAttribute russia Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance russia venice neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType russia
        and DiplomaticStanceFromFaction sicily = Allied
        and I_FactionLeaderAttribute russia Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance russia sicily neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType russia
        and DiplomaticStanceFromFaction milan = Allied
        and I_FactionLeaderAttribute russia Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance russia milan neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType russia
        and DiplomaticStanceFromFaction scotland = Allied
        and I_FactionLeaderAttribute russia Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance russia scotland neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType russia
        and DiplomaticStanceFromFaction byzantium = Allied
        and I_FactionLeaderAttribute russia Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance russia byzantium neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType russia
        and DiplomaticStanceFromFaction hre = Allied
        and I_FactionLeaderAttribute russia Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance russia hre neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType russia
        and DiplomaticStanceFromFaction moors = Allied
        and I_FactionLeaderAttribute russia Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance russia moors neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType russia
        and DiplomaticStanceFromFaction turks = Allied
        and I_FactionLeaderAttribute russia Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance russia turks neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType russia
        and DiplomaticStanceFromFaction egypt = Allied
        and I_FactionLeaderAttribute russia Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance russia egypt neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType russia
        and DiplomaticStanceFromFaction denmark = Allied
        and I_FactionLeaderAttribute russia Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance russia denmark neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType russia
        and DiplomaticStanceFromFaction portugal = Allied
        and I_FactionLeaderAttribute russia Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance russia portugal neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType russia
        and DiplomaticStanceFromFaction poland = Allied
        and I_FactionLeaderAttribute russia Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance russia poland neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType russia
        and DiplomaticStanceFromFaction hungary = Allied
        and I_FactionLeaderAttribute russia Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance russia hungary neutral
    end_monitor
    
    ;---------- Moors ----------
    
    monitor_event BecomesFactionLeader FactionType moors
        and DiplomaticStanceFromFaction england = Allied
        and I_FactionLeaderAttribute moors Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance moors england neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType moors
        and DiplomaticStanceFromFaction france = Allied
        and I_FactionLeaderAttribute moors Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance moors france neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType moors
        and DiplomaticStanceFromFaction spain = Allied
        and I_FactionLeaderAttribute moors Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance moors spain neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType moors
        and DiplomaticStanceFromFaction venice = Allied
        and I_FactionLeaderAttribute moors Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance moors venice neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType moors
        and DiplomaticStanceFromFaction sicily = Allied
        and I_FactionLeaderAttribute moors Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance moors sicily neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType moors
        and DiplomaticStanceFromFaction milan = Allied
        and I_FactionLeaderAttribute moors Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance moors milan neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType moors
        and DiplomaticStanceFromFaction scotland = Allied
        and I_FactionLeaderAttribute moors Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance moors scotland neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType moors
        and DiplomaticStanceFromFaction byzantium = Allied
        and I_FactionLeaderAttribute moors Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance moors byzantium neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType moors
        and DiplomaticStanceFromFaction russia = Allied
        and I_FactionLeaderAttribute moors Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance moors russia neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType moors
        and DiplomaticStanceFromFaction hre = Allied
        and I_FactionLeaderAttribute moors Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance moors hre neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType moors
        and DiplomaticStanceFromFaction turks = Allied
        and I_FactionLeaderAttribute moors Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance moors turks neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType moors
        and DiplomaticStanceFromFaction egypt = Allied
        and I_FactionLeaderAttribute moors Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance moors egypt neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType moors
        and DiplomaticStanceFromFaction denmark = Allied
        and I_FactionLeaderAttribute moors Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance moors denmark neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType moors
        and DiplomaticStanceFromFaction portugal = Allied
        and I_FactionLeaderAttribute moors Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance moors portugal neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType moors
        and DiplomaticStanceFromFaction poland = Allied
        and I_FactionLeaderAttribute moors Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance moors poland neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType moors
        and DiplomaticStanceFromFaction hungary = Allied
        and I_FactionLeaderAttribute moors Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance moors hungary neutral
    end_monitor
    
    ;---------- Turks ----------
    
    monitor_event BecomesFactionLeader FactionType turks
        and DiplomaticStanceFromFaction england = Allied
        and I_FactionLeaderAttribute turks Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance turks england neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType turks
        and DiplomaticStanceFromFaction france = Allied
        and I_FactionLeaderAttribute turks Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance turks france neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType turks
        and DiplomaticStanceFromFaction spain = Allied
        and I_FactionLeaderAttribute turks Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance turks spain neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType turks
        and DiplomaticStanceFromFaction venice = Allied
        and I_FactionLeaderAttribute turks Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance turks venice neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType turks
        and DiplomaticStanceFromFaction sicily = Allied
        and I_FactionLeaderAttribute turks Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance turks sicily neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType turks
        and DiplomaticStanceFromFaction milan = Allied
        and I_FactionLeaderAttribute turks Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance turks milan neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType turks
        and DiplomaticStanceFromFaction scotland = Allied
        and I_FactionLeaderAttribute turks Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance turks scotland neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType turks
        and DiplomaticStanceFromFaction byzantium = Allied
        and I_FactionLeaderAttribute turks Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance turks byzantium neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType turks
        and DiplomaticStanceFromFaction russia = Allied
        and I_FactionLeaderAttribute turks Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance turks russia neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType turks
        and DiplomaticStanceFromFaction moors = Allied
        and I_FactionLeaderAttribute turks Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance turks moors neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType turks
        and DiplomaticStanceFromFaction hre = Allied
        and I_FactionLeaderAttribute turks Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance turks hre neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType turks
        and DiplomaticStanceFromFaction egypt = Allied
        and I_FactionLeaderAttribute turks Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance turks egypt neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType turks
        and DiplomaticStanceFromFaction denmark = Allied
        and I_FactionLeaderAttribute turks Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance turks denmark neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType turks
        and DiplomaticStanceFromFaction portugal = Allied
        and I_FactionLeaderAttribute turks Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance turks portugal neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType turks
        and DiplomaticStanceFromFaction poland = Allied
        and I_FactionLeaderAttribute turks Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance turks poland neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType turks
        and DiplomaticStanceFromFaction hungary = Allied
        and I_FactionLeaderAttribute turks Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance turks hungary neutral
    end_monitor
    
    ;---------- Egypt ----------
    
    monitor_event BecomesFactionLeader FactionType egypt
        and DiplomaticStanceFromFaction england = Allied
        and I_FactionLeaderAttribute egypt Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance egypt england neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType egypt
        and DiplomaticStanceFromFaction france = Allied
        and I_FactionLeaderAttribute egypt Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance egypt france neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType egypt
        and DiplomaticStanceFromFaction spain = Allied
        and I_FactionLeaderAttribute egypt Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance egypt spain neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType egypt
        and DiplomaticStanceFromFaction venice = Allied
        and I_FactionLeaderAttribute egypt Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance egypt venice neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType egypt
        and DiplomaticStanceFromFaction sicily = Allied
        and I_FactionLeaderAttribute egypt Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance egypt sicily neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType egypt
        and DiplomaticStanceFromFaction milan = Allied
        and I_FactionLeaderAttribute egypt Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance egypt milan neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType egypt
        and DiplomaticStanceFromFaction scotland = Allied
        and I_FactionLeaderAttribute egypt Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance egypt scotland neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType egypt
        and DiplomaticStanceFromFaction byzantium = Allied
        and I_FactionLeaderAttribute egypt Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance egypt byzantium neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType egypt
        and DiplomaticStanceFromFaction russia = Allied
        and I_FactionLeaderAttribute egypt Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance egypt russia neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType egypt
        and DiplomaticStanceFromFaction moors = Allied
        and I_FactionLeaderAttribute egypt Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance egypt moors neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType egypt
        and DiplomaticStanceFromFaction turks = Allied
        and I_FactionLeaderAttribute egypt Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance egypt turks neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType egypt
        and DiplomaticStanceFromFaction hre = Allied
        and I_FactionLeaderAttribute egypt Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance egypt hre neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType egypt
        and DiplomaticStanceFromFaction denmark = Allied
        and I_FactionLeaderAttribute egypt Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance egypt denmark neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType egypt
        and DiplomaticStanceFromFaction portugal = Allied
        and I_FactionLeaderAttribute egypt Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance egypt portugal neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType egypt
        and DiplomaticStanceFromFaction poland = Allied
        and I_FactionLeaderAttribute egypt Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance egypt poland neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType egypt
        and DiplomaticStanceFromFaction hungary = Allied
        and I_FactionLeaderAttribute egypt Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance egypt hungary neutral
    end_monitor
    
    ;---------- Denmark ----------
    
    monitor_event BecomesFactionLeader FactionType denmark
        and DiplomaticStanceFromFaction england = Allied
        and I_FactionLeaderAttribute denmark Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance denmark england neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType denmark
        and DiplomaticStanceFromFaction france = Allied
        and I_FactionLeaderAttribute denmark Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance denmark france neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType denmark
        and DiplomaticStanceFromFaction spain = Allied
        and I_FactionLeaderAttribute denmark Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance denmark spain neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType denmark
        and DiplomaticStanceFromFaction venice = Allied
        and I_FactionLeaderAttribute denmark Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance denmark venice neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType denmark
        and DiplomaticStanceFromFaction sicily = Allied
        and I_FactionLeaderAttribute denmark Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance denmark sicily neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType denmark
        and DiplomaticStanceFromFaction milan = Allied
        and I_FactionLeaderAttribute denmark Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance denmark milan neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType denmark
        and DiplomaticStanceFromFaction scotland = Allied
        and I_FactionLeaderAttribute denmark Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance denmark scotland neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType denmark
        and DiplomaticStanceFromFaction byzantium = Allied
        and I_FactionLeaderAttribute denmark Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance denmark byzantium neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType denmark
        and DiplomaticStanceFromFaction russia = Allied
        and I_FactionLeaderAttribute denmark Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance denmark russia neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType denmark
        and DiplomaticStanceFromFaction moors = Allied
        and I_FactionLeaderAttribute denmark Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance denmark moors neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType denmark
        and DiplomaticStanceFromFaction turks = Allied
        and I_FactionLeaderAttribute denmark Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance denmark turks neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType denmark
        and DiplomaticStanceFromFaction egypt = Allied
        and I_FactionLeaderAttribute denmark Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance denmark egypt neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType denmark
        and DiplomaticStanceFromFaction hre = Allied
        and I_FactionLeaderAttribute denmark Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance denmark hre neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType denmark
        and DiplomaticStanceFromFaction portugal = Allied
        and I_FactionLeaderAttribute denmark Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance denmark portugal neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType denmark
        and DiplomaticStanceFromFaction poland = Allied
        and I_FactionLeaderAttribute denmark Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance denmark poland neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType denmark
        and DiplomaticStanceFromFaction hungary = Allied
        and I_FactionLeaderAttribute denmark Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance denmark hungary neutral
    end_monitor
    
    ;---------- Portugal ----------
    
    monitor_event BecomesFactionLeader FactionType portugal
        and DiplomaticStanceFromFaction england = Allied
        and I_FactionLeaderAttribute portugal Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance portugal england neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType portugal
        and DiplomaticStanceFromFaction france = Allied
        and I_FactionLeaderAttribute portugal Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance portugal france neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType portugal
        and DiplomaticStanceFromFaction spain = Allied
        and I_FactionLeaderAttribute portugal Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance portugal spain neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType portugal
        and DiplomaticStanceFromFaction venice = Allied
        and I_FactionLeaderAttribute portugal Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance portugal venice neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType portugal
        and DiplomaticStanceFromFaction sicily = Allied
        and I_FactionLeaderAttribute portugal Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance portugal sicily neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType portugal
        and DiplomaticStanceFromFaction milan = Allied
        and I_FactionLeaderAttribute portugal Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance portugal milan neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType portugal
        and DiplomaticStanceFromFaction scotland = Allied
        and I_FactionLeaderAttribute portugal Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance portugal scotland neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType portugal
        and DiplomaticStanceFromFaction byzantium = Allied
        and I_FactionLeaderAttribute portugal Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance portugal byzantium neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType portugal
        and DiplomaticStanceFromFaction russia = Allied
        and I_FactionLeaderAttribute portugal Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance portugal russia neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType portugal
        and DiplomaticStanceFromFaction moors = Allied
        and I_FactionLeaderAttribute portugal Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance portugal moors neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType portugal
        and DiplomaticStanceFromFaction turks = Allied
        and I_FactionLeaderAttribute portugal Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance portugal turks neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType portugal
        and DiplomaticStanceFromFaction egypt = Allied
        and I_FactionLeaderAttribute portugal Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance portugal egypt neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType portugal
        and DiplomaticStanceFromFaction denmark = Allied
        and I_FactionLeaderAttribute portugal Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance portugal denmark neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType portugal
        and DiplomaticStanceFromFaction hre = Allied
        and I_FactionLeaderAttribute portugal Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance portugal hre neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType portugal
        and DiplomaticStanceFromFaction poland = Allied
        and I_FactionLeaderAttribute portugal Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance portugal poland neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType portugal
        and DiplomaticStanceFromFaction hungary = Allied
        and I_FactionLeaderAttribute portugal Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance portugal hungary neutral
    end_monitor
    
    ;---------- Poland ----------
    
    monitor_event BecomesFactionLeader FactionType poland
        and DiplomaticStanceFromFaction england = Allied
        and I_FactionLeaderAttribute poland Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance poland england neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType poland
        and DiplomaticStanceFromFaction france = Allied
        and I_FactionLeaderAttribute poland Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance poland france neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType poland
        and DiplomaticStanceFromFaction spain = Allied
        and I_FactionLeaderAttribute poland Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance poland spain neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType poland
        and DiplomaticStanceFromFaction venice = Allied
        and I_FactionLeaderAttribute poland Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance poland venice neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType poland
        and DiplomaticStanceFromFaction sicily = Allied
        and I_FactionLeaderAttribute poland Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance poland sicily neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType poland
        and DiplomaticStanceFromFaction milan = Allied
        and I_FactionLeaderAttribute poland Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance poland milan neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType poland
        and DiplomaticStanceFromFaction scotland = Allied
        and I_FactionLeaderAttribute poland Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance poland scotland neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType poland
        and DiplomaticStanceFromFaction byzantium = Allied
        and I_FactionLeaderAttribute poland Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance poland byzantium neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType poland
        and DiplomaticStanceFromFaction russia = Allied
        and I_FactionLeaderAttribute poland Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance poland russia neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType poland
        and DiplomaticStanceFromFaction moors = Allied
        and I_FactionLeaderAttribute poland Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance poland moors neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType poland
        and DiplomaticStanceFromFaction turks = Allied
        and I_FactionLeaderAttribute poland Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance poland turks neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType poland
        and DiplomaticStanceFromFaction egypt = Allied
        and I_FactionLeaderAttribute poland Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance poland egypt neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType poland
        and DiplomaticStanceFromFaction denmark = Allied
        and I_FactionLeaderAttribute poland Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance poland denmark neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType poland
        and DiplomaticStanceFromFaction portugal = Allied
        and I_FactionLeaderAttribute poland Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance poland portugal neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType poland
        and DiplomaticStanceFromFaction hre = Allied
        and I_FactionLeaderAttribute poland Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance poland hre neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType poland
        and DiplomaticStanceFromFaction hungary = Allied
        and I_FactionLeaderAttribute poland Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance poland hungary neutral
    end_monitor
    
    ;---------- Hungary ----------
    
    monitor_event BecomesFactionLeader FactionType hungary
        and DiplomaticStanceFromFaction england = Allied
        and I_FactionLeaderAttribute hungary Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance hungary england neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType hungary
        and DiplomaticStanceFromFaction france = Allied
        and I_FactionLeaderAttribute hungary Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance hungary france neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType hungary
        and DiplomaticStanceFromFaction spain = Allied
        and I_FactionLeaderAttribute hungary Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance hungary spain neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType hungary
        and DiplomaticStanceFromFaction venice = Allied
        and I_FactionLeaderAttribute hungary Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance hungary venice neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType hungary
        and DiplomaticStanceFromFaction sicily = Allied
        and I_FactionLeaderAttribute hungary Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance hungary sicily neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType hungary
        and DiplomaticStanceFromFaction milan = Allied
        and I_FactionLeaderAttribute hungary Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance hungary milan neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType hungary
        and DiplomaticStanceFromFaction scotland = Allied
        and I_FactionLeaderAttribute hungary Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance hungary scotland neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType hungary
        and DiplomaticStanceFromFaction byzantium = Allied
        and I_FactionLeaderAttribute hungary Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance hungary byzantium neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType hungary
        and DiplomaticStanceFromFaction russia = Allied
        and I_FactionLeaderAttribute hungary Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance hungary russia neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType hungary
        and DiplomaticStanceFromFaction moors = Allied
        and I_FactionLeaderAttribute hungary Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance hungary moors neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType hungary
        and DiplomaticStanceFromFaction turks = Allied
        and I_FactionLeaderAttribute hungary Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance hungary turks neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType hungary
        and DiplomaticStanceFromFaction egypt = Allied
        and I_FactionLeaderAttribute hungary Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance hungary egypt neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType hungary
        and DiplomaticStanceFromFaction denmark = Allied
        and I_FactionLeaderAttribute hungary Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance hungary denmark neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType hungary
        and DiplomaticStanceFromFaction portugal = Allied
        and I_FactionLeaderAttribute hungary Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance hungary portugal neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType hungary
        and DiplomaticStanceFromFaction hre = Allied
        and I_FactionLeaderAttribute hungary Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance hungary hre neutral
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType hungary
        and DiplomaticStanceFromFaction poland = Allied
        and I_FactionLeaderAttribute hungary Authority <= 3
        and RandomPercent < 10
        console_command diplomatic_stance hungary poland neutral
    end_monitor

  10. #10
    gracul's Avatar 404 Not Found
    Artifex

    Join Date
    Dec 2007
    Location
    Poland
    Posts
    2,009

    Default Re: Archaon's Loyal Allies Modification Files [M2TW & M2TW-K] - PLUS ALL OTHER MODS! **Now with some scripts available for added realism and AI assistance**

    The cursor file has no power over the AI.
    To check this i changed every action in descr_cursor_actions.txt to NA, and while i couldn't do pretty much anything except selecting settlements and characters, the AI could attack, enter negotiations, move, and do all other kinds of stuff.

  11. #11

    Default Re: Archaon's Loyal Allies Modification Files [M2TW & M2TW-K] - PLUS ALL OTHER MODS! **Now with some scripts available for added realism and AI assistance**

    Quote Originally Posted by gracul View Post
    The cursor file has no power over the AI.
    To check this i changed every action in descr_cursor_actions.txt to NA, and while i couldn't do pretty much anything except selecting settlements and characters, the AI could attack, enter negotiations, move, and do all other kinds of stuff.
    to save me time, can you attach your file for testing?

  12. #12
    gracul's Avatar 404 Not Found
    Artifex

    Join Date
    Dec 2007
    Location
    Poland
    Posts
    2,009

    Default Re: Archaon's Loyal Allies Modification Files [M2TW & M2TW-K] - PLUS ALL OTHER MODS! **Now with some scripts available for added realism and AI assistance**

    There it is.

  13. #13
    The Border Reiver's Avatar Artifex
    Patrician

    Join Date
    Feb 2006
    Location
    Australia
    Posts
    3,703

    Default Re: Archaon's Loyal Allies Modification Files [M2TW & M2TW-K] - PLUS ALL OTHER MODS! **Now with some scripts available for added realism and AI assistance**

    Archaon, this is a brilliant find you have here, and one of the greatest breakthroughs in MTW2. Rep for this work mate well done.

    Tell me is there any difference to the scripts that you have made and to those done by Vegas Bear?
    Last edited by The Border Reiver; October 30, 2009 at 07:22 AM.

  14. #14

    Default Re: Archaon's Loyal Allies Modification Files [M2TW & M2TW-K] - PLUS ALL OTHER MODS! **Now with some scripts available for added realism and AI assistance**

    Hi all, either im the ost stupid dude around or is it just me that doesnt understnad the installation, the directories on first page, well in my game directorty program->sega->m2tw->data etc. well theres no files to replace that matches those in the attached,

    Ps: i truly suck at modding and installing and etc but i have this mod working and runnin on my TATW but cant find the files to replace for M2TW

    Cheers and best regards Archon, i know what this mod does and what it is and for me i cant play whitout me, its the first thing i aaaalways install =)

  15. #15
    Vegas_Bear's Avatar Biarchus
    Join Date
    Sep 2005
    Location
    Las Vegas, NV
    Posts
    605

    Default Re: Archaon's Loyal Allies Modification Files [M2TW & M2TW-K] - PLUS ALL OTHER MODS! **Now with some scripts available for added realism and AI assistance**

    Valle, I believe your main M2 game is unpacked.

    In SEGA\Medieval II Total War\data create a new folder called 'text' w/out '.

    Place the files in these locations-

    SEGA\Medieval II Total War\data\text (cursor_action_tooltips.txt)
    SEGA\Medieval II Total War\data (descr_cursor_actions.txt & descr_cursor_tooltips_lookup.txt)

    Now make a back-up of your shortcut to launch the game. Right click on the S/C and select properties. in the taget line paste medieval2.exe" --io.file_first after War\. It should look something like this.

    Code:
    "C:\Program Files\SEGA\Medieval II Total War\medieval2.exe" --io.file_first
    Now launch the game and the files should be used now.

    Vegas_Bear

  16. #16

    Default Re: Archaon's Loyal Allies Modification Files [M2TW & M2TW-K] - PLUS ALL OTHER MODS! **Now with some scripts available for added realism and AI assistance**

    Hey guys, other than what gracul has brought up is there anything else i could look at to improve this mod?

    @gracul, I think i should look very keenly on the AI tracing file while running this mod to confirm your claim.
    I find it hard to believe that TATW AND DLV being 2 in the top 3 played M2TW mods, out of all the players, everyone INSTANTLY after this mod is installed found the AI to behave better with alliances.
    It might be that there are AI scripted safe guards to over-ride the 'files' and follow 'card coded' instructions when the 'files' allow zero possibility for the AI to make a decision.

    I will take time to check my theory, and your own too, as i feel it is important to improve the game's AI to its best!

  17. #17

    Default Re: Archaon's Loyal Allies Modification Files [M2TW & M2TW-K] - PLUS ALL OTHER MODS! **Now with some scripts available for added realism and AI assistance**

    Hi there, vegas_bear my brother u are from this day forth my savior ;D your little trick worked and i can now finally use archons mod ;D thanks alot im so happy right now <3

  18. #18
    Vegas_Bear's Avatar Biarchus
    Join Date
    Sep 2005
    Location
    Las Vegas, NV
    Posts
    605

    Default Re: Archaon's Loyal Allies Modification Files [M2TW & M2TW-K] - PLUS ALL OTHER MODS! **Now with some scripts available for added realism and AI assistance**

    Glad it worked for you Valle.

  19. #19

    Default Re: Archaon's Loyal Allies Modification Files [M2TW & M2TW-K] - PLUS ALL OTHER MODS! **Now with some scripts available for added realism and AI assistance**

    Quick question. Playing SS and I dont seem to have a text folder for med 2. I do have a text folder for SS so should I paste cursor_action_tooltips.txt there??

  20. #20
    /|\/|\/|\/|\/|\/|\/
    Join Date
    Jun 2005
    Posts
    10,770

    Default Re: Archaon's Loyal Allies Modification Files [M2TW & M2TW-K] - PLUS ALL OTHER MODS! **Now with some scripts available for added realism and AI assistance**

    Quote Originally Posted by gracul View Post
    The cursor file has no power over the AI.
    To check this i changed every action in descr_cursor_actions.txt to NA, and while i couldn't do pretty much anything except selecting settlements and characters, the AI could attack, enter negotiations, move, and do all other kinds of stuff.
    Good idea to test that, Gracul. So far it looks to me like this mod probably does not work. I thought this might be the case since the AI doesn't use a mouse...

    I hadn't noticed any change in AI behaviour in DLV with regard to allies attacking one another. DLV's diplomacy works very well most of the time. And new players are still reporting attacks by allies. But no change would be seen for experienced players because it doesn't happen anyway if you know how to play the game... or at least I assume some other people know how to play the diplomacy side of DLV, it can't just be me...
    Last edited by Taiji; January 08, 2010 at 02:08 PM.

Page 2 of 4 FirstFirst 1234 LastLast

Posting Permissions

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