scripted_diplomatic_actions = {

	TR_AI_SEND_ATTACHE = {
		allowed = {
			ROOT = { is_ai = yes }
		}

		visible = {
			ROOT = { is_ai = yes }
			THIS = { NOT = { has_capitulated = yes has_attache_from = ROOT } }
		}

		selectable = {
			ROOT = { is_ai = yes }
			OR = {
				ROOT = {
					has_opinion = {
						target = THIS
						value > 0
					}
				}
				THIS = {
					has_opinion = {
						target = ROOT
						value > 0
					}
				}
			}
			NOT = {
				THIS = { has_attache_from = ROOT }
			}
			THIS = {
				has_war = yes
				has_capitulated = no
			}
		}

		cost = 35
		command_power = 20

		requires_acceptance = yes
		show_acceptance_on_action_button = yes

		icon = 1
		can_be_accepted = { always = yes }
		can_be_sent = { always = yes }
		receive_description = TR_AI_SEND_ATTACHE_RECEIVE_DESCRIPTION

		complete_effect = {
			ROOT = {

				diplomatic_relation = {
					country = PREV
					relation = send_attache
					active = yes
				}

			}
		}

		ai_desire = {
			base = -1
			modifier = {
				ROOT = { tag = FIN }
				tag = CHI
				add = 1000
			}
		}

		ai_acceptance = {
			condition = {
				base = 0

				modifier = {
					add = 1000
					original_tag = CHI
				}
			}
		}
	}
}