scripted_diplomatic_actions = {

	RECALL_VOLUNTEERS = {
	
		allowed = {
			ROOT = { is_ai = no }
		}
		visible = {
			always = yes
		}
		selectable = {
			if = {
				limit = {
					NOT = { has_volunteers_amount_from = { tag = ROOT count > 0 } }
				}
				custom_trigger_tooltip = {
					tooltip = 	RECALL_VOLUNTEERS_TOOLTIP
					always = no
				}
			}
			else = {
				custom_trigger_tooltip = {
					tooltip = RECALL_VOLUNTEERS_TOOLTIP_G
					always = yes
				}
			}
		}
		
		cost = 0
		command_power = 0
		
		show_acceptance_on_action_button = no
		
		icon = 1
		
		complete_effect = {
			ROOT = { recall_volunteers_from = PREV }
		}
		
		ai_acceptance = {
			condition = {
				base = 100
			}
		}
	}
	
	PUPPET_OTHERS = {
	
		allowed = {
			and = {
				ROOT = { is_ai = no }
			}
		}
		visible = {
			always = yes
		}
		selectable = {
			not = {
				THIS = { has_war_with = ROOT }
			}
			not = {
				THIS = { is_subject = yes }
			}
			not = {
				ROOT = { is_subject = yes }
			}
			THIS = { has_government = ROOT }
#			OR = {
#				strength_ratio = {
#					tag = ROOT
#					ratio < 0.5
#				}
#				naval_strength_ratio = {
#					tag = ROOT
#					ratio < 0.5
#				}
#			}
			THIS = {
				strength_ratio = {
					tag = ROOT
					ratio < 0.5
				}
			}
		}
		
		cost = 250
		command_power = 0
		
		show_acceptance_on_action_button = yes
		
		icon = 1
		
		complete_effect = {
			ROOT = {
				puppet = {
					target = PREV
					end_wars = no
				}
			}
		}
		
		reject_effect = {
			ROOT = {
				create_wargoal = {
					type = puppet_wargoal_focus
					target = PREV
				}
			}
		}
		
		ai_acceptance = {
			opinion_of_us = {
				base = -30
				modifier = {
					PREV = { 
						has_opinion = {
							target = ROOT
							value > 30
						}
					}
					add = 10
				}
				
				modifier = {
					PREV = {
						has_opinion = {
							target = ROOT
							value > 50
						}
					}
					add = 30
				}
				
				modifier = {
					PREV = {
						has_opinion = {
							target = ROOT
							value > 90
						}
					}
					add = 50
				}
			}
			
			strength_comparison = {
				base = -30
				modifier = {
					PREV = {
						strength_ratio = {
							tag = ROOT
							ratio < 0.5
						}
					}
					add = 10
				}
				
				modifier = {
					PREV = {
						strength_ratio = {
							tag = ROOT
							ratio < 0.25
						}
					}
					add = 30
				}
				
				modifier = {
					PREV = {
						strength_ratio = {
							tag = ROOT
							ratio < 0.1
						}
					}
					add = 50
				}
			}
		}
		
		ai_desire = {
			base = -1
		}
	}
}
