
ActionChanged this version
Embrace the Reformation
The Reformation has taken hold in our country! It might be wise to embrace the changing times and be seen as a bastion of the new faith.
RomeCountrypotential
TheocracyGovernment Typeeffect
Any ReligionPolicyeffect
Same ReligionPolicyeffect
Same Religious GroupPolicyeffect
Special SuccessionPolicyeffect
CalvinismReligionallow, select trigger 2
CatholicismReligionpotential
LutheranismReligionallow, select trigger 2
The ReformationSituationallow, select trigger 1Definitionin_game/common/generic_actions/reformation.txt:95
96type = situation
107allow = {
109trigger_if = {
110limit = {
111scope:actor = {
112is_human = no
}
}
121scope:actor = {
122OR = {
}
}
}
134trigger_else = {
135scope:actor = {
136OR = {
}
}
}
}
150cooldown = {
151type = convert_religion
152years = 10
}
155automation_tick = never
156ai_tick_frequency = 12
158ai_prerequisite = {
159OR = {
}
}
171select_trigger = {
172looking_for_a = situation
173target_flag = recipient
174name = "choose_situation" Choose the Situation:
175column = {
176data = name
}
}
184select_trigger = {
185looking_for_a = religion
186target_flag = target
187name = "convert_religion_select_religion" Select Religion to convert to
188none_available_msg_key = "convert_religion_no_religions"
189column = {
190data = name
}
192visible = {
197is_religion_enabled = yes
}
}
201effect = {
202if = {
203limit = {
204exists = scope:target
}
206scope:actor = {
208random_current_policy = {
209limit = {
210OR = {
}
}
217save_temporary_scope_as = target_policy
}
220change_religion = scope:target
222if = {
}
232add_policy = scope:target_policy
}
}
235else = {
236custom_tooltip = embrace_the_reformation_tt Our Country will convert to the selected Religion, including our Ruler, Consort, Heir, and the Children of our Ruler.
}
}
240ai_will_do = {
241add = -100
242add = {
243if = {
244limit = {
245scope:target = {
246num_countries_in_religion < 10
}
248scope:actor = {
249religion_percentage_in_country = {
250religion = scope:target
251value > 0
}
}
}
255value = 1000
256multiply = "scope:actor.religion_percentage_in_country(scope:target)"
}
}
259add = {
260if = {
261limit = {
262scope:target = {
263num_countries_in_religion > 9
264num_countries_in_religion < 20
}
266scope:actor = {
267religion_percentage_in_country = {
268religion = scope:target
269value > 0
}
}
}
273value = 500
274multiply = "scope:actor.religion_percentage_in_country(scope:target)"
}
}
}