+ Reply to Thread
Results 1 to 18 of 18

Thread: Changing provincereligion by decision

  1. #1
    French Maid [B@W] Abominus's Avatar
    Arsenal of DemocracyHearts of Iron 2: ArmageddonCrusader Kings IIDarkest HourDeus Vult
    Europa Universalis 3Divine WindHearts of Iron III CollectionHeir to the ThroneEuropa Universalis III: In Nomine
    EU3 Napoleon's AmbitionSword of the StarsVictoria 2500k clubEuropa Universalis IV

    Join Date
    Sep 2003
    Location
    Marl, Gro▀deutschland
    Posts
    679

    Changing provincereligion by decision

    Greetings, I tried to let the andalusians move to northafrica, but my decision seems not not work right:

    Code:
    province_decisions = {
    	Andalusier_unter_5000 = {
    		potential = {
    			owner = {
    				OR = {
    					culture_group = iberian
    					primary_culture = basque
    					primary_culture = catalan
    				}
    				NOT = { has_global_flag = andalusier_1 }
    				NOT = { has_global_flag = andalusier_2 }
    				NOT = { has_global_flag = andalusier_3 }
    			}
    			culture = andalucian
    			NOT = { citysize = 5000 }
    		}
    		allow = {
    			owner = {
    				religion_group = christian
    				innovative_narrowminded = 2
    				treasury = 500
    			}
    			NOT = { religion_group = christian }
    		}
    		effect = {
    			culture = THIS
    			religion = THIS
    			multiply_citysize = 0.6
    			set_global_flag = andalusier_1
    			owner = {
    				treasury = -500
    				badboy = 5
    				innovative_narrowminded = 1
    			}
    		}
    		ai_will_do = {
    			factor = 1
    		}
    	}
    }
    All effect occur, but not the change of the religion . Why does it change to castille, when I'm castillia, but my catholic religion doesn't change the muslims...
    Last edited by [B@W] Abominus; 06-06-2009 at 13:59.

  2. #2
    Second Lieutenant Rinmaru's Avatar
    Crusader Kings IIDeus VultEast India Company CollectionEuropa Universalis 3Europa Universalis III: In Nomine
    EU3 Napoleon's AmbitionRome GoldVictoria 2Victoria II: A House DividedVictoria II: Heart of Darkness
    Mount & Blade: Warband500k clubEuropa Universalis IV: Pre-order

    Join Date
    Jun 2004
    Location
    Dallas, Texas, USA
    Posts
    152
    You need to specify a religion. "THIS" does not work.
    "The art of using troops is this:
    ......When ten to the enemy's one, surround him;
    ......When five times his strength, attack him;
    ......If double his strength, divide him;
    ......If equally matched you may engage him;
    ......If weaker numerically, be capable of withdrawing;
    ......And if in all respects unequal, be capable of eluding him,
    ..........for a small force is but booty for one more powerful."


    - Sun Tzu, the Art Of War

  3. #3
    General orwell's Avatar
    Hearts of Iron 2: ArmageddonCrusader Kings IIDeus VultEuropa Universalis 3Divine Wind
    For the MotherlandHearts of Iron IIIHeir to the ThroneEuropa Universalis III: In NomineEU3 Napoleon's Ambition
    Victoria: RevolutionsEuropa Universalis: RomeSemper FiSupreme Ruler 2020Victoria 2
    Victoria II: A House DividedRome: Vae VictisMount & Blade: WarbandEuropa Universalis IV

    Join Date
    Sep 2006
    Location
    Washington
    Posts
    2,224
    Blog Entries
    8
    Is there a particular reason you always post your code in blue and green? Makes it hard to read without highlighting it, at least on my computer.
    Even an ignorant, paranoid, cowardly, ugly, corrupt, unsociable, aristocratic thug can conquer large parts of the world, kill thousands of people and be celebrated as the saviour of the Republic.

  4. #4
    Field Marshal jdrou's Avatar
    200k clubHoI AnthologyArsenal of DemocracyHearts of Iron 2: ArmageddonCrusader Kings II
    Darkest HourDeus VultEast India CompanyEuropa Universalis: ChroniclesEU3 Complete
    Divine WindFor The GloryFor the MotherlandHearts of Iron IIIHOI3: Their Finest Hour
    Heir to the ThroneEuropa Universalis III: In NomineEU3 Napoleon's AmbitionVictoria: RevolutionsRome Gold
    Semper FiSupreme Ruler 2020 GoldVictoria 2Victoria II: A House DividedVictoria II: Heart of Darkness
    EU3 Collectors Edition500k clubEuropa Universalis IV: Pre-orderEUIV: Wealth of NationsEUIV: Conquest of Paradise
    EUIV: Res Publica

    Join Date
    Jun 2002
    Location
    Michigan, USA
    Posts
    22,647
    To get around the non-working 'religion = this' command you can create a separate decision for each possible owner religion and check the owner's religion in the 'potential' triggers so he won't see the decisions that don't apply. If you do this then the 'owner = { religion_group = christian ' trigger in the 'allow' section becomes unnecessary.
    "The trouble with fighting for human freedom is that one spends most of one's time defending scoundrels. For it is against scoundrels that oppressive laws are first aimed, and oppression must be stopped at the beginning if it is to be stopped at all." --H. L. Mencken

    Playing EU4

    Download the Fix-it-Yourself Pack for HoI 1.06c (updated 11/14/05)
    Download the Unofficial fixpack for EU3 4.1b 4/29 beta or final 11/24 patch (updated 12/25/10)
    Download the text fixpack for EU3 Divine Wind (updated 2/11/11)

  5. #5
    Dei Gratia author dharper's Avatar
    Crusader Kings IIEU3 CompleteDivine WindFor The GloryHearts of Iron III
    Heir to the ThroneEuropa Universalis III: In NomineMarch of the EaglesEU3 Napoleon's AmbitionVictoria: Revolutions
    Europa Universalis: RomeSengokuVictoria 2Victoria II: A House DividedVictoria II: Heart of Darkness
    Rome: Vae VictisEU3 Collectors Edition500k clubEuropa Universalis IV: Pre-orderEUIV: Wealth of Nations
    EUIV: Conquest of ParadiseEUIV: Res Publica

    Join Date
    Aug 2002
    Location
    Province #989 (EU3/4)
    Posts
    15,369
    Quote Originally Posted by jdrou View Post
    To get around the non-working 'religion = this' command you can create a separate decision for each possible owner religion and check the owner's religion in the 'potential' triggers so he won't see the decisions that don't apply. If you do this then the 'owner = { religion_group = christian ' trigger in the 'allow' section becomes unnecessary.
    No need to go that far; it's easier to add in a couple of conditionals like this:

    Code:
    random_owned = { 
    	limit = { owner = { religion = catholic } }
    	THIS = { religion = catholic }
    	}
    random_owned = { 
    	limit = { owner = { religion = protestant } }
    	THIS = { religion = protestant }
    	}
    random_owned = { 
    	limit = { owner = { religion = reformed } }
    	THIS = { religion = reformed }
    	}
    random_owned = { 
    	limit = { owner = { religion = orthodox } }
    	THIS = { religion = orthodox }
    	}
    A mod for Europa Universalis IV that enhances religion in the age of faith and reason
    Over 1,100 events and decisions for over 30 religions
    Wiki
    Version 1.7.07 compatible with the Res Publica expansion
    Download available (August 17, 2014) or subscribe on Steam to get updates automatically
    Project Cryptic: 10% complete

  6. #6
    Field Marshal jdrou's Avatar
    200k clubHoI AnthologyArsenal of DemocracyHearts of Iron 2: ArmageddonCrusader Kings II
    Darkest HourDeus VultEast India CompanyEuropa Universalis: ChroniclesEU3 Complete
    Divine WindFor The GloryFor the MotherlandHearts of Iron IIIHOI3: Their Finest Hour
    Heir to the ThroneEuropa Universalis III: In NomineEU3 Napoleon's AmbitionVictoria: RevolutionsRome Gold
    Semper FiSupreme Ruler 2020 GoldVictoria 2Victoria II: A House DividedVictoria II: Heart of Darkness
    EU3 Collectors Edition500k clubEuropa Universalis IV: Pre-orderEUIV: Wealth of NationsEUIV: Conquest of Paradise
    EUIV: Res Publica

    Join Date
    Jun 2002
    Location
    Michigan, USA
    Posts
    22,647
    Very nice use of scope changes. That certainly looks like it should do the job.
    "The trouble with fighting for human freedom is that one spends most of one's time defending scoundrels. For it is against scoundrels that oppressive laws are first aimed, and oppression must be stopped at the beginning if it is to be stopped at all." --H. L. Mencken

    Playing EU4

    Download the Fix-it-Yourself Pack for HoI 1.06c (updated 11/14/05)
    Download the Unofficial fixpack for EU3 4.1b 4/29 beta or final 11/24 patch (updated 12/25/10)
    Download the text fixpack for EU3 Divine Wind (updated 2/11/11)

  7. #7
    Dei Gratia author dharper's Avatar
    Crusader Kings IIEU3 CompleteDivine WindFor The GloryHearts of Iron III
    Heir to the ThroneEuropa Universalis III: In NomineMarch of the EaglesEU3 Napoleon's AmbitionVictoria: Revolutions
    Europa Universalis: RomeSengokuVictoria 2Victoria II: A House DividedVictoria II: Heart of Darkness
    Rome: Vae VictisEU3 Collectors Edition500k clubEuropa Universalis IV: Pre-orderEUIV: Wealth of Nations
    EUIV: Conquest of ParadiseEUIV: Res Publica

    Join Date
    Aug 2002
    Location
    Province #989 (EU3/4)
    Posts
    15,369
    ...Just make sure to put it in an owner scope; I forgot to mention that above.
    A mod for Europa Universalis IV that enhances religion in the age of faith and reason
    Over 1,100 events and decisions for over 30 religions
    Wiki
    Version 1.7.07 compatible with the Res Publica expansion
    Download available (August 17, 2014) or subscribe on Steam to get updates automatically
    Project Cryptic: 10% complete

  8. #8
    French Maid [B@W] Abominus's Avatar
    Arsenal of DemocracyHearts of Iron 2: ArmageddonCrusader Kings IIDarkest HourDeus Vult
    Europa Universalis 3Divine WindHearts of Iron III CollectionHeir to the ThroneEuropa Universalis III: In Nomine
    EU3 Napoleon's AmbitionSword of the StarsVictoria 2500k clubEuropa Universalis IV

    Join Date
    Sep 2003
    Location
    Marl, Gro▀deutschland
    Posts
    679
    I tried it, but it does not work:

    Code:
    province_decisions = {
    	Andalusier_unter_5000 = {
    		potential = {
    			owner = {
    				OR = {
    					culture_group = iberian
    					primary_culture = basque
    					primary_culture = catalan
    				}
    				NOT = { has_global_flag = andalusier_1 }
    				NOT = { has_global_flag = andalusier_2 }
    				NOT = { has_global_flag = andalusier_3 }
    			}
    			culture = andalucian
    			NOT = { citysize = 5000 }
    			region = iberian_peninsula
    		}
    		allow = {
    			owner = {
    				religion = catholic
    				innovative_narrowminded = 2
    				treasury = 500
    				missionaries = 2
    			}
    			NOT = { religion_group = christian }
    		}
    		effect = {
    			random_owned = { 
    				limit = { owner = { religion = catholic } }
    				THIS = { religion = catholic }
    			}
    			random_owned = { 
    				limit = { owner = { religion = protestant } }
    				THIS = { religion = protestant }
    			}
    			random_owned = { 
    				limit = { owner = { religion = reformed } }
    				THIS = { religion = reformed }
    			}
    			random_owned = { 
    				limit = { owner = { religion = orthodox } }
    				THIS = { religion = orthodox }
    			}
    			culture = THIS
    			multiply_citysize = 0.6
    			set_global_flag = andalusier_1
    			owner = {
    				treasury = -500
    				badboy = 5
    				innovative_narrowminded = 1
    				missionaries = -2
    			}
    		}
    		ai_will_do = {
    			factor = 1
    		}
    	}
    }

  9. #9
    Dei Gratia author dharper's Avatar
    Crusader Kings IIEU3 CompleteDivine WindFor The GloryHearts of Iron III
    Heir to the ThroneEuropa Universalis III: In NomineMarch of the EaglesEU3 Napoleon's AmbitionVictoria: Revolutions
    Europa Universalis: RomeSengokuVictoria 2Victoria II: A House DividedVictoria II: Heart of Darkness
    Rome: Vae VictisEU3 Collectors Edition500k clubEuropa Universalis IV: Pre-orderEUIV: Wealth of Nations
    EUIV: Conquest of ParadiseEUIV: Res Publica

    Join Date
    Aug 2002
    Location
    Province #989 (EU3/4)
    Posts
    15,369
    Quote Originally Posted by [B@W] Abominus View Post
    I tried it, but it does not work
    That's why I mentioned the owner scope afterwards. Try this:

    Code:
    		effect = {
    			owner = { 
    				random_owned = { 
    					limit = { owner = { religion = catholic } }
    					THIS = { religion = catholic }
    				}
    				random_owned = { 
    					limit = { owner = { religion = protestant } }
    					THIS = { religion = protestant }
    				}
    				random_owned = { 
    					limit = { owner = { religion = reformed } }
    					THIS = { religion = reformed }
    				}
    				random_owned = { 
    					limit = { owner = { religion = orthodox } }
    					THIS = { religion = orthodox }
    				}
    			}
    A mod for Europa Universalis IV that enhances religion in the age of faith and reason
    Over 1,100 events and decisions for over 30 religions
    Wiki
    Version 1.7.07 compatible with the Res Publica expansion
    Download available (August 17, 2014) or subscribe on Steam to get updates automatically
    Project Cryptic: 10% complete

  10. #10
    French Maid [B@W] Abominus's Avatar
    Arsenal of DemocracyHearts of Iron 2: ArmageddonCrusader Kings IIDarkest HourDeus Vult
    Europa Universalis 3Divine WindHearts of Iron III CollectionHeir to the ThroneEuropa Universalis III: In Nomine
    EU3 Napoleon's AmbitionSword of the StarsVictoria 2500k clubEuropa Universalis IV

    Join Date
    Sep 2003
    Location
    Marl, Gro▀deutschland
    Posts
    679
    Code:
    province_decisions = {
    	Andalusier_unter_5000 = {
    		potential = {
    			owner = {
    				OR = {
    					culture_group = iberian
    					primary_culture = basque
    					primary_culture = catalan
    				}
    				NOT = { has_global_flag = andalusier_1 }
    				NOT = { has_global_flag = andalusier_2 }
    				NOT = { has_global_flag = andalusier_3 }
    			}
    			culture = andalucian
    			NOT = { citysize = 5000 }
    			region = iberian_peninsula
    		}
    		allow = {
    			owner = {
    				religion = catholic
    				innovative_narrowminded = 2
    				treasury = 500
    				missionaries = 2
    			}
    			NOT = { religion_group = christian }
    		}
    		effect = {
    			culture = THIS
    			owner = { 
    				random_owned = { 
    					limit = { owner = { religion = catholic } }
    					THIS = { religion = catholic }
    				}
    				random_owned = { 
    					limit = { owner = { religion = protestant } }
    					THIS = { religion = protestant }
    				}
    				random_owned = { 
    					limit = { owner = { religion = reformed } }
    					THIS = { religion = reformed }
    				}
    				random_owned = { 
    					limit = { owner = { religion = orthodox } }
    					THIS = { religion = orthodox }
    				}
    			}
    			multiply_citysize = 0.6
    			set_global_flag = andalusier_1
    			owner = {
    				treasury = -500
    				badboy = 5
    				innovative_narrowminded = 1
    				missionaries = -2
    			}
    		}
    		ai_will_do = {
    			factor = 1
    		}
    	}
    }
    Hm...
    If I make any fault, I do not find it...
    Attached Images

  11. #11
    Dei Gratia author dharper's Avatar
    Crusader Kings IIEU3 CompleteDivine WindFor The GloryHearts of Iron III
    Heir to the ThroneEuropa Universalis III: In NomineMarch of the EaglesEU3 Napoleon's AmbitionVictoria: Revolutions
    Europa Universalis: RomeSengokuVictoria 2Victoria II: A House DividedVictoria II: Heart of Darkness
    Rome: Vae VictisEU3 Collectors Edition500k clubEuropa Universalis IV: Pre-orderEUIV: Wealth of Nations
    EUIV: Conquest of ParadiseEUIV: Res Publica

    Join Date
    Aug 2002
    Location
    Province #989 (EU3/4)
    Posts
    15,369
    What religion are you?
    A mod for Europa Universalis IV that enhances religion in the age of faith and reason
    Over 1,100 events and decisions for over 30 religions
    Wiki
    Version 1.7.07 compatible with the Res Publica expansion
    Download available (August 17, 2014) or subscribe on Steam to get updates automatically
    Project Cryptic: 10% complete

  12. #12
    French Maid [B@W] Abominus's Avatar
    Arsenal of DemocracyHearts of Iron 2: ArmageddonCrusader Kings IIDarkest HourDeus Vult
    Europa Universalis 3Divine WindHearts of Iron III CollectionHeir to the ThroneEuropa Universalis III: In Nomine
    EU3 Napoleon's AmbitionSword of the StarsVictoria 2500k clubEuropa Universalis IV

    Join Date
    Sep 2003
    Location
    Marl, Gro▀deutschland
    Posts
    679
    Catholic

  13. #13
    Dei Gratia author dharper's Avatar
    Crusader Kings IIEU3 CompleteDivine WindFor The GloryHearts of Iron III
    Heir to the ThroneEuropa Universalis III: In NomineMarch of the EaglesEU3 Napoleon's AmbitionVictoria: Revolutions
    Europa Universalis: RomeSengokuVictoria 2Victoria II: A House DividedVictoria II: Heart of Darkness
    Rome: Vae VictisEU3 Collectors Edition500k clubEuropa Universalis IV: Pre-orderEUIV: Wealth of Nations
    EUIV: Conquest of ParadiseEUIV: Res Publica

    Join Date
    Aug 2002
    Location
    Province #989 (EU3/4)
    Posts
    15,369
    In that case I don't know why the code isn't working. Sorry! You may have to try the other solution written above: a separate decision for each religion.
    A mod for Europa Universalis IV that enhances religion in the age of faith and reason
    Over 1,100 events and decisions for over 30 religions
    Wiki
    Version 1.7.07 compatible with the Res Publica expansion
    Download available (August 17, 2014) or subscribe on Steam to get updates automatically
    Project Cryptic: 10% complete

  14. #14
    French Maid [B@W] Abominus's Avatar
    Arsenal of DemocracyHearts of Iron 2: ArmageddonCrusader Kings IIDarkest HourDeus Vult
    Europa Universalis 3Divine WindHearts of Iron III CollectionHeir to the ThroneEuropa Universalis III: In Nomine
    EU3 Napoleon's AmbitionSword of the StarsVictoria 2500k clubEuropa Universalis IV

    Join Date
    Sep 2003
    Location
    Marl, Gro▀deutschland
    Posts
    679
    Quote Originally Posted by dharper View Post
    In that case I don't know why the code isn't working. Sorry! You may have to try the other solution written above: a separate decision for each religion.
    Sounds good to me .

  15. #15
    Field Marshal jdrou's Avatar
    200k clubHoI AnthologyArsenal of DemocracyHearts of Iron 2: ArmageddonCrusader Kings II
    Darkest HourDeus VultEast India CompanyEuropa Universalis: ChroniclesEU3 Complete
    Divine WindFor The GloryFor the MotherlandHearts of Iron IIIHOI3: Their Finest Hour
    Heir to the ThroneEuropa Universalis III: In NomineEU3 Napoleon's AmbitionVictoria: RevolutionsRome Gold
    Semper FiSupreme Ruler 2020 GoldVictoria 2Victoria II: A House DividedVictoria II: Heart of Darkness
    EU3 Collectors Edition500k clubEuropa Universalis IV: Pre-orderEUIV: Wealth of NationsEUIV: Conquest of Paradise
    EUIV: Res Publica

    Join Date
    Jun 2002
    Location
    Michigan, USA
    Posts
    22,647
    dharper's code is working for me in a more generic province conversion decision (basically a cheat as it is right now).
    Code:
    province_decisions = {
    	convert_religion = {
    		potential = {
    			owner = { ai = no }
    			OR = {
    				AND = { religion = catholic owner = { NOT = { religion = catholic } } }
    				AND = { religion = protestant owner = { NOT = { religion = protestant } } }
    				AND = { religion = reformed owner = { NOT = { religion = reformed } } }
    				AND = { religion = orthodox owner = { NOT = { religion = orthodox } } }
    				AND = { religion = sunni owner = { NOT = { religion = sunni } } }
    				AND = { religion = shiite owner = { NOT = { religion = shiite } } }
    				AND = { religion = buddhism owner = { NOT = { religion = buddhism } } }
    				AND = { religion = hinduism owner = { NOT = { religion = hinduism } } }
    				AND = { religion = confucianism owner = { NOT = { religion = confucianism } } }
    				AND = { religion = shinto owner = { NOT = { religion = shinto } } }
    				AND = { religion = animism owner = { NOT = { religion = animism } } }
    				AND = { religion = shamanism owner = { NOT = { religion = shamanism } } }
    			}
    		}
    		allow = { }
    		effect = {
    			owner = {
    				random_owned = { 
    					limit = { owner = { religion = catholic } }
    					THIS = { religion = catholic }
    				}
    				random_owned = { 
    					limit = { owner = { religion = protestant } }
    					THIS = { religion = protestant }
    				}
    				random_owned = { 
    					limit = { owner = { religion = reformed } }
    					THIS = { religion = reformed }
    				}
    				random_owned = { 
    					limit = { owner = { religion = orthodox } }
    					THIS = { religion = orthodox }
    				}
    				random_owned = { 
    					limit = { owner = { religion = sunni } }
    					THIS = { religion = sunni }
    				}
    				random_owned = { 
    					limit = { owner = { religion = shiite } }
    					THIS = { religion = shiite }
    				}
    				random_owned = { 
    					limit = { owner = { religion = buddhism } }
    					THIS = { religion = buddhism }
    				}
    				random_owned = { 
    					limit = { owner = { religion = hinduism } }
    					THIS = { religion = hinduism }
    				}
    				random_owned = { 
    					limit = { owner = { religion = confucianism } }
    					THIS = { religion = confucianism }
    				}
    				random_owned = { 
    					limit = { owner = { religion = shinto } }
    					THIS = { religion = shinto }
    				}
    				random_owned = { 
    					limit = { owner = { religion = animism } }
    					THIS = { religion = animism }
    				}
    				random_owned = { 
    					limit = { owner = { religion = shamanism } }
    					THIS = { religion = shamanism }
    				}
    			}
    		}
    	}
    }
    If you are only allowing the decision if the owner is Catholic rather than your original 'religion_group = christian' you don't really need this complicated code; just say 'religion = catholic'.
    Last edited by jdrou; 09-06-2009 at 00:49.
    "The trouble with fighting for human freedom is that one spends most of one's time defending scoundrels. For it is against scoundrels that oppressive laws are first aimed, and oppression must be stopped at the beginning if it is to be stopped at all." --H. L. Mencken

    Playing EU4

    Download the Fix-it-Yourself Pack for HoI 1.06c (updated 11/14/05)
    Download the Unofficial fixpack for EU3 4.1b 4/29 beta or final 11/24 patch (updated 12/25/10)
    Download the text fixpack for EU3 Divine Wind (updated 2/11/11)

  16. #16
    Dei Gratia author dharper's Avatar
    Crusader Kings IIEU3 CompleteDivine WindFor The GloryHearts of Iron III
    Heir to the ThroneEuropa Universalis III: In NomineMarch of the EaglesEU3 Napoleon's AmbitionVictoria: Revolutions
    Europa Universalis: RomeSengokuVictoria 2Victoria II: A House DividedVictoria II: Heart of Darkness
    Rome: Vae VictisEU3 Collectors Edition500k clubEuropa Universalis IV: Pre-orderEUIV: Wealth of Nations
    EUIV: Conquest of ParadiseEUIV: Res Publica

    Join Date
    Aug 2002
    Location
    Province #989 (EU3/4)
    Posts
    15,369
    Quote Originally Posted by jdrou View Post
    dharper's code is working for me in a more generic province conversion decision (basically a cheat as it is right now).
    Just as a side note, there's a new trigger called "has_owner_religion = no" that would cut down on the length of your trigger considerably.
    A mod for Europa Universalis IV that enhances religion in the age of faith and reason
    Over 1,100 events and decisions for over 30 religions
    Wiki
    Version 1.7.07 compatible with the Res Publica expansion
    Download available (August 17, 2014) or subscribe on Steam to get updates automatically
    Project Cryptic: 10% complete

  17. #17
    Field Marshal jdrou's Avatar
    200k clubHoI AnthologyArsenal of DemocracyHearts of Iron 2: ArmageddonCrusader Kings II
    Darkest HourDeus VultEast India CompanyEuropa Universalis: ChroniclesEU3 Complete
    Divine WindFor The GloryFor the MotherlandHearts of Iron IIIHOI3: Their Finest Hour
    Heir to the ThroneEuropa Universalis III: In NomineEU3 Napoleon's AmbitionVictoria: RevolutionsRome Gold
    Semper FiSupreme Ruler 2020 GoldVictoria 2Victoria II: A House DividedVictoria II: Heart of Darkness
    EU3 Collectors Edition500k clubEuropa Universalis IV: Pre-orderEUIV: Wealth of NationsEUIV: Conquest of Paradise
    EUIV: Res Publica

    Join Date
    Jun 2002
    Location
    Michigan, USA
    Posts
    22,647
    Quote Originally Posted by dharper View Post
    Just as a side note, there's a new trigger called "has_owner_religion = no" that would cut down on the length of your trigger considerably.
    Doh!
    It's even in the triggers file in the sticky thread (added in IN 3.0).
    "The trouble with fighting for human freedom is that one spends most of one's time defending scoundrels. For it is against scoundrels that oppressive laws are first aimed, and oppression must be stopped at the beginning if it is to be stopped at all." --H. L. Mencken

    Playing EU4

    Download the Fix-it-Yourself Pack for HoI 1.06c (updated 11/14/05)
    Download the Unofficial fixpack for EU3 4.1b 4/29 beta or final 11/24 patch (updated 12/25/10)
    Download the text fixpack for EU3 Divine Wind (updated 2/11/11)

  18. #18
    French Maid [B@W] Abominus's Avatar
    Arsenal of DemocracyHearts of Iron 2: ArmageddonCrusader Kings IIDarkest HourDeus Vult
    Europa Universalis 3Divine WindHearts of Iron III CollectionHeir to the ThroneEuropa Universalis III: In Nomine
    EU3 Napoleon's AmbitionSword of the StarsVictoria 2500k clubEuropa Universalis IV

    Join Date
    Sep 2003
    Location
    Marl, Gro▀deutschland
    Posts
    679
    Quote Originally Posted by jdrou View Post
    dharper's code is working for me in a more generic province conversion decision (basically a cheat as it is right now).
    Code:
    province_decisions = {
    	convert_religion = {
    		potential = {
    			owner = { ai = no }
    			OR = {
    				AND = { religion = catholic owner = { NOT = { religion = catholic } } }
    				AND = { religion = protestant owner = { NOT = { religion = protestant } } }
    				AND = { religion = reformed owner = { NOT = { religion = reformed } } }
    				AND = { religion = orthodox owner = { NOT = { religion = orthodox } } }
    				AND = { religion = sunni owner = { NOT = { religion = sunni } } }
    				AND = { religion = shiite owner = { NOT = { religion = shiite } } }
    				AND = { religion = buddhism owner = { NOT = { religion = buddhism } } }
    				AND = { religion = hinduism owner = { NOT = { religion = hinduism } } }
    				AND = { religion = confucianism owner = { NOT = { religion = confucianism } } }
    				AND = { religion = shinto owner = { NOT = { religion = shinto } } }
    				AND = { religion = animism owner = { NOT = { religion = animism } } }
    				AND = { religion = shamanism owner = { NOT = { religion = shamanism } } }
    			}
    		}
    		allow = { }
    		effect = {
    			owner = {
    				random_owned = { 
    					limit = { owner = { religion = catholic } }
    					THIS = { religion = catholic }
    				}
    				random_owned = { 
    					limit = { owner = { religion = protestant } }
    					THIS = { religion = protestant }
    				}
    				random_owned = { 
    					limit = { owner = { religion = reformed } }
    					THIS = { religion = reformed }
    				}
    				random_owned = { 
    					limit = { owner = { religion = orthodox } }
    					THIS = { religion = orthodox }
    				}
    				random_owned = { 
    					limit = { owner = { religion = sunni } }
    					THIS = { religion = sunni }
    				}
    				random_owned = { 
    					limit = { owner = { religion = shiite } }
    					THIS = { religion = shiite }
    				}
    				random_owned = { 
    					limit = { owner = { religion = buddhism } }
    					THIS = { religion = buddhism }
    				}
    				random_owned = { 
    					limit = { owner = { religion = hinduism } }
    					THIS = { religion = hinduism }
    				}
    				random_owned = { 
    					limit = { owner = { religion = confucianism } }
    					THIS = { religion = confucianism }
    				}
    				random_owned = { 
    					limit = { owner = { religion = shinto } }
    					THIS = { religion = shinto }
    				}
    				random_owned = { 
    					limit = { owner = { religion = animism } }
    					THIS = { religion = animism }
    				}
    				random_owned = { 
    					limit = { owner = { religion = shamanism } }
    					THIS = { religion = shamanism }
    				}
    			}
    		}
    	}
    }
    If you are only allowing the decision if the owner is Catholic rather than your original 'religion_group = christian' you don't really need this complicated code; just say 'religion = catholic'.
    I just had the catholic in the trigger, because I only wanted to test it .
    The final decision will have religion_group as trigger...

+ Reply to Thread

Posting Permissions

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