
Cabinet Action
Assimilate Pops into our Culture
This will convert the local Population to the target Culture.
Modifiers
Definitionin_game/common/cabinet_actions/promote_culture.txt:1
2ability = dip
4allow_multiple = yes
6potential = {
7num_locations > 0
}
10allow = {
11cultural_unity < 1.0
}
14select_trigger = {
15looking_for_a = culture
16target_flag = target
18source_ai_override = actor
19source_flags_ai_override = include_any_present
20name = "promote_culture_select_culture" Select the Culture to steer towards:
21none_available_msg_key = "promote_culture_no_culture"
22column = {
23data = name
}
25column = {
26data = culture_percentage_in_country
}
28default_sort = culture_percentage_in_country
29visible = {
30OR = {
31AND = {
32scope:actor = {
33is_ai = no
}
35OR = {
36scope:actor = {
37culture_percentage_in_country = {
38culture = root
39value >= 0.01
}
}
43cultural_view = {
44target = scope:actor.culture
45value > neutral
}
47reverse_cultural_view = {
48target = scope:actor.culture
49value > neutral
}
52is_primary_or_accepted_in = scope:actor
}
}
56AND = {
57scope:actor = {
58is_ai = yes
}
60is_primary_in = scope:actor
}
}
}
}
66select_trigger = {
67looking_for_a = province
68source = actor
69target_flag = target_1
70name = "promote_culture_select_province" Select the Province to assimilate Pops into our Culture:
71none_available_msg_key = "promote_culture_no_provinces"
72column = {
73data = name
}
75column = {
76data = province_culture_percentage
}
78column = {
79data = population
}
81default_sort = province_culture_percentage
82visible = {
83any_location_in_province = {
84OR = {
85NOT = {
85dominant_culture = owner.culture
}
86local_cultural_unity < 1.0
}
}
89NOT = {
89interaction_target = target_1
}
}
}
91map_color = {
92lerp = {
95factor = "province.culture_percentage(scope:target)"
}
}
}
100is_finished = {
101scope:target_1 = {
102culture_percentage(scope:target) >= 1.0
103not = {
104any_location_in_province = {
105NOT = {
105dominant_culture = scope:target
}
}
}
}
}
111on_activate = {
112if = {
113limit = {
114exists = scope:target_1
}
}
}
125on_deactivate = {
126if = {
127limit = {
128exists = scope:target_1
}
}
}
136location_modifier = {
}
141progress = {
142scope:target_1 = {
143value = "culture_percentage(scope:target)"
}
}
147map_marker = {
148show_for_owner = yes
}
151ai_will_do = {
152add = {
153desc = "Wrong culture"
154if = {
155limit = {
156exists = scope:target
157scope:target != scope:actor.culture
}
159value = -1000
}
}
}

