
Action
Declare Oboedientia
Proclaim our support for the one and true Catholic Church Leader Title.
RomeCountrypotential, select trigger 2
Catholic ChurchInternational Organizationpotential
CatholicismReligionpotential
Western SchismSituationallow, select trigger 1, select trigger 2schism_opponent_countryVariableselect trigger 2Definitionin_game/common/generic_actions/western_schism.txt:1
2type = situation
3show_message = no
4potential = {
5scope:actor = {
8num_cardinals = 0
}
}
19ai_tick = monthly
20ai_tick_frequency = 4
22automation_tick = never
23automation_tick_frequency = 12
24price = price:western_schism_ri_actions_price
26cooldown = {
27type = schism_show_support_for_one_pope
28years = 4
}
31select_trigger = {
32looking_for_a = situation
33target_flag = recipient
34name = "choose_situation" Choose the Situation:
35column = {
36data = name
}
}
44select_trigger = {
45looking_for_a = country
46target_flag = target
47name = "choose_candidate_to_support" Select Candidate to support
48none_available_msg_key = "no_valid_countries"
49column = {
49data = name
}
50allow_self = no
51visible = {
52OR = {
}
}
}
}
61effect = {
62if = {
63limit = {
64exists = scope:target
}
66scope:target = {
67add_opinion = {
68target = scope:actor
69modifier = declared_oboedientia
}
}
73active_resolution(resolution:western_schism_resolution) ?= {
74save_temporary_scope_as = resolution
75scope:target = {
76save_temporary_scope_as = voter
77scope:resolution = {
78vote_in_active_resolution(scope:voter) ?= {
79change_variable = {
81add = {
82value = "scope:voter.num_cardinals"
83multiply = 0.5
}
}
}
}
}
}
}
}
92else = {
93custom_tooltip = ws_schism_show_support_for_one_pope_tt The selected Candidate will receive support in the vote of the Western Schism. The gained support will depend on their number of cardinals, being halved.
}
}
97ai_will_do = {
98if = {
99limit = {
100exists = scope:target
104country_exists = situation:western_schism.var:schism_opponent_country
}
106if = {
107limit = {
108scope:target = c:PAP
}
110c:PAP = {
111add = {
112scope:actor = {
113value = this_opinion_of_prev
}
}
}
117situation:western_schism.var:schism_opponent_country = {
118subtract = {
119scope:actor = {
120value = this_opinion_of_prev
}
}
}
124add = -20
}
126else = {
127c:PAP = {
128subtract = {
129scope:actor = {
130value = this_opinion_of_prev
}
}
}
134situation:western_schism.var:schism_opponent_country = {
135add = {
136scope:actor = {
137value = this_opinion_of_prev
}
}
}
141add = -20
}
143if = {
144limit = {
145scope:target = {
145modifier:diplomatic_reputation != 0
}
}
147add = {
148value = scope:target.modifier:diplomatic_reputation
149multiply = 5
}
}
}
}