
International OrganizationChanged this version
Autocephalous Patriarchate
Meaning self-headed, an Autocephalous Patriarchate is a Metropolitan bishop in the Eastern Christian confessions which acts independently and does not subordinate or answer to any other hierarchically superior Church authority. The different patriarchates have then their own synods of bishops to decide anything affecting their own religious jurisdiction.
Fate of the PhoenixDLCon creationcatholic_patriarchateVariableauto disband triggeris_pentarchVariableon creationleft_autocephalous_patriarchateVariablecan join triggerpatriarchVariableon joinedreligionVariablecan join trigger, on joinedseatVariablemodifier 1, modifier 2, modifier 3, on creation, on joinedModifiers
Modifier 1
Monthly Prestige+0.02
Monthly Legitimacy+0.02
Modifier 2
Modifier 3
Leader modifier
Monthly Prestige+0.05
Monthly Legitimacy+0.05
Variables 2
Definitionin_game/common/international_organizations/autocephalous_patriarchate.txt:1
2has_target = no
3unique = no
4custom_name = autocephalous_patriarchate_name
5alert_view_tab = overview
6can_declare_war = {
7always = yes
}
9has_leader_country = yes
10expel_members_who_target_the_leader = yes
11expel_members_who_are_targets_of_other_members = no
12leader_type = country
13leader_change_trigger_type = none
14create_visible_trigger = {
15always = no
}
17invite_visible_trigger = {
18always = yes
}
20on_creation = {
21if = {
22limit = {
22exists = scope:actor
}
23set_leader_country = scope:actor
25if = {
29if = {
36if = {
}
43if = {
44limit = {
45is_key_in_variable_map = {
45name = pentarchy
45target = scope:target_pentarchy
}
}
}
51add_to_variable_map = {
52name = pentarchy
53key = scope:target_pentarchy
54value = scope:target_patriarch
}
}
}
}
}
}
68modifier = {
69scale = {
70if = {
71limit = {
72exists = scope:recipient
73exists = scope:recipient.leader_country
74not = {
75scope:recipient.leader_country = this
}
}
84value = root.total_population
85multiply = -0.75
86if = {
87limit = {
88scope:recipient = {
88international_organization_has_leader = yes
}
89scope:recipient.leader_country.total_population > 0
90scope:recipient.leader_country.total_population > root.total_population
}
92divide = scope:recipient.leader_country.total_population
}
94else = {
95divide = root.total_population
}
97add = 1
}
99else = {
100value = 0
}
}
}
106modifier = {
107scale = {
108if = {
109limit = {
110exists = scope:recipient
111not = {
112scope:recipient.leader_country ?= this
}
}
121value = 1
}
123else = {
124value = 0
}
}
}
130modifier = {
131scale = {
132if = {
133limit = {
134exists = scope:recipient
135scope:recipient ?= {
137owner ?= {
138OR = {
139not = {
139is_member_of_international_organization_of_type = {
139type = autocephalous_patriarchate
}
}
140not = {
141autocephalous_patriarchate = scope:recipient
}
}
}
}
}
}
148value = 1
}
150else = {
151value = 0
}
}
}
162can_lead_trigger = {
163always = yes
}
166can_join_trigger = {
167is_rebel_country = no
168OR = {
169religion Religion = {
170has_autocephalous_patriarchates = yes
}
172custom_tooltip = {
173text = formed_union_of_brest Has Formed a Uniate Church Patriarchate
}
}
177trigger_if = {
184religion Religion = "scope:recipient.var:religion"
}
186trigger_if = {
187limit = {
}
191custom_tooltip = {
192text = recently_left_patriarchate_tt We have NOT recently left that Autocephalous Patriarchate
}
}
196custom_tooltip = {
197text = we_are_not_already_ap_leader_tt We are not already leading our own Autocephalous Patriarchate
198NOT = {
199any_international_organizations_member_of = {
201leader_country ?= root
}
}
}
}
207can_leave_trigger = {
208always = no
}
211auto_leave_trigger = {
212not = {
212religion Religion = "scope:recipient.var:religion"
}
213scope:recipient = {
214leader_country = {
215opinion = {
216target = root
217value < -50
}
}
}
}
223auto_disband_trigger = {
224trigger_if = {
225limit = {
226custom_tooltip = {
227text = formed_union_of_brest Has Formed a Uniate Church Patriarchate
}
}
231leader_country = {
232NOT = {
232has_estate_privilege = estate_privilege:plc_empower_orthodox_nobility
}
}
}
235trigger_else = {
236always = no
}
}
240on_joined = {
242every_international_organizations_member_of = {
243limit = {
245not = {
245this = scope:recipient
}
}
247remove_country_from_international_organization = {
248country = root
249reason = DecidedToLeave
}
}
252if = {
253limit = {
254scope:recipient = {
}
}
262scope:recipient = {
263set_variable = {
264name = religion Religion
265value = root.religion
}
}
}
274if = {
275limit = {
}
283if = {
284limit = {
285any_holy_site_in_country = {
286is_holy_site_for = root.religion
}
}
290random_holy_site_in_country = {
291limit = {
292is_holy_site_for = root.religion
}
}
}
}
312if = {
}
}
325on_left = {
327if = {
328limit = {
329country_exists = root
330not = {
330is_member_of_international_organization_of_type = {
330type = autocephalous_patriarchate
}
}
331religion Religion = {
332has_autocephalous_patriarchates = yes
}
}
335if = {
336limit = {
337religion Religion = {
338any_religion_international_organization = {
340io_within_diplomatic_range = root
341root = {
341country_can_join_international_organization = prev
}
342leader_country ?= {
343opinion = {
343target = root
343value >= 0
}
344root = {
344this_opinion_of_prev >= 0
}
}
}
}
}
349religion Religion = {
350random_religion_international_organization = {
351limit = {
353io_within_diplomatic_range = root
354root = {
354country_can_join_international_organization = prev
}
355leader_country ?= {
356opinion = {
356target = root
356value >= 0
}
357root = {
357this_opinion_of_prev >= 0
}
}
}
360add_country_to_international_organization = root
}
}
}
364else = {
365create_international_organization = {
367add_country_to_international_organization = prev
368set_leader_country = prev
}
}
}
}
379on_disband = {
380every_international_organization_member = {
381limit = {
382religion Religion = {
383has_autocephalous_patriarchates = yes
}
}
386save_temporary_scope_as = country_to_add
387if = {
388limit = {
389religion Religion = {
390any_religion_international_organization = {
392io_within_diplomatic_range = scope:country_to_add
393scope:country_to_add = {
393country_can_join_international_organization = prev
}
394leader_country ?= {
395opinion = {
395target = scope:country_to_add
395value >= 0
}
396scope:country_to_add = {
396this_opinion_of_prev >= 0
}
}
}
}
}
401religion Religion = {
402random_religion_international_organization = {
403limit = {
405io_within_diplomatic_range = scope:country_to_add
406scope:country_to_add = {
406country_can_join_international_organization = prev
}
407leader_country ?= {
408opinion = {
408target = scope:country_to_add
408value >= 0
}
409scope:country_to_add = {
409this_opinion_of_prev >= 0
}
}
}
412add_country_to_international_organization = scope:country_to_add
}
}
}
416else = {
417create_international_organization = {
419creator = scope:country_to_add
420add_country_to_international_organization = prev
421set_leader_country = prev
}
}
}
}
430variables = {
431religion Religion = {
432format = "RELIGION_FORMAT"
}
}
440ai_desire_to_join = {
441if = {
442limit = {
442country_rank_level > 1
}
443subtract = {
444desc = "game_concept_country_rank" Country Rank
445value = {
446value = country_rank_level
447multiply = 20
}
}
}
451subtract = {
452desc = "game_concept_tax_base" Tax Base
453value = country_tax_base
}
455add = {
456desc = "game_concept_opinion" Opinion
457value = {
458value = "root.opinion(scope:actor)"
459divide = 4
}
}
462add = {
463desc = "game_concept_diplomatic_reputation" Diplomatic Reputation
464value = {
465value = "scope:actor.modifier:diplomatic_reputation"
466multiply = 0.5
}
}
469if = {
470limit = {
471exists = scope:actor
472OR = {
473culture ?= scope:actor.culture
474ruler ?= {
475culture ?= scope:actor.culture
}
}
}
479add = {
480desc = "PRIMARY_OR_RULER_CULTURE_EQUAL_TO_LEADER_CULTURE" Primary Culture or Culture of Ruler equal to Leader culture
481value = 25
}
}
484if = {
485limit = {
486any_international_organizations_member_of = {
488leader_country ?= root
}
}
491subtract = {
492desc = "IS_LEADER_OF_AN_AP" Is already leader of an Autocephalous Patriarchate
493value = 1000
}
}
}
498ai_desire_to_allow_new_member = {
499add = {
500desc = "WE_WANT_THE_ORGANIZATION_TO_GROW" We want the International Organization to grow
501value = 20
}
}
