
Action
Inspect Fortifications
The fortifications across our lands operate act as shields against our foes. To inspect and ensure their effectiveness is vital to our continued sovereignty.
Rise of the TurksSituationselect trigger 1Decaying DefensesStatic ModifiereffectRecently Inspected FortificationsStatic Modifiereffect, select trigger 2Definitionin_game/common/generic_actions/rise_of_the_ottomans.txt:495
496type = situation
497show_message = no
498potential = {
499scope:actor = {
500has_reform = government_reform:anatolian_beylik
}
}
504allow = {
505scope:actor = {
506any_fort_in_country = {
506count > 0
}
507at_war = no
}
}
511automation_tick = never
512automation_tick_frequency = 12
514price = price:examine_our_fortifications_price
516select_trigger = {
517looking_for_a = situation
523target_flag = recipient
524name = "choose_situation" Choose the Situation:
525column = {
526data = name
}
}
534select_trigger = {
535looking_for_a = area
536source = actor
537target_flag = target
538name = "choose_fortification_to_inspect" Choose a Location with a Castle to inspect.
539none_available_msg_key = "no_fortifications_available"
540column = {
541data = name
}
543visible = {
544any_location_in_area = {
545owner ?= scope:actor
546has_fort = yes
}
}
}
552effect = {
553if = {
554limit = {
555exists = scope:target
}
557scope:target = {
558every_location_in_area = {
559limit = {
560has_owner = yes
561owner = scope:actor
562has_fort = yes
}
565if = {
}
569add_location_modifier = {
}
}
}
}
577else = {
578custom_tooltip = inspect_fortifications_location_tt Bolster the defenses of fortifications in the selected Area and ensure it is up to our military standards by gaining Recently Inspected Fortifications
}
}
581cooldown = {
581type = examine_our_fortifications_key
581years = 3
}
582ai_will_do = {
583add = {
584value = 5
585desc = BASE_VALUE
}
588if = {
589limit = {
589scope:actor.fort_maintenance > 0
}
590add = {
591value = scope:actor.fort_maintenance
592multiply = 10
593desc = "[fort_maintenance|e]"
}
}
596else = {
597add = {
598value = -100
599desc = "[fort_maintenance|e]"
}
}
603if = {
604limit = {
604exists = scope:target
}
605scope:target = {
606every_ownable_location_in_area = {
607limit = {
608owner = scope:actor
609has_fort = yes
}
611add = this.development
}
}
}
}