
scripted_diplomatic_actions = {

	recall_volunteer_diplomatic_action = {
	
		allowed = {
			ROOT = { is_ai = no }
		}
		visible = {
			PREV = {
				has_volunteers_amount_from = {
					tag = ROOT
					count > 0
				}
			}
		}
		selectable = {
		}

		cost = 0
		command_power = 0

		show_acceptance_on_action_button = no

		icon = 1

		complete_effect = {
			ROOT = { recall_volunteers_from = PREV }
		}

		ai_acceptance = {
			condition = {
				base = 1000
			}
		}
	}

	frontline_coordination_avoidance = {
	
		allowed = {
			ROOT = { is_ai = no }
		}
		visible = {
			OR = {
				ROOT = { is_in_faction_with = PREV }
				ROOT = { is_subject_of = PREV }
				PREV = { is_subject_of = ROOT }
			}
			if = {
				limit = { difficulty = 3 }
				is_faction_leader = yes
			}
			PREV = { NOT = { has_country_flag = avoid_player_like_a_plague } }
		}
		selectable = {
		}

		cost = 0
		command_power = 0

		show_acceptance_on_action_button = no

		icon = 1

		complete_effect = {
			PREV = { 
				set_country_flag = avoid_player_like_a_plague
				clr_country_flag = help_player
			}
		}

		ai_acceptance = {
			condition = {
				base = 1000
			}
		}
	}

	frontline_coordination_assistance = {
	
		allowed = {
			ROOT = { is_ai = no }
		}
		visible = {
			OR = {
				ROOT = { is_in_faction_with = PREV }
				ROOT = { is_subject_of = PREV }
				PREV = { is_subject_of = ROOT }
			}
			if = {
				limit = { difficulty = 3 }
				is_faction_leader = yes
			}
			PREV = { has_country_flag = avoid_player_like_a_plague }
		}
		selectable = {
		}

		cost = 0
		command_power = 0

		show_acceptance_on_action_button = no

		icon = 1

		complete_effect = {
			PREV = { 
				clr_country_flag = avoid_player_like_a_plague
			}
		}

		ai_acceptance = {
			condition = {
				base = 1000
			}
		}
	}

	frontline_coordination_focus = {
	
		allowed = {
			ROOT = { is_ai = no }
		}
		visible = {
			if = {
				limit = { difficulty = 3 }
				is_faction_leader = yes
			}
			OR = {
				ROOT = { is_in_faction_with = PREV }
				ROOT = { is_subject_of = PREV }
				PREV = { is_subject_of = ROOT }
			}
			PREV = { NOT = { has_country_flag = help_player } }
		}
		selectable = {
		}

		cost = 0
		command_power = 0

		show_acceptance_on_action_button = no

		icon = 1

		complete_effect = {
			PREV = { 
				clr_country_flag = avoid_player_like_a_plague 
				set_country_flag = help_player
			}
		}

		ai_acceptance = {
			condition = {
				base = 1000
			}
		}
	}

	frontline_coordination_focus_removal = {
	
		allowed = {
			ROOT = { is_ai = no }
		}
		visible = {
			if = {
				limit = { difficulty = 3 }
				is_faction_leader = yes
			}
			OR = {
				ROOT = { is_in_faction_with = PREV }
				ROOT = { is_subject_of = PREV }
				PREV = { is_subject_of = ROOT }
			}
			PREV = { has_country_flag = help_player }
		}
		selectable = {
		}

		cost = 0
		command_power = 0

		show_acceptance_on_action_button = no

		icon = 1

		complete_effect = {
			PREV = {
				clr_country_flag = help_player
			}
		}

		ai_acceptance = {
			condition = {
				base = 1000
			}
		}
	}
}
