
Action
Offer Diplomatic Protection
Perhaps we can leverage our powerful position and gain territory from our neighbors through the marriage of their offspring into our dynasty...
Rise of the TurksSituationselect trigger 1recently_gave_territoryVariableselect trigger 2Definitionin_game/common/generic_actions/rise_of_the_ottomans.txt:618
619type = situation
620show_message = no
621potential = {
622scope:actor = {
623has_reform = government_reform:anatolian_beylik
}
}
627allow = {
628scope:actor = {
629at_war = no
630has_regent = no
631ruler ?= {
632has_dynasty = yes
}
}
}
637automation_tick = never
638automation_tick_frequency = 12
639ai_tick = monthly
640ai_tick_frequency = 6
642price = price:offer_diplomatic_protection_price
644select_trigger = {
645looking_for_a = situation
651target_flag = recipient
652name = "choose_situation" Choose the Situation:
653column = {
654data = name
}
}
662select_trigger = {
663looking_for_a = country
664source_global_list = eligible_beylik_list
665cache_interaction_source_list = yes
666target_flag = target
667name = "choose_a_country" Choose a Country
668none_available_msg_key = "no_suitable_countries"
669column = {
670data = name
}
672visible = {
673has_reform = government_reform:anatolian_beylik
674this != scope:actor
675NOT = {
675is_rival_of = scope:actor
}
676NOT = {
676is_enemy_of = scope:actor
}
677at_war = no
678is_subject = no
679is_neighbor_of = scope:actor
680relative_strength = {
681target = scope:actor
682value <= 0.5
}
}
}
690select_trigger = {
691looking_for_a = character
692source = actor
693interaction_source_list = {
694scope:actor = {
695ruler ?= {
696dynasty = {
697every_character_in_dynasty = {
698limit = {
699owner = scope:actor
}
701add_to_list = source
}
}
}
}
}
707target_flag = target_1
708name = "select_character_to_marry_into_them" Select our Character to enter this marriage
709none_available_msg_key = "no_character_to_marry_into_them"
710column = {
711data = character_info
}
713visible = {
714is_ruler = no
715is_female = no
716is_adult = yes
717is_heir = no
718has_available_marriage_slot = yes
719total_abilities < 150
}
}
723select_trigger = {
724looking_for_a = location
725source = target
726target_flag = target_2
727name = "request_location_in_exchange" Request a Location in exchange
728none_available_msg_key = "no_locations_available"
729column = {
730data = name
}
732visible = {
733is_neighbor_of = scope:actor
734is_capital = no
735controller = scope:target
}
}
738cooldown = {
738type = offer_diplomatic_protection_key
738years = 1
}
739effect = {
740if = {
741limit = {
742exists = scope:target
743exists = scope:target_1
744exists = scope:target_2
}
746custom_tooltip = {
747text = exchange_location_for_guarantee_marriage_alliance_tt We will make them a proposal to exchange Target 2 for closer diplomatic ties and an Alliance
}
}
753else = {
753custom_tooltip = no_link_exchange_location_for_guarantee_marriage_alliance_tt We will make them a proposal to gift us a Location and a Royal Marriage in exchange for closer diplomatic ties and an Alliance
}
}
756ai_will_do = {
757add = -10
}