targeted_decisions = {
#  stat gifts
	jacgift_diplomacy = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacgift_jactive
					has_character_flag = basic_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {NOT = {has_character_modifier = jacgift_of_diplomacy}}
		effect = {
			ROOT = {
				add_character_modifier = {name = jacgift_of_diplomacy duration = -1 stacking = no}
				remove_character_modifier = jacurse_of_diplomacy
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacgift_martial = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacgift_jactive
					has_character_flag = basic_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {NOT = {has_character_modifier = jacgift_of_martial}}
		effect = {
			ROOT = {
				add_character_modifier = {name = jacgift_of_martial duration = -1 stacking = no}
				remove_character_modifier = jacurse_of_martial
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacgift_stewardship = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacgift_jactive
					has_character_flag = basic_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {NOT = {has_character_modifier = jacgift_of_stewardship}}
		effect = {
			ROOT = {
				add_character_modifier = {name = jacgift_of_stewardship duration = -1 stacking = no}
				remove_character_modifier = jacurse_of_stewardship
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacgift_intrigue = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacgift_jactive
					has_character_flag = basic_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {NOT = {has_character_modifier = jacgift_of_intrigue}}
		effect = {
			ROOT = {
				add_character_modifier = {name = jacgift_of_intrigue duration = -1 stacking = no}
				remove_character_modifier = jacurse_of_intrigue
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacgift_learning = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacgift_jactive
					has_character_flag = basic_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {NOT = {has_character_modifier = jacgift_of_learning}}
		effect = {
			ROOT = {
				add_character_modifier = {name = jacgift_of_learning duration = -1 stacking = no}
				remove_character_modifier = jacurse_of_learning
			}
		}
		ai_will_do = {factor = 0.00001}
	}

# stat curses

	jacurse_diplomacy = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacurse_jactive
					has_character_flag = basic_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {NOT = {has_character_modifier = jacurse_of_diplomacy}}
		effect = {
			ROOT = {
				add_character_modifier = {name = jacurse_of_diplomacy duration = -1 stacking = no}
				remove_character_modifier = jacgift_of_diplomacy
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacurse_martial = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacurse_jactive
					has_character_flag = basic_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {NOT = {has_character_modifier = jacurse_of_martial}}
		effect = {
			ROOT = {
				add_character_modifier = {name = jacurse_of_martial duration = -1 stacking = no}
				remove_character_modifier = jacgift_of_martial
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacurse_stewardship = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacurse_jactive
					has_character_flag = basic_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {NOT = {has_character_modifier = jacurse_of_stewardship}}
		effect = {
			ROOT = {
				add_character_modifier = {name = jacurse_of_stewardship duration = -1 stacking = no}
				remove_character_modifier = jacgift_of_stewardship
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacurse_intrigue = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacurse_jactive
					has_character_flag = basic_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {NOT = {has_character_modifier = jacurse_of_intrigue}}
		effect = {
			ROOT = {
				add_character_modifier = {name = jacurse_of_intrigue duration = -1 stacking = no}
				remove_character_modifier = jacgift_of_intrigue
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacurse_learning = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacurse_jactive
					has_character_flag = basic_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {NOT = {has_character_modifier = jacurse_of_learning}}
		effect = {
			ROOT = {
				add_character_modifier = {name = jacurse_of_learning duration = -1 stacking = no}
				remove_character_modifier = jacgift_of_learning
			}
		}
		ai_will_do = {factor = 0.00001}
	}

# stat effect removals

	jacremove_diplomacy = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacremove_jactive
					has_character_flag = basic_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {
			OR = {
				has_character_modifier = jacurse_of_diplomacy
				has_character_modifier = jacgift_of_diplomacy
			}
		}
		effect = {
			ROOT = {
				remove_character_modifier = jacurse_of_diplomacy
				remove_character_modifier = jacgift_of_diplomacy
			}
		}
		ai_will_do = {factor = 0.000001}
	}

	jacremove_martial = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacremove_jactive
					has_character_flag = basic_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {
			OR = {
				has_character_modifier = jacurse_of_martial
				has_character_modifier = jacgift_of_martial
			}
		}
		effect = {
			ROOT = {
				remove_character_modifier = jacurse_of_martial
				remove_character_modifier = jacgift_of_martial
			}
		}
		ai_will_do = {factor = 0.000001}
	}
	
	jacremove_stewardship = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacremove_jactive
					has_character_flag = basic_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {
			OR = {
				has_character_modifier = jacurse_of_stewardship
				has_character_modifier = jacgift_of_stewardship
			}
		}
		effect = {
			ROOT = {
				remove_character_modifier = jacurse_of_stewardship
				remove_character_modifier = jacgift_of_stewardship
			}
		}
		ai_will_do = {factor = 0.000001}
	}
	
	jacremove_intrigue = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacremove_jactive
					has_character_flag = basic_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {
			OR = {
				has_character_modifier = jacurse_of_intrigue
				has_character_modifier = jacgift_of_intrigue
			}
		}
		effect = {
			ROOT = {
				remove_character_modifier = jacurse_of_intrigue
				remove_character_modifier = jacgift_of_intrigue
			}
		}
		ai_will_do = {factor = 0.000001}
	}
	
	jacremove_learning = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacremove_jactive
					has_character_flag = basic_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {
			OR = {
				has_character_modifier = jacurse_of_learning
				has_character_modifier = jacgift_of_learning
			}
		}
		effect = {
			ROOT = {
				remove_character_modifier = jacurse_of_learning
				remove_character_modifier = jacgift_of_learning
			}
		}
		ai_will_do = {factor = 0.000001}
	}
	
# further gifts/curses/romovals in groups

	jacgift_fertility = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacgift_jactive
					has_character_flag = basic_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {NOT = {has_character_modifier = jacgift_of_fertility}}
		effect = {
			ROOT = {
				add_character_modifier = {name = jacgift_of_fertility duration = -1 stacking = no}
				remove_character_modifier = jacurse_of_fertility
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacurse_fertility = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacurse_jactive
					has_character_flag = basic_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {NOT = {has_character_modifier = jacurse_of_fertility}}
		effect = {
			ROOT = {
				add_character_modifier = {name = jacurse_of_fertility duration = -1 stacking = no}
				remove_character_modifier = jacgift_of_fertility
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacremove_fertility = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacremove_jactive
					has_character_flag = basic_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {
			OR = {
				has_character_modifier = jacurse_of_fertility
				has_character_modifier = jacgift_of_fertility
			}
		}
		effect = {
			ROOT = {
				remove_character_modifier = jacurse_of_fertility
				remove_character_modifier = jacgift_of_fertility
			}
		}
		ai_will_do = {factor = 0.000001}
	}


	jacgift_health = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacgift_jactive
					has_character_flag = basic_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {NOT = {has_character_modifier = jacgift_of_health}}
		effect = {
			ROOT = {
				add_character_modifier = {name = jacgift_of_health duration = -1 stacking = no}
				remove_character_modifier = jacurse_of_health
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacurse_health = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacurse_jactive
					has_character_flag = basic_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {NOT = {has_character_modifier = jacurse_of_health}}
		effect = {
			ROOT = {
				add_character_modifier = {name = jacurse_of_health duration = -1 stacking = no}
				remove_character_modifier = jacgift_of_health
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacremove_health = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacremove_jactive
					has_character_flag = basic_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {
			OR = {
				has_character_modifier = jacurse_of_health
				has_character_modifier = jacgift_of_health
			}
		}
		effect = {
			ROOT = {
				remove_character_modifier = jacurse_of_health
				remove_character_modifier = jacgift_of_health
			}
		}
		ai_will_do = {factor = 0.000001}
	}


	jacgift_combat_rating = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacgift_jactive
					has_character_flag = martial_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {NOT = {has_character_modifier = jacgift_of_combat_rating}}
		effect = {
			ROOT = {
				add_character_modifier = {name = jacgift_of_combat_rating duration = -1 stacking = no}
				remove_character_modifier = jacurse_of_combat_rating
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacurse_combat_rating = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacurse_jactive
					has_character_flag = martial_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {NOT = {has_character_modifier = jacurse_of_combat_rating}}
		effect = {
			ROOT = {
				add_character_modifier = {name = jacurse_of_combat_rating duration = -1 stacking = no}
				remove_character_modifier = jacgift_of_combat_rating
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacremove_combat_rating = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacremove_jactive
					has_character_flag = martial_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {
			OR = {
				has_character_modifier = jacurse_of_combat_rating
				has_character_modifier = jacgift_of_combat_rating
			}
		}
		effect = {
			ROOT = {
				remove_character_modifier = jacurse_of_combat_rating
				remove_character_modifier = jacgift_of_combat_rating
			}
		}
		ai_will_do = {factor = 0.000001}
	}


	jacgift_threat_decay_speed = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacgift_jactive
					has_character_flag = martial_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {NOT = {has_character_modifier = jacgift_of_threat_decay_speed}}
		effect = {
			ROOT = {
				add_character_modifier = {name = jacgift_of_threat_decay_speed duration = -1 stacking = no}
				remove_character_modifier = jacurse_of_threat_decay_speed
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacurse_threat_decay_speed = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacurse_jactive
					has_character_flag = martial_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {NOT = {has_character_modifier = jacurse_of_threat_decay_speed}}
		effect = {
			ROOT = {
				add_character_modifier = {name = jacurse_of_threat_decay_speed duration = -1 stacking = no}
				remove_character_modifier = jacgift_of_threat_decay_speed
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacremove_threat_decay_speed = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacremove_jactive
					has_character_flag = martial_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {
			OR = {
				has_character_modifier = jacurse_of_threat_decay_speed
				has_character_modifier = jacgift_of_threat_decay_speed
			}
		}
		effect = {
			ROOT = {
				remove_character_modifier = jacurse_of_threat_decay_speed
				remove_character_modifier = jacgift_of_threat_decay_speed
			}
		}
		ai_will_do = {factor = 0.000001}
	}


	jacgift_global_revolt_risk = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacgift_jactive
					has_character_flag = martial_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {NOT = {has_character_modifier = jacgift_of_global_revolt_risk}}
		effect = {
			ROOT = {
				add_character_modifier = {name = jacgift_of_global_revolt_risk duration = -1 stacking = no}
				remove_character_modifier = jacurse_of_global_revolt_risk
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacurse_global_revolt_risk = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacurse_jactive
					has_character_flag = martial_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {NOT = {has_character_modifier = jacurse_of_global_revolt_risk}}
		effect = {
			ROOT = {
				add_character_modifier = {name = jacurse_of_global_revolt_risk duration = -1 stacking = no}
				remove_character_modifier = jacgift_of_global_revolt_risk
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacremove_global_revolt_risk = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacremove_jactive
					has_character_flag = martial_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {
			OR = {
				has_character_modifier = jacurse_of_global_revolt_risk
				has_character_modifier = jacgift_of_global_revolt_risk
			}
		}
		effect = {
			ROOT = {
				remove_character_modifier = jacurse_of_global_revolt_risk
				remove_character_modifier = jacgift_of_global_revolt_risk
			}
		}
		ai_will_do = {factor = 0.000001}
	}


	jacgift_culture_flex = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacgift_jactive
					has_character_flag = diplo_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {NOT = {has_character_modifier = jacgift_of_culture_flex}}
		effect = {
			ROOT = {
				add_character_modifier = {name = jacgift_of_culture_flex duration = -1 stacking = no}
				remove_character_modifier = jacurse_of_culture_flex
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacurse_culture_flex = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacurse_jactive
					has_character_flag = diplo_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {NOT = {has_character_modifier = jacurse_of_culture_flex}}
		effect = {
			ROOT = {
				add_character_modifier = {name = jacurse_of_culture_flex duration = -1 stacking = no}
				remove_character_modifier = jacgift_of_culture_flex
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacremove_culture_flex = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacremove_jactive
					has_character_flag = diplo_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {
			OR = {
				has_character_modifier = jacurse_of_culture_flex
				has_character_modifier = jacgift_of_culture_flex
			}
		}
		effect = {
			ROOT = {
				remove_character_modifier = jacurse_of_culture_flex
				remove_character_modifier = jacgift_of_culture_flex
			}
		}
		ai_will_do = {factor = 0.000001}
	}


	jacgift_religion_flex = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacgift_jactive
					has_character_flag = diplo_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {NOT = {has_character_modifier = jacgift_of_religion_flex}}
		effect = {
			ROOT = {
				add_character_modifier = {name = jacgift_of_religion_flex duration = -1 stacking = no}
				remove_character_modifier = jacurse_of_religion_flex
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacurse_religion_flex = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacurse_jactive
					has_character_flag = diplo_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {NOT = {has_character_modifier = jacurse_of_religion_flex}}
		effect = {
			ROOT = {
				add_character_modifier = {name = jacurse_of_religion_flex duration = -1 stacking = no}
				remove_character_modifier = jacgift_of_religion_flex
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacremove_religion_flex = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacremove_jactive
					has_character_flag = diplo_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {
			OR = {
				has_character_modifier = jacurse_of_religion_flex
				has_character_modifier = jacgift_of_religion_flex
			}
		}
		effect = {
			ROOT = {
				remove_character_modifier = jacurse_of_religion_flex
				remove_character_modifier = jacgift_of_religion_flex
			}
		}
		ai_will_do = {factor = 0.000001}
	}


	jacgift_plot_power_modifier = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacgift_jactive
					has_character_flag = intrigue_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {NOT = {has_character_modifier = jacgift_of_plot_power_modifier}}
		effect = {
			ROOT = {
				add_character_modifier = {name = jacgift_of_plot_power_modifier duration = -1 stacking = no}
				remove_character_modifier = jacurse_of_plot_power_modifier
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacurse_plot_power_modifier = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacurse_jactive
					has_character_flag = intrigue_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {NOT = {has_character_modifier = jacurse_of_plot_power_modifier}}
		effect = {
			ROOT = {
				add_character_modifier = {name = jacurse_of_plot_power_modifier duration = -1 stacking = no}
				remove_character_modifier = jacgift_of_plot_power_modifier
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacremove_plot_power_modifier = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacremove_jactive
					has_character_flag = intrigue_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {
			OR = {
				has_character_modifier = jacurse_of_plot_power_modifier
				has_character_modifier = jacgift_of_plot_power_modifier
			}
		}
		effect = {
			ROOT = {
				remove_character_modifier = jacurse_of_plot_power_modifier
				remove_character_modifier = jacgift_of_plot_power_modifier
			}
		}
		ai_will_do = {factor = 0.000001}
	}


	jacgift_plot_discovery_chance = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacgift_jactive
					has_character_flag = intrigue_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {NOT = {has_character_modifier = jacgift_of_plot_discovery_chance}}
		effect = {
			ROOT = {
				add_character_modifier = {name = jacgift_of_plot_discovery_chance duration = -1 stacking = no}
				remove_character_modifier = jacurse_of_plot_discovery_chance
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacurse_plot_discovery_chance = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacurse_jactive
					has_character_flag = intrigue_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {NOT = {has_character_modifier = jacurse_of_plot_discovery_chance}}
		effect = {
			ROOT = {
				add_character_modifier = {name = jacurse_of_plot_discovery_chance duration = -1 stacking = no}
				remove_character_modifier = jacgift_of_plot_discovery_chance
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacremove_plot_discovery_chance = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacremove_jactive
					has_character_flag = intrigue_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {
			OR = {
				has_character_modifier = jacurse_of_plot_discovery_chance
				has_character_modifier = jacgift_of_plot_discovery_chance
			}
		}
		effect = {
			ROOT = {
				remove_character_modifier = jacurse_of_plot_discovery_chance
				remove_character_modifier = jacgift_of_plot_discovery_chance
			}
		}
		ai_will_do = {factor = 0.000001}
	}


	jacgift_global_tax_modifier = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacgift_jactive
					has_character_flag = stewardship_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {NOT = {has_character_modifier = jacgift_of_global_tax_modifier}}
		effect = {
			ROOT = {
				add_character_modifier = {name = jacgift_of_global_tax_modifier duration = -1 stacking = no}
				remove_character_modifier = jacurse_of_global_tax_modifier
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacurse_global_tax_modifier = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacurse_jactive
					has_character_flag = stewardship_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {NOT = {has_character_modifier = jacurse_of_global_tax_modifier}}
		effect = {
			ROOT = {
				add_character_modifier = {name = jacurse_of_global_tax_modifier duration = -1 stacking = no}
				remove_character_modifier = jacgift_of_global_tax_modifier
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacremove_global_tax_modifier = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacremove_jactive
					has_character_flag = stewardship_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {
			OR = {
				has_character_modifier = jacurse_of_global_tax_modifier
				has_character_modifier = jacgift_of_global_tax_modifier
			}
		}
		effect = {
			ROOT = {
				remove_character_modifier = jacurse_of_global_tax_modifier
				remove_character_modifier = jacgift_of_global_tax_modifier
			}
		}
		ai_will_do = {factor = 0.000001}
	}


	jacgift_local_build_cost_modifier = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacgift_jactive
					has_character_flag = comment_out_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {NOT = {has_character_modifier = jacgift_of_local_build_cost_modifier}}
		effect = {
			ROOT = {
				add_character_modifier = {name = jacgift_of_local_build_cost_modifier duration = -1 stacking = no}
				remove_character_modifier = jacurse_of_local_build_cost_modifier
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacurse_local_build_cost_modifier = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacurse_jactive
					has_character_flag = comment_out_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {NOT = {has_character_modifier = jacurse_of_local_build_cost_modifier}}
		effect = {
			ROOT = {
				add_character_modifier = {name = jacurse_of_local_build_cost_modifier duration = -1 stacking = no}
				remove_character_modifier = jacgift_of_local_build_cost_modifier
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacremove_local_build_cost_modifier = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacremove_jactive
					has_character_flag = comment_out_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {
			OR = {
				has_character_modifier = jacurse_of_local_build_cost_modifier
				has_character_modifier = jacgift_of_local_build_cost_modifier
			}
		}
		effect = {
			ROOT = {
				remove_character_modifier = jacurse_of_local_build_cost_modifier
				remove_character_modifier = jacgift_of_build_cost_modifier
			}
		}
		ai_will_do = {factor = 0.000001}
	}


	jacgift_local_build_time_modifier = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacgift_jactive
					has_character_flag = comment_out_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {NOT = {has_character_modifier = jacgift_of_local_build_time_modifier}}
		effect = {
			ROOT = {
				add_character_modifier = {name = jacgift_of_local_build_time_modifier duration = -1 stacking = no}
				remove_character_modifier = jacurse_of_local_build_time_modifier
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacurse_local_build_time_modifier = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacurse_jactive
					has_character_flag = comment_out_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {NOT = {has_character_modifier = jacurse_of_local_build_time_modifier}}
		effect = {
			ROOT = {
				add_character_modifier = {name = jacurse_of_local_build_time_modifier duration = -1 stacking = no}
				remove_character_modifier = jacgift_of_local_build_time_modifier
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacremove_local_build_time_modifier = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacremove_jactive
					has_character_flag = comment_out_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {
			OR = {
				has_character_modifier = jacurse_of_local_build_time_modifier
				has_character_modifier = jacgift_of_local_build_time_modifier
			}
		}
		effect = {
			ROOT = {
				remove_character_modifier = jacurse_of_local_build_time_modifier
				remove_character_modifier = jacgift_of_local_build_time_modifier
			}
		}
		ai_will_do = {factor = 0.000001}
	}


	jacgift_sex_appeal_opinion = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacgift_jactive
					has_character_flag = diplo_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {NOT = {has_character_modifier = jacgift_of_sex_appeal_opinion}}
		effect = {
			ROOT = {
				add_character_modifier = {name = jacgift_of_sex_appeal_opinion duration = -1 stacking = no}
				remove_character_modifier = jacurse_of_sex_appeal_opinion
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacurse_sex_appeal_opinion = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacurse_jactive
					has_character_flag = diplo_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {NOT = {has_character_modifier = jacurse_of_sex_appeal_opinion}}
		effect = {
			ROOT = {
				add_character_modifier = {name = jacurse_of_sex_appeal_opinion duration = -1 stacking = no}
				remove_character_modifier = jacgift_of_sex_appeal_opinion
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacremove_sex_appeal_opinion = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacremove_jactive
					has_character_flag = diplo_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {
			OR = {
				has_character_modifier = jacurse_of_sex_appeal_opinion
				has_character_modifier = jacgift_of_sex_appeal_opinion
			}
		}
		effect = {
			ROOT = {
				remove_character_modifier = jacurse_of_sex_appeal_opinion
				remove_character_modifier = jacgift_of_sex_appeal_opinion
			}
		}
		ai_will_do = {factor = 0.000001}
	}


	jacgift_general_opinion = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacgift_jactive
					has_character_flag = diplo_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {NOT = {has_character_modifier = jacgift_of_general_opinion}}
		effect = {
			ROOT = {
				add_character_modifier = {name = jacgift_of_general_opinion duration = -1 stacking = no}
				remove_character_modifier = jacurse_of_general_opinion
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacurse_general_opinion = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacurse_jactive
					has_character_flag = diplo_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {NOT = {has_character_modifier = jacurse_of_general_opinion}}
		effect = {
			ROOT = {
				add_character_modifier = {name = jacurse_of_general_opinion duration = -1 stacking = no}
				remove_character_modifier = jacgift_of_general_opinion
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacremove_general_opinion = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacremove_jactive
					has_character_flag = diplo_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {
			OR = {
				has_character_modifier = jacurse_of_general_opinion
				has_character_modifier = jacgift_of_general_opinion
			}
		}
		effect = {
			ROOT = {
				remove_character_modifier = jacurse_of_general_opinion
				remove_character_modifier = jacgift_of_general_opinion
			}
		}
		ai_will_do = {factor = 0.000001}
	}


	jacgift_global_levy_size = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacgift_jactive
					has_character_flag = martial_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {NOT = {has_character_modifier = jacgift_of_global_levy_size}}
		effect = {
			ROOT = {
				add_character_modifier = {name = jacgift_of_global_levy_size duration = -1 stacking = no}
				remove_character_modifier = jacurse_of_global_levy_size
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacurse_global_levy_size = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacurse_jactive
					has_character_flag = martial_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {NOT = {has_character_modifier = jacurse_of_global_levy_size}}
		effect = {
			ROOT = {
				add_character_modifier = {name = jacurse_of_global_levy_size duration = -1 stacking = no}
				remove_character_modifier = jacgift_of_global_levy_size
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacremove_global_levy_size = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacremove_jactive
					has_character_flag = martial_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {
			OR = {
				has_character_modifier = jacurse_of_global_levy_size
				has_character_modifier = jacgift_of_global_levy_size
			}
		}
		effect = {
			ROOT = {
				remove_character_modifier = jacurse_of_global_levy_size
				remove_character_modifier = jacgift_of_global_levy_size
			}
		}
		ai_will_do = {factor = 0.000001}
	}


	jacgift_levy_reinforce_rate = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacgift_jactive
					has_character_flag = martial_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {NOT = {has_character_modifier = jacgift_of_levy_reinforce_rate}}
		effect = {
			ROOT = {
				add_character_modifier = {name = jacgift_of_levy_reinforce_rate duration = -1 stacking = no}
				remove_character_modifier = jacurse_of_levy_reinforce_rate
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacurse_levy_reinforce_rate = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacurse_jactive
					has_character_flag = martial_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {NOT = {has_character_modifier = jacurse_of_levy_reinforce_rate}}
		effect = {
			ROOT = {
				add_character_modifier = {name = jacurse_of_levy_reinforce_rate duration = -1 stacking = no}
				remove_character_modifier = jacgift_of_levy_reinforce_rate
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacremove_levy_reinforce_rate = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacremove_jactive
					has_character_flag = martial_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {
			OR = {
				has_character_modifier = jacurse_of_levy_reinforce_rate
				has_character_modifier = jacgift_of_levy_reinforce_rate
			}
		}
		effect = {
			ROOT = {
				remove_character_modifier = jacurse_of_levy_reinforce_rate
				remove_character_modifier = jacgift_of_levy_reinforce_rate
			}
		}
		ai_will_do = {factor = 0.000001}
	}


	jacgift_land_morale = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacgift_jactive
					has_character_flag = martial_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {NOT = {has_character_modifier = jacgift_of_land_morale}}
		effect = {
			ROOT = {
				add_character_modifier = {name = jacgift_of_land_morale duration = -1 stacking = no}
				remove_character_modifier = jacurse_of_land_morale
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacurse_land_morale = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacurse_jactive
					has_character_flag = martial_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {NOT = {has_character_modifier = jacurse_of_land_morale}}
		effect = {
			ROOT = {
				add_character_modifier = {name = jacurse_of_land_morale duration = -1 stacking = no}
				remove_character_modifier = jacgift_of_land_morale
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacremove_land_morale = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacremove_jactive
					has_character_flag = martial_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {
			OR = {
				has_character_modifier = jacurse_of_land_morale
				has_character_modifier = jacgift_of_land_morale
			}
		}
		effect = {
			ROOT = {
				remove_character_modifier = jacurse_of_land_morale
				remove_character_modifier = jacgift_of_land_morale
			}
		}
		ai_will_do = {factor = 0.000001}
	}


	jacgift_land_organisation = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacgift_jactive
					has_character_flag = martial_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {NOT = {has_character_modifier = jacgift_of_land_organisation}}
		effect = {
			ROOT = {
				add_character_modifier = {name = jacgift_of_land_organisation duration = -1 stacking = no}
				remove_character_modifier = jacurse_of_land_organisation
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacurse_land_organisation = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacurse_jactive
					has_character_flag = martial_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {NOT = {has_character_modifier = jacurse_of_land_organisation}}
		effect = {
			ROOT = {
				add_character_modifier = {name = jacurse_of_land_organisation duration = -1 stacking = no}
				remove_character_modifier = jacgift_of_land_organisation
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacremove_land_organisation = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacremove_jactive
					has_character_flag = martial_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {
			OR = {
				has_character_modifier = jacurse_of_land_organisation
				has_character_modifier = jacgift_of_land_organisation
			}
		}
		effect = {
			ROOT = {
				remove_character_modifier = jacurse_of_land_organisation
				remove_character_modifier = jacgift_of_land_organisation
			}
		}
		ai_will_do = {factor = 0.000001}
	}


	jacgift_global_garrison_size = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacgift_jactive
					has_character_flag = martial_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {NOT = {has_character_modifier = jacgift_of_global_garrison_size}}
		effect = {
			ROOT = {
				add_character_modifier = {name = jacgift_of_global_garrison_size duration = -1 stacking = no}
				remove_character_modifier = jacurse_of_global_garrison_size
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacurse_global_garrison_size = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacurse_jactive
					has_character_flag = martial_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {NOT = {has_character_modifier = jacurse_of_global_garrison_size}}
		effect = {
			ROOT = {
				add_character_modifier = {name = jacurse_of_global_garrison_size duration = -1 stacking = no}
				remove_character_modifier = jacgift_of_global_garrison_size
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacremove_global_garrison_size = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacremove_jactive
					has_character_flag = martial_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {
			OR = {
				has_character_modifier = jacurse_of_global_garrison_size
				has_character_modifier = jacgift_of_global_garrison_size
			}
		}
		effect = {
			ROOT = {
				remove_character_modifier = jacurse_of_global_garrison_size
				remove_character_modifier = jacgift_of_global_garrison_size
			}
		}
		ai_will_do = {factor = 0.000001}
	}


	jacgift_max_attrition = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacgift_jactive
					has_character_flag = martial_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {NOT = {has_character_modifier = jacgift_of_max_attrition}}
		effect = {
			ROOT = {
				add_character_modifier = {name = jacgift_of_max_attrition duration = -1 stacking = no}
				remove_character_modifier = jacurse_of_max_attrition
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacurse_max_attrition = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacurse_jactive
					has_character_flag = martial_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {NOT = {has_character_modifier = jacurse_of_max_attrition}}
		effect = {
			ROOT = {
				add_character_modifier = {name = jacurse_of_max_attrition duration = -1 stacking = no}
				remove_character_modifier = jacgift_of_max_attrition
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacremove_max_attrition = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacremove_jactive
					has_character_flag = martial_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {
			OR = {
				has_character_modifier = jacurse_of_max_attrition
				has_character_modifier = jacgift_of_max_attrition
			}
		}
		effect = {
			ROOT = {
				remove_character_modifier = jacurse_of_max_attrition
				remove_character_modifier = jacgift_of_max_attrition
			}
		}
		ai_will_do = {factor = 0.000001}
	}


	jacgift_siege_defence = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacgift_jactive
					has_character_flag = comment_out_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {NOT = {has_character_modifier = jacgift_of_siege_defence}}
		effect = {
			ROOT = {
				add_character_modifier = {name = jacgift_of_siege_defence duration = -1 stacking = no}
				remove_character_modifier = jacurse_of_siege_defence
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacurse_siege_defence = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacurse_jactive
					has_character_flag = comment_out_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {NOT = {has_character_modifier = jacurse_of_siege_defence}}
		effect = {
			ROOT = {
				add_character_modifier = {name = jacurse_of_siege_defence duration = -1 stacking = no}
				remove_character_modifier = jacgift_of_siege_defence
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacremove_siege_defence = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacremove_jactive
					has_character_flag = comment_out_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {
			OR = {
				has_character_modifier = jacurse_of_siege_defence
				has_character_modifier = jacgift_of_siege_defence
			}
		}
		effect = {
			ROOT = {
				remove_character_modifier = jacurse_of_siege_defence
				remove_character_modifier = jacgift_of_siege_defence
			}
		}
		ai_will_do = {factor = 0.000001}
	}


	jacgift_siege_speed = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacgift_jactive
					has_character_flag = comment_out_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {NOT = {has_character_modifier = jacgift_of_siege_speed}}
		effect = {
			ROOT = {
				add_character_modifier = {name = jacgift_of_siege_speed duration = -1 stacking = no}
				remove_character_modifier = jacurse_of_siege_speed
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacurse_siege_speed = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacurse_jactive
					has_character_flag = comment_out_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {NOT = {has_character_modifier = jacurse_of_siege_speed}}
		effect = {
			ROOT = {
				add_character_modifier = {name = jacurse_of_siege_speed duration = -1 stacking = no}
				remove_character_modifier = jacgift_of_siege_speed
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacremove_siege_speed = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacremove_jactive
					has_character_flag = comment_out_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {
			OR = {
				has_character_modifier = jacurse_of_siege_speed
				has_character_modifier = jacgift_of_siege_speed
			}
		}
		effect = {
			ROOT = {
				remove_character_modifier = jacurse_of_siege_speed
				remove_character_modifier = jacgift_of_siege_speed
			}
		}
		ai_will_do = {factor = 0.000001}
	}


	jacgift_global_movement_speed = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacgift_jactive
					has_character_flag = comment_out_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {NOT = {has_character_modifier = jacgift_of_global_movement_speed}}
		effect = {
			ROOT = {
				add_character_modifier = {name = jacgift_of_global_movement_speed duration = -1 stacking = no}
				remove_character_modifier = jacurse_of_global_movement_speed
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacurse_global_movement_speed = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacurse_jactive
					has_character_flag = comment_out_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {NOT = {has_character_modifier = jacurse_of_global_movement_speed}}
		effect = {
			ROOT = {
				add_character_modifier = {name = jacurse_of_global_movement_speed duration = -1 stacking = no}
				remove_character_modifier = jacgift_of_global_movement_speed
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacremove_global_movement_speed = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacremove_jactive
					has_character_flag = comment_out_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {
			OR = {
				has_character_modifier = jacurse_of_global_movement_speed
				has_character_modifier = jacgift_of_global_movement_speed
			}
		}
		effect = {
			ROOT = {
				remove_character_modifier = jacurse_of_global_movement_speed
				remove_character_modifier = jacgift_of_global_movement_speed
			}
		}
		ai_will_do = {factor = 0.000001}
	}


	jacgift_retinuesize_perc = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacgift_jactive
					has_character_flag = martial_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {NOT = {has_character_modifier = jacgift_of_retinuesize_perc}}
		effect = {
			ROOT = {
				add_character_modifier = {name = jacgift_of_retinuesize_perc duration = -1 stacking = no}
				remove_character_modifier = jacurse_of_retinuesize_perc
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacurse_retinuesize_perc = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacurse_jactive
					has_character_flag = martial_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {NOT = {has_character_modifier = jacurse_of_retinuesize_perc}}
		effect = {
			ROOT = {
				add_character_modifier = {name = jacurse_of_retinuesize_perc duration = -1 stacking = no}
				remove_character_modifier = jacgift_of_retinuesize_perc
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacremove_retinuesize_perc = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacremove_jactive
					has_character_flag = martial_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {
			OR = {
				has_character_modifier = jacurse_of_retinuesize_perc
				has_character_modifier = jacgift_of_retinuesize_perc
			}
		}
		effect = {
			ROOT = {
				remove_character_modifier = jacurse_of_retinuesize_perc
				remove_character_modifier = jacgift_of_retinuesize_perc
			}
		}
		ai_will_do = {factor = 0.000001}
	}


	jacgift_retinue_maintenence_cost = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacgift_jactive
					has_character_flag = martial_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {NOT = {has_character_modifier = jacgift_of_retinue_maintenence_cost}}
		effect = {
			ROOT = {
				add_character_modifier = {name = jacgift_of_retinue_maintenence_cost duration = -1 stacking = no}
				remove_character_modifier = jacurse_of_retinue_maintenence_cost
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacurse_retinue_maintenence_cost = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacurse_jactive
					has_character_flag = martial_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {NOT = {has_character_modifier = jacurse_of_retinue_maintenence_cost}}
		effect = {
			ROOT = {
				add_character_modifier = {name = jacurse_of_retinue_maintenence_cost duration = -1 stacking = no}
				remove_character_modifier = jacgift_of_retinue_maintenence_cost
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacremove_retinue_maintenence_cost = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacremove_jactive
					has_character_flag = martial_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {
			OR = {
				has_character_modifier = jacurse_of_retinue_maintenence_cost
				has_character_modifier = jacgift_of_retinue_maintenence_cost
			}
		}
		effect = {
			ROOT = {
				remove_character_modifier = jacurse_of_retinue_maintenence_cost
				remove_character_modifier = jacgift_of_retinue_maintenence_cost
			}
		}
		ai_will_do = {factor = 0.000001}
	}


	jacgift_horde_maintenence_cost = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacgift_jactive
					has_character_flag = martial_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {NOT = {has_character_modifier = jacgift_of_horde_maintenence_cost}}
		effect = {
			ROOT = {
				add_character_modifier = {name = jacgift_of_horde_maintenence_cost duration = -1 stacking = no}
				remove_character_modifier = jacurse_of_horde_maintenence_cost
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacurse_horde_maintenence_cost = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacurse_jactive
					has_character_flag = martial_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {NOT = {has_character_modifier = jacurse_of_horde_maintenence_cost}}
		effect = {
			ROOT = {
				add_character_modifier = {name = jacurse_of_horde_maintenence_cost duration = -1 stacking = no}
				remove_character_modifier = jacgift_of_horde_maintenence_cost
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacremove_horde_maintenence_cost = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacremove_jactive
					has_character_flag = martial_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {
			OR = {
				has_character_modifier = jacurse_of_horde_maintenence_cost
				has_character_modifier = jacgift_of_horde_maintenence_cost
			}
		}
		effect = {
			ROOT = {
				remove_character_modifier = jacurse_of_horde_maintenence_cost
				remove_character_modifier = jacgift_of_horde_maintenence_cost
			}
		}
		ai_will_do = {factor = 0.000001}
	}

}

title_decisions  = {
	#"province" decisions 
	jacgift_prov_local_revolt_risk = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacgift_jactive
					has_character_flag = stewardship_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {
			location = {
				NOT = {has_province_modifier = jacgift_of_prov_local_revolt_risk}
			}
			tier = count
		}
		effect = {
			ROOT = {
				location = {
					add_province_modifier = {name = jacgift_of_prov_local_revolt_risk duration = -1 stacking = no}
					remove_province_modifier = jacurse_of_prov_local_revolt_risk
				}
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacurse_prov_local_revolt_risk = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacurse_jactive
					has_character_flag = stewardship_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {
			location = {
				NOT = {has_province_modifier = jacurse_of_prov_local_revolt_risk}
			}
			tier = count
		}
		effect = {
			ROOT = {
				location = {
					add_province_modifier = {name = jacurse_of_prov_local_revolt_risk duration = -1 stacking = no}
					remove_province_modifier = jacgift_of_prov_local_revolt_risk
				}
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacremove_prov_local_revolt_risk = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacremove_jactive
					has_character_flag = stewardship_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {
			location = {
				OR = {
					has_province_modifier = jacurse_of_prov_local_revolt_risk
					has_province_modifier = jacgift_of_prov_local_revolt_risk
				}
			}
			tier = count
		}
		effect = {
			ROOT = {
				location = {
					remove_province_modifier = jacurse_of_prov_local_revolt_risk
					remove_province_modifier = jacgift_of_prov_local_revolt_risk
				}
			}
		}
		ai_will_do = {factor = 0.000001}
	}
	
	jacgift_prov_disease_defence = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacgift_jactive
					has_character_flag = stewardship_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {
			location = {
				NOT = {has_province_modifier = jacgift_of_prov_disease_defence}
			}
			tier = count
		}
		effect = {
			ROOT = {
				location = {
					add_province_modifier = {name = jacgift_of_prov_disease_defence duration = -1 stacking = no}
					remove_province_modifier = jacurse_of_prov_disease_defence
				}
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacurse_prov_disease_defence = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacurse_jactive
					has_character_flag = stewardship_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {
			location = {
				NOT = {has_province_modifier = jacurse_of_prov_disease_defence}
			}
			tier = count
		}
		effect = {
			ROOT = {
				location = {
					add_province_modifier = {name = jacurse_of_prov_disease_defence duration = -1 stacking = no}
					remove_province_modifier = jacgift_of_prov_disease_defence
				}
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacremove_prov_disease_defence = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacremove_jactive
					has_character_flag = stewardship_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {
			location = {
				OR = {
					has_province_modifier = jacurse_of_prov_disease_defence
					has_province_modifier = jacgift_of_prov_disease_defence
				}
			}
			tier = count
		}
		effect = {
			ROOT = {
				location = {
					remove_province_modifier = jacurse_of_prov_disease_defence
					remove_province_modifier = jacgift_of_prov_disease_defence
				}
			}
		}
		ai_will_do = {factor = 0.000001}
	}
	
	jacgift_prov_culture_flex = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacgift_jactive
					has_character_flag = diplo_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {
			location = {
				NOT = {has_province_modifier = jacgift_of_prov_culture_flex}
			}
			tier = count
		}
		effect = {
			ROOT = {
				location = {
					add_province_modifier = {name = jacgift_of_prov_culture_flex duration = -1 stacking = no}
					remove_province_modifier = jacurse_of_prov_culture_flex
				}
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacurse_prov_culture_flex = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacurse_jactive
					has_character_flag = diplo_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {
			location = {
				NOT = {has_province_modifier = jacurse_of_prov_culture_flex}
			}
			tier = count
		}
		effect = {
			ROOT = {
				location = {
					add_province_modifier = {name = jacurse_of_prov_culture_flex duration = -1 stacking = no}
					remove_province_modifier = jacgift_of_prov_culture_flex
				}
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacremove_prov_culture_flex = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacremove_jactive
					has_character_flag = diplo_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {
			location = {
				OR = {
					has_province_modifier = jacurse_of_prov_culture_flex
					has_province_modifier = jacgift_of_prov_culture_flex
				}
			}
			tier = count
		}
		effect = {
			ROOT = {
				location = {
					remove_province_modifier = jacurse_of_prov_culture_flex
					remove_province_modifier = jacgift_of_prov_culture_flex
				}
			}
		}
		ai_will_do = {factor = 0.000001}
	}
	
	jacgift_prov_religion_flex = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacgift_jactive
					has_character_flag = diplo_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {
			location = {
				NOT = {has_province_modifier = jacgift_of_prov_religion_flex}
			}
			tier = count
		}
		effect = {
			ROOT = {
				location = {
					add_province_modifier = {name = jacgift_of_prov_religion_flex duration = -1 stacking = no}
					remove_province_modifier = jacurse_of_prov_religion_flex
				}
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacurse_prov_religion_flex = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacurse_jactive
					has_character_flag = diplo_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {
			location = {
				NOT = {has_province_modifier = jacurse_of_prov_religion_flex}
			}
			tier = count
		}
		effect = {
			ROOT = {
				location = {
					add_province_modifier = {name = jacurse_of_prov_religion_flex duration = -1 stacking = no}
					remove_province_modifier = jacgift_of_prov_religion_flex
				}
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacremove_prov_religion_flex = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacremove_jactive
					has_character_flag = diplo_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {
			location = {
				OR = {
					has_province_modifier = jacurse_of_prov_religion_flex
					has_province_modifier = jacgift_of_prov_religion_flex
				}
			}
			tier = count
		}
		effect = {
			ROOT = {
				location = {
					remove_province_modifier = jacurse_of_prov_religion_flex
					remove_province_modifier = jacgift_of_prov_religion_flex
				}
			}
		}
		ai_will_do = {factor = 0.000001}
	}
	
	jacgift_prov_short_reign_length = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacgift_jactive
					has_character_flag = comment_out_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {
			location = {
				NOT = {has_province_modifier = jacgift_of_prov_short_reign_length}
			}
			tier = count
		}
		effect = {
			ROOT = {
				location = {
					add_province_modifier = {name = jacgift_of_prov_short_reign_length duration = -1 stacking = no}
					remove_province_modifier = jacurse_of_prov_short_reign_length
				}
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacurse_prov_short_reign_length = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacurse_jactive
					has_character_flag = comment_out_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {
			location = {
				NOT = {has_province_modifier = jacurse_of_prov_short_reign_length}
			}
			tier = count
		}
		effect = {
			ROOT = {
				location = {
					add_province_modifier = {name = jacurse_of_prov_short_reign_length duration = -1 stacking = no}
					remove_province_modifier = jacgift_of_prov_short_reign_length
				}
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacremove_prov_short_reign_length = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacremove_jactive
					has_character_flag = comment_out_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {
			location = {
				OR = {
					has_province_modifier = jacurse_of_prov_short_reign_length
					has_province_modifier = jacgift_of_prov_short_reign_length
				}
			}
			tier = count
		}
		effect = {
			ROOT = {
				location = {
					remove_province_modifier = jacurse_of_prov_short_reign_length
					remove_province_modifier = jacgift_of_prov_short_reign_length
				}
			}
		}
		ai_will_do = {factor = 0.000001}
	}
	
	jacgift_prov_local_tax_modifier = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacgift_jactive
					has_character_flag = stewardship_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {
			location = {
				NOT = {has_province_modifier = jacgift_of_prov_local_tax_modifier}
			}
			tier = count
		}
		effect = {
			ROOT = {
				location = {
					add_province_modifier = {name = jacgift_of_prov_local_tax_modifier duration = -1 stacking = no}
					remove_province_modifier = jacurse_of_prov_local_tax_modifier
				}
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacurse_prov_local_tax_modifier = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacurse_jactive
					has_character_flag = stewardship_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {
			location = {
				NOT = {has_province_modifier = jacurse_of_prov_local_tax_modifier}
			}
			tier = count
		}
		effect = {
			ROOT = {
				location = {
					add_province_modifier = {name = jacurse_of_prov_local_tax_modifier duration = -1 stacking = no}
					remove_province_modifier = jacgift_of_prov_local_tax_modifier
				}
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacremove_prov_local_tax_modifier = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacremove_jactive
					has_character_flag = stewardship_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {
			location = {
				OR = {
					has_province_modifier = jacurse_of_prov_local_tax_modifier
					has_province_modifier = jacgift_of_prov_local_tax_modifier
				}
			}
			tier = count
		}
		effect = {
			ROOT = {
				location = {
					remove_province_modifier = jacurse_of_prov_local_tax_modifier
					remove_province_modifier = jacgift_of_prov_local_tax_modifier
				}
			}
		}
		ai_will_do = {factor = 0.000001}
	}
	
	jacgift_prov_local_build_cost_modifier = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacgift_jactive
					has_character_flag = stewardship_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {
			location = {
				NOT = {has_province_modifier = jacgift_of_prov_local_build_cost_modifier}
			}
			tier = count
		}
		effect = {
			ROOT = {
				location = {
					add_province_modifier = {name = jacgift_of_prov_local_build_cost_modifier duration = -1 stacking = no}
					remove_province_modifier = jacurse_of_prov_local_build_cost_modifier
				}
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacurse_prov_local_build_cost_modifier = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacurse_jactive
					has_character_flag = stewardship_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {
			location = {
				NOT = {has_province_modifier = jacurse_of_prov_local_build_cost_modifier}
			}
			tier = count
		}
		effect = {
			ROOT = {
				location = {
					add_province_modifier = {name = jacurse_of_prov_local_build_cost_modifier duration = -1 stacking = no}
					remove_province_modifier = jacgift_of_prov_local_build_cost_modifier
				}
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacremove_prov_local_build_cost_modifier = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacremove_jactive
					has_character_flag = stewardship_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {
			location = {
				OR = {
					has_province_modifier = jacurse_of_prov_local_build_cost_modifier
					has_province_modifier = jacgift_of_prov_local_build_cost_modifier
				}
			}
			tier = count
		}
		effect = {
			ROOT = {
				location = {
					remove_province_modifier = jacurse_of_prov_local_build_cost_modifier
					remove_province_modifier = jacgift_of_prov_local_build_cost_modifier
				}
			}
		}
		ai_will_do = {factor = 0.000001}
	}
	
	jacgift_prov_local_build_time_modifier = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacgift_jactive
					has_character_flag = stewardship_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {
			location = {
				NOT = {has_province_modifier = jacgift_of_prov_local_build_time_modifier}
			}
			tier = count
		}
		effect = {
			ROOT = {
				location = {
					add_province_modifier = {name = jacgift_of_prov_local_build_time_modifier duration = -1 stacking = no}
					remove_province_modifier = jacurse_of_prov_local_build_time_modifier
				}
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacurse_prov_local_build_time_modifier = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacurse_jactive
					has_character_flag = stewardship_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {
			location = {
				NOT = {has_province_modifier = jacurse_of_prov_local_build_time_modifier}
			}
			tier = count
		}
		effect = {
			ROOT = {
				location = {
					add_province_modifier = {name = jacurse_of_prov_local_build_time_modifier duration = -1 stacking = no}
					remove_province_modifier = jacgift_of_prov_local_build_time_modifier
				}
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacremove_prov_local_build_time_modifier = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacremove_jactive
					has_character_flag = stewardship_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {
			location = {
				OR = {
					has_province_modifier = jacurse_of_prov_local_build_time_modifier
					has_province_modifier = jacgift_of_prov_local_build_time_modifier
				}
			}
			tier = count
		}
		effect = {
			ROOT = {
				location = {
					remove_province_modifier = jacurse_of_prov_local_build_time_modifier
					remove_province_modifier = jacgift_of_prov_local_build_time_modifier
				}
			}
		}
		ai_will_do = {factor = 0.000001}
	}
	
	jacgift_prov_levy_size = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacgift_jactive
					has_character_flag = martial_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {
			location = {
				NOT = {has_province_modifier = jacgift_of_prov_levy_size}
			}
			tier = count
		}
		effect = {
			ROOT = {
				location = {
					add_province_modifier = {name = jacgift_of_prov_levy_size duration = -1 stacking = no}
					remove_province_modifier = jacurse_of_prov_levy_size
				}
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacurse_prov_levy_size = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacurse_jactive
					has_character_flag = martial_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {
			location = {
				NOT = {has_province_modifier = jacurse_of_prov_levy_size}
			}
			tier = count
		}
		effect = {
			ROOT = {
				location = {
					add_province_modifier = {name = jacurse_of_prov_levy_size duration = -1 stacking = no}
					remove_province_modifier = jacgift_of_prov_levy_size
				}
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacremove_prov_levy_size = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacremove_jactive
					has_character_flag = martial_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {
			location = {
				OR = {
					has_province_modifier = jacurse_of_prov_levy_size
					has_province_modifier = jacgift_of_prov_levy_size
				}
			}
			tier = count
		}
		effect = {
			ROOT = {
				location = {
					remove_province_modifier = jacurse_of_prov_levy_size
					remove_province_modifier = jacgift_of_prov_levy_size
				}
			}
		}
		ai_will_do = {factor = 0.000001}
	}
	
	jacgift_prov_garrison_size = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacgift_jactive
					has_character_flag = martial_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {
			location = {
				NOT = {has_province_modifier = jacgift_of_prov_garrison_size}
			}
			tier = count
		}
		effect = {
			ROOT = {
				location = {
					add_province_modifier = {name = jacgift_of_prov_garrison_size duration = -1 stacking = no}
					remove_province_modifier = jacurse_of_prov_garrison_size
				}
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacurse_prov_garrison_size = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacurse_jactive
					has_character_flag = martial_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {
			location = {
				NOT = {has_province_modifier = jacurse_of_prov_garrison_size}
			}
			tier = count
		}
		effect = {
			ROOT = {
				location = {
					add_province_modifier = {name = jacurse_of_prov_garrison_size duration = -1 stacking = no}
					remove_province_modifier = jacgift_of_prov_garrison_size
				}
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacremove_prov_garrison_size = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacremove_jactive
					has_character_flag = martial_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {
			location = {
				OR = {
					has_province_modifier = jacurse_of_prov_garrison_size
					has_province_modifier = jacgift_of_prov_garrison_size
				}
			}
			tier = count
		}
		effect = {
			ROOT = {
				location = {
					remove_province_modifier = jacurse_of_prov_garrison_size
					remove_province_modifier = jacgift_of_prov_garrison_size
				}
			}
		}
		ai_will_do = {factor = 0.000001}
	}
	
	jacgift_prov_fort_level = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacgift_jactive
					has_character_flag = martial_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {
			location = {
				NOT = {has_province_modifier = jacgift_of_prov_fort_level}
			}
			tier = count
		}
		effect = {
			ROOT = {
				location = {
					add_province_modifier = {name = jacgift_of_prov_fort_level duration = -1 stacking = no}
					remove_province_modifier = jacurse_of_prov_fort_level
				}
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacurse_prov_fort_level = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacurse_jactive
					has_character_flag = martial_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {
			location = {
				NOT = {has_province_modifier = jacurse_of_prov_fort_level}
			}
			tier = count
		}
		effect = {
			ROOT = {
				location = {
					add_province_modifier = {name = jacurse_of_prov_fort_level duration = -1 stacking = no}
					remove_province_modifier = jacgift_of_prov_fort_level
				}
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacremove_prov_fort_level = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacremove_jactive
					has_character_flag = martial_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {
			location = {
				OR = {
					has_province_modifier = jacurse_of_prov_fort_level
					has_province_modifier = jacgift_of_prov_fort_level
				}
			}
			tier = count
		}
		effect = {
			ROOT = {
				location = {
					remove_province_modifier = jacurse_of_prov_fort_level
					remove_province_modifier = jacgift_of_prov_fort_level
				}
			}
		}
		ai_will_do = {factor = 0.000001}
	}
	
	jacgift_prov_supply_limit = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacgift_jactive
					has_character_flag = martial_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {
			location = {
				NOT = {has_province_modifier = jacgift_of_prov_supply_limit}
			}
			tier = count
		}
		effect = {
			ROOT = {
				location = {
					add_province_modifier = {name = jacgift_of_prov_supply_limit duration = -1 stacking = no}
					remove_province_modifier = jacurse_of_prov_supply_limit
				}
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacurse_prov_supply_limit = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacurse_jactive
					has_character_flag = martial_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {
			location = {
				NOT = {has_province_modifier = jacurse_of_prov_supply_limit}
			}
			tier = count
		}
		effect = {
			ROOT = {
				location = {
					add_province_modifier = {name = jacurse_of_prov_supply_limit duration = -1 stacking = no}
					remove_province_modifier = jacgift_of_prov_supply_limit
				}
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacremove_prov_supply_limit = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacremove_jactive
					has_character_flag = martial_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {
			location = {
				OR = {
					has_province_modifier = jacurse_of_prov_supply_limit
					has_province_modifier = jacgift_of_prov_supply_limit
				}
			}
			tier = count
		}
		effect = {
			ROOT = {
				location = {
					remove_province_modifier = jacurse_of_prov_supply_limit
					remove_province_modifier = jacgift_of_prov_supply_limit
				}
			}
		}
		ai_will_do = {factor = 0.000001}
	}
	
	jacgift_prov_max_attrition = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacgift_jactive
					has_character_flag = martial_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {
			location = {
				NOT = {has_province_modifier = jacgift_of_prov_max_attrition}
			}
			tier = count
		}
		effect = {
			ROOT = {
				location = {
					add_province_modifier = {name = jacgift_of_prov_max_attrition duration = -1 stacking = no}
					remove_province_modifier = jacurse_of_prov_max_attrition
				}
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacurse_prov_max_attrition = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacurse_jactive
					has_character_flag = martial_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {
			location = {
				NOT = {has_province_modifier = jacurse_of_prov_max_attrition}
			}
			tier = count
		}
		effect = {
			ROOT = {
				location = {
					add_province_modifier = {name = jacurse_of_prov_max_attrition duration = -1 stacking = no}
					remove_province_modifier = jacgift_of_prov_max_attrition
				}
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacremove_prov_max_attrition = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacremove_jactive
					has_character_flag = martial_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {
			location = {
				OR = {
					has_province_modifier = jacurse_of_prov_max_attrition
					has_province_modifier = jacgift_of_prov_max_attrition
				}
			}
			tier = count
		}
		effect = {
			ROOT = {
				location = {
					remove_province_modifier = jacurse_of_prov_max_attrition
					remove_province_modifier = jacgift_of_prov_max_attrition
				}
			}
		}
		ai_will_do = {factor = 0.000001}
	}
	
	jacgift_prov_siege_defence = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacgift_jactive
					has_character_flag = martial_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {
			location = {
				NOT = {has_province_modifier = jacgift_of_prov_siege_defence}
			}
			tier = count
		}
		effect = {
			ROOT = {
				location = {
					add_province_modifier = {name = jacgift_of_prov_siege_defence duration = -1 stacking = no}
					remove_province_modifier = jacurse_of_prov_siege_defence
				}
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacurse_prov_siege_defence = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacurse_jactive
					has_character_flag = martial_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {
			location = {
				NOT = {has_province_modifier = jacurse_of_prov_siege_defence}
			}
			tier = count
		}
		effect = {
			ROOT = {
				location = {
					add_province_modifier = {name = jacurse_of_prov_siege_defence duration = -1 stacking = no}
					remove_province_modifier = jacgift_of_prov_siege_defence
				}
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacremove_prov_siege_defence = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacremove_jactive
					has_character_flag = martial_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {
			location = {
				OR = {
					has_province_modifier = jacurse_of_prov_siege_defence
					has_province_modifier = jacgift_of_prov_siege_defence
				}
			}
			tier = count
		}
		effect = {
			ROOT = {
				location = {
					remove_province_modifier = jacurse_of_prov_siege_defence
					remove_province_modifier = jacgift_of_prov_siege_defence
				}
			}
		}
		ai_will_do = {factor = 0.000001}
	}
	
	jacgift_prov_local_movement_speed = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacgift_jactive
					has_character_flag = martial_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {
			location = {
				NOT = {has_province_modifier = jacgift_of_prov_local_movement_speed}
			}
			tier = count
		}
		effect = {
			ROOT = {
				location = {
					add_province_modifier = {name = jacgift_of_prov_local_movement_speed duration = -1 stacking = no}
					remove_province_modifier = jacurse_of_prov_local_movement_speed
				}
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacurse_prov_local_movement_speed = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacurse_jactive
					has_character_flag = martial_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {
			location = {
				NOT = {has_province_modifier = jacurse_of_prov_local_movement_speed}
			}
			tier = count
		}
		effect = {
			ROOT = {
				location = {
					add_province_modifier = {name = jacurse_of_prov_local_movement_speed duration = -1 stacking = no}
					remove_province_modifier = jacgift_of_prov_local_movement_speed
				}
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacremove_prov_local_movement_speed = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacremove_jactive
					has_character_flag = martial_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {
			location = {
				OR = {
					has_province_modifier = jacurse_of_prov_local_movement_speed
					has_province_modifier = jacgift_of_prov_local_movement_speed
				}
			}
			tier = count
		}
		effect = {
			ROOT = {
				location = {
					remove_province_modifier = jacurse_of_prov_local_movement_speed
					remove_province_modifier = jacgift_of_prov_local_movement_speed
				}
			}
		}
		ai_will_do = {factor = 0.000001}
	}
	
	jacgift_prov_galleys_perc = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacgift_jactive
					has_character_flag = martial_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {
			location = {
				NOT = {has_province_modifier = jacgift_of_prov_galleys_perc}
			}
			tier = count
		}
		effect = {
			ROOT = {
				location = {
					add_province_modifier = {name = jacgift_of_prov_galleys_perc duration = -1 stacking = no}
					remove_province_modifier = jacurse_of_prov_galleys_perc
				}
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacurse_prov_galleys_perc = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacurse_jactive
					has_character_flag = martial_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {
			location = {
				NOT = {has_province_modifier = jacurse_of_prov_galleys_perc}
			}
			tier = count
		}
		effect = {
			ROOT = {
				location = {
					add_province_modifier = {name = jacurse_of_prov_galleys_perc duration = -1 stacking = no}
					remove_province_modifier = jacgift_of_prov_galleys_perc
				}
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacremove_prov_galleys_perc = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacremove_jactive
					has_character_flag = martial_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {
			location = {
				OR = {
					has_province_modifier = jacurse_of_prov_galleys_perc
					has_province_modifier = jacgift_of_prov_galleys_perc
				}
			}
			tier = count
		}
		effect = {
			ROOT = {
				location = {
					remove_province_modifier = jacurse_of_prov_galleys_perc
					remove_province_modifier = jacgift_of_prov_galleys_perc
				}
			}
		}
		ai_will_do = {factor = 0.000001}
	}
	
	jacgift_prov_tech_growth_modifier = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacgift_jactive
					has_character_flag = stewardship_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {
			location = {
				NOT = {has_province_modifier = jacgift_of_prov_tech_growth_modifier}
			}
			tier = count
		}
		effect = {
			ROOT = {
				location = {
					add_province_modifier = {name = jacgift_of_prov_tech_growth_modifier duration = -1 stacking = no}
					remove_province_modifier = jacurse_of_prov_tech_growth_modifier
				}
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacurse_prov_tech_growth_modifier = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacurse_jactive
					has_character_flag = stewardship_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {
			location = {
				NOT = {has_province_modifier = jacurse_of_prov_tech_growth_modifier}
			}
			tier = count
		}
		effect = {
			ROOT = {
				location = {
					add_province_modifier = {name = jacurse_of_prov_tech_growth_modifier duration = -1 stacking = no}
					remove_province_modifier = jacgift_of_prov_tech_growth_modifier
				}
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacremove_prov_tech_growth_modifier = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacremove_jactive
					has_character_flag = stewardship_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {
			location = {
				OR = {
					has_province_modifier = jacurse_of_prov_tech_growth_modifier
					has_province_modifier = jacgift_of_prov_tech_growth_modifier
				}
			}
			tier = count
		}
		effect = {
			ROOT = {
				location = {
					remove_province_modifier = jacurse_of_prov_tech_growth_modifier
					remove_province_modifier = jacgift_of_prov_tech_growth_modifier
				}
			}
		}
		ai_will_do = {factor = 0.000001}
	}
	
	jacgift_prov_culture_techpoints = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacgift_jactive
					has_character_flag = stewardship_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {
			location = {
				NOT = {has_province_modifier = jacgift_of_prov_culture_techpoints}
			}
			tier = count
		}
		effect = {
			ROOT = {
				location = {
					add_province_modifier = {name = jacgift_of_prov_culture_techpoints duration = -1 stacking = no}
					remove_province_modifier = jacurse_of_prov_culture_techpoints
				}
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacurse_prov_culture_techpoints = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacurse_jactive
					has_character_flag = stewardship_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {
			location = {
				NOT = {has_province_modifier = jacurse_of_prov_culture_techpoints}
			}
			tier = count
		}
		effect = {
			ROOT = {
				location = {
					add_province_modifier = {name = jacurse_of_prov_culture_techpoints duration = -1 stacking = no}
					remove_province_modifier = jacgift_of_prov_culture_techpoints
				}
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacremove_prov_culture_techpoints = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacremove_jactive
					has_character_flag = stewardship_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {
			location = {
				OR = {
					has_province_modifier = jacurse_of_prov_culture_techpoints
					has_province_modifier = jacgift_of_prov_culture_techpoints
				}
			}
			tier = count
		}
		effect = {
			ROOT = {
				location = {
					remove_province_modifier = jacurse_of_prov_culture_techpoints
					remove_province_modifier = jacgift_of_prov_culture_techpoints
				}
			}
		}
		ai_will_do = {factor = 0.000001}
	}
	
	jacgift_prov_military_techpoints = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacgift_jactive
					has_character_flag = stewardship_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {
			location = {
				NOT = {has_province_modifier = jacgift_of_prov_military_techpoints}
			}
			tier = count
		}
		effect = {
			ROOT = {
				location = {
					add_province_modifier = {name = jacgift_of_prov_military_techpoints duration = -1 stacking = no}
					remove_province_modifier = jacurse_of_prov_military_techpoints
				}
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacurse_prov_military_techpoints = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacurse_jactive
					has_character_flag = stewardship_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {
			location = {
				NOT = {has_province_modifier = jacurse_of_prov_military_techpoints}
			}
			tier = count
		}
		effect = {
			ROOT = {
				location = {
					add_province_modifier = {name = jacurse_of_prov_military_techpoints duration = -1 stacking = no}
					remove_province_modifier = jacgift_of_prov_military_techpoints
				}
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacremove_prov_military_techpoints = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacremove_jactive
					has_character_flag = stewardship_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {
			location = {
				OR = {
					has_province_modifier = jacurse_of_prov_military_techpoints
					has_province_modifier = jacgift_of_prov_military_techpoints
				}
			}
			tier = count
		}
		effect = {
			ROOT = {
				location = {
					remove_province_modifier = jacurse_of_prov_military_techpoints
					remove_province_modifier = jacgift_of_prov_military_techpoints
				}
			}
		}
		ai_will_do = {factor = 0.000001}
	}
	
	jacgift_prov_economy_techpoints = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacgift_jactive
					has_character_flag = stewardship_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {
			location = {
				NOT = {has_province_modifier = jacgift_of_prov_economy_techpoints}
			}
			tier = count
		}
		effect = {
			ROOT = {
				location = {
					add_province_modifier = {name = jacgift_of_prov_economy_techpoints duration = -1 stacking = no}
					remove_province_modifier = jacurse_of_prov_economy_techpoints
				}
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacurse_prov_economy_techpoints = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacurse_jactive
					has_character_flag = stewardship_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {
			location = {
				NOT = {has_province_modifier = jacurse_of_prov_economy_techpoints}
			}
			tier = count
		}
		effect = {
			ROOT = {
				location = {
					add_province_modifier = {name = jacurse_of_prov_economy_techpoints duration = -1 stacking = no}
					remove_province_modifier = jacgift_of_prov_economy_techpoints
				}
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacremove_prov_economy_techpoints = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacremove_jactive
					has_character_flag = stewardship_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {
			location = {
				OR = {
					has_province_modifier = jacurse_of_prov_economy_techpoints
					has_province_modifier = jacgift_of_prov_economy_techpoints
				}
			}
			tier = count
		}
		effect = {
			ROOT = {
				location = {
					remove_province_modifier = jacurse_of_prov_economy_techpoints
					remove_province_modifier = jacgift_of_prov_economy_techpoints
				}
			}
		}
		ai_will_do = {factor = 0.000001}
	}
	
	jacgift_prov_tradevalue = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacgift_jactive
					has_character_flag = stewardship_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {
			location = {
				NOT = {has_province_modifier = jacgift_of_prov_tradevalue}
			}
			tier = count
		}
		effect = {
			ROOT = {
				location = {
					add_province_modifier = {name = jacgift_of_prov_tradevalue duration = -1 stacking = no}
					remove_province_modifier = jacurse_of_prov_tradevalue
				}
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacurse_prov_tradevalue = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacurse_jactive
					has_character_flag = stewardship_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {
			location = {
				NOT = {has_province_modifier = jacurse_of_prov_tradevalue}
			}
			tier = count
		}
		
		effect = {
			ROOT = {
				location = {
					add_province_modifier = {name = jacurse_of_prov_tradevalue duration = -1 stacking = no}
					remove_province_modifier = jacgift_of_prov_tradevalue
				}
			}
		}
		ai_will_do = {factor = 0.00001}
	}
	
	jacremove_prov_tradevalue = {
		filter = all
		ai_target_filter = all
		from_potential = {
			OR = {
				ai = yes
				AND = {
					has_character_flag = jacremove_jactive
					has_character_flag = stewardship_stats_jactive
				}
			}
			OR ={
				AND = {
					has_game_rule = {name = gifting_rule value = all}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = host}
					OR={
						is_multiplayer_host_character = yes
						multiplayer	= no		
					}
					ai = no
				}
				AND = {
					has_game_rule = {name = gifting_rule value = titular}
					has_landed_title = e_gifter
				}
				AND = {
					has_game_rule = {name = gifting_rule value = everything}
				}
			}
		}
		potential = {
			location = {
				OR = {
					has_province_modifier = jacurse_of_prov_tradevalue
					has_province_modifier = jacgift_of_prov_tradevalue
				}
			}
			tier = count
		}
		effect = {
			ROOT = {
				location = {
					remove_province_modifier = jacurse_of_prov_tradevalue
					remove_province_modifier = jacgift_of_prov_tradevalue
				}
			}
		}
		ai_will_do = {factor = 0.000001}
	}
	
}


