
Cabinet Action
Send People to the Colonies
Force our Pops to migrate into a Colonial Nation.
Colonial NationSubject Typeallow, select trigger 2Definitionin_game/common/cabinet_actions/send_people_to_the_colonies.txt:1
2ability = adm
4allow_multiple = yes
6potential = {
7is_rebel_country = no
}
18select_trigger = {
19looking_for_a = province
20source = actor
21target_flag = target
22cache_targets = yes
23name = "send_people_to_the_colonies_select_province" Select Province to send Pops from:
24none_available_msg_key = "send_people_to_the_colonies_source_no_provinces"
25column = {
26data = name
}
28column = {
29data = population
}
31enabled = {
32population > 1
}
}
37select_trigger = {
38looking_for_a = country
39target_flag = target_1
40interaction_source_list = {
41scope:actor = {
42every_subject = {
43add_to_list = source
}
}
}
47cache_targets = yes
48name = "send_people_to_the_colonies_select_colony" Select colony to send Pops to:
49none_available_msg_key = "send_people_to_the_colonies_no_countries"
50column = {
51data = name
}
}
59select_trigger = {
60looking_for_a = province
61source = target_1
62target_flag = target_2
63name = "send_people_to_the_colonies_select_destination_province" Select a province in the colony to send Pops to:
64none_available_msg_key = "send_people_to_the_colonies_destination_no_provinces"
65column = {
66data = name
}
68column = {
69data = population
}
71visible = {
}
73enabled = {
74population < scope:target.population
}
}
79on_activate = {
80if = {
81limit = {
82exists = scope:target
83exists = scope:target_2
}
85add_migration = {
86owner = scope:actor
87from = scope:target.province_definition
88to = scope:target_2.province_definition
89amount = {
90value = 0.100
91multiply = {
92value = 1
93if = {
94limit = {
95exists = scope:cabinet
}
97add = "scope:cabinet.effective_skill"
}
}
}
101months = -1
}
}
}
106on_deactivate = {
107if = {
108limit = {
109exists = scope:target
110exists = scope:target_2
}
112remove_migration = {
113owner = scope:actor
114from = scope:target.province_definition
115to = scope:target_2.province_definition
}
}
}
120country_modifier = {
}
123is_finished = {
124trigger_if = {
125limit = {
126exists = scope:target
127exists = scope:target_2
}
129or = {
130scope:target_2.population >= scope:target.population
131scope:target = {
132any_location_in_province = {
133population < 1
}
}
}
}
}