
ActionChanged this version
Claim a Conflicting Area
We will use our influence over the Rome to create a colonial claim in an Area where both us and our colonial rival control land.
RomeCountryallowNMapColors|MAP_COLOR_HIGHDefineselect trigger 2
Treaty of Treaty Location LocationSituationallow, potential, select trigger 1, select trigger 2var_east_countryVariablepotential, select trigger 2var_west_countryVariablepotential, select trigger 2Definitionin_game/common/generic_actions/treaty_of_tordesillas.txt:416
417icon = tordesillas_claim_area
418type = situation
420potential = {
}
425trigger_if = {
426limit = {
}
}
432OR = {
}
}
}
440allow = {
441trigger_if = {
446scope:actor.modifier:diplomatic_reputation > situation:treaty_of_tordesillas.var:var_east_country.modifier:diplomatic_reputation
}
450trigger_else = {
452scope:actor.modifier:diplomatic_reputation > situation:treaty_of_tordesillas.var:var_west_country.modifier:diplomatic_reputation
}
}
458automation_tick = never
459automation_tick_frequency = 12
461price = {
463if = {
464limit = {
465scope:actor = {
466any_colonial_claim_province_definition = {
467count > 0
}
}
}
471value = price:tordesillas_claim_conflicting_area_price
}
}
476cooldown = {
477type = tordesillas_claim_area_cooldown
478years = 1
}
481select_trigger = {
482looking_for_a = situation
483target_flag = recipient
484name = "choose_situation" Choose the Situation:
485column = {
485data = name
}
}
492select_trigger = {
493looking_for_a = area
494target_flag = target_area
495name = "tordesillas_claim_area_select_title" Choose an Area to claim:
496none_available_msg_key = "steal_maps_no_areas"
497column = {
497data = name
}
498visible = {
499within_colonial_range_of = scope:actor
502NOR = {
503continent = continent:europe
504sub_continent = sub_continent:south_asia
505sub_continent = sub_continent:east_asia
}
509scope:actor = {
509has_discovered_area = prev
}
512any_location_in_area = {
513is_land = yes
}
517any_location_in_area = {
518has_owner = no
}
522any_ownable_location_in_area = {
523has_owner = yes
}
526any_ownable_location_in_area = {
527has_owner = yes
}
}
532map_color = {
533if = {
534limit = {
538has_owner = yes
}
541value = top_owner.country_color
}
543else_if = {
544limit = {
548has_owner = yes
}
551value = top_owner.country_color
}
554else_if = {
555limit = {
556area = {
557any_ownable_location_in_area = {
558has_owner = yes
}
561any_ownable_location_in_area = {
562has_owner = yes
}
}
}
}
}
}
573effect = {
575scope:target_area ?= {
576every_province_definition_in_area = {
577scope:actor ?= {
578add_colonial_claim = {
579province_definition = prev
580reason = claim_reason_treaty_of_tordesillas
581category = same_religion
}
}
}
}
587add_favors = {
587target = scope:actor
587value = 2
}
588add_opinion = {
588target = scope:actor
588modifier = opinion_asked_for_favor
}
}
}
592ai_will_do = {
594add = scope:actor.societal_value:land_vs_naval
595add = {
596value = {
597add = scope:actor.societal_value:outward_vs_inward
598multiply = -1
}
}
601if = {
602limit = {
602scope:actor.modifier:bias_for_colonialist_policies > 0
}
603add = {
604value = {
605value = scope:actor.modifier:bias_for_colonialist_policies
}
}
}
610if = {
611limit = {
612scope:actor = {
613any_colonial_claim_province_definition = {
614count = 0
}
}
}
618add = 1000
}
621subtract = {
622desc = "bias against doing stuff"
623value = 1
}
}