
ActionNew this version
Fortify Key Location
By investing in fortifications and garrisoning strategic positions, we can harden our most vital holdings against enemy assault.
Balkan LeagueInternational Organizationpotential
French LeagueInternational Organizationpotential
Holy Roman LeagueInternational Organizationpotential
Iberian LeagueInternational Organizationpotential
First Italian LeagueInternational Organizationpotential
Second Italian LeagueInternational Organizationpotential
Third Italian LeagueInternational Organizationpotential
CityLocation Rankselect trigger 2
MegalopolisLocation Rankselect trigger 2
Italian WarsSituationpotential, select trigger 1Fortified PositionStatic Modifierselect trigger 2
MountainsTopographyselect trigger 2Definitionin_game/common/generic_actions/italian_wars.txt:748
749type = situation
751ai_tick = daily
752ai_tick_frequency = 80
754automation_tick = never
755automation_tick_frequency = 12
757potential = {
758trigger_if = {
}
764trigger_else = {
764always = no
}
765scope:actor ?= {
766OR = {
774capital.region = region:italy_region
}
}
}
779allow = {
780scope:actor ?= {
781is_during_bankruptcy = no
}
}
785price = price:fortify_key_location_price
786price_modifier = {
787add = {
788value = 1
789desc = BASE_VALUE Base: Valencia
}
791subtract = {
793multiply = 0.005
794desc = "[situation_tension|e]"
}
}
798cooldown = {
799type = fortify_key_location
800years = {
801add = {
802value = 10
803desc = BASE_VALUE Base: Valencia
}
805subtract = {
807multiply = 0.005
808desc = "[situation_tension|e]"
}
}
}
813select_trigger = {
814looking_for_a = situation
820target_flag = recipient
821name = "choose_situation" Choose the Situation:
822column = {
822data = name
}
}
829select_trigger = {
830looking_for_a = location
831source = actor
832source_flags = only_actual_locations
833target_flag = target_location
834name = "choose_location" Choose a Location
835none_available_msg_key = "no_locations_available_fortify_key_location"
836column = {
836data = name
}
837column = {
837data = rank
}
838visible = {
839region = region:italy_region
}
841enabled = {
842owner ?= scope:actor
843OR = {
844is_capital = yes
}
}
}
853effect = {
854if = {
855limit = {
855exists = scope:target_location
}
856scope:target_location = {
857add_location_modifier = {
}
}
}
864else = {
864custom_tooltip = fortify_key_location_no_target_tt The selected Location will gain the Fortified Position Modifier for 5 Years
}
}
867ai_will_do = {
869if = {
870limit = {
870scope:actor ?= {
870at_war = yes
}
}
871add = {
872desc = "IS_AT_WAR"
873value = 20
}
}
876else = {
877add = {
878desc = "IS_AT_PEACE"
879value = -1000
}
}
882if = {
883limit = {
883exists = scope:target_location
}
884add = {
885value = scope:target_location.population
886if = {
887limit = {
887scope:target_location.local_control > 0
}
888multiply = scope:target_location.local_control
}
890else = {
890multiply = 0.05
}
891desc = "population multiplied by control"
}
893add = {
894value = scope:target_location.location_tax_base
895desc = "[target_location.GetName] tax base"
}
897if = {
898limit = {
899scope:target_location = {
900is_border = yes
901is_coastal = no
}
}
904add = {
905value = 50
906desc = "is border"
}
}
}
}