
ActionChanged this version
Change Primary Culture
Change the Primary Culture of our Country to another Accepted Culture.
Definitionin_game/common/generic_actions/culture.txt:186
187type = owncountry
189potential = {
}
192allow = {
193scope:actor = {
194is_colonial_subject = no
}
}
198ai_tick = monthly
199ai_tick_frequency = 12
201automation_tick = monthly
202automation_tick_frequency = 1
203player_automated_category = cultureacceptance
205price = price:change_primary_culture
207cooldown = {
208type = convert_culture
209years = 10
}
212select_trigger = {
213looking_for_a = culture
214source = actor
215target_flag = target
216name = "change_culture_select_culture" Select Accepted Culture to become our Primary Culture:
217none_available_msg_key = "change_primary_culture_no_cultures"
219ai_interaction_source_list = {
220scope:actor = {
221if = {
222limit = {
222exists = dominant_culture
}
223dominant_culture = {
224add_to_list = source
}
}
227else = {
228culture = {
229add_to_list = source
}
}
}
}
235column = {
236data = name
}
238visible = {
239trigger_if = {
240limit = {
241has_game_rule = dynamic_culture
}
243always = yes
}
245trigger_else_if = {
246limit = {
247has_game_rule = culture_group_only
}
249scope:actor = {
250culture = {
251any_culture_group = {
252root = {
253has_culture_group = prev
}
}
}
}
}
259trigger_else_if = {
260limit = {
261has_game_rule = culture_present_in_country
}
263scope:actor = {
264culture_population_in_country = {
265culture = root
266value > 0
}
}
}
270trigger_else = {
271always = yes
}
}
274enabled = {
275trigger_if = {
276limit = {
277has_game_rule = dynamic_culture
}
279scope:actor = {
280has_accepted_culture = root
281not = {
281culture = root
}
282OR = {
283dominant_culture ?= root
284ruler ?= {
284culture = root
}
285dominant_upper_class_culture ?= root
}
}
}
}
}
296effect = {
297scope:actor = {
298if = {
299limit = {
300exists = scope:target
}
302culture = {
303save_scope_as = old_culture
}
305change_culture = scope:target
306add_accepted_culture = scope:old_culture
}
}
}
311ai_will_do = {
312if = {
313limit = {
314scope:actor = {
315at_war = yes
}
}
318multiply = 0
}
322if = {
323limit = {
324scope:actor = {
325culture_percentage_in_country(scope:target) > {
325value = "culture_percentage_in_country(scope:actor.culture)"
325add = 0.1
}
}
}
328add = 1000
}
331subtract = {
332desc = "less accepted pops"
333scope:actor = {
334value = 100
335multiply = "culture_percentage_in_country(scope:target)"
}
}
340if = {
341limit = {
342scope:actor = {
343ruler ?= {
343culture = scope:actor.culture
}
}
}
346multiply = 0
}
349if = {
350limit = {
351has_game_rule = historical_ai_choices
352scope:actor = {
353has_or_had_tag = TUR
}
}
357add = {
358desc = "historical ottomans"
359value = -10000
}
}
363add = {
364desc = "inertia"
365value = -1
}
}