decisions = {
	
	invite_diplomacy = {
		is_high_prio = yes

		potential = {
			ai = no
		}
		allow = {
			NOT = {
				has_character_modifier = in_seclusion
			}
		}
		effect = {	
			if = {
				limit = {
					AND = {
						NOT = { has_religion_feature = religion_matriarchal }
						NOT = { has_religion_feature = religion_equal }
					}
				}
				create_random_diplomat = {
					random_traits = yes
					dynasty = random
					female = no
					attributes = {
						diplomacy = 8
						learning = 2
						stewardship = 2
						intrigue = 2
						martial = 2
					}
				}
				new_character = {
					remove_trait = slow
					remove_trait = imbecile
					remove_trait = dull
					
					remove_trait = mystic
					remove_trait = socializer
					remove_trait = gamer
					remove_trait = hedonist
					remove_trait = duelist
					remove_trait = hunter
					remove_trait = strategist
					remove_trait = administrator
					remove_trait = architect
					remove_trait = gardener
					remove_trait = schemer
					remove_trait = impaler
					remove_trait = seducer
					remove_trait = seductress
					remove_trait = theologian
					remove_trait = scholar
					
					random_list = { # Flavor Randomization
						30 = { 
							change_diplomacy = 2
						}
						30 = {
							change_diplomacy = 4
						}
						30 = {
							change_diplomacy = 6
						}
						10 = {
							add_trait = socializer
						}
					}
					save_event_target_as = invited_character
				}
				character_event = { id = NE.1 }
			}
			if = {
				limit = {
					has_religion_feature = religion_matriarchal
					NOT = { has_religion_feature = religion_equal }
					NOT = { has_religion_feature = religion_feature_bon }
				}
				create_random_diplomat = {
					random_traits = yes
					dynasty = random
					female = yes
					attributes = {
						diplomacy = 8
						learning = 2
						stewardship = 2
						intrigue = 2
						martial = 2
					}
				}
				new_character = {
					remove_trait = slow
					remove_trait = imbecile
					remove_trait = dull
					
					remove_trait = mystic
					remove_trait = socializer
					remove_trait = gamer
					remove_trait = hedonist
					remove_trait = duelist
					remove_trait = hunter
					remove_trait = strategist
					remove_trait = administrator
					remove_trait = architect
					remove_trait = gardener
					remove_trait = schemer
					remove_trait = impaler
					remove_trait = seducer
					remove_trait = seductress
					remove_trait = theologian
					remove_trait = scholar
					
					random_list = { # Flavor Randomization
						30 = { 
							change_diplomacy = 2
						}
						30 = {
							change_diplomacy = 4
						}
						30 = {
							change_diplomacy = 6
						}
						10 = {
							add_trait = socializer
						}
					}
					save_event_target_as = invited_character
				}
				character_event = { id = NE.1 }
			}
			if = {
				limit = {
					OR = {
						has_law = status_of_women_4
						has_religion_feature = religion_equal
						has_religion_feature = religion_feature_bon
					}
					NOT = { has_religion_feature = religion_matriarchal }
				}
				create_random_diplomat = {
					random_traits = yes
					dynasty = random
					female = 50
					attributes = {
						diplomacy = 10
						learning = 2
						stewardship = 2
						intrigue = 2
						martial = 2
					}
				}
				new_character = {
					remove_trait = slow
					remove_trait = imbecile
					remove_trait = dull
					
					remove_trait = mystic
					remove_trait = socializer
					remove_trait = gamer
					remove_trait = hedonist
					remove_trait = duelist
					remove_trait = hunter
					remove_trait = strategist
					remove_trait = administrator
					remove_trait = architect
					remove_trait = gardener
					remove_trait = schemer
					remove_trait = impaler
					remove_trait = seducer
					remove_trait = seductress
					remove_trait = theologian
					remove_trait = scholar
					
					random_list = { # Flavor Randomization
						30 = { 
							change_diplomacy = 2
						}
						30 = {
							change_diplomacy = 4
						}
						30 = {
							change_diplomacy = 6
						}
						10 = {
							add_trait = socializer
						}
					}
					save_event_target_as = invited_character
				}
				character_event = { id = NE.1 }
			}
		}
	}
	
	invite_martial = {
		is_high_prio = yes

		potential = {
			ai = no
		}
		allow = {
			NOT = {
				has_character_modifier = in_seclusion
			}
		}
		effect = {	
			if = {
				limit = {
					AND = {
						NOT = { has_religion_feature = religion_matriarchal }
						NOT = { has_religion_feature = religion_equal }
					}
				}
				create_random_soldier = {
					random_traits = yes
					dynasty = random
					female = no
					attributes = {
						diplomacy = 2
						learning = 2
						stewardship = 2
						intrigue = 2
						martial = 8
					}
				}
				new_character = {
					remove_trait = slow
					remove_trait = imbecile
					remove_trait = dull
					
					remove_trait = mystic
					remove_trait = socializer
					remove_trait = gamer
					remove_trait = hedonist
					remove_trait = duelist
					remove_trait = hunter
					remove_trait = strategist
					remove_trait = administrator
					remove_trait = architect
					remove_trait = gardener
					remove_trait = schemer
					remove_trait = impaler
					remove_trait = seducer
					remove_trait = seductress
					remove_trait = theologian
					remove_trait = scholar
					
					random_list = { # Flavor Randomization
						30 = { 
							change_martial = 2
						}
						30 = {
							change_martial = 4
						}
						30 = {
							change_martial = 6
						}
						10 = {
							add_trait = duelist
						}
					}
					save_event_target_as = invited_character
				}
				character_event = { id = NE.1 }
			}
			if = {
				limit = {
					has_religion_feature = religion_matriarchal
					NOT = { has_religion_feature = religion_equal }
					NOT = { has_religion_feature = religion_feature_bon }
				}
				create_random_soldier = {
					random_traits = yes
					dynasty = random
					female = yes
					attributes = {
						diplomacy = 2
						learning = 2
						stewardship = 2
						intrigue = 2
						martial = 8
					}
				}
				new_character = {
					remove_trait = slow
					remove_trait = imbecile
					remove_trait = dull
					
					remove_trait = mystic
					remove_trait = socializer
					remove_trait = gamer
					remove_trait = hedonist
					remove_trait = duelist
					remove_trait = hunter
					remove_trait = strategist
					remove_trait = administrator
					remove_trait = architect
					remove_trait = gardener
					remove_trait = schemer
					remove_trait = impaler
					remove_trait = seducer
					remove_trait = seductress
					remove_trait = theologian
					remove_trait = scholar
					
					random_list = { # Flavor Randomization
						30 = { 
							change_martial = 2
						}
						30 = {
							change_martial = 4
						}
						30 = {
							change_martial = 6
						}
						10 = {
							add_trait = duelist
						}
					}
					save_event_target_as = invited_character
				}
				character_event = { id = NE.1 }
			}
			if = {
				limit = {
					OR = {
						has_law = status_of_women_4
						has_religion_feature = religion_equal
						has_religion_feature = religion_feature_bon
					}
					NOT = { has_religion_feature = religion_matriarchal }
				}
				create_random_soldier = {
					random_traits = yes
					dynasty = random
					female = 50
					attributes = {
						diplomacy = 2
						learning = 2
						stewardship = 2
						intrigue = 2
						martial = 10
					}
				}
				new_character = {
					remove_trait = slow
					remove_trait = imbecile
					remove_trait = dull
					
					remove_trait = mystic
					remove_trait = socializer
					remove_trait = gamer
					remove_trait = hedonist
					remove_trait = duelist
					remove_trait = hunter
					remove_trait = strategist
					remove_trait = administrator
					remove_trait = architect
					remove_trait = gardener
					remove_trait = schemer
					remove_trait = impaler
					remove_trait = seducer
					remove_trait = seductress
					remove_trait = theologian
					remove_trait = scholar
					
					random_list = { # Flavor Randomization
						30 = { 
							change_martial = 2
						}
						30 = {
							change_martial = 4
						}
						30 = {
							change_martial = 6
						}
						10 = {
							add_trait = duelist
						}
					}
					save_event_target_as = invited_character
				}
				character_event = { id = NE.1 }
			}
		}
	}
	
	invite_stewardship = {
		is_high_prio = yes

		potential = {
			ai = no
		}
		allow = {
			NOT = {
				has_character_modifier = in_seclusion
			}
		}
		effect = {	
			if = {
				limit = {
					AND = {
						NOT = { has_religion_feature = religion_matriarchal }
						NOT = { has_religion_feature = religion_equal }
					}
				}
				create_random_steward = {
					random_traits = yes
					dynasty = random
					female = no
					attributes = {
						diplomacy = 2
						learning = 2
						stewardship = 8
						intrigue = 2
						martial = 2
					}
				}
				new_character = {
					remove_trait = slow
					remove_trait = imbecile
					remove_trait = dull
					
					remove_trait = mystic
					remove_trait = socializer
					remove_trait = gamer
					remove_trait = hedonist
					remove_trait = duelist
					remove_trait = hunter
					remove_trait = strategist
					remove_trait = administrator
					remove_trait = architect
					remove_trait = gardener
					remove_trait = schemer
					remove_trait = impaler
					remove_trait = seducer
					remove_trait = seductress
					remove_trait = theologian
					remove_trait = scholar
					
					random_list = { # Flavor Randomization
						30 = { 
							change_stewardship = 2
						}
						30 = {
							change_stewardship = 4
						}
						30 = {
							change_stewardship = 6
						}
						10 = {
							add_trait = administrator
						}
					}
					save_event_target_as = invited_character
				}
				character_event = { id = NE.1 }
			}
			if = {
				limit = {
					has_religion_feature = religion_matriarchal
					NOT = { has_religion_feature = religion_equal }
					NOT = { has_religion_feature = religion_feature_bon }
				}
				create_random_steward = {
					random_traits = yes
					dynasty = random
					female = yes
					attributes = {
						diplomacy = 2
						learning = 2
						stewardship = 8
						intrigue = 2
						martial = 2
					}
				}
				new_character = {
					remove_trait = slow
					remove_trait = imbecile
					remove_trait = dull
					
					remove_trait = mystic
					remove_trait = socializer
					remove_trait = gamer
					remove_trait = hedonist
					remove_trait = duelist
					remove_trait = hunter
					remove_trait = strategist
					remove_trait = administrator
					remove_trait = architect
					remove_trait = gardener
					remove_trait = schemer
					remove_trait = impaler
					remove_trait = seducer
					remove_trait = seductress
					remove_trait = theologian
					remove_trait = scholar
					
					random_list = { # Flavor Randomization
						30 = { 
							change_stewardship = 2
						}
						30 = {
							change_stewardship = 4
						}
						30 = {
							change_stewardship = 6
						}
						10 = {
							add_trait = administrator
						}
					}
					save_event_target_as = invited_character
				}
				character_event = { id = NE.1 }
			}
			if = {
				limit = {
					OR = {
						has_law = status_of_women_4
						has_religion_feature = religion_equal
						has_religion_feature = religion_feature_bon
					}
					NOT = { has_religion_feature = religion_matriarchal }
				}
				create_random_steward = {
					random_traits = yes
					dynasty = random
					female = 50
					attributes = {
						diplomacy = 2
						learning = 2
						stewardship = 10
						intrigue = 2
						martial = 2
					}
				}
				new_character = {
					remove_trait = slow
					remove_trait = imbecile
					remove_trait = dull
					
					remove_trait = mystic
					remove_trait = socializer
					remove_trait = gamer
					remove_trait = hedonist
					remove_trait = duelist
					remove_trait = hunter
					remove_trait = strategist
					remove_trait = administrator
					remove_trait = architect
					remove_trait = gardener
					remove_trait = schemer
					remove_trait = impaler
					remove_trait = seducer
					remove_trait = seductress
					remove_trait = theologian
					remove_trait = scholar
					
					random_list = { # Flavor Randomization
						30 = { 
							change_stewardship = 2
						}
						30 = {
							change_stewardship = 4
						}
						30 = {
							change_stewardship = 6
						}
						10 = {
							add_trait = administrator
						}
					}
					save_event_target_as = invited_character
				}
				character_event = { id = NE.1 }
			}
		}
	}
	
	invite_intrigue = {
		is_high_prio = yes

		potential = {
			ai = no
		}
		allow = {
			NOT = {
				has_character_modifier = in_seclusion
			}
		}
		effect = {	
			if = {
				limit = {
					AND = {
						NOT = { has_religion_feature = religion_matriarchal }
						NOT = { has_religion_feature = religion_equal }
					}
				}
				create_random_intriguer = {
					random_traits = yes
					dynasty = random
					female = no
					attributes = {
						diplomacy = 2
						learning = 2
						stewardship = 2
						intrigue = 8
						martial = 2
					}
				}
				new_character = {
					remove_trait = slow
					remove_trait = imbecile
					remove_trait = dull
					
					remove_trait = mystic
					remove_trait = socializer
					remove_trait = gamer
					remove_trait = hedonist
					remove_trait = duelist
					remove_trait = hunter
					remove_trait = strategist
					remove_trait = administrator
					remove_trait = architect
					remove_trait = gardener
					remove_trait = schemer
					remove_trait = impaler
					remove_trait = seducer
					remove_trait = seductress
					remove_trait = theologian
					remove_trait = scholar
					
					random_list = { # Flavor Randomization
						30 = { 
							change_intrigue = 2
						}
						30 = {
							change_intrigue = 4
						}
						30 = {
							change_intrigue = 6
						}
						10 = {
							add_trait = schemer
						}
					}
					save_event_target_as = invited_character
				}
				character_event = { id = NE.1 }
			}
			if = {
				limit = {
					has_religion_feature = religion_matriarchal
					NOT = { has_religion_feature = religion_equal }
					NOT = { has_religion_feature = religion_feature_bon }
				}
				create_random_intriguer = {
					random_traits = yes
					dynasty = random
					female = yes
					attributes = {
						diplomacy = 2
						learning = 2
						stewardship = 2
						intrigue = 8
						martial = 2
					}
				}
				new_character = {
					remove_trait = slow
					remove_trait = imbecile
					remove_trait = dull
					
					remove_trait = mystic
					remove_trait = socializer
					remove_trait = gamer
					remove_trait = hedonist
					remove_trait = duelist
					remove_trait = hunter
					remove_trait = strategist
					remove_trait = administrator
					remove_trait = architect
					remove_trait = gardener
					remove_trait = schemer
					remove_trait = impaler
					remove_trait = seducer
					remove_trait = seductress
					remove_trait = theologian
					remove_trait = scholar
					
					random_list = { # Flavor Randomization
						30 = { 
							change_intrigue = 2
						}
						30 = {
							change_intrigue = 4
						}
						30 = {
							change_intrigue = 6
						}
						10 = {
							add_trait = schemer
						}
					}
					save_event_target_as = invited_character
				}
				character_event = { id = NE.1 }
			}
			if = {
				limit = {
					OR = {
						has_law = status_of_women_4
						has_religion_feature = religion_equal
						has_religion_feature = religion_feature_bon
					}
					NOT = { has_religion_feature = religion_matriarchal }
				}
				create_random_intriguer = {
					random_traits = yes
					dynasty = random
					female = 50
					attributes = {
						diplomacy = 2
						learning = 2
						stewardship = 2
						intrigue = 10
						martial = 2
					}
				}
				new_character = {
					remove_trait = slow
					remove_trait = imbecile
					remove_trait = dull
					
					remove_trait = mystic
					remove_trait = socializer
					remove_trait = gamer
					remove_trait = hedonist
					remove_trait = duelist
					remove_trait = hunter
					remove_trait = strategist
					remove_trait = administrator
					remove_trait = architect
					remove_trait = gardener
					remove_trait = schemer
					remove_trait = impaler
					remove_trait = seducer
					remove_trait = seductress
					remove_trait = theologian
					remove_trait = scholar
					
					random_list = { # Flavor Randomization
						30 = { 
							change_intrigue = 2
						}
						30 = {
							change_intrigue = 4
						}
						30 = {
							change_intrigue = 6
						}
						10 = {
							add_trait = schemer
						}
					}
					save_event_target_as = invited_character
				}
				character_event = { id = NE.1 }
			}
		}
	}
	
	invite_learning = {
		is_high_prio = yes

		potential = {
			ai = no
		}
		allow = {
			NOT = {
				has_character_modifier = in_seclusion
			}
		}
		effect = {	
			if = {
				limit = {
					AND = {
						NOT = { has_religion_feature = religion_matriarchal }
						NOT = { has_religion_feature = religion_equal }
					}
				}
				create_random_priest = {
					random_traits = yes
					dynasty = random
					female = no
					attributes = {
						diplomacy = 2
						learning = 8
						stewardship = 2
						intrigue = 2
						martial = 2
					}
				}
				new_character = {
					remove_trait = slow
					remove_trait = imbecile
					remove_trait = dull
					
					remove_trait = mystic
					remove_trait = socializer
					remove_trait = gamer
					remove_trait = hedonist
					remove_trait = duelist
					remove_trait = hunter
					remove_trait = strategist
					remove_trait = administrator
					remove_trait = architect
					remove_trait = gardener
					remove_trait = schemer
					remove_trait = impaler
					remove_trait = seducer
					remove_trait = seductress
					remove_trait = theologian
					remove_trait = scholar
					
					random_list = { # Flavor Randomization
						30 = { 
							change_learning = 2
						}
						30 = {
							change_learning = 4
						}
						30 = {
							change_learning = 6
						}
						10 = {
							add_trait = scholar
						}
					}
					save_event_target_as = invited_character
				}
				character_event = { id = NE.1 }
			}
			if = {
				limit = {
					has_religion_feature = religion_matriarchal
					NOT = { has_religion_feature = religion_equal }
					NOT = { has_religion_feature = religion_feature_bon }
				}
				create_random_priest = {
					random_traits = yes
					dynasty = random
					female = yes
					attributes = {
						diplomacy = 2
						learning = 8
						stewardship = 2
						intrigue = 2
						martial = 2
					}
				}
				new_character = {
					remove_trait = slow
					remove_trait = imbecile
					remove_trait = dull
					
					remove_trait = mystic
					remove_trait = socializer
					remove_trait = gamer
					remove_trait = hedonist
					remove_trait = duelist
					remove_trait = hunter
					remove_trait = strategist
					remove_trait = administrator
					remove_trait = architect
					remove_trait = gardener
					remove_trait = schemer
					remove_trait = impaler
					remove_trait = seducer
					remove_trait = seductress
					remove_trait = theologian
					remove_trait = scholar
					
					random_list = { # Flavor Randomization
						30 = { 
							change_learning = 2
						}
						30 = {
							change_learning = 4
						}
						30 = {
							change_learning = 6
						}
						10 = {
							add_trait = scholar
						}
					}
					save_event_target_as = invited_character
				}
				character_event = { id = NE.1 }
			}
			if = {
				limit = {
					OR = {
						has_law = status_of_women_4
						has_religion_feature = religion_equal
						has_religion_feature = religion_feature_bon
					}
					NOT = { has_religion_feature = religion_matriarchal }
				}
				create_random_priest = {
					random_traits = yes
					dynasty = random
					female = 50
					attributes = {
						diplomacy = 2
						learning = 10
						stewardship = 2
						intrigue = 2
						martial = 2
					}
				}
				new_character = {
					remove_trait = slow
					remove_trait = imbecile
					remove_trait = dull
					
					remove_trait = mystic
					remove_trait = socializer
					remove_trait = gamer
					remove_trait = hedonist
					remove_trait = duelist
					remove_trait = hunter
					remove_trait = strategist
					remove_trait = administrator
					remove_trait = architect
					remove_trait = gardener
					remove_trait = schemer
					remove_trait = impaler
					remove_trait = seducer
					remove_trait = seductress
					remove_trait = theologian
					remove_trait = scholar
					
					random_list = { # Flavor Randomization
						30 = { 
							change_learning = 2
						}
						30 = {
							change_learning = 4
						}
						30 = {
							change_learning = 6
						}
						10 = {
							add_trait = scholar
						}
					}
					save_event_target_as = invited_character
				}
				character_event = { id = NE.1 }
			}
		}
	}
	
}