namespace = tolerant

################################################
# Tolerant character gets a non-human courtier
################################################
# A dwarf warrior
character_event = {
	id = tolerant.1
	desc = EVTDESCtolerant.1
	picture = GFX_evt_emissary
	border = GFX_event_normal_frame_religion
	
	min_age = 15
	prisoner = no
	only_playable = yes
	capable_only = yes
	
	trigger = {
		NOT = { culture = wilderness }
		trait = tolerant
		NOT = { trait = dryad_race }
	}
	
	mean_time_to_happen = {
		months = 900
		modifier = {
			factor = 2
			any_courtier = {
				count = 3
				OR = {
					trait = elf_race
					trait = dwarf_race
					trait = halfling_race
					trait = gnome_race
				}
			}
		}
		modifier = { factor = 0.8 crownlaw_title = { has_law = tolerance_2 } }
		modifier = { factor = 0.9 trait = halfdwarf_race }
		modifier = { factor = 0.9 trait = gregarious }
		modifier = { factor = 0.9 trait = kind }
		modifier = { factor = 0.9 trait = just }
	}
	
	option = {
		name = EVTOPTAtolerant.1
		create_random_soldier = {
			random_traits = yes
			culture = dwarven
			dynasty = none
			religion = dwarven_religion
			female = no
			age = 30
			trait = dwarf_race
		}
		new_character = {
			change_martial = 2
			remove_trait = inbred
			remove_trait = imbecile
			random_list = {
				50 = { add_trait = trained_warrior }
				50 = { add_trait = skilled_warrior }
			}
		}
	}
}
# A dwarf steward
character_event = {
	id = tolerant.2
	desc = EVTDESCtolerant.2
	picture = GFX_evt_emissary
	border = GFX_event_normal_frame_religion
	
	min_age = 15
	prisoner = no
	only_playable = yes
	capable_only = yes
	
	trigger = {
		NOT = { culture = wilderness }
		trait = tolerant
		NOT = { trait = dryad_race }
	}
	
	mean_time_to_happen = {
		months = 900
		modifier = {
			factor = 2
			any_courtier = {
				count = 3
				OR = {
					trait = elf_race
					trait = dwarf_race
					trait = halfling_race
					trait = gnome_race
				}
			}
		}
		modifier = { factor = 0.8 crownlaw_title = { has_law = tolerance_2 } }
		modifier = { factor = 0.9 trait = halfdwarf_race }
		modifier = { factor = 0.9 trait = gregarious }
		modifier = { factor = 0.9 trait = kind }
		modifier = { factor = 0.9 trait = just }
	}
	
	option = {
		name = EVTOPTAtolerant.2
		create_random_steward = {
			random_traits = yes
			culture = dwarven
			dynasty = none
			religion = dwarven_religion
			female = no
			age = 30
			trait = dwarf_race
		}
		new_character = {
			change_stewardship = 2
			remove_trait = inbred
			remove_trait = imbecile
		}
	}
}
# An elf spy
character_event = {
	id = tolerant.3
	desc = EVTDESCtolerant.3
	picture = GFX_evt_emissary
	border = GFX_event_normal_frame_religion
	
	min_age = 15
	prisoner = no
	only_playable = yes
	capable_only = yes
	
	trigger = {
		NOT = { culture = wilderness }
		trait = tolerant
		NOT = { trait = dryad_race }
	}
	
	mean_time_to_happen = {
		months = 900
		modifier = {
			factor = 2
			any_courtier = {
				count = 3
				OR = {
					trait = elf_race
					trait = dwarf_race
					trait = halfling_race
					trait = gnome_race
				}
			}
		}
		modifier = { factor = 0.8 crownlaw_title = { has_law = tolerance_2 } }
		modifier = { factor = 0.9 trait = halfelf_race }
		modifier = { factor = 0.9 trait = gregarious }
		modifier = { factor = 0.9 trait = kind }
		modifier = { factor = 0.9 trait = just }
	}
	
	option = {
		name = EVTOPTAtolerant.3
		create_random_intriguer = {
			random_traits = yes
			culture = aen_seidhe
			dynasty = none
			religion = dana_meadbh
			female = no
			age = 30
			trait = elf_race
		}
		new_character = {
			change_intrigue = 2
			remove_trait = inbred
			remove_trait = imbecile
		}
	}
}
# An elf girl
character_event = {
	id = tolerant.4
	desc = EVTDESCtolerant.4
	picture = GFX_evt_emissary
	border = GFX_event_normal_frame_religion
	
	min_age = 15
	prisoner = no
	only_playable = yes
	capable_only = yes
	
	trigger = {
		NOT = { culture = wilderness }
		trait = tolerant
		NOT = { trait = dryad_race }
	}
	
	mean_time_to_happen = {
		months = 900
		modifier = {
			factor = 2
			any_courtier = {
				count = 3
				OR = {
					trait = elf_race
					trait = dwarf_race
					trait = halfling_race
					trait = gnome_race
				}
			}
		}
		modifier = { factor = 0.8 crownlaw_title = { has_law = tolerance_2 } }
		modifier = { factor = 0.9 trait = halfelf_race }
		modifier = { factor = 0.9 trait = gregarious }
		modifier = { factor = 0.9 trait = kind }
		modifier = { factor = 0.9 trait = just }
	}
	
	option = {
		name = EVTOPTAtolerant.4
		create_character = {
			random_traits = yes
			culture = aen_seidhe
			dynasty = none
			religion = dana_meadbh
			female = yes
			age = 20
			trait = elf_race
			trait = fair
		}
		new_character = {
			remove_trait = inbred
			remove_trait = imbecile
		}
	}
}
# A halfling steward
character_event = {
	id = tolerant.5
	desc = EVTDESCtolerant.5
	picture = GFX_evt_emissary
	border = GFX_event_normal_frame_religion
	
	min_age = 15
	prisoner = no
	only_playable = yes
	capable_only = yes
	
	trigger = {
		NOT = { culture = wilderness }
		trait = tolerant
		NOT = { trait = dryad_race }
	}
	
	mean_time_to_happen = {
		months = 900
		modifier = {
			factor = 2
			any_courtier = {
				count = 3
				OR = {
					trait = elf_race
					trait = dwarf_race
					trait = halfling_race
					trait = gnome_race
				}
			}
		}
		modifier = { factor = 0.8 crownlaw_title = { has_law = tolerance_2 } }
		modifier = { factor = 0.9 trait = halfhalfling_race }
		modifier = { factor = 0.9 trait = gregarious }
		modifier = { factor = 0.9 trait = kind }
		modifier = { factor = 0.9 trait = just }
	}
	
	option = {
		name = EVTOPTAtolerant.2
		create_random_steward = {
			random_traits = yes
			culture = halfling
			dynasty = none
			religion = halfling_religion
			female = no
			age = 30
			trait = halfling_race
		}
		new_character = {
			change_stewardship = 2
			remove_trait = inbred
			remove_trait = imbecile
		}
	}
}
# A halfling diplomat
character_event = {
	id = tolerant.6
	desc = EVTDESCtolerant.6
	picture = GFX_evt_emissary
	border = GFX_event_normal_frame_religion
	
	min_age = 15
	prisoner = no
	only_playable = yes
	capable_only = yes
	
	trigger = {
		NOT = { culture = wilderness }
		trait = tolerant
		NOT = { trait = dryad_race }
	}
	
	mean_time_to_happen = {
		months = 900
		modifier = {
			factor = 2
			any_courtier = {
				count = 3
				OR = {
					trait = elf_race
					trait = dwarf_race
					trait = halfling_race
					trait = gnome_race
				}
			}
		}
		modifier = { factor = 0.8 crownlaw_title = { has_law = tolerance_2 } }
		modifier = { factor = 0.9 trait = halfhalfling_race }
		modifier = { factor = 0.9 trait = gregarious }
		modifier = { factor = 0.9 trait = kind }
		modifier = { factor = 0.9 trait = just }
	}
	
	option = {
		name = EVTOPTAtolerant.6
		create_random_diplomat = {
			random_traits = yes
			culture = halfling
			dynasty = none
			religion = halfling_religion
			female = no
			age = 60
			trait = halfling_race
		}
		new_character = {
			change_diplomacy = 2
			remove_trait = inbred
			remove_trait = imbecile
		}
	}
}
# A gnomish spy
character_event = {
	id = tolerant.7
	desc = EVTDESCtolerant.7
	picture = GFX_evt_emissary
	border = GFX_event_normal_frame_religion
	
	min_age = 15
	prisoner = no
	only_playable = yes
	capable_only = yes
	
	trigger = {
		NOT = { culture = wilderness }
		trait = tolerant
		NOT = { trait = dryad_race }
	}
	
	mean_time_to_happen = {
		months = 900
		modifier = {
			factor = 2
			any_courtier = {
				count = 3
				OR = {
					trait = elf_race
					trait = dwarf_race
					trait = halfling_race
					trait = gnome_race
				}
			}
		}
		modifier = { factor = 0.8 crownlaw_title = { has_law = tolerance_2 } }
		modifier = { factor = 0.9 trait = halfgnome_race }
		modifier = { factor = 0.9 trait = gregarious }
		modifier = { factor = 0.9 trait = kind }
		modifier = { factor = 0.9 trait = just }
	}
	
	option = {
		name = EVTOPTAtolerant.7
		create_random_diplomat = {
			random_traits = yes
			culture = gnomish
			dynasty = none
			religion = gnomish_religion
			female = no
			age = 60
			trait = gnome_race
		}
		new_character = {
			change_intrigue = 2
			remove_trait = inbred
			remove_trait = imbecile
		}
	}
}
# A gnomish thinker
character_event = {
	id = tolerant.8
	desc = EVTDESCtolerant.8
	picture = GFX_evt_emissary
	border = GFX_event_normal_frame_religion
	
	min_age = 15
	prisoner = no
	only_playable = yes
	capable_only = yes
	
	trigger = {
		NOT = { culture = wilderness }
		trait = tolerant
		NOT = { trait = dryad_race }
	}
	
	mean_time_to_happen = {
		months = 900
		modifier = {
			factor = 2
			any_courtier = {
				count = 3
				OR = {
					trait = elf_race
					trait = dwarf_race
					trait = halfling_race
					trait = gnome_race
				}
			}
		}
		modifier = { factor = 0.8 crownlaw_title = { has_law = tolerance_2 } }
		modifier = { factor = 0.9 trait = halfgnome_race }
		modifier = { factor = 0.9 trait = gregarious }
		modifier = { factor = 0.9 trait = kind }
		modifier = { factor = 0.9 trait = just }
	}
	
	option = {
		name = EVTOPTAtolerant.8
		create_random_diplomat = {
			random_traits = yes
			culture = gnomish
			dynasty = none
			religion = gnomish_religion
			female = no
			age = 60
			trait = gnome_race
		}
		new_character = {
			change_learning = 2
			remove_trait = inbred
			remove_trait = imbecile
		}
	}
}
################################################
# Tolerant character makes a non-human friend
################################################
# Tolerant character making dwarf friend
character_event = {
	id = tolerant.10
	desc = EVTDESCtolerant.10
	picture = GFX_evt_courtiers_talking
	
	only_rulers = yes
	prisoner = no
	min_age = 15
	
	trigger = {
		trait = human_race
		trait = tolerant
		any_realm_character = {
			trait = dwarf_race
			NOT = { is_friend = ROOT }
		}
	}
	
	mean_time_to_happen = {
		months = 600
	}
	
	option = {
		name = EVTOPTAtolerant.10
		random_realm_character = {
			limit = {
				trait = dwarf_race
			}
			add_friend = ROOT
		}
	}
}
# Tolerant character making elf friend
character_event = {
	id = tolerant.11
	desc = EVTDESCtolerant.11
	picture = GFX_evt_courtiers_talking
	
	only_rulers = yes
	prisoner = no
	min_age = 15
	
	trigger = {
		trait = human_race
		trait = tolerant
		any_realm_character = {
			trait = elf_race
			NOT = { is_friend = ROOT }
		}
	}
	
	mean_time_to_happen = {
		months = 600
	}
	
	option = {
		name = EVTOPTAtolerant.11
		random_realm_character = {
			limit = {
				trait = elf_race
			}
			add_friend = ROOT
		}
	}
}
# Tolerant character making halfling friend
character_event = {
	id = tolerant.12
	desc = EVTDESCtolerant.12
	picture = GFX_evt_courtiers_talking
	
	only_rulers = yes
	prisoner = no
	min_age = 15
	
	trigger = {
		trait = human_race
		trait = tolerant
		any_realm_character = {
			trait = halfling_race
			NOT = { is_friend = ROOT }
		}
	}
	
	mean_time_to_happen = {
		months = 600
	}
	
	option = {
		name = EVTOPTAtolerant.12
		random_realm_character = {
			limit = {
				trait = halfling_race
			}
			add_friend = ROOT
		}
	}
}
# Tolerant character making gnomish friend
character_event = {
	id = tolerant.13
	desc = EVTDESCtolerant.13
	picture = GFX_evt_courtiers_talking
	
	only_rulers = yes
	prisoner = no
	min_age = 15
	
	trigger = {
		trait = human_race
		trait = tolerant
		any_realm_character = {
			trait = gnome_race
			NOT = { is_friend = ROOT }
		}
	}
	
	mean_time_to_happen = {
		months = 600
	}
	
	option = {
		name = EVTOPTAtolerant.13
		random_realm_character = {
			limit = {
				trait = gnome_race
			}
			add_friend = ROOT
		}
	}
}