fuck_you_convert = {
	name = CB_NAME_FUCK_YOU_CONVERT
	war_name = WAR_NAME_FUCK_YOU_CONVERT
	sprite = 9
	truce_days = 3650
	is_permanent = yes
	can_ask_to_join_war = yes
	can_call_allies = yes
	can_call_vassals = yes
	attacker_can_call_allies = yes
	defender_can_call_allies = yes
	hostile_against_others = yes
	capturing_defender_is_complete_victory = no
	defender_unoccupied_warscore = yes
	allow_whitepeace = no
	allowed_to_target_tributaries = no
	#allowed_to_target_suzerains = no
	max_attacker_battle_score = 80
	apply_short_occ_mod = no
	display_on_map = no 

	can_use_gui = {
		ROOT = {
			mercenary = no
			any_realm_province = {
				OR = {
					any_neighbor_province = {
						owner = {
							OR = {
								character = FROM
								any_liege = {
									character = FROM
								}
							}
						}
					}
					any_neighbor_province = {
						is_land = no
						any_neighbor_province = {
							owner = {
								OR = {
									character = FROM
									any_liege = {
										character = FROM
									}
								}
							}
						}
					}
					any_neighbor_province = {
						is_land = no
						any_neighbor_province = {
							is_land = no
							any_neighbor_province = {
								owner = {
									OR = {
										character = FROM
										any_liege = {
											character = FROM
										}
									}
								}
							}
						}
					}
				}
			}
		}
	}

	can_use = {
		ROOT = {
			independent = yes
			piety = 100
			capital_scope = { religion = ROOT }
			is_adult = yes
			higher_tier_than = BARON
			mercenary = no
			NOT = { religion_group = indian_group }
			NOT = { religion_group = pagan_group }
		} 
		FROM = {NOT = {religion = ROOT}}
		FROM = { NOT = { capital_scope = { religion = ROOT } } }
	}
	
	is_valid = {
		FROM = {
			NOT = {religion = ROOT}
			mercenary = no
			is_alive = yes
			NOT = { higher_tier_than = KING }
		}
	}

	on_add = {
		ROOT = {
			piety = -50
		}
	}
		
	on_success = {
		ROOT = {
		piety = 100
		prestige = 300
		religion_authority = {
  		  modifier = convert_religion_boost
			}
		}
		FROM = {
		religion_authority = {
  		  modifier = convert_religion_malus
			}
		}
		FROM = { 
			save_event_target_as = target_loser
			prestige = -200
			piety = -200
		}
		FROM = {
			any_realm_province = {
				limit = {
					controlled_by = ROOT
				}
			add_province_modifier = {
				modifier = settlement_convert
				duration = 2185
			}
			religion = ROOT 
			}
		}
		ROOT = {
			random_courtier = { 
				limit = { is_landed = no has_minor_title = title_commander religion = ROOT}
				save_event_target_as = target_depose
			}	
		}		
		ROOT = { 
			character_event = {
				id = roy_convert.1
			}
		}
	}
	
	on_reverse_demand = {
		ROOT = {
		imprison = FROM
		prestige = -150
		piety = -50
		}
		FROM = {
 		prestige = 400
		piety = 150
		}
	}

	attacker_ai_victory_worth = {
		factor = -1 # always accept
	}
	
	attacker_ai_defeat_worth = {
		factor = 100
	}

	defender_ai_victory_worth = {
		factor = -1 # always accept
	}
	
	defender_ai_defeat_worth = {
		factor = 100
	}
	ai_will_do = { 
		factor = 0.2 
		modifier = {
			factor = 7 # it's God's Will
			ROOT = { trait = zealous }
		}
		modifier = {
			factor = 0 # cowards and cripples need not apply
			ROOT = { 
				OR = { 
					trait = craven 
					trait = incapable
					trait = inbred
					trait = infirm
				}
			}
		}	
		modifier = {
			factor = 3 # prefer to convert same culture
			FROM = { culture = ROOT }
		}
		modifier = {
			factor = 0.2 # prefer to convert same culture
			FROM = { NOT = { culture = ROOT } }
		}	
		modifier = {
			factor = 0.1 # Spacers not too interested in converting
			ROOT = { culture_group = chinese_group } 
		}	
		modifier = {
			factor = 3
			FROM = { NOT = { trait = ambitious } }
		}
		modifier = {
			factor = 1.25
			FROM = { NOT = { opinion = { who = ROOT value =  30 } } }
		}	
		modifier = {
			factor = 2
			ROOT = { 
				OR = { 
					trait = proud
					trait = deceitful
				}
			}
		}		
	}	
}