+ Reply to Thread
Results 1 to 18 of 18

Thread: Changing provincereligion by decision

  1. #1
    French Maid [B@W] Abominus's Avatar
    EU3 OwnerNapoleonic MarshalDeus Vult!Hearts of Iron 2: ArmageddonEuropa Universalis III: In Nomine
    Arsenal of DemocracyHeir to the ThroneVictoria 2Divine WindSword of the Stars
    Darkest HourCrusader Kings IIHearts of Iron III Collection

    Join Date
    Sep 2003
    Location
    Marl, Großdeutschland
    Posts
    615

    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
    EU3 OwnerNapoleonic MarshalDeus Vult!Europa Universalis III: In NomineRome Gold
    East India Company CollectionMount & Blade: WarbandVictoria 2Crusader Kings IIVictoria II: A House Divided
    Victoria 2: Heart of Darkness

    Join Date
    Jun 2004
    Location
    Dallas, Texas, USA
    Posts
    120
    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
    EU3 OwnerNapoleonic MarshalDeus Vult!Europa Universalis: RomeEuropa Universalis: Rome (Collectors Edition)
    Hearts of Iron 2: ArmageddonVictoria: RevolutionsEuropa Universalis III: In NomineRome: Vae VictisSupreme Ruler 2020
    Hearts of Iron IIIHeir to the ThroneMount & Blade: WarbandSemper FiVictoria 2
    Divine WindCrusader Kings IIFor the MotherlandVictoria II: A House DividedCrusader Kings II Holy Knight

    Join Date
    Sep 2006
    Location
    Washington
    Posts
    2,218
    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
    EU3 Collectors Edition OwnerHoI AnthologyNapoleonic MarshalDeus Vult!Hearts of Iron 2: Armageddon
    Victoria: RevolutionsEuropa Universalis III: In NomineEU3 CompleteRome GoldEast India Company
    Hearts of Iron IIISupreme Ruler 2020 GoldFor The GloryArsenal of DemocracyHeir to the Throne
    200k ClubSemper FiVictoria 2Divine WindEU3: Chronicles
    Darkest HourCrusader Kings IIFor the MotherlandHOI3: Their Finest Hour

    Join Date
    Jun 2002
    Location
    Michigan, USA
    Posts
    22,040
    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 EU3 Divine Wind 5.2 latest beta

    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
    Sort of kind of back dharper's Avatar
    EU3 Collectors Edition OwnerNapoleonic MarshalEuropa Universalis: RomeVictoria: RevolutionsEuropa Universalis III: In Nomine
    EU3 CompleteRome: Vae VictisHearts of Iron IIISupreme Ruler 2020 GoldFor The Glory
    Heir to the ThroneSemper FiVictoria 2Divine WindCrusader Kings II
    Pride of NationsFor the MotherlandVictoria II: A House Divided

    Join Date
    Aug 2002
    Location
    Province #989 (EU3)
    Posts
    12,467
    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 EU3: In Nomine and EU3: Complete that enhances religion
    Religious Minorities - More Religions - Religious Fervor - New Graphics - Hundreds of Events and Decisions
    New In Nomine version released December 31, 2011 (less than a month ago)

    Still playing EU3: Complete? Get my Magna Mundi Platinum 2 bugfix for religion and the Sengoku.

    Honor of Lancaster: A Magna Mundi IV AAR (finished)




  6. #6
    Field Marshal jdrou's Avatar
    EU3 Collectors Edition OwnerHoI AnthologyNapoleonic MarshalDeus Vult!Hearts of Iron 2: Armageddon
    Victoria: RevolutionsEuropa Universalis III: In NomineEU3 CompleteRome GoldEast India Company
    Hearts of Iron IIISupreme Ruler 2020 GoldFor The GloryArsenal of DemocracyHeir to the Throne
    200k ClubSemper FiVictoria 2Divine WindEU3: Chronicles
    Darkest HourCrusader Kings IIFor the MotherlandHOI3: Their Finest Hour

    Join Date
    Jun 2002
    Location
    Michigan, USA
    Posts
    22,040
    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 EU3 Divine Wind 5.2 latest beta

    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
    Sort of kind of back dharper's Avatar
    EU3 Collectors Edition OwnerNapoleonic MarshalEuropa Universalis: RomeVictoria: RevolutionsEuropa Universalis III: In Nomine
    EU3 CompleteRome: Vae VictisHearts of Iron IIISupreme Ruler 2020 GoldFor The Glory
    Heir to the ThroneSemper FiVictoria 2Divine WindCrusader Kings II
    Pride of NationsFor the MotherlandVictoria II: A House Divided

    Join Date
    Aug 2002
    Location
    Province #989 (EU3)
    Posts
    12,467
    ...Just make sure to put it in an owner scope; I forgot to mention that above.

    A mod for EU3: In Nomine and EU3: Complete that enhances religion
    Religious Minorities - More Religions - Religious Fervor - New Graphics - Hundreds of Events and Decisions
    New In Nomine version released December 31, 2011 (less than a month ago)

    Still playing EU3: Complete? Get my Magna Mundi Platinum 2 bugfix for religion and the Sengoku.

    Honor of Lancaster: A Magna Mundi IV AAR (finished)




  8. #8
    French Maid [B@W] Abominus's Avatar
    EU3 OwnerNapoleonic MarshalDeus Vult!Hearts of Iron 2: ArmageddonEuropa Universalis III: In Nomine
    Arsenal of DemocracyHeir to the ThroneVictoria 2Divine WindSword of the Stars
    Darkest HourCrusader Kings IIHearts of Iron III Collection

    Join Date
    Sep 2003
    Location
    Marl, Großdeutschland
    Posts
    615
    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
    Sort of kind of back dharper's Avatar
    EU3 Collectors Edition OwnerNapoleonic MarshalEuropa Universalis: RomeVictoria: RevolutionsEuropa Universalis III: In Nomine
    EU3 CompleteRome: Vae VictisHearts of Iron IIISupreme Ruler 2020 GoldFor The Glory
    Heir to the ThroneSemper FiVictoria 2Divine WindCrusader Kings II
    Pride of NationsFor the MotherlandVictoria II: A House Divided

    Join Date
    Aug 2002
    Location
    Province #989 (EU3)
    Posts
    12,467
    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 EU3: In Nomine and EU3: Complete that enhances religion
    Religious Minorities - More Religions - Religious Fervor - New Graphics - Hundreds of Events and Decisions
    New In Nomine version released December 31, 2011 (less than a month ago)

    Still playing EU3: Complete? Get my Magna Mundi Platinum 2 bugfix for religion and the Sengoku.

    Honor of Lancaster: A Magna Mundi IV AAR (finished)




  10. #10
    French Maid [B@W] Abominus's Avatar
    EU3 OwnerNapoleonic MarshalDeus Vult!Hearts of Iron 2: ArmageddonEuropa Universalis III: In Nomine
    Arsenal of DemocracyHeir to the ThroneVictoria 2Divine WindSword of the Stars
    Darkest HourCrusader Kings IIHearts of Iron III Collection

    Join Date
    Sep 2003
    Location
    Marl, Großdeutschland
    Posts
    615
    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
    Sort of kind of back dharper's Avatar
    EU3 Collectors Edition OwnerNapoleonic MarshalEuropa Universalis: RomeVictoria: RevolutionsEuropa Universalis III: In Nomine
    EU3 CompleteRome: Vae VictisHearts of Iron IIISupreme Ruler 2020 GoldFor The Glory
    Heir to the ThroneSemper FiVictoria 2Divine WindCrusader Kings II
    Pride of NationsFor the MotherlandVictoria II: A House Divided

    Join Date
    Aug 2002
    Location
    Province #989 (EU3)
    Posts
    12,467
    What religion are you?

    A mod for EU3: In Nomine and EU3: Complete that enhances religion
    Religious Minorities - More Religions - Religious Fervor - New Graphics - Hundreds of Events and Decisions
    New In Nomine version released December 31, 2011 (less than a month ago)

    Still playing EU3: Complete? Get my Magna Mundi Platinum 2 bugfix for religion and the Sengoku.

    Honor of Lancaster: A Magna Mundi IV AAR (finished)




  12. #12
    French Maid [B@W] Abominus's Avatar
    EU3 OwnerNapoleonic MarshalDeus Vult!Hearts of Iron 2: ArmageddonEuropa Universalis III: In Nomine
    Arsenal of DemocracyHeir to the ThroneVictoria 2Divine WindSword of the Stars
    Darkest HourCrusader Kings IIHearts of Iron III Collection

    Join Date
    Sep 2003
    Location
    Marl, Großdeutschland
    Posts
    615
    Catholic

  13. #13
    Sort of kind of back dharper's Avatar
    EU3 Collectors Edition OwnerNapoleonic MarshalEuropa Universalis: RomeVictoria: RevolutionsEuropa Universalis III: In Nomine
    EU3 CompleteRome: Vae VictisHearts of Iron IIISupreme Ruler 2020 GoldFor The Glory
    Heir to the ThroneSemper FiVictoria 2Divine WindCrusader Kings II
    Pride of NationsFor the MotherlandVictoria II: A House Divided

    Join Date
    Aug 2002
    Location
    Province #989 (EU3)
    Posts
    12,467
    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 EU3: In Nomine and EU3: Complete that enhances religion
    Religious Minorities - More Religions - Religious Fervor - New Graphics - Hundreds of Events and Decisions
    New In Nomine version released December 31, 2011 (less than a month ago)

    Still playing EU3: Complete? Get my Magna Mundi Platinum 2 bugfix for religion and the Sengoku.

    Honor of Lancaster: A Magna Mundi IV AAR (finished)




  14. #14
    French Maid [B@W] Abominus's Avatar
    EU3 OwnerNapoleonic MarshalDeus Vult!Hearts of Iron 2: ArmageddonEuropa Universalis III: In Nomine
    Arsenal of DemocracyHeir to the ThroneVictoria 2Divine WindSword of the Stars
    Darkest HourCrusader Kings IIHearts of Iron III Collection

    Join Date
    Sep 2003
    Location
    Marl, Großdeutschland
    Posts
    615
    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
    EU3 Collectors Edition OwnerHoI AnthologyNapoleonic MarshalDeus Vult!Hearts of Iron 2: Armageddon
    Victoria: RevolutionsEuropa Universalis III: In NomineEU3 CompleteRome GoldEast India Company
    Hearts of Iron IIISupreme Ruler 2020 GoldFor The GloryArsenal of DemocracyHeir to the Throne
    200k ClubSemper FiVictoria 2Divine WindEU3: Chronicles
    Darkest HourCrusader Kings IIFor the MotherlandHOI3: Their Finest Hour

    Join Date
    Jun 2002
    Location
    Michigan, USA
    Posts
    22,040
    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 EU3 Divine Wind 5.2 latest beta

    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
    Sort of kind of back dharper's Avatar
    EU3 Collectors Edition OwnerNapoleonic MarshalEuropa Universalis: RomeVictoria: RevolutionsEuropa Universalis III: In Nomine
    EU3 CompleteRome: Vae VictisHearts of Iron IIISupreme Ruler 2020 GoldFor The Glory
    Heir to the ThroneSemper FiVictoria 2Divine WindCrusader Kings II
    Pride of NationsFor the MotherlandVictoria II: A House Divided

    Join Date
    Aug 2002
    Location
    Province #989 (EU3)
    Posts
    12,467
    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 EU3: In Nomine and EU3: Complete that enhances religion
    Religious Minorities - More Religions - Religious Fervor - New Graphics - Hundreds of Events and Decisions
    New In Nomine version released December 31, 2011 (less than a month ago)

    Still playing EU3: Complete? Get my Magna Mundi Platinum 2 bugfix for religion and the Sengoku.

    Honor of Lancaster: A Magna Mundi IV AAR (finished)




  17. #17
    Field Marshal jdrou's Avatar
    EU3 Collectors Edition OwnerHoI AnthologyNapoleonic MarshalDeus Vult!Hearts of Iron 2: Armageddon
    Victoria: RevolutionsEuropa Universalis III: In NomineEU3 CompleteRome GoldEast India Company
    Hearts of Iron IIISupreme Ruler 2020 GoldFor The GloryArsenal of DemocracyHeir to the Throne
    200k ClubSemper FiVictoria 2Divine WindEU3: Chronicles
    Darkest HourCrusader Kings IIFor the MotherlandHOI3: Their Finest Hour

    Join Date
    Jun 2002
    Location
    Michigan, USA
    Posts
    22,040
    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 EU3 Divine Wind 5.2 latest beta

    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
    EU3 OwnerNapoleonic MarshalDeus Vult!Hearts of Iron 2: ArmageddonEuropa Universalis III: In Nomine
    Arsenal of DemocracyHeir to the ThroneVictoria 2Divine WindSword of the Stars
    Darkest HourCrusader Kings IIHearts of Iron III Collection

    Join Date
    Sep 2003
    Location
    Marl, Großdeutschland
    Posts
    615
    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