Page 3 of 5 FirstFirst 12345 LastLast
Results 41 to 60 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**

  1. #41
    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.

  2. #42

    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?

  3. #43
    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.

  4. #44
    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.

  5. #45

    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 =)

  6. #46
    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

  7. #47

    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**

    this works on SS mod??

  8. #48

    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**

    yes

  9. #49

    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!

  10. #50

    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

  11. #51
    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.

  12. #52

    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

  13. #53

    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??

  14. #54
    /|\/|\/|\/|\/|\/|\/
    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.

  15. #55

    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**

    sweet mod lol!! 9/10 makes the game way better

  16. #56

    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**

    wait is there a flemish empire in the game?
    ROME 2 TOTAL WAR FTW!

  17. #57

    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 allthedamnnamesweretaken View Post
    wait is there a flemish empire in the game?
    DVL 6.2 my friend :-D
    Quote Originally Posted by Taiji View Post
    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...
    First - DLV has scripts which will effect alliances regardless of this modification. The scripted breaking of alliances can only be stopped by removing that script itself (which my mod does not do).
    Further, if you read the OP you would have read this;
    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.
    That is what DLV is all about, so this Mod simply stops the AI from attacking WHILE in an alliance, but if that alliance is broken by any of the above mentioned things at the begining of a turn then the proceeding decision the AI make are not restricted by this mod.

    Regarding Gracul's file, when i use it i and the AI are motionless, i tested for 10 turns, there were no movements, are you sure you use FILE_FIRST in the .cfg file? Or maybe there is another underlying on your setup that is different from mine and the users of this mod.

    Please post your experiment, the findings, and proof with more information in future.

    Taiji, perhaps you could try and do the same test i did and report your findings?

  18. #58

    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**

    Great mod
    Last edited by Cheator; July 21, 2010 at 11:53 AM.

  19. #59
    /|\/|\/|\/|\/|\/|\/
    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**

    I really think that you should be making the effort to prove your own work, Archaon. I haven't seen any indication at all that you have made this effort. Please link a post where you show you have proven it, if you've made one.

    edit:

    Actually you needn't bother; I've done you a favor and confirmed that your claim about the cursors is false, and beyond any reasonable doubt. I set the default action for army vs enemy army to na, and as a consequence the player cannot attack an enemy army. But the AI is expanding exactly the same as before, because it is not affected by restrictions applied to a mouse pointer, as I think we really should expect.

    So I (again) conclude that this cursor modding does absolutely nothing to the AI. And that the people giving you positive feedback have been deluding themselves.

    And in future I recommend that you do not rely on feedback from others. You certainly have not set a precedent by being mislead by feedback. There are modders in this community who have won awards for their 'delusional' work.


    BTW I like that players are prevented from backstabbing the AI, but that being it's only feature - I think maybe you should change what you call it.
    Last edited by Taiji; July 28, 2010 at 09:54 AM.

  20. #60

    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**

    Taiji, i appreciate your honesty.

    So i have a solution.

    Extract the attached and use the file descr_campaign_ai_db.xml in a M2TW Kingdoms installation, any of the vanilla or any mod, place it in the "data" directory.

    Go to the descr_strat.txt file and change all factions to either;

    • slave_faction --> only for slave faction
    • papal_faction --> only for papal_states faction (if there is one).
    • default --> for ALL other faction.

    So each faction in descr_strat will look like this;
    Code:
    faction    milan, balanced smith
    ai_label         default
    denari    10000
    Delete your map.rwm file
    Start a new game.


    !!! ALLIES DO NOT ATTACK THEIR ALLIES !!!


    If you approve, i shall inform all mods who use my mod to update their installations.

Page 3 of 5 FirstFirst 12345 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
  •