
ActionChanged this version
Claim an Area
Expand our colonial claims into an adjacent Area.
Treaty of Treaty Location LocationSituationpotential, select trigger 1, select trigger 2var_east_countryVariablepotential, select trigger 2var_west_countryVariablepotential, select trigger 2Definitionin_game/common/generic_actions/treaty_of_tordesillas.txt:2
3type = situation
5potential = {
}
10trigger_if = {
11limit = {
}
}
17OR = {
}
}
}
26automation_tick = never
27automation_tick_frequency = 12
29price = price:tordesillas_claim_area_price
31cooldown = {
32type = tordesillas_claim_area_cooldown
33years = 1
}
36select_trigger = {
37looking_for_a = situation
38target_flag = recipient
39name = "choose_situation" Choose the Situation:
40column = {
40data = name
}
}
47select_trigger = {
48looking_for_a = area
49target_flag = target_area
50name = "tordesillas_claim_area_select_title" Choose an Area to claim:
51none_available_msg_key = "steal_maps_no_areas"
52column = {
52data = name
}
53visible = {
54within_colonial_range_of = scope:actor
56NOR = {
57continent = continent:europe
58sub_continent = sub_continent:south_asia
59sub_continent = sub_continent:east_asia
}
62scope:actor = {
62has_discovered_area = prev
}
65any_location_in_area = {
66is_land = yes
67is_ownable = yes
68has_owner = no
}
71NOT = {
72any_location_in_area = {
73has_owner = yes
74top_owner ?= {
75is_country_religion_pagan = no
}
}
}
}
80enabled = {
82custom_tooltip = {
83text = tordesillas_claim_area.tt.owns_location_in_neighbor_area Owns or claims terrain on a neighbor Area
84any_neighbor_area = {
86trigger_if = {
87limit = {
88any_location_in_area = {
89is_land = yes
}
}
94any_location_in_area = {
}
}
100trigger_else = {
103any_neighbor_area = {
105any_location_in_area = {
106is_land = yes
}
}
}
}
}
116custom_tooltip = {
117text = tordesillas_claim_area.tt.no_claims_in_area No other claims in the Area
118NOT = {
119any_province_definition_in_area = {
120OR = {
}
}
}
}
}
133map_color = {
134if = {
135limit = {
139has_owner = yes
}
142value = top_owner.country_color
}
144else_if = {
145limit = {
149has_owner = yes
}
152value = top_owner.country_color
}
155else_if = {
156limit = {
157area = {
158any_ownable_location_in_area = {
159has_owner = yes
}
162any_ownable_location_in_area = {
163has_owner = yes
}
}
}
}
}
}
178effect = {
180scope:target_area ?= {
181every_province_definition_in_area = {
182scope:actor ?= {
183add_colonial_claim = {
184province_definition = prev
185reason = claim_reason_treaty_of_tordesillas
186category = same_religion
}
}
}
}
}
193ai_will_do = {
195add = scope:actor.societal_value:land_vs_naval
196add = {
197value = {
198add = scope:actor.societal_value:outward_vs_inward
199multiply = -1
}
}
202if = {
203limit = {
203scope:actor.modifier:bias_for_colonialist_policies > 0
}
204add = {
205value = {
206value = scope:actor.modifier:bias_for_colonialist_policies
}
}
}
210if = {
211limit = {
212scope:actor = {
213country_tax_base > 50
}
}
216scope:target_area = {
217every_province_in_area = {
218add = population
219add = province_capital.proximity
}
}
}
223else = {
224add = -1000
}
228subtract = {
229desc = "bias against doing stuff"
230value = 1
}
}