
Action
Change Autocephalous Patriarchate
Change our membership to a different Autocephalous Patriarchate.
Autocephalous PatriarchateInternational Organizationallow, select trigger 1, select trigger 2religionVariableselect trigger 2Definitionin_game/common/generic_actions/autocephalous_patriarchates.txt:1
2type = internationalorganization
4sound = UI_action_religion_generic
6ai_tick = monthly
7ai_tick_frequency = 3
8automation_tick = monthly
9automation_tick_frequency = 1
11automation_tick = monthly
12automation_tick_frequency = 3
13player_automated_category = religiousdoctrines
15allow = {
16scope:actor = {
17at_war = no
18custom_tooltip = {
19text = we_are_not_already_ap_leader_tt We are not already leading our own Autocephalous Patriarchate
20any_international_organizations_member_of = {
22leader_country != scope:actor
}
}
}
}
28price = price:join_autocephalous_patriarchate
30select_trigger = {
31looking_for_a = international_organization
32source = actor
33target_flag = recipient
34name = "choose_international_organization" Choose the International Organization:
35column = {
36data = name
}
38visible = {
}
}
43select_trigger = {
44looking_for_a = international_organization
45target_flag = target
46name = "join_autocephalous_patriarchate_choose_ap" Choose the Autocephalous Patriarchate to join
47none_available_msg_key = "join_autocephalous_patriarchate_no_ios"
48column = {
49data = name
}
51visible = {
53scope:actor = {
54NOT = {
54is_member_of_international_organization = root
}
}
}
58enabled = {
59scope:actor = {
59can_join_international_organization = root
}
}
}
63effect = {
64if = {
65limit = {
66exists = scope:target
}
68scope:target = {
69add_country_to_international_organization = scope:actor
}
}
72else = {
72custom_tooltip = join_selected_ap_tt We will leave our current Autocephalous Patriarchate and join the selected one
}
}
74ai_will_do = {
75add = {
76desc = "VOTE_BASE_VALUE"
77value = -30
}
79if = {
80limit = {
80exists = scope:target
}
81add = {
82value = scope:target.total_members
83divide = 10
}
86if = {
87limit = {
88exists = scope:target.leader_country
89scope:actor = {
89has_positive_opinion = scope:target.leader_country
}
}
91add = {
92desc = "OPINION_OF_TARGET_LEADER"
93value = "scope:actor.opinion(scope:target.leader_country)"
94multiply = 0.5
}
}
98add = {
99desc = "OPINION_OF_CURRENT_AP_LEADER"
100value = "scope:actor.opinion(scope:recipient.leader_country)"
101multiply = -0.5
}
103if = {
104limit = {
105scope:target ?= {
106any_international_organization_member = {
107OR = {
108is_rival_of = scope:actor
109is_enemy_of = scope:actor
}
}
}
}
114subtract = {
115desc = "IO_HOSTS_ENEMIES_OR_RIVALS"
116value = -100
}
}
119if = {
120limit = {
121exists = scope:target.leader_country
}
123add = scope:target.leader_country.modifier:diplomatic_reputation
}
125if = {
126limit = {
127exists = scope:recipient.leader_country
}
129subtract = scope:recipient.leader_country.modifier:diplomatic_reputation
}
}
}