
Action
Add Location to International Organization
Adds the selected Location to the specific International Organization
Definitionin_game/common/generic_actions/international_organizations.txt:1
2type = owncountry
4ai_prerequisite = {
6num_of_locations_owned_by_io = {
8value < "num_locations"
}
}
12potential = {
}
15allow = {
}
18price = price:add_location_to_international_organization
20select_trigger = {
21looking_for_a = location
22target_flag = target
23source = actor
24source_flags = only_actual_locations
25name = "add_location_to_international_organization_select_location" Select Location to add:
26none_available_msg_key = "add_location_to_international_organization_no_locations"
27column = {
28data = name
}
30column = {
31data = population
}
33visible = {
}
35enabled = {
36NOT = {
36integration_level = conquered
}
}
}
40select_trigger = {
41looking_for_a = international_organization
42target_flag = target_1
43name = "add_location_to_international_organization_select_international_organization" Select International Organization to add the Location to:
44none_available_msg_key = "add_location_to_international_organization_no_ios"
45column = {
46data = name
}
48visible = {
49international_organization_can_own_land = yes
50international_organization_can_add_land = root
}
52enabled = {
53location_can_be_added_to_international_organization = scope:target
}
}
57effect = {
58if = {
59limit = {
60AND = {
61exists = scope:target
62exists = scope:target_1
}
}
65scope:target_1 = {
66add_location_to_international_organization = scope:target
67custom_tooltip = add_location_to_international_organization_tt Target 1
}
}
}
72ai_will_do = {
74add = -10
77add = {
78value = "scope:target_1.modifier_utility(scope:target)"
79multiply = 20
}
82if = {
86if = {
87limit = {
88scope:target = {
89NOT = {
89integration_level = conquered
}
}
}
93add = 20
}
95else = {
97multiply = 0
98subtract = 1000
}
}
}
104ai_tick = monthly
105ai_tick_frequency = 60
107automation_tick = never
108automation_tick_frequency = 12
110maximum_targets_in_one_tick = 10